Commit 56de6f75 authored by sgjesse@chromium.org's avatar sgjesse@chromium.org

MIPS: port Fix receiver for calls to strict-mode and builtin functions ....

Fix receiver for calls to strict-mode and builtin functions that
are potentially shadowed by eval.

Port r8116 (e8a1e4842) to mips.

BUG=
TEST=

Review URL: http://codereview.chromium.org//7090003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8138 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent d7f2f83b
...@@ -2310,9 +2310,9 @@ void FullCodeGenerator::VisitCall(Call* expr) { ...@@ -2310,9 +2310,9 @@ void FullCodeGenerator::VisitCall(Call* expr) {
__ bind(&done); __ bind(&done);
// Push function. // Push function.
__ push(v0); __ push(v0);
// Push global receiver. // The receiver is implicitly the global receiver. Indicate this
__ lw(a1, GlobalObjectOperand()); // by passing the hole to the call function stub.
__ lw(a1, FieldMemOperand(a1, GlobalObject::kGlobalReceiverOffset)); __ LoadRoot(a1, Heap::kTheHoleValueRootIndex);
__ push(a1); __ push(a1);
__ bind(&call); __ bind(&call);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment