Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Truffle] YAML complete #3349

Merged
merged 21 commits into from
Sep 29, 2015
Merged

[Truffle] YAML complete #3349

merged 21 commits into from
Sep 29, 2015

Conversation

chrisseaton
Copy link
Contributor

Remaining handful of specs are unrelated problems in time, regexps, and a bizarre dependency on Syck that I will investigate slow-time. Same number of failures as JRuby, but different ones, strangely.

One of @nirvdrum, @pitr-ch or @eregon please review. @thomaswue for information.

@chrisseaton chrisseaton added this to the truffle-dev milestone Sep 25, 2015
@chrisseaton chrisseaton self-assigned this Sep 25, 2015
@@ -71,5 +71,5 @@
CONTINUATION,
BASICOBJECT,
// insert new values here
MAX_CLASSES;
MAX_CLASSES, Layouts;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea about this or the change to RubyObject. Must be some refactoring mess up. I reverted it.

class ClassLoader

def path2class(path)
eval("::#{path}")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could also be Object.const_get(path) normally.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will that work with Foo::Bar for example?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@eregon
Copy link
Member

eregon commented Sep 25, 2015

Looks good to merge for me.

@@ -211,6 +224,10 @@ public MemoryManager getMemoryManager() {

// ruby() helper

protected Object ruby(String expression, Object... arguments) {
return getContext().inlineRubyHelper(this, expression, arguments);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: I would get the frame here and make this one @TruffleBoundary, rather than adding another version in RubyContext.

Object[] tagsTuple = ArrayOperations.toObjectArray((DynamicObject) tagsAry[i]);
if (tagsTuple.length != 2) {
throw new UnsupportedOperationException();
//throw context.runtime.newRuntimeError("tags tuple must be of length 2");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left over junk?

Conflicts:
	truffle/src/main/java/org/jruby/truffle/runtime/core/CoreLibrary.java
	truffle/src/main/java/org/jruby/truffle/runtime/layouts/Layouts.java

for (String line : rubyBacktrace) {
System.err.println(line);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the motivation for this method? Could it return array instead printing, then it can be added to watches in debugger.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a debug method - if you are debugging you may not want to start running arbitrary, complex code like puts, so this does it for you. We do have debug_print though.

@chrisseaton
Copy link
Contributor Author

Trying to get this merged but keep running into failures and conflicts...

chrisseaton added a commit that referenced this pull request Sep 29, 2015
@chrisseaton chrisseaton merged commit 09cfe9b into master Sep 29, 2015
@chrisseaton chrisseaton deleted the truffle-yaml branch September 29, 2015 20:19
@enebo enebo added this to the Non-Release milestone Dec 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants