| 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_ARM_LITHIUM_ARM_H_ | 5 #ifndef V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ |
| 6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_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(MathSin) \ | 98 V(MathSin) \ |
| 100 V(MathExp) \ | 99 V(MathExp) \ |
| 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 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1476 inputs_[0] = object; | 1475 inputs_[0] = object; |
| 1477 } | 1476 } |
| 1478 | 1477 |
| 1479 LOperand* object() { return inputs_[0]; } | 1478 LOperand* object() { return inputs_[0]; } |
| 1480 | 1479 |
| 1481 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") | 1480 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") |
| 1482 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) | 1481 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) |
| 1483 }; | 1482 }; |
| 1484 | 1483 |
| 1485 | 1484 |
| 1486 class LLoadNamedGeneric final : public LTemplateInstruction<1, 2, 1> { | |
| 1487 public: | |
| 1488 LLoadNamedGeneric(LOperand* context, LOperand* object, LOperand* vector) { | |
| 1489 inputs_[0] = context; | |
| 1490 inputs_[1] = object; | |
| 1491 temps_[0] = vector; | |
| 1492 } | |
| 1493 | |
| 1494 LOperand* context() { return inputs_[0]; } | |
| 1495 LOperand* object() { return inputs_[1]; } | |
| 1496 LOperand* temp_vector() { return temps_[0]; } | |
| 1497 | |
| 1498 DECLARE_CONCRETE_INSTRUCTION(LoadNamedGeneric, "load-named-generic") | |
| 1499 DECLARE_HYDROGEN_ACCESSOR(LoadNamedGeneric) | |
| 1500 | |
| 1501 Handle<Object> name() const { return hydrogen()->name(); } | |
| 1502 }; | |
| 1503 | |
| 1504 | |
| 1505 class LLoadFunctionPrototype final : public LTemplateInstruction<1, 1, 0> { | 1485 class LLoadFunctionPrototype final : public LTemplateInstruction<1, 1, 0> { |
| 1506 public: | 1486 public: |
| 1507 explicit LLoadFunctionPrototype(LOperand* function) { | 1487 explicit LLoadFunctionPrototype(LOperand* function) { |
| 1508 inputs_[0] = function; | 1488 inputs_[0] = function; |
| 1509 } | 1489 } |
| 1510 | 1490 |
| 1511 LOperand* function() { return inputs_[0]; } | 1491 LOperand* function() { return inputs_[0]; } |
| 1512 | 1492 |
| 1513 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype") | 1493 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype") |
| 1514 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype) | 1494 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype) |
| (...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2554 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2534 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2555 }; | 2535 }; |
| 2556 | 2536 |
| 2557 #undef DECLARE_HYDROGEN_ACCESSOR | 2537 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2558 #undef DECLARE_CONCRETE_INSTRUCTION | 2538 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2559 | 2539 |
| 2560 } // namespace internal | 2540 } // namespace internal |
| 2561 } // namespace v8 | 2541 } // namespace v8 |
| 2562 | 2542 |
| 2563 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 2543 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |