| 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_MIPS64_LITHIUM_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ |
| 6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS64_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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 V(IsStringAndBranch) \ | 85 V(IsStringAndBranch) \ |
| 86 V(IsSmiAndBranch) \ | 86 V(IsSmiAndBranch) \ |
| 87 V(IsUndetectableAndBranch) \ | 87 V(IsUndetectableAndBranch) \ |
| 88 V(Label) \ | 88 V(Label) \ |
| 89 V(LazyBailout) \ | 89 V(LazyBailout) \ |
| 90 V(LoadContextSlot) \ | 90 V(LoadContextSlot) \ |
| 91 V(LoadRoot) \ | 91 V(LoadRoot) \ |
| 92 V(LoadFieldByIndex) \ | 92 V(LoadFieldByIndex) \ |
| 93 V(LoadFunctionPrototype) \ | 93 V(LoadFunctionPrototype) \ |
| 94 V(LoadKeyed) \ | 94 V(LoadKeyed) \ |
| 95 V(LoadKeyedGeneric) \ | |
| 96 V(LoadNamedField) \ | 95 V(LoadNamedField) \ |
| 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) \ |
| 103 V(MathFround) \ | 102 V(MathFround) \ |
| 104 V(MathLog) \ | 103 V(MathLog) \ |
| 105 V(MathMinMax) \ | 104 V(MathMinMax) \ |
| (...skipping 1443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1549 } | 1548 } |
| 1550 | 1549 |
| 1551 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") | 1550 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") |
| 1552 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) | 1551 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) |
| 1553 | 1552 |
| 1554 void PrintDataTo(StringStream* stream) override; | 1553 void PrintDataTo(StringStream* stream) override; |
| 1555 uint32_t base_offset() const { return hydrogen()->base_offset(); } | 1554 uint32_t base_offset() const { return hydrogen()->base_offset(); } |
| 1556 }; | 1555 }; |
| 1557 | 1556 |
| 1558 | 1557 |
| 1559 class LLoadKeyedGeneric final : public LTemplateInstruction<1, 3, 1> { | |
| 1560 public: | |
| 1561 LLoadKeyedGeneric(LOperand* context, LOperand* object, LOperand* key, | |
| 1562 LOperand* vector) { | |
| 1563 inputs_[0] = context; | |
| 1564 inputs_[1] = object; | |
| 1565 inputs_[2] = key; | |
| 1566 temps_[0] = vector; | |
| 1567 } | |
| 1568 | |
| 1569 LOperand* context() { return inputs_[0]; } | |
| 1570 LOperand* object() { return inputs_[1]; } | |
| 1571 LOperand* key() { return inputs_[2]; } | |
| 1572 LOperand* temp_vector() { return temps_[0]; } | |
| 1573 | |
| 1574 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | |
| 1575 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) | |
| 1576 }; | |
| 1577 | |
| 1578 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1558 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
| 1579 public: | 1559 public: |
| 1580 explicit LLoadContextSlot(LOperand* context) { | 1560 explicit LLoadContextSlot(LOperand* context) { |
| 1581 inputs_[0] = context; | 1561 inputs_[0] = context; |
| 1582 } | 1562 } |
| 1583 | 1563 |
| 1584 LOperand* context() { return inputs_[0]; } | 1564 LOperand* context() { return inputs_[0]; } |
| 1585 | 1565 |
| 1586 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1566 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
| 1587 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1567 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
| (...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2539 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2519 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2540 }; | 2520 }; |
| 2541 | 2521 |
| 2542 #undef DECLARE_HYDROGEN_ACCESSOR | 2522 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2543 #undef DECLARE_CONCRETE_INSTRUCTION | 2523 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2544 | 2524 |
| 2545 } // namespace internal | 2525 } // namespace internal |
| 2546 } // namespace v8 | 2526 } // namespace v8 |
| 2547 | 2527 |
| 2548 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 2528 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ |
| OLD | NEW |