OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
7 | 7 |
8 #include "src/crankshaft/hydrogen.h" | 8 #include "src/crankshaft/hydrogen.h" |
9 #include "src/crankshaft/lithium.h" | 9 #include "src/crankshaft/lithium.h" |
10 #include "src/crankshaft/lithium-allocator.h" | 10 #include "src/crankshaft/lithium-allocator.h" |
(...skipping 1527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1538 | 1538 |
1539 LOperand* context() { return inputs_[0]; } | 1539 LOperand* context() { return inputs_[0]; } |
1540 LOperand* object() { return inputs_[1]; } | 1540 LOperand* object() { return inputs_[1]; } |
1541 LOperand* key() { return inputs_[2]; } | 1541 LOperand* key() { return inputs_[2]; } |
1542 LOperand* temp_vector() { return temps_[0]; } | 1542 LOperand* temp_vector() { return temps_[0]; } |
1543 | 1543 |
1544 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | 1544 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") |
1545 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) | 1545 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) |
1546 }; | 1546 }; |
1547 | 1547 |
1548 | 1548 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 1, 1> { |
1549 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 2, 1> { | |
1550 public: | 1549 public: |
1551 LLoadGlobalGeneric(LOperand* context, LOperand* global_object, | 1550 LLoadGlobalGeneric(LOperand* context, LOperand* vector) { |
1552 LOperand* vector) { | |
1553 inputs_[0] = context; | 1551 inputs_[0] = context; |
1554 inputs_[1] = global_object; | |
1555 temps_[0] = vector; | 1552 temps_[0] = vector; |
1556 } | 1553 } |
1557 | 1554 |
1558 LOperand* context() { return inputs_[0]; } | 1555 LOperand* context() { return inputs_[0]; } |
1559 LOperand* global_object() { return inputs_[1]; } | |
1560 LOperand* temp_vector() { return temps_[0]; } | 1556 LOperand* temp_vector() { return temps_[0]; } |
1561 | 1557 |
1562 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1558 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
1563 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1559 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
1564 | 1560 |
1565 Handle<Object> name() const { return hydrogen()->name(); } | 1561 Handle<Object> name() const { return hydrogen()->name(); } |
1566 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } | 1562 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } |
1567 }; | 1563 }; |
1568 | 1564 |
1569 | 1565 |
(...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2565 | 2561 |
2566 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2562 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2567 }; | 2563 }; |
2568 | 2564 |
2569 #undef DECLARE_HYDROGEN_ACCESSOR | 2565 #undef DECLARE_HYDROGEN_ACCESSOR |
2570 #undef DECLARE_CONCRETE_INSTRUCTION | 2566 #undef DECLARE_CONCRETE_INSTRUCTION |
2571 } // namespace internal | 2567 } // namespace internal |
2572 } // namespace v8 | 2568 } // namespace v8 |
2573 | 2569 |
2574 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 2570 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
OLD | NEW |