Index: src/compiler/ia32/code-generator-ia32.cc |
diff --git a/src/compiler/ia32/code-generator-ia32.cc b/src/compiler/ia32/code-generator-ia32.cc |
index de3bac15e13539d1033d681a2d652b9a4f44cd27..cad28535ff0d4b660999db2623280b5e44e33966 100644 |
--- a/src/compiler/ia32/code-generator-ia32.cc |
+++ b/src/compiler/ia32/code-generator-ia32.cc |
@@ -352,6 +352,22 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
__ jmp(FieldOperand(func, JSFunction::kCodeEntryOffset)); |
break; |
} |
+ case kArchPrepareCallCFunction: { |
+ int const num_parameters = MiscField::decode(instr->opcode()); |
+ __ PrepareCallCFunction(num_parameters, i.TempRegister(0)); |
+ break; |
+ } |
+ case kArchCallCFunction: { |
+ int const num_parameters = MiscField::decode(instr->opcode()); |
+ if (HasImmediateInput(instr, 0)) { |
+ ExternalReference ref = i.InputExternalReference(0); |
+ __ CallCFunction(ref, num_parameters); |
+ } else { |
+ Register func = i.InputRegister(0); |
+ __ CallCFunction(func, num_parameters); |
+ } |
+ break; |
+ } |
case kArchJmp: |
AssembleArchJump(i.InputRpo(0)); |
break; |
@@ -870,6 +886,15 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
__ push(i.InputOperand(0)); |
} |
break; |
+ case kIA32Poke: { |
+ int const slot = MiscField::decode(instr->opcode()); |
+ if (HasImmediateInput(instr, 0)) { |
+ __ mov(Operand(esp, slot * kPointerSize), i.InputImmediate(0)); |
+ } else { |
+ __ mov(Operand(esp, slot * kPointerSize), i.InputRegister(0)); |
+ } |
+ break; |
+ } |
case kIA32StoreWriteBarrier: { |
Register object = i.InputRegister(0); |
Register value = i.InputRegister(2); |