Index: src/x64/lithium-x64.cc |
diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc |
index 3d28b665f3a0618d8d62c9d5952e6305bc561ca4..6987d452fd4c0de4fcad35d327c8a91945516e05 100644 |
--- a/src/x64/lithium-x64.cc |
+++ b/src/x64/lithium-x64.cc |
@@ -1732,13 +1732,21 @@ LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { |
} |
-LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { |
- LStoreGlobal* result = new LStoreGlobal(UseRegister(instr->value()), |
- TempRegister()); |
+LInstruction* LChunkBuilder::DoStoreGlobalCell(HStoreGlobalCell* instr) { |
+ LStoreGlobalCell* result = |
+ new LStoreGlobalCell(UseRegister(instr->value()), TempRegister()); |
return instr->check_hole_value() ? AssignEnvironment(result) : result; |
} |
+LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) { |
+ LOperand* global_object = UseFixed(instr->global_object(), rdx); |
+ LOperand* value = UseFixed(instr->value(), rax); |
+ LStoreGlobalGeneric* result = new LStoreGlobalGeneric(global_object, value); |
+ return MarkAsCall(result, instr); |
+} |
+ |
+ |
LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
LOperand* context = UseRegisterAtStart(instr->value()); |
return DefineAsRegister(new LLoadContextSlot(context)); |