-
Notifications
You must be signed in to change notification settings - Fork 878
Move function objects to be lambda based. #1899
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
base: master
Are you sure you want to change the base?
Move function objects to be lambda based. #1899
Conversation
V8 Benchmarks seem good, no significant regressions. I'll try running the SpiderMonkey and micro other benchmarks tonight, and then tidy things up. |
@@ -486,7 +487,7 @@ public String getClassName() { | |||
} | |||
|
|||
private Scriptable buildScope(Context cx, Test262Case testCase, boolean interpretedMode) { | |||
ScriptableObject scope = cx.initSafeStandardObjects(); | |||
ScriptableObject scope = (ScriptableObject) cx.initSafeStandardObjects(new TopLevel()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about making a separate PR out of this change together with the test262.properties update.
This will make it simpler to understand the impact of this change and not to mix it with the lambda stuff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. What I might do is stack them so it's the 262 change first, and then the move to lambda so any effect on the generator function tests is obvious.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so it's the 262 change first
@aardvark179 great, i think we can merge that as soon as you have it to not block the rest
d5e84da
to
2bb36d2
Compare
Creating this as a draft. I noticed there are some test262 tests we should pass, but hadn't been picked up by
-DupdateTest262properties
because their lines were marked with~
in the properties file. I'll deal with some of those before moving this from draft status.