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_X87_LITHIUM_X87_H_ | 5 #ifndef V8_X87_LITHIUM_X87_H_ |
6 #define V8_X87_LITHIUM_X87_H_ | 6 #define V8_X87_LITHIUM_X87_H_ |
7 | 7 |
8 #include "src/hydrogen.h" | 8 #include "src/hydrogen.h" |
9 #include "src/lithium.h" | 9 #include "src/lithium.h" |
10 #include "src/lithium-allocator.h" | 10 #include "src/lithium-allocator.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 V(DoubleToI) \ | 77 V(DoubleToI) \ |
78 V(DoubleToSmi) \ | 78 V(DoubleToSmi) \ |
79 V(Drop) \ | 79 V(Drop) \ |
80 V(Dummy) \ | 80 V(Dummy) \ |
81 V(DummyUse) \ | 81 V(DummyUse) \ |
82 V(FlooringDivByConstI) \ | 82 V(FlooringDivByConstI) \ |
83 V(FlooringDivByPowerOf2I) \ | 83 V(FlooringDivByPowerOf2I) \ |
84 V(FlooringDivI) \ | 84 V(FlooringDivI) \ |
85 V(ForInCacheArray) \ | 85 V(ForInCacheArray) \ |
86 V(ForInPrepareMap) \ | 86 V(ForInPrepareMap) \ |
87 V(FunctionLiteral) \ | |
88 V(GetCachedArrayIndex) \ | 87 V(GetCachedArrayIndex) \ |
89 V(Goto) \ | 88 V(Goto) \ |
90 V(HasCachedArrayIndexAndBranch) \ | 89 V(HasCachedArrayIndexAndBranch) \ |
91 V(HasInPrototypeChainAndBranch) \ | 90 V(HasInPrototypeChainAndBranch) \ |
92 V(HasInstanceTypeAndBranch) \ | 91 V(HasInstanceTypeAndBranch) \ |
93 V(InnerAllocatedObject) \ | 92 V(InnerAllocatedObject) \ |
94 V(InstanceOf) \ | 93 V(InstanceOf) \ |
95 V(InstructionGap) \ | 94 V(InstructionGap) \ |
96 V(Integer32ToDouble) \ | 95 V(Integer32ToDouble) \ |
97 V(InvokeFunction) \ | 96 V(InvokeFunction) \ |
(...skipping 2479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2577 inputs_[0] = context; | 2576 inputs_[0] = context; |
2578 } | 2577 } |
2579 | 2578 |
2580 LOperand* context() { return inputs_[0]; } | 2579 LOperand* context() { return inputs_[0]; } |
2581 | 2580 |
2582 DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal") | 2581 DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal") |
2583 DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral) | 2582 DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral) |
2584 }; | 2583 }; |
2585 | 2584 |
2586 | 2585 |
2587 class LFunctionLiteral final : public LTemplateInstruction<1, 1, 0> { | |
2588 public: | |
2589 explicit LFunctionLiteral(LOperand* context) { | |
2590 inputs_[0] = context; | |
2591 } | |
2592 | |
2593 LOperand* context() { return inputs_[0]; } | |
2594 | |
2595 DECLARE_CONCRETE_INSTRUCTION(FunctionLiteral, "function-literal") | |
2596 DECLARE_HYDROGEN_ACCESSOR(FunctionLiteral) | |
2597 }; | |
2598 | |
2599 | |
2600 class LToFastProperties final : public LTemplateInstruction<1, 1, 0> { | 2586 class LToFastProperties final : public LTemplateInstruction<1, 1, 0> { |
2601 public: | 2587 public: |
2602 explicit LToFastProperties(LOperand* value) { | 2588 explicit LToFastProperties(LOperand* value) { |
2603 inputs_[0] = value; | 2589 inputs_[0] = value; |
2604 } | 2590 } |
2605 | 2591 |
2606 LOperand* value() { return inputs_[0]; } | 2592 LOperand* value() { return inputs_[0]; } |
2607 | 2593 |
2608 DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties") | 2594 DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties") |
2609 DECLARE_HYDROGEN_ACCESSOR(ToFastProperties) | 2595 DECLARE_HYDROGEN_ACCESSOR(ToFastProperties) |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2907 | 2893 |
2908 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2894 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2909 }; | 2895 }; |
2910 | 2896 |
2911 #undef DECLARE_HYDROGEN_ACCESSOR | 2897 #undef DECLARE_HYDROGEN_ACCESSOR |
2912 #undef DECLARE_CONCRETE_INSTRUCTION | 2898 #undef DECLARE_CONCRETE_INSTRUCTION |
2913 | 2899 |
2914 } } // namespace v8::internal | 2900 } } // namespace v8::internal |
2915 | 2901 |
2916 #endif // V8_X87_LITHIUM_X87_H_ | 2902 #endif // V8_X87_LITHIUM_X87_H_ |
OLD | NEW |