Closed Bug 771896 Opened 13 years ago Closed 13 years ago

rm LOAD_ATOM, LOAD_NAME, and 'atoms' from js::Interpret

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: luke, Assigned: luke)

Details

(Whiteboard: [js:t])

Attachments

(1 file)

Attached patch patchSplinter Review
Less macros and less local Interpret static to get wrong.
Attachment #640053 - Flags: review?(jwalden+bmo)
Comment on attachment 640053 [details] [diff] [review] patch Review of attachment 640053 [details] [diff] [review]: ----------------------------------------------------------------- "Bookends", eh? ;-) ::: js/src/jsinterp.cpp @@ +1786,5 @@ > END_CASE(JSOP_PICK) > > BEGIN_CASE(JSOP_SETCONST) > { > + PropertyName *name = script->getName(regs.pc); Perhaps this should use rootName0 instead? ::: js/src/jsscript.h @@ +784,5 @@ > return atoms[index]; > } > > + js::HeapPtrAtom &getAtom(jsbytecode *pc) const { > + JS_ASSERT(pc >= code && pc < code + length); pc + sizeof(uint32_t) < code + length seems better. @@ +793,5 @@ > return getAtom(index)->asPropertyName(); > } > > + js::PropertyName *getName(jsbytecode *pc) const { > + JS_ASSERT(pc >= code && pc < code + length); Id. @@ +804,5 @@ > return arr->vector[index]; > } > > + JSObject *getObject(jsbytecode *pc) { > + JS_ASSERT(pc >= code && pc < code + length); Id.
Attachment #640053 - Flags: review?(jwalden+bmo) → review+
Whiteboard: [js:t]
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: