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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 V(InvokeFunction) \ | 82 V(InvokeFunction) \ |
83 V(IsStringAndBranch) \ | 83 V(IsStringAndBranch) \ |
84 V(IsSmiAndBranch) \ | 84 V(IsSmiAndBranch) \ |
85 V(IsUndetectableAndBranch) \ | 85 V(IsUndetectableAndBranch) \ |
86 V(Label) \ | 86 V(Label) \ |
87 V(LazyBailout) \ | 87 V(LazyBailout) \ |
88 V(LoadContextSlot) \ | 88 V(LoadContextSlot) \ |
89 V(LoadRoot) \ | 89 V(LoadRoot) \ |
90 V(LoadFieldByIndex) \ | 90 V(LoadFieldByIndex) \ |
91 V(LoadFunctionPrototype) \ | 91 V(LoadFunctionPrototype) \ |
92 V(LoadGlobalGeneric) \ | |
93 V(LoadKeyed) \ | 92 V(LoadKeyed) \ |
94 V(LoadKeyedGeneric) \ | 93 V(LoadKeyedGeneric) \ |
95 V(LoadNamedField) \ | 94 V(LoadNamedField) \ |
96 V(LoadNamedGeneric) \ | 95 V(LoadNamedGeneric) \ |
97 V(MathAbs) \ | 96 V(MathAbs) \ |
98 V(MathCos) \ | 97 V(MathCos) \ |
99 V(MathSin) \ | 98 V(MathSin) \ |
100 V(MathExp) \ | 99 V(MathExp) \ |
101 V(MathClz32) \ | 100 V(MathClz32) \ |
102 V(MathFloor) \ | 101 V(MathFloor) \ |
(...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1527 | 1526 |
1528 LOperand* context() { return inputs_[0]; } | 1527 LOperand* context() { return inputs_[0]; } |
1529 LOperand* object() { return inputs_[1]; } | 1528 LOperand* object() { return inputs_[1]; } |
1530 LOperand* key() { return inputs_[2]; } | 1529 LOperand* key() { return inputs_[2]; } |
1531 LOperand* temp_vector() { return temps_[0]; } | 1530 LOperand* temp_vector() { return temps_[0]; } |
1532 | 1531 |
1533 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | 1532 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") |
1534 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) | 1533 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) |
1535 }; | 1534 }; |
1536 | 1535 |
1537 class LLoadGlobalGeneric final : public LTemplateInstruction<1, 1, 1> { | |
1538 public: | |
1539 LLoadGlobalGeneric(LOperand* context, LOperand* vector) { | |
1540 inputs_[0] = context; | |
1541 temps_[0] = vector; | |
1542 } | |
1543 | |
1544 LOperand* context() { return inputs_[0]; } | |
1545 LOperand* temp_vector() { return temps_[0]; } | |
1546 | |
1547 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | |
1548 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | |
1549 | |
1550 Handle<Object> name() const { return hydrogen()->name(); } | |
1551 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } | |
1552 }; | |
1553 | |
1554 | |
1555 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1536 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
1556 public: | 1537 public: |
1557 explicit LLoadContextSlot(LOperand* context) { | 1538 explicit LLoadContextSlot(LOperand* context) { |
1558 inputs_[0] = context; | 1539 inputs_[0] = context; |
1559 } | 1540 } |
1560 | 1541 |
1561 LOperand* context() { return inputs_[0]; } | 1542 LOperand* context() { return inputs_[0]; } |
1562 | 1543 |
1563 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1544 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
1564 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1545 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2532 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2513 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2533 }; | 2514 }; |
2534 | 2515 |
2535 #undef DECLARE_HYDROGEN_ACCESSOR | 2516 #undef DECLARE_HYDROGEN_ACCESSOR |
2536 #undef DECLARE_CONCRETE_INSTRUCTION | 2517 #undef DECLARE_CONCRETE_INSTRUCTION |
2537 | 2518 |
2538 } // namespace internal | 2519 } // namespace internal |
2539 } // namespace v8 | 2520 } // namespace v8 |
2540 | 2521 |
2541 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 2522 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |