Cleanup JS opcode flags
Categories
(Core :: JavaScript Engine, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox74 | --- | fixed |
People
(Reporter: tcampbell, Assigned: tcampbell)
Details
Attachments
(5 files)
This is just convenient cleanup.
- Use BytecodeEmitter::emitIndexOp/emitAtomOp more consistently
- Avoid js::CodeSpec outside of BytecodeUtil
- Add JOF_SPREAD/JOF_CONSTRUCT
Assignee | ||
Comment 1•6 years ago
|
||
This makes it more consistent with other opcode emitters. No semantic changes
in this patch.
Assignee | ||
Comment 2•6 years ago
|
||
Remove emitIndex32 and use emitIndexOp/emitAtomOp more consistently.
Depends on D59345
Assignee | ||
Comment 3•6 years ago
|
||
Remove almost all direct uses of js::CodeSpec in favour of helper functions
defined in vm/BytecodeUtil.h
Depends on D59346
Assignee | ||
Comment 4•6 years ago
|
||
The function covers call, construct, and eval so the previous name was
misleading.
Depends on D59347
Assignee | ||
Comment 5•6 years ago
|
||
These characteristics affect the calling conventions and what needs to be
pushed to stack so it worth being explicit about flags.
Depends on D59348
Comment 7•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/397cf1f6663c
https://hg.mozilla.org/mozilla-central/rev/88dc614f2324
https://hg.mozilla.org/mozilla-central/rev/c9c4fef81165
https://hg.mozilla.org/mozilla-central/rev/a3a8da41ae26
https://hg.mozilla.org/mozilla-central/rev/60ff07dcec47
Description
•