Closed
Bug 1986187
Opened 8 months ago
Closed 8 months ago
Emit JSOp::TypeofEq for typeof x > "u"
Categories
(Core :: JavaScript Engine, enhancement, P3)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
144 Branch
| Tracking | Status | |
|---|---|---|
| firefox144 | --- | fixed |
People
(Reporter: arai, Assigned: arai)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
It turns out that esbuild minifies typeof x === "undefined" into typeof x>"u", which means the JSOp::TypeofEq optimization no longer works on the code minified with it.
https://esbuild.github.io/try/#dAAwLjI1LjkALS1taW5pZnkAdHlwZW9mIHggPT09ICJ1bmRlZmluZWQi
We could extend the support for JSOp::TypeofEq to also match the minified code, so that the minified code still works in the same speed.
JSC already landed a patch to emit an optimized ops for the the minified code: https://bugs.webkit.org/show_bug.cgi?id=298148
| Assignee | ||
Comment 1•8 months ago
|
||
Comment 2•8 months ago
•
|
||
So this minfier basically made it impossible to introduce any new type in JavaScript that is lexographically lager than an "u"?
Pushed by arai_a@mac.com:
https://github.com/mozilla-firefox/firefox/commit/ec3b954f2c4f
https://hg.mozilla.org/integration/autoland/rev/2fb1b25f39e2
Emit JSOp::TypeofEq for typeof x > "u". r=jandem
Comment 4•8 months ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
status-firefox144:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 144 Branch
Updated•7 months ago
|
QA Whiteboard: [qa-triage-done-c145/b144]
You need to log in
before you can comment on or make changes to this bug.
Description
•