| 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 22de06f13b614a1b8be726b58196f6ae22c00d65..c8f3696b1191fb087aff0afe06c4d6b16983bac7 100644
|
| --- a/src/compiler/x87/code-generator-x87.cc
|
| +++ b/src/compiler/x87/code-generator-x87.cc
|
| @@ -385,6 +385,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;
|
| @@ -1129,6 +1145,15 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) {
|
| __ push(i.InputOperand(0));
|
| }
|
| break;
|
| + case kX87Poke: {
|
| + 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 kX87PushFloat32:
|
| __ lea(esp, Operand(esp, -kFloatSize));
|
| if (instr->InputAt(0)->IsDoubleStackSlot()) {
|
|
|