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)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: luke, Assigned: luke)
Details
(Whiteboard: [js:t])
Attachments
(1 file)
19.48 KB,
patch
|
Waldo
:
review+
|
Details | Diff | Splinter Review |
Less macros and less local Interpret static to get wrong.
Attachment #640053 -
Flags: review?(jwalden+bmo)
Comment 1•13 years ago
|
||
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+
![]() |
Assignee | |
Comment 2•13 years ago
|
||
Target Milestone: --- → mozilla16
![]() |
||
Updated•13 years ago
|
Whiteboard: [js:t]
Comment 3•13 years ago
|
||
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.
Description
•