| Index: src/arm/lithium-arm.cc
|
| ===================================================================
|
| --- src/arm/lithium-arm.cc (revision 7511)
|
| +++ src/arm/lithium-arm.cc (working copy)
|
| @@ -1738,18 +1738,27 @@
|
| }
|
|
|
|
|
| -LInstruction* LChunkBuilder::DoStoreGlobal(HStoreGlobal* instr) {
|
| +LInstruction* LChunkBuilder::DoStoreGlobalCell(HStoreGlobalCell* instr) {
|
| if (instr->check_hole_value()) {
|
| LOperand* temp = TempRegister();
|
| LOperand* value = UseRegister(instr->value());
|
| - return AssignEnvironment(new LStoreGlobal(value, temp));
|
| + return AssignEnvironment(new LStoreGlobalCell(value, temp));
|
| } else {
|
| LOperand* value = UseRegisterAtStart(instr->value());
|
| - return new LStoreGlobal(value, NULL);
|
| + return new LStoreGlobalCell(value, NULL);
|
| }
|
| }
|
|
|
|
|
| +LInstruction* LChunkBuilder::DoStoreGlobalGeneric(HStoreGlobalGeneric* instr) {
|
| + LOperand* global_object = UseFixed(instr->global_object(), r1);
|
| + LOperand* value = UseFixed(instr->value(), r0);
|
| + 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));
|
| @@ -2068,8 +2077,6 @@
|
| }
|
| }
|
|
|
| - ASSERT(env->length() == instr->environment_length());
|
| -
|
| // If there is an instruction pending deoptimization environment create a
|
| // lazy bailout instruction to capture the environment.
|
| if (pending_deoptimization_ast_id_ == instr->ast_id()) {
|
|
|