Index: src/compiler/x87/code-generator-x87.cc |
diff --git a/src/compiler/x87/code-generator-x87.cc b/src/compiler/x87/code-generator-x87.cc |
index 9ca9a3076f832d8f6e038ee0c7ab7bed4a87dbb2..0bf338375eb410a80dfbb707ee6b1162d6a438b7 100644 |
--- a/src/compiler/x87/code-generator-x87.cc |
+++ b/src/compiler/x87/code-generator-x87.cc |
@@ -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 = |