Add public API to set or calculate JS::NativeStackLimit for JS::FrontendContext APIs
Categories
(Core :: JavaScript Engine, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox115 | --- | fixed |
People
(Reporter: arai, Assigned: arai)
References
(Blocks 2 open bugs)
Details
Attachments
(11 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
For JSContext
-based API, the stack quota is set by JS_SetNativeStackQuota
.
We need the equivalent for JS::FrontendContext
-based API, because the current JS::NativeStackLimit
parameter is hard to use without at least helper to calculate it from size.
Assignee | ||
Comment 1•11 months ago
|
||
possible options:
- a) add
JS::NativeStackLimit JS::GetNativeStackLimit(JS::NativeStackSize size);
, which is combination of js::GetNativeStackLimit + js::GetNativeStackBase, and use it when calling compilation APIs - b) add
void JS::SetNativeStackQuota(JS::FrontendContext* fc, JS::NativeStackSize size);
, which isJS::FrontendContext
-variant of JS_SetNativeStackQuota forJSContext
, and also addJS::NativeStackLimit
field toJS::FrontendContext
and removeJS::NativeStackLimit
parameter fromJS::FrontendContext
-based APIs
Assignee | ||
Comment 2•11 months ago
|
||
Assignee | ||
Comment 3•11 months ago
|
||
Depends on D179002
Assignee | ||
Comment 4•11 months ago
|
||
Depends on D179003
Assignee | ||
Comment 5•11 months ago
|
||
Depends on D179004
Assignee | ||
Comment 6•11 months ago
|
||
Depends on D179005
Assignee | ||
Comment 7•11 months ago
|
||
Depends on D179006
Assignee | ||
Comment 8•11 months ago
|
||
Depends on D179007
Assignee | ||
Comment 9•11 months ago
|
||
Depends on D179008
Assignee | ||
Comment 10•11 months ago
|
||
Depends on D179009
Assignee | ||
Comment 11•11 months ago
|
||
Depends on D179010
Assignee | ||
Comment 12•11 months ago
|
||
Depends on D179011
Comment 13•11 months ago
|
||
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/fce0bc3f10ec Part 1: Add NativeStackLimit field to FrontendContext. r=bthrall https://hg.mozilla.org/integration/autoland/rev/578fed7f201b Part 2: Use FrontendContext NativeStackLimit field in ParseTask and DelazifyTask. r=bthrall https://hg.mozilla.org/integration/autoland/rev/248999f3a826 Part 3: Remove NativeStackLimit parameter from public FrontendContext-based API. r=bthrall https://hg.mozilla.org/integration/autoland/rev/54bc516f4981 Part 4: Remove NativeStackLimit parameter from private FrontendContext-based compile to global API. r=bthrall https://hg.mozilla.org/integration/autoland/rev/e64f38a183a1 Part 5: Remove NativeStackLimit parameter from private FrontendContext-based compile to module API. r=bthrall https://hg.mozilla.org/integration/autoland/rev/a12fb416dc16 Part 6: Remove NativeStackLimit parameter from private FrontendContext-based delazify API. r=bthrall https://hg.mozilla.org/integration/autoland/rev/ea422269d9ab Part 7: Remove NativeStackLimit field from SourceAwareCompiler. r=bthrall https://hg.mozilla.org/integration/autoland/rev/28edc29c161b Part 8: Remove NativeStackLimit field from Parser and BytecodeEmitter. r=bthrall https://hg.mozilla.org/integration/autoland/rev/cceddc6d6dd4 Part 9: Remove NativeStackLimit field from AsmJS module validator. r=bthrall https://hg.mozilla.org/integration/autoland/rev/447bcdef4023 Part 10: Remove NativeStackLimit parameter from smoosh API. r=bthrall https://hg.mozilla.org/integration/autoland/rev/e7766c02eb55 Part 11: Add JS::SetNativeStackQuota for JS::FrontendContext. r=bthrall
Comment 14•11 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/fce0bc3f10ec
https://hg.mozilla.org/mozilla-central/rev/578fed7f201b
https://hg.mozilla.org/mozilla-central/rev/248999f3a826
https://hg.mozilla.org/mozilla-central/rev/54bc516f4981
https://hg.mozilla.org/mozilla-central/rev/e64f38a183a1
https://hg.mozilla.org/mozilla-central/rev/a12fb416dc16
https://hg.mozilla.org/mozilla-central/rev/ea422269d9ab
https://hg.mozilla.org/mozilla-central/rev/28edc29c161b
https://hg.mozilla.org/mozilla-central/rev/cceddc6d6dd4
https://hg.mozilla.org/mozilla-central/rev/447bcdef4023
https://hg.mozilla.org/mozilla-central/rev/e7766c02eb55
Description
•