Dynamic Code Brand Checks
Categories
(Core :: JavaScript Engine, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox135 | --- | fixed |
People
(Reporter: afmenez, Assigned: fredw)
References
(Blocks 1 open bug, )
Details
Attachments
(2 files)
The proposal is currently in Stage 3.
Updated•1 year ago
|
Assignee | ||
Comment 1•11 months ago
|
||
These are the spec changes:
- https://tc39.es/ecma262/#sec-hostensurecancompilestrings is edited as described in https://tc39.es/proposal-dynamic-code-brand-checks/#sec-hostensurecancompilestrings
- https://tc39.es/ecma262/#sec-performeval is edited as described in https://tc39.es/proposal-dynamic-code-brand-checks/#sec-performeval
- This change relies on
HostGetCodeForEval
hook, introduced in https://tc39.es/ecma262/#sec-host-hooks-summary: https://tc39.es/proposal-dynamic-code-brand-checks/#sec-hostgetcodeforeval
- This change relies on
- https://tc39.es/ecma262/#sec-createdynamicfunction is edited as described in https://tc39.es/proposal-dynamic-code-brand-checks/#sec-createdynamicfunction
IIUC our implementation of HostEnsureCanCompileStrings
is essentially JSContext::isRuntimeCodeGenEnabled
:
https://searchfox.org/mozilla-central/rev/b477cd37e845005dac8881427fa06a2771d993db/js/src/vm/JSContext.cpp#1237
https://searchfox.org/mozilla-central/search?q=symbol:_ZN9JSContext23isRuntimeCodeGenEnabledEN2JS11RuntimeCodeENS0_6HandleIP8JSStringEE&redirect=false
Assignee | ||
Comment 2•11 months ago
|
||
Assignee | ||
Comment 3•11 months ago
|
||
Updated•11 months ago
|
Updated•10 months ago
|
Updated•10 months ago
|
Updated•10 months ago
|
Updated•10 months ago
|
Updated•10 months ago
|
Updated•10 months ago
|
Updated•10 months ago
|
Updated•10 months ago
|
Backed out for causing build bustages @ FrontendContext.cpp
- Backout link
- Push with failures
- Failure Log
- Failure line:
Assertion failure: !maybeCx_->isExceptionPending(), at /builds/worker/checkouts/gecko/js/src/frontend/FrontendContext.cpp:99
Assignee | ||
Comment 6•10 months ago
|
||
(In reply to amarc from comment #5)
Backed out for causing build bustages @ FrontendContext.cpp
- Backout link
- Push with failures
- Failure Log
- Failure line:
Assertion failure: !maybeCx_->isExceptionPending(), at /builds/worker/checkouts/gecko/js/src/frontend/FrontendContext.cpp:99
The new test must clear any previous EvalError exception before running a new failing eval / new Function called. Fixed in the latest uploaded patches.
TIL: the try fuzzy tasks for jsapi-tests are spidermonkey builds...
Assignee | ||
Comment 7•10 months ago
|
||
https://hg.mozilla.org/mozilla-central/rev/b575160525c1
https://hg.mozilla.org/mozilla-central/rev/2baefcde5dbc
https://hg.mozilla.org/mozilla-central/rev/dbad1906f96c
Description
•