Commit 8cdcbd70 authored by ager@chromium.org's avatar ager@chromium.org

Don't use eax on x64. :)

TBR=ricow

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6624 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 63d1b2c7
......@@ -1529,7 +1529,7 @@ void LCodeGen::CallKnownFunction(Handle<JSFunction> function,
__ movq(rsi, FieldOperand(rdi, JSFunction::kContextOffset));
}
// Set eax to arguments count if adaption is not needed. Assumes that eax
// Set rax to arguments count if adaption is not needed. Assumes that rax
// is available to write to at this point.
if (!function->NeedsArgumentsAdaption()) {
__ Set(rax, arity);
......@@ -1554,7 +1554,7 @@ void LCodeGen::CallKnownFunction(Handle<JSFunction> function,
void LCodeGen::DoCallConstantFunction(LCallConstantFunction* instr) {
ASSERT(ToRegister(instr->result()).is(eax));
ASSERT(ToRegister(instr->result()).is(rax));
__ Move(rdi, instr->function());
CallKnownFunction(instr->function(), instr->arity(), instr);
}
......
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