| Index: src/arm/lithium-arm.cc
|
| diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc
|
| index fb8f0d7332197fd5eee9c8f16a3f22763084ed21..44e6385511843c8157e5fe08918f6d074d302924 100644
|
| --- a/src/arm/lithium-arm.cc
|
| +++ b/src/arm/lithium-arm.cc
|
| @@ -2098,25 +2098,30 @@ LInstruction* LChunkBuilder::DoStoreKeyedGeneric(HStoreKeyedGeneric* instr) {
|
|
|
| LInstruction* LChunkBuilder::DoTransitionElementsKind(
|
| HTransitionElementsKind* instr) {
|
| + LOperand* object = UseRegister(instr->object());
|
| if (IsSimpleMapChangeTransition(instr->from_kind(), instr->to_kind())) {
|
| - LOperand* object = UseRegister(instr->object());
|
| LOperand* new_map_reg = TempRegister();
|
| LTransitionElementsKind* result =
|
| - new(zone()) LTransitionElementsKind(object, new_map_reg, NULL);
|
| + new(zone()) LTransitionElementsKind(object, new_map_reg);
|
| return DefineSameAsFirst(result);
|
| } else {
|
| - LOperand* object = UseFixed(instr->object(), r0);
|
| - LOperand* fixed_object_reg = FixedTemp(r2);
|
| - LOperand* new_map_reg = FixedTemp(r3);
|
| LTransitionElementsKind* result =
|
| - new(zone()) LTransitionElementsKind(object,
|
| - new_map_reg,
|
| - fixed_object_reg);
|
| - return MarkAsCall(DefineFixed(result, r0), instr);
|
| + new(zone()) LTransitionElementsKind(object, NULL);
|
| + return AssignPointerMap(result);
|
| }
|
| }
|
|
|
|
|
| +LInstruction* LChunkBuilder::DoTrapAllocationMemento(
|
| + HTrapAllocationMemento* instr) {
|
| + LOperand* object = UseRegister(instr->object());
|
| + LOperand* temp = TempRegister();
|
| + LTrapAllocationMemento* result =
|
| + new(zone()) LTrapAllocationMemento(object, temp);
|
| + return AssignEnvironment(result);
|
| +}
|
| +
|
| +
|
| LInstruction* LChunkBuilder::DoStoreNamedField(HStoreNamedField* instr) {
|
| bool needs_write_barrier = instr->NeedsWriteBarrier();
|
| bool needs_write_barrier_for_map = !instr->transition().is_null() &&
|
| @@ -2189,6 +2194,16 @@ LInstruction* LChunkBuilder::DoAllocateObject(HAllocateObject* instr) {
|
| }
|
|
|
|
|
| +LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) {
|
| + info()->MarkAsDeferredCalling();
|
| + LOperand* size = UseTempRegister(instr->size());
|
| + LOperand* temp1 = TempRegister();
|
| + LOperand* temp2 = TempRegister();
|
| + LAllocate* result = new(zone()) LAllocate(size, temp1, temp2);
|
| + return AssignPointerMap(DefineAsRegister(result));
|
| +}
|
| +
|
| +
|
| LInstruction* LChunkBuilder::DoFastLiteral(HFastLiteral* instr) {
|
| return MarkAsCall(DefineFixed(new(zone()) LFastLiteral, r0), instr);
|
| }
|
|
|