Closed Bug 882514 Opened 12 years ago Closed 12 years ago

OdinMonkey: TryEnablingIon fails for arrow functions FFI call with --ion-eager

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: bbouvier, Assigned: bbouvier)

References

Details

Attachments

(1 file)

Attached patch proposed fixSplinter Review
(function m(a,ffi){"use asm"; var f = ffi.f; function g(){f();}return g})(this, {f: x=>x}) raises an assertion failure as the arrow function has no script, in TryEnablingIon. Present in a test case of bug 882012.
Attachment #761821 - Flags: review?(hv1989)
Don't forget to add the testcase to the patch.
(In reply to Luke Wagner [:luke] from comment #1) > Don't forget to add the testcase to the patch. Should I move the test case present in the patch of bug 882012 in this patch?
That'd probably be best (for the bug/hg record).
Comment on attachment 761821 [details] [diff] [review] proposed fix Review of attachment 761821 [details] [diff] [review]: ----------------------------------------------------------------- Nice find. Seems like we don't have testcase testing ffi calls to natives yet! Please include a testcase. ::: js/src/ion/AsmJS.cpp @@ +5231,5 @@ > } > > static inline bool > +TryEnablingIon(JSContext *cx, AsmJSModule::ExitDatum *exitDatum, int32_t argc, Value *argv) > +{ Thanks for correcting the accolade. @@ +5233,5 @@ > static inline bool > +TryEnablingIon(JSContext *cx, AsmJSModule::ExitDatum *exitDatum, int32_t argc, Value *argv) > +{ > + JSScript *script = exitDatum->fun->maybeNonLazyScript(); > + if (script == NULL) if (!script)
Attachment #761821 - Flags: review?(hv1989) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: