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 "src/crankshaft/arm64/lithium-arm64.h" | 5 #include "src/crankshaft/arm64/lithium-arm64.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" | 9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" |
10 #include "src/crankshaft/hydrogen-osr.h" | 10 #include "src/crankshaft/hydrogen-osr.h" |
(...skipping 1535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1546 HLoadFunctionPrototype* instr) { | 1546 HLoadFunctionPrototype* instr) { |
1547 LOperand* function = UseRegister(instr->function()); | 1547 LOperand* function = UseRegister(instr->function()); |
1548 LOperand* temp = TempRegister(); | 1548 LOperand* temp = TempRegister(); |
1549 return AssignEnvironment(DefineAsRegister( | 1549 return AssignEnvironment(DefineAsRegister( |
1550 new(zone()) LLoadFunctionPrototype(function, temp))); | 1550 new(zone()) LLoadFunctionPrototype(function, temp))); |
1551 } | 1551 } |
1552 | 1552 |
1553 | 1553 |
1554 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { | 1554 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { |
1555 LOperand* context = UseFixed(instr->context(), cp); | 1555 LOperand* context = UseFixed(instr->context(), cp); |
1556 LOperand* global_object = | |
1557 UseFixed(instr->global_object(), LoadDescriptor::ReceiverRegister()); | |
1558 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); | 1556 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); |
1559 | 1557 |
1560 LLoadGlobalGeneric* result = | 1558 LLoadGlobalGeneric* result = new (zone()) LLoadGlobalGeneric(context, vector); |
1561 new(zone()) LLoadGlobalGeneric(context, global_object, vector); | |
1562 return MarkAsCall(DefineFixed(result, x0), instr); | 1559 return MarkAsCall(DefineFixed(result, x0), instr); |
1563 } | 1560 } |
1564 | 1561 |
1565 | 1562 |
1566 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) { | 1563 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) { |
1567 DCHECK(instr->key()->representation().IsSmiOrInteger32()); | 1564 DCHECK(instr->key()->representation().IsSmiOrInteger32()); |
1568 ElementsKind elements_kind = instr->elements_kind(); | 1565 ElementsKind elements_kind = instr->elements_kind(); |
1569 LOperand* elements = UseRegister(instr->elements()); | 1566 LOperand* elements = UseRegister(instr->elements()); |
1570 LOperand* key = UseRegisterOrConstant(instr->key()); | 1567 LOperand* key = UseRegisterOrConstant(instr->key()); |
1571 | 1568 |
(...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2595 | 2592 |
2596 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2593 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
2597 LOperand* receiver = UseRegister(instr->receiver()); | 2594 LOperand* receiver = UseRegister(instr->receiver()); |
2598 LOperand* function = UseRegister(instr->function()); | 2595 LOperand* function = UseRegister(instr->function()); |
2599 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 2596 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
2600 return AssignEnvironment(DefineAsRegister(result)); | 2597 return AssignEnvironment(DefineAsRegister(result)); |
2601 } | 2598 } |
2602 | 2599 |
2603 } // namespace internal | 2600 } // namespace internal |
2604 } // namespace v8 | 2601 } // namespace v8 |
OLD | NEW |