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 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(MathCos) \ | 96 V(MathCos) \ |
98 V(MathSin) \ | 97 V(MathSin) \ |
99 V(MathExp) \ | 98 V(MathExp) \ |
100 V(MathClz32) \ | 99 V(MathClz32) \ |
101 V(MathFloor) \ | 100 V(MathFloor) \ |
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 1334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1440 inputs_[0] = object; | 1439 inputs_[0] = object; |
1441 } | 1440 } |
1442 | 1441 |
1443 LOperand* object() { return inputs_[0]; } | 1442 LOperand* object() { return inputs_[0]; } |
1444 | 1443 |
1445 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") | 1444 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") |
1446 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) | 1445 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) |
1447 }; | 1446 }; |
1448 | 1447 |
1449 | 1448 |
1450 class LLoadNamedGeneric final : public LTemplateInstruction<1, 2, 1> { | |
1451 public: | |
1452 LLoadNamedGeneric(LOperand* context, LOperand* object, LOperand* vector) { | |
1453 inputs_[0] = context; | |
1454 inputs_[1] = object; | |
1455 temps_[0] = vector; | |
1456 } | |
1457 | |
1458 LOperand* context() { return inputs_[0]; } | |
1459 LOperand* object() { return inputs_[1]; } | |
1460 LOperand* temp_vector() { return temps_[0]; } | |
1461 | |
1462 DECLARE_CONCRETE_INSTRUCTION(LoadNamedGeneric, "load-named-generic") | |
1463 DECLARE_HYDROGEN_ACCESSOR(LoadNamedGeneric) | |
1464 | |
1465 Handle<Object> name() const { return hydrogen()->name(); } | |
1466 }; | |
1467 | |
1468 | |
1469 class LLoadFunctionPrototype final : public LTemplateInstruction<1, 1, 0> { | 1449 class LLoadFunctionPrototype final : public LTemplateInstruction<1, 1, 0> { |
1470 public: | 1450 public: |
1471 explicit LLoadFunctionPrototype(LOperand* function) { | 1451 explicit LLoadFunctionPrototype(LOperand* function) { |
1472 inputs_[0] = function; | 1452 inputs_[0] = function; |
1473 } | 1453 } |
1474 | 1454 |
1475 LOperand* function() { return inputs_[0]; } | 1455 LOperand* function() { return inputs_[0]; } |
1476 | 1456 |
1477 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype") | 1457 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype") |
1478 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype) | 1458 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype) |
(...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2513 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2493 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2514 }; | 2494 }; |
2515 | 2495 |
2516 #undef DECLARE_HYDROGEN_ACCESSOR | 2496 #undef DECLARE_HYDROGEN_ACCESSOR |
2517 #undef DECLARE_CONCRETE_INSTRUCTION | 2497 #undef DECLARE_CONCRETE_INSTRUCTION |
2518 | 2498 |
2519 } // namespace internal | 2499 } // namespace internal |
2520 } // namespace v8 | 2500 } // namespace v8 |
2521 | 2501 |
2522 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 2502 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |