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_X87_LITHIUM_X87_H_ | 5 #ifndef V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 V(IsSmiAndBranch) \ | 89 V(IsSmiAndBranch) \ |
90 V(IsUndetectableAndBranch) \ | 90 V(IsUndetectableAndBranch) \ |
91 V(Label) \ | 91 V(Label) \ |
92 V(LazyBailout) \ | 92 V(LazyBailout) \ |
93 V(LoadContextSlot) \ | 93 V(LoadContextSlot) \ |
94 V(LoadFieldByIndex) \ | 94 V(LoadFieldByIndex) \ |
95 V(LoadFunctionPrototype) \ | 95 V(LoadFunctionPrototype) \ |
96 V(LoadKeyed) \ | 96 V(LoadKeyed) \ |
97 V(LoadKeyedGeneric) \ | 97 V(LoadKeyedGeneric) \ |
98 V(LoadNamedField) \ | 98 V(LoadNamedField) \ |
99 V(LoadNamedGeneric) \ | |
100 V(LoadRoot) \ | 99 V(LoadRoot) \ |
101 V(MathAbs) \ | 100 V(MathAbs) \ |
102 V(MathClz32) \ | 101 V(MathClz32) \ |
103 V(MathCos) \ | 102 V(MathCos) \ |
104 V(MathExp) \ | 103 V(MathExp) \ |
105 V(MathFloor) \ | 104 V(MathFloor) \ |
106 V(MathFround) \ | 105 V(MathFround) \ |
107 V(MathLog) \ | 106 V(MathLog) \ |
108 V(MathMinMax) \ | 107 V(MathMinMax) \ |
109 V(MathPowHalf) \ | 108 V(MathPowHalf) \ |
(...skipping 1365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1475 inputs_[0] = object; | 1474 inputs_[0] = object; |
1476 } | 1475 } |
1477 | 1476 |
1478 LOperand* object() { return inputs_[0]; } | 1477 LOperand* object() { return inputs_[0]; } |
1479 | 1478 |
1480 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") | 1479 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") |
1481 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) | 1480 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) |
1482 }; | 1481 }; |
1483 | 1482 |
1484 | 1483 |
1485 class LLoadNamedGeneric final : public LTemplateInstruction<1, 2, 1> { | |
1486 public: | |
1487 LLoadNamedGeneric(LOperand* context, LOperand* object, LOperand* vector) { | |
1488 inputs_[0] = context; | |
1489 inputs_[1] = object; | |
1490 temps_[0] = vector; | |
1491 } | |
1492 | |
1493 LOperand* context() { return inputs_[0]; } | |
1494 LOperand* object() { return inputs_[1]; } | |
1495 LOperand* temp_vector() { return temps_[0]; } | |
1496 | |
1497 DECLARE_CONCRETE_INSTRUCTION(LoadNamedGeneric, "load-named-generic") | |
1498 DECLARE_HYDROGEN_ACCESSOR(LoadNamedGeneric) | |
1499 | |
1500 Handle<Object> name() const { return hydrogen()->name(); } | |
1501 }; | |
1502 | |
1503 | |
1504 class LLoadFunctionPrototype final : public LTemplateInstruction<1, 1, 1> { | 1484 class LLoadFunctionPrototype final : public LTemplateInstruction<1, 1, 1> { |
1505 public: | 1485 public: |
1506 LLoadFunctionPrototype(LOperand* function, LOperand* temp) { | 1486 LLoadFunctionPrototype(LOperand* function, LOperand* temp) { |
1507 inputs_[0] = function; | 1487 inputs_[0] = function; |
1508 temps_[0] = temp; | 1488 temps_[0] = temp; |
1509 } | 1489 } |
1510 | 1490 |
1511 LOperand* function() { return inputs_[0]; } | 1491 LOperand* function() { return inputs_[0]; } |
1512 LOperand* temp() { return temps_[0]; } | 1492 LOperand* temp() { return temps_[0]; } |
1513 | 1493 |
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2570 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2550 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2571 }; | 2551 }; |
2572 | 2552 |
2573 #undef DECLARE_HYDROGEN_ACCESSOR | 2553 #undef DECLARE_HYDROGEN_ACCESSOR |
2574 #undef DECLARE_CONCRETE_INSTRUCTION | 2554 #undef DECLARE_CONCRETE_INSTRUCTION |
2575 | 2555 |
2576 } // namespace internal | 2556 } // namespace internal |
2577 } // namespace v8 | 2557 } // namespace v8 |
2578 | 2558 |
2579 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 2559 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
OLD | NEW |