Closed
Bug 1440431
Opened 8 years ago
Closed 8 years ago
Expose js::jit::BaselineCompile() as a testing function
Categories
(Core :: JavaScript Engine, enhancement)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla60
| Tracking | Status | |
|---|---|---|
| firefox60 | --- | fixed |
People
(Reporter: jorendorff, Assigned: jorendorff)
References
Details
Attachments
(3 files, 1 obsolete file)
|
13.58 KB,
patch
|
nbp
:
review+
|
Details | Diff | Splinter Review |
|
7.73 KB,
patch
|
nbp
:
review+
|
Details | Diff | Splinter Review |
|
6.00 KB,
patch
|
nbp
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•8 years ago
|
||
Attachment #8953186 -
Flags: review?(nicolas.b.pierron)
| Assignee | ||
Updated•8 years ago
|
Assignee: nobody → jorendorff
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•8 years ago
|
||
Attachment #8953197 -
Flags: review?(nicolas.b.pierron)
| Assignee | ||
Comment 3•8 years ago
|
||
Attachment #8953206 -
Flags: review?(nicolas.b.pierron)
| Assignee | ||
Comment 4•8 years ago
|
||
Attachment #8953207 -
Flags: review?(nicolas.b.pierron)
| Assignee | ||
Updated•8 years ago
|
Attachment #8953197 -
Attachment is obsolete: true
Attachment #8953197 -
Flags: review?(nicolas.b.pierron)
Comment 5•8 years ago
|
||
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+
Updated•8 years ago
|
Attachment #8953186 -
Flags: review?(nicolas.b.pierron) → review+
Comment 6•8 years ago
|
||
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+
| Assignee | ||
Comment 7•8 years ago
|
||
| Assignee | ||
Comment 8•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/3c0037ba793b7d393449036987767a44423bf346
Bug 1440431 - Part 1: Move ValueToScript into the engine. r=nbp.
https://hg.mozilla.org/integration/mozilla-inbound/rev/d6d01ad35d89de3aad2afdfbe71622f9089118b5
Bug 1440431 - Part 2: Factor out ReturnStringCopy convenience function. r=nbp.
https://hg.mozilla.org/integration/mozilla-inbound/rev/51d604ea785bbc46db7f88235faef597f57e671f
Bug 1440431 - Part 3: Add baselineCompile() testing function. r=nbp.
Comment 9•8 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/3c0037ba793b
https://hg.mozilla.org/mozilla-central/rev/d6d01ad35d89
https://hg.mozilla.org/mozilla-central/rev/51d604ea785b
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox60:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in
before you can comment on or make changes to this bug.
Description
•