Closed Bug 1440431 Opened 8 years ago Closed 8 years ago

Expose js::jit::BaselineCompile() as a testing function

Categories

(Core :: JavaScript Engine, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla60
Tracking Status
firefox60 --- fixed

People

(Reporter: jorendorff, Assigned: jorendorff)

References

Details

Attachments

(3 files, 1 obsolete file)

No description provided.
Attachment #8953186 - Flags: review?(nicolas.b.pierron)
Assignee: nobody → jorendorff
Status: NEW → ASSIGNED
Attachment #8953197 - Flags: review?(nicolas.b.pierron)
Attachment #8953207 - Flags: review?(nicolas.b.pierron)
Attachment #8953197 - Attachment is obsolete: true
Attachment #8953197 - Flags: review?(nicolas.b.pierron)
Comment on attachment 8953206 [details] [diff] [review] Part 2: Factor out ReturnString convenience function Review of attachment 8953206 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/builtin/TestingFunctions.cpp @@ +283,5 @@ > > static bool > +ReturnString(JSContext* cx, CallArgs& args, const char* message) > +{ > + JSString* error = JS_NewStringCopyZ(cx, message); nit: rename ReturnString to ReturnStringCopy. (the pointer is not freed nor owned after this function) @@ +288,5 @@ > + if (!error) > + return false; > + > + args.rval().setString(error); > + return true; nit: s/error/res/ or s/error/str/ ?
Attachment #8953206 - Flags: review?(nicolas.b.pierron) → review+
Attachment #8953186 - Flags: review?(nicolas.b.pierron) → review+
Comment on attachment 8953207 [details] [diff] [review] Part 3: Add baselineCompile() testing function Review of attachment 8953207 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/tests/non262/extensions/baselineCompile.js @@ +10,5 @@ > + "be running it yet, according to the help text for baselineCompile() " + > + "in TestingFunctions.cpp. If you fail this assertion, nice work, and " + > + "please update the help text!"); > + > + for (var i=0; i<1; i++) {} // exact boilerplate suggested by the help text Move this test case to jit-test/tests/self-test/baselineCompile.js
Attachment #8953207 - Flags: review?(nicolas.b.pierron) → review+
Regressions: 1444339
Depends on: 1444894
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: