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 #ifndef V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 5 #ifndef V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_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 1535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1546 temps_[0] = temp; | 1546 temps_[0] = temp; |
1547 } | 1547 } |
1548 | 1548 |
1549 LOperand* function() { return inputs_[0]; } | 1549 LOperand* function() { return inputs_[0]; } |
1550 LOperand* temp() { return temps_[0]; } | 1550 LOperand* temp() { return temps_[0]; } |
1551 | 1551 |
1552 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype") | 1552 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype") |
1553 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype) | 1553 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype) |
1554 }; | 1554 }; |
1555 | 1555 |
1556 | 1556 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 1, 1> { |
1557 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 2, 1> { | |
1558 public: | 1557 public: |
1559 LLoadGlobalGeneric(LOperand* context, LOperand* global_object, | 1558 LLoadGlobalGeneric(LOperand* context, LOperand* vector) { |
1560 LOperand* vector) { | |
1561 inputs_[0] = context; | 1559 inputs_[0] = context; |
1562 inputs_[1] = global_object; | |
1563 temps_[0] = vector; | 1560 temps_[0] = vector; |
1564 } | 1561 } |
1565 | 1562 |
1566 LOperand* context() { return inputs_[0]; } | 1563 LOperand* context() { return inputs_[0]; } |
1567 LOperand* global_object() { return inputs_[1]; } | |
1568 LOperand* temp_vector() { return temps_[0]; } | 1564 LOperand* temp_vector() { return temps_[0]; } |
1569 | 1565 |
1570 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1566 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
1571 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1567 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
1572 | 1568 |
1573 Handle<Object> name() const { return hydrogen()->name(); } | 1569 Handle<Object> name() const { return hydrogen()->name(); } |
1574 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } | 1570 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } |
1575 }; | 1571 }; |
1576 | 1572 |
1577 | 1573 |
(...skipping 1430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3008 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 3004 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
3009 }; | 3005 }; |
3010 | 3006 |
3011 #undef DECLARE_HYDROGEN_ACCESSOR | 3007 #undef DECLARE_HYDROGEN_ACCESSOR |
3012 #undef DECLARE_CONCRETE_INSTRUCTION | 3008 #undef DECLARE_CONCRETE_INSTRUCTION |
3013 | 3009 |
3014 } // namespace internal | 3010 } // namespace internal |
3015 } // namespace v8 | 3011 } // namespace v8 |
3016 | 3012 |
3017 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 3013 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
OLD | NEW |