| Index: src/x64/lithium-x64.cc
|
| diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc
|
| index fba2318081c4cfec5f131208a0ca887240559931..7fafb7a8f53aac6b2262f4f515d64fb0a1bdd0b5 100644
|
| --- a/src/x64/lithium-x64.cc
|
| +++ b/src/x64/lithium-x64.cc
|
| @@ -2039,26 +2039,32 @@ 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();
|
| LOperand* temp_reg = TempRegister();
|
| LTransitionElementsKind* result =
|
| new(zone()) LTransitionElementsKind(object, new_map_reg, temp_reg);
|
| - return DefineSameAsFirst(result);
|
| + return result;
|
| } else {
|
| - LOperand* object = UseFixed(instr->object(), rax);
|
| - LOperand* fixed_object_reg = FixedTemp(rdx);
|
| - LOperand* new_map_reg = FixedTemp(rbx);
|
| LTransitionElementsKind* result =
|
| - new(zone()) LTransitionElementsKind(object,
|
| - new_map_reg,
|
| - fixed_object_reg);
|
| - return MarkAsCall(DefineFixed(result, rax), instr);
|
| + new(zone()) LTransitionElementsKind(object, NULL, 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() &&
|
| @@ -2132,6 +2138,15 @@ LInstruction* LChunkBuilder::DoAllocateObject(HAllocateObject* instr) {
|
| }
|
|
|
|
|
| +LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) {
|
| + info()->MarkAsDeferredCalling();
|
| + LOperand* size = UseTempRegister(instr->size());
|
| + LOperand* temp = TempRegister();
|
| + LAllocate* result = new(zone()) LAllocate(size, temp);
|
| + return AssignPointerMap(DefineAsRegister(result));
|
| +}
|
| +
|
| +
|
| LInstruction* LChunkBuilder::DoFastLiteral(HFastLiteral* instr) {
|
| return MarkAsCall(DefineFixed(new(zone()) LFastLiteral, rax), instr);
|
| }
|
|
|