| Index: src/compiler/x64/code-generator-x64.cc
|
| diff --git a/src/compiler/x64/code-generator-x64.cc b/src/compiler/x64/code-generator-x64.cc
|
| index 5f55b33f8385b1cebb7f72931546110bed6306c4..5de3ad1d38c20897c8547f2b4c485b7cdd124236 100644
|
| --- a/src/compiler/x64/code-generator-x64.cc
|
| +++ b/src/compiler/x64/code-generator-x64.cc
|
| @@ -602,6 +602,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);
|
| + 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;
|
| @@ -1215,6 +1231,15 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) {
|
| }
|
| }
|
| break;
|
| + case kX64Poke: {
|
| + int const slot = MiscField::decode(instr->opcode());
|
| + if (HasImmediateInput(instr, 0)) {
|
| + __ movq(Operand(rsp, slot * kPointerSize), i.InputImmediate(0));
|
| + } else {
|
| + __ movq(Operand(rsp, slot * kPointerSize), i.InputRegister(0));
|
| + }
|
| + break;
|
| + }
|
| case kX64StoreWriteBarrier: {
|
| Register object = i.InputRegister(0);
|
| Register value = i.InputRegister(2);
|
|
|