Closed Bug 649531 Opened 13 years ago Closed 13 years ago

tidy up this-computation logic a bit, add some asserts (b/c #jsapi told me to)

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: luke, Assigned: luke)

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file, 1 obsolete file)

Attached patch patch (obsolete) — Splinter Review
This patch factors out some prep work for bug 644074.

0. Inline ComputeGlobalThis into its only caller
1. Split CallArgs into CallReceiver and CallArgs to capture/remove the uses of 'vp' where we don't have/care about argv.
2. Assert call.callee() isn't used after call.rval()
3. Change JSStackFrame::computeThis into a free function since isn't a simple accessor/mutator of a stack frame; its an effectful interpreter operation akin to ComputeImplicitThis/GetPrimitiveThis/BoxNonStrictThis.  Put it next to these functions.
4. Reunite GetPrimitiveThis and details::PrimitiveBehavior
Attachment #525564 - Flags: review?(jwalden+bmo)
Attached patch this time qref'dSplinter Review
Attachment #525564 - Attachment is obsolete: true
Attachment #525564 - Flags: review?(jwalden+bmo)
Attachment #526092 - Flags: review?(jwalden+bmo)
Attachment #526092 - Flags: review?(jwalden+bmo) → review+
http://hg.mozilla.org/tracemonkey/rev/e06d53aec568
Whiteboard: fixed-in-tracemonkey
http://hg.mozilla.org/mozilla-central/rev/e06d53aec568
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: