Closed Bug 475091 Opened 16 years ago Closed 2 years ago

JSCodeSpec cleanup

Categories

(Core :: JavaScript Engine, defect)

defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: shaver, Unassigned)

Details

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.).
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.
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)
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: general → nobody
Severity: minor → S4
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.