Commit 2f8af4f0 authored by ricow@chromium.org's avatar ricow@chromium.org

Fix bug in 64 bit codegen causing us to always go slowcase in apply.

After introducing the direct instruction pointer in functions the
CallApplyLazy method was changed on all platforms. The change made to
the 64 bit version was wrong, not using the right operand for the code
comparisons always forcing us into slow case.


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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5317 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 86828047
......@@ -2619,7 +2619,7 @@ void CodeGenerator::CallApplyLazy(Expression* applicand,
__ movq(rcx, FieldOperand(rax, JSFunction::kCodeEntryOffset));
__ subq(rcx, Immediate(Code::kHeaderSize - kHeapObjectTag));
Handle<Code> apply_code(Builtins::builtin(Builtins::FunctionApply));
__ Cmp(FieldOperand(rcx, SharedFunctionInfo::kCodeOffset), apply_code);
__ Cmp(rcx, apply_code);
__ j(not_equal, &build_args);
// Check that applicand is a function.
......
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