Index: src/x64/lithium-x64.cc |
=================================================================== |
--- src/x64/lithium-x64.cc (revision 7211) |
+++ src/x64/lithium-x64.cc (working copy) |
@@ -1716,14 +1716,21 @@ |
} |
-LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) { |
- LLoadGlobal* result = new LLoadGlobal; |
+LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) { |
+ LLoadGlobalCell* result = new LLoadGlobalCell; |
return instr->check_hole_value() |
? AssignEnvironment(DefineAsRegister(result)) |
: DefineAsRegister(result); |
} |
+LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { |
+ LOperand* global_object = UseFixed(instr->global_object(), rax); |
+ LLoadGlobalGeneric* result = new LLoadGlobalGeneric(global_object); |
+ return MarkAsCall(DefineFixed(result, rax), instr); |
+} |
+ |
+ |
LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) { |
LStoreGlobal* result = new LStoreGlobal(UseRegister(instr->value()), |
TempRegister()); |