| 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_IA32_LITHIUM_IA32_H_ | 5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
| 6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 V(IsSmiAndBranch) \ | 88 V(IsSmiAndBranch) \ |
| 89 V(IsUndetectableAndBranch) \ | 89 V(IsUndetectableAndBranch) \ |
| 90 V(Label) \ | 90 V(Label) \ |
| 91 V(LazyBailout) \ | 91 V(LazyBailout) \ |
| 92 V(LoadContextSlot) \ | 92 V(LoadContextSlot) \ |
| 93 V(LoadFieldByIndex) \ | 93 V(LoadFieldByIndex) \ |
| 94 V(LoadFunctionPrototype) \ | 94 V(LoadFunctionPrototype) \ |
| 95 V(LoadKeyed) \ | 95 V(LoadKeyed) \ |
| 96 V(LoadKeyedGeneric) \ | 96 V(LoadKeyedGeneric) \ |
| 97 V(LoadNamedField) \ | 97 V(LoadNamedField) \ |
| 98 V(LoadNamedGeneric) \ | |
| 99 V(LoadRoot) \ | 98 V(LoadRoot) \ |
| 100 V(MathAbs) \ | 99 V(MathAbs) \ |
| 101 V(MathClz32) \ | 100 V(MathClz32) \ |
| 102 V(MathCos) \ | 101 V(MathCos) \ |
| 103 V(MathExp) \ | 102 V(MathExp) \ |
| 104 V(MathFloorD) \ | 103 V(MathFloorD) \ |
| 105 V(MathFloorI) \ | 104 V(MathFloorI) \ |
| 106 V(MathFround) \ | 105 V(MathFround) \ |
| 107 V(MathLog) \ | 106 V(MathLog) \ |
| 108 V(MathMinMax) \ | 107 V(MathMinMax) \ |
| (...skipping 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1485 inputs_[0] = object; | 1484 inputs_[0] = object; |
| 1486 } | 1485 } |
| 1487 | 1486 |
| 1488 LOperand* object() { return inputs_[0]; } | 1487 LOperand* object() { return inputs_[0]; } |
| 1489 | 1488 |
| 1490 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") | 1489 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") |
| 1491 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) | 1490 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) |
| 1492 }; | 1491 }; |
| 1493 | 1492 |
| 1494 | 1493 |
| 1495 class LLoadNamedGeneric final : public LTemplateInstruction<1, 2, 1> { | |
| 1496 public: | |
| 1497 LLoadNamedGeneric(LOperand* context, LOperand* object, LOperand* vector) { | |
| 1498 inputs_[0] = context; | |
| 1499 inputs_[1] = object; | |
| 1500 temps_[0] = vector; | |
| 1501 } | |
| 1502 | |
| 1503 LOperand* context() { return inputs_[0]; } | |
| 1504 LOperand* object() { return inputs_[1]; } | |
| 1505 LOperand* temp_vector() { return temps_[0]; } | |
| 1506 | |
| 1507 DECLARE_CONCRETE_INSTRUCTION(LoadNamedGeneric, "load-named-generic") | |
| 1508 DECLARE_HYDROGEN_ACCESSOR(LoadNamedGeneric) | |
| 1509 | |
| 1510 Handle<Object> name() const { return hydrogen()->name(); } | |
| 1511 }; | |
| 1512 | |
| 1513 | |
| 1514 class LLoadFunctionPrototype final : public LTemplateInstruction<1, 1, 1> { | 1494 class LLoadFunctionPrototype final : public LTemplateInstruction<1, 1, 1> { |
| 1515 public: | 1495 public: |
| 1516 LLoadFunctionPrototype(LOperand* function, LOperand* temp) { | 1496 LLoadFunctionPrototype(LOperand* function, LOperand* temp) { |
| 1517 inputs_[0] = function; | 1497 inputs_[0] = function; |
| 1518 temps_[0] = temp; | 1498 temps_[0] = temp; |
| 1519 } | 1499 } |
| 1520 | 1500 |
| 1521 LOperand* function() { return inputs_[0]; } | 1501 LOperand* function() { return inputs_[0]; } |
| 1522 LOperand* temp() { return temps_[0]; } | 1502 LOperand* temp() { return temps_[0]; } |
| 1523 | 1503 |
| (...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2576 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2556 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2577 }; | 2557 }; |
| 2578 | 2558 |
| 2579 #undef DECLARE_HYDROGEN_ACCESSOR | 2559 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2580 #undef DECLARE_CONCRETE_INSTRUCTION | 2560 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2581 | 2561 |
| 2582 } // namespace internal | 2562 } // namespace internal |
| 2583 } // namespace v8 | 2563 } // namespace v8 |
| 2584 | 2564 |
| 2585 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 2565 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |