Closed Bug 661722 Opened 13 years ago Closed 13 years ago

'outer' parameter to MethodEnv::newfunction is redundant

Categories

(Tamarin Graveyard :: Virtual Machine, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: edwsmith, Assigned: stejohns)

References

Details

Attachments

(3 files)

There's only two call sites, JIT and Interpreter, and both pass the value of env->scope(), so its better to just load it inside newfunction().
Assignee: nobody → edwsmith
Attachment #537031 - Flags: review?(stejohns)
Blocks: 661723
Comment on attachment 537031 [details] [diff] [review]
Removes 'outer' parameter from MethodEnv::newfunction

Review of attachment 537031 [details] [diff] [review]:
-----------------------------------------------------------------

make it so
Attachment #537031 - Flags: review?(stejohns) → review+
This updated patch also fixes a logic error in AvmCore::formatOpcode.  i'll carry forward the R+ unless you holler.
changeset: 6371:f35b3f3cc133
user:      Edwin Smith <edwsmith>
summary:   Bug 661722 - 'outer' parameter to MethodEnv::newfunction is redundant (r=stejohns+)

http://hg.mozilla.org/tamarin-redux/rev/f35b3f3cc133
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
caused difference when running brightspot -Dverbose=verify against an older vm.  The diff is from newfunction having one fewer parameter e.g.
-  28:newfunction invalid method_id=1566 <anonymous>
+  28:newfunction method_id=1566 <anonymous>

From looking at the change the difference seems expected.  Let me know if it something to be concerned about.
AOT uses this call to, have to patch its usage...
Assignee: edwsmith → stejohns
Status: RESOLVED → REOPENED
Attachment #537586 - Flags: review?(edwsmith)
Resolution: FIXED → ---
Comment on attachment 537586 [details] [diff] [review]
AOT-specific fix, too

redirecting to Rick since Edwin is on vacation
Attachment #537586 - Flags: review?(edwsmith) → review?(rreitmai)
Comment on attachment 537586 [details] [diff] [review]
AOT-specific fix, too

pushed (pending review) as 6379:b6046c322d35
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
Comment on attachment 537586 [details] [diff] [review]
AOT-specific fix, too

I would have done this had the build system complained.  change looks fine.
Attachment #537586 - Flags: review?(rreitmai) → review+
(In reply to comment #5)
> caused difference when running brightspot -Dverbose=verify against an older
> vm.  The diff is from newfunction having one fewer parameter e.g.
> -  28:newfunction invalid method_id=1566 <anonymous>
> +  28:newfunction method_id=1566 <anonymous>
> 
> From looking at the change the difference seems expected.  Let me know if it
> something to be concerned about.

Expected change, no problem.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: