| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <sstream> | 5 #include <sstream> |
| 6 | 6 |
| 7 #include "src/v8.h" | 7 #include "src/v8.h" |
| 8 | 8 |
| 9 #include "src/arm64/lithium-codegen-arm64.h" | 9 #include "src/arm64/lithium-codegen-arm64.h" |
| 10 #include "src/hydrogen-osr.h" | 10 #include "src/hydrogen-osr.h" |
| (...skipping 2549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2560 HTrapAllocationMemento* instr) { | 2560 HTrapAllocationMemento* instr) { |
| 2561 LOperand* object = UseRegister(instr->object()); | 2561 LOperand* object = UseRegister(instr->object()); |
| 2562 LOperand* temp1 = TempRegister(); | 2562 LOperand* temp1 = TempRegister(); |
| 2563 LOperand* temp2 = TempRegister(); | 2563 LOperand* temp2 = TempRegister(); |
| 2564 LTrapAllocationMemento* result = | 2564 LTrapAllocationMemento* result = |
| 2565 new(zone()) LTrapAllocationMemento(object, temp1, temp2); | 2565 new(zone()) LTrapAllocationMemento(object, temp1, temp2); |
| 2566 return AssignEnvironment(result); | 2566 return AssignEnvironment(result); |
| 2567 } | 2567 } |
| 2568 | 2568 |
| 2569 | 2569 |
| 2570 LInstruction* LChunkBuilder::DoMaybeGrowElements(HMaybeGrowElements* instr) { |
| 2571 info()->MarkAsDeferredCalling(); |
| 2572 LOperand* context = UseFixed(instr->context(), cp); |
| 2573 LOperand* object = UseRegister(instr->object()); |
| 2574 LOperand* elements = UseRegister(instr->elements()); |
| 2575 LOperand* key = UseRegisterOrConstant(instr->key()); |
| 2576 LOperand* current_capacity = UseRegisterOrConstant(instr->current_capacity()); |
| 2577 |
| 2578 LMaybeGrowElements* result = new (zone()) |
| 2579 LMaybeGrowElements(context, object, elements, key, current_capacity); |
| 2580 DefineFixed(result, x0); |
| 2581 return AssignPointerMap(AssignEnvironment(result)); |
| 2582 } |
| 2583 |
| 2584 |
| 2570 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { | 2585 LInstruction* LChunkBuilder::DoTypeof(HTypeof* instr) { |
| 2571 LOperand* context = UseFixed(instr->context(), cp); | 2586 LOperand* context = UseFixed(instr->context(), cp); |
| 2572 LOperand* value = UseFixed(instr->value(), x3); | 2587 LOperand* value = UseFixed(instr->value(), x3); |
| 2573 LTypeof* result = new (zone()) LTypeof(context, value); | 2588 LTypeof* result = new (zone()) LTypeof(context, value); |
| 2574 return MarkAsCall(DefineFixed(result, x0), instr); | 2589 return MarkAsCall(DefineFixed(result, x0), instr); |
| 2575 } | 2590 } |
| 2576 | 2591 |
| 2577 | 2592 |
| 2578 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) { | 2593 LInstruction* LChunkBuilder::DoTypeofIsAndBranch(HTypeofIsAndBranch* instr) { |
| 2579 // We only need temp registers in some cases, but we can't dereference the | 2594 // We only need temp registers in some cases, but we can't dereference the |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2757 HAllocateBlockContext* instr) { | 2772 HAllocateBlockContext* instr) { |
| 2758 LOperand* context = UseFixed(instr->context(), cp); | 2773 LOperand* context = UseFixed(instr->context(), cp); |
| 2759 LOperand* function = UseRegisterAtStart(instr->function()); | 2774 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2760 LAllocateBlockContext* result = | 2775 LAllocateBlockContext* result = |
| 2761 new(zone()) LAllocateBlockContext(context, function); | 2776 new(zone()) LAllocateBlockContext(context, function); |
| 2762 return MarkAsCall(DefineFixed(result, cp), instr); | 2777 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2763 } | 2778 } |
| 2764 | 2779 |
| 2765 | 2780 |
| 2766 } } // namespace v8::internal | 2781 } } // namespace v8::internal |
| OLD | NEW |