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_X64_LITHIUM_X64_H_ | 5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_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(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(LoadKeyed) \ | 92 V(LoadKeyed) \ |
93 V(LoadKeyedGeneric) \ | 93 V(LoadKeyedGeneric) \ |
94 V(LoadNamedField) \ | 94 V(LoadNamedField) \ |
95 V(LoadNamedGeneric) \ | |
96 V(MathAbs) \ | 95 V(MathAbs) \ |
97 V(MathClz32) \ | 96 V(MathClz32) \ |
98 V(MathCos) \ | 97 V(MathCos) \ |
99 V(MathExp) \ | 98 V(MathExp) \ |
100 V(MathFloorD) \ | 99 V(MathFloorD) \ |
101 V(MathFloorI) \ | 100 V(MathFloorI) \ |
102 V(MathFround) \ | 101 V(MathFround) \ |
103 V(MathLog) \ | 102 V(MathLog) \ |
104 V(MathMinMax) \ | 103 V(MathMinMax) \ |
105 V(MathPowHalf) \ | 104 V(MathPowHalf) \ |
(...skipping 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1482 inputs_[0] = object; | 1481 inputs_[0] = object; |
1483 } | 1482 } |
1484 | 1483 |
1485 LOperand* object() { return inputs_[0]; } | 1484 LOperand* object() { return inputs_[0]; } |
1486 | 1485 |
1487 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") | 1486 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") |
1488 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) | 1487 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) |
1489 }; | 1488 }; |
1490 | 1489 |
1491 | 1490 |
1492 class LLoadNamedGeneric final : public LTemplateInstruction<1, 2, 1> { | |
1493 public: | |
1494 explicit LLoadNamedGeneric(LOperand* context, LOperand* object, | |
1495 LOperand* vector) { | |
1496 inputs_[0] = context; | |
1497 inputs_[1] = object; | |
1498 temps_[0] = vector; | |
1499 } | |
1500 | |
1501 DECLARE_CONCRETE_INSTRUCTION(LoadNamedGeneric, "load-named-generic") | |
1502 DECLARE_HYDROGEN_ACCESSOR(LoadNamedGeneric) | |
1503 | |
1504 LOperand* context() { return inputs_[0]; } | |
1505 LOperand* object() { return inputs_[1]; } | |
1506 LOperand* temp_vector() { return temps_[0]; } | |
1507 | |
1508 Handle<Object> name() const { return hydrogen()->name(); } | |
1509 }; | |
1510 | |
1511 | |
1512 class LLoadFunctionPrototype final : public LTemplateInstruction<1, 1, 0> { | 1491 class LLoadFunctionPrototype final : public LTemplateInstruction<1, 1, 0> { |
1513 public: | 1492 public: |
1514 explicit LLoadFunctionPrototype(LOperand* function) { | 1493 explicit LLoadFunctionPrototype(LOperand* function) { |
1515 inputs_[0] = function; | 1494 inputs_[0] = function; |
1516 } | 1495 } |
1517 | 1496 |
1518 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype") | 1497 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype") |
1519 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype) | 1498 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype) |
1520 | 1499 |
1521 LOperand* function() { return inputs_[0]; } | 1500 LOperand* function() { return inputs_[0]; } |
(...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2560 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2539 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2561 }; | 2540 }; |
2562 | 2541 |
2563 #undef DECLARE_HYDROGEN_ACCESSOR | 2542 #undef DECLARE_HYDROGEN_ACCESSOR |
2564 #undef DECLARE_CONCRETE_INSTRUCTION | 2543 #undef DECLARE_CONCRETE_INSTRUCTION |
2565 | 2544 |
2566 } // namespace internal | 2545 } // namespace internal |
2567 } // namespace v8 | 2546 } // namespace v8 |
2568 | 2547 |
2569 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 2548 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
OLD | NEW |