| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
| 6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_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 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1530 | 1530 |
| 1531 LOperand* context() { return inputs_[0]; } | 1531 LOperand* context() { return inputs_[0]; } |
| 1532 LOperand* object() { return inputs_[1]; } | 1532 LOperand* object() { return inputs_[1]; } |
| 1533 LOperand* key() { return inputs_[2]; } | 1533 LOperand* key() { return inputs_[2]; } |
| 1534 LOperand* temp_vector() { return temps_[0]; } | 1534 LOperand* temp_vector() { return temps_[0]; } |
| 1535 | 1535 |
| 1536 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | 1536 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") |
| 1537 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) | 1537 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) |
| 1538 }; | 1538 }; |
| 1539 | 1539 |
| 1540 | 1540 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 1, 1> { |
| 1541 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 2, 1> { | |
| 1542 public: | 1541 public: |
| 1543 LLoadGlobalGeneric(LOperand* context, LOperand* global_object, | 1542 LLoadGlobalGeneric(LOperand* context, LOperand* vector) { |
| 1544 LOperand* vector) { | |
| 1545 inputs_[0] = context; | 1543 inputs_[0] = context; |
| 1546 inputs_[1] = global_object; | |
| 1547 temps_[0] = vector; | 1544 temps_[0] = vector; |
| 1548 } | 1545 } |
| 1549 | 1546 |
| 1550 LOperand* context() { return inputs_[0]; } | 1547 LOperand* context() { return inputs_[0]; } |
| 1551 LOperand* global_object() { return inputs_[1]; } | |
| 1552 LOperand* temp_vector() { return temps_[0]; } | 1548 LOperand* temp_vector() { return temps_[0]; } |
| 1553 | 1549 |
| 1554 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1550 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
| 1555 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1551 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
| 1556 | 1552 |
| 1557 Handle<Object> name() const { return hydrogen()->name(); } | 1553 Handle<Object> name() const { return hydrogen()->name(); } |
| 1558 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } | 1554 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } |
| 1559 }; | 1555 }; |
| 1560 | 1556 |
| 1561 | 1557 |
| (...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2605 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2601 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2606 }; | 2602 }; |
| 2607 | 2603 |
| 2608 #undef DECLARE_HYDROGEN_ACCESSOR | 2604 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2609 #undef DECLARE_CONCRETE_INSTRUCTION | 2605 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2610 | 2606 |
| 2611 } // namespace internal | 2607 } // namespace internal |
| 2612 } // namespace v8 | 2608 } // namespace v8 |
| 2613 | 2609 |
| 2614 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 2610 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |