Commit 1a12862c authored by ager@chromium.org's avatar ager@chromium.org

Revert attempt to optimize away the allocation of a temporary.

TBR=whesse@chromium.org
Review URL: http://codereview.chromium.org/147076

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2258 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 5b4bacdd
......@@ -1404,10 +1404,12 @@ void CodeGenerator::VisitCallRuntime(CallRuntime* node) {
// Prepare stack for calling JS runtime function.
frame_->Push(node->name());
// Push the builtins object found in the current global object.
__ movq(kScratchRegister, GlobalObject());
__ movq(kScratchRegister,
FieldOperand(kScratchRegister, GlobalObject::kBuiltinsOffset));
frame_->Push(kScratchRegister);
Result temp = allocator()->Allocate();
ASSERT(temp.is_valid());
__ movq(temp.reg(), GlobalObject());
__ movq(temp.reg(),
FieldOperand(temp.reg(), GlobalObject::kBuiltinsOffset));
frame_->Push(&temp);
}
// Push the arguments ("left-to-right").
......
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