Closed
Bug 475091
Opened 16 years ago
Closed 2 years ago
JSCodeSpec cleanup
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: shaver, Unassigned)
Details
Comment 1•16 years ago
|
||
We should also add inlines to get operands and operand sizes, since right now (until I fix bug 473096) e.g. JSOP_NEWARRAY has a handful of different places that encode implicit dependencies on JOF_UINT24 (a 3 trailing argument to js_EmitN, js_GetVariableStackUses, the writing of the count into the bytecode stream, the reading of it from the bytecode stream in the interpreter, &c.).
Comment 2•16 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=482743#c16
although I'd prefer |size_t JSCodeSpec.stackUses(jsbytecode* pc)| to what was suggested there.
Comment 3•11 years ago
|
||
Can you clarify what this bug means?
From what I understand, the goal sounds to be that we want to abstract the load of the operands / meta-data of any bytecode. In which case this bug is far from being fixed.
Flags: needinfo?(jwalden+bmo)
Comment 4•11 years ago
|
||
That sounds roughly right. Properly making all the changes implied here would be a very substantial refactoring, tho. So it seems somewhat more likely that we'll switch to AST walking than that we'll actually make any of the changes considered here.
Flags: needinfo?(jwalden+bmo)
Assignee | ||
Updated•11 years ago
|
Assignee: general → nobody
Updated•2 years ago
|
Severity: minor → S4
Updated•2 years ago
|
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•