X87: [turbofan] Fix calls to computed code objects.

port 924b0ecf85 (r31057).

    contributed by zhengxing.li@intel.com

    original commit message:

BUG=

Review URL: https://codereview.chromium.org/1408893002

Cr-Commit-Position: refs/heads/master@{#31321}
This commit is contained in:
shiyu.zhang 2015-10-15 20:50:24 -07:00 committed by Commit bot
parent 18191fe9a7
commit 07449ddc86

View File

@ -312,7 +312,8 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) {
__ call(code, RelocInfo::CODE_TARGET);
} else {
Register reg = i.InputRegister(0);
__ call(Operand(reg, Code::kHeaderSize - kHeapObjectTag));
__ add(reg, Immediate(Code::kHeaderSize - kHeapObjectTag));
__ call(reg);
}
RecordCallPosition(instr);
bool double_result =