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_IA32_LITHIUM_IA32_H_ | 5 #ifndef V8_IA32_LITHIUM_IA32_H_ |
6 #define V8_IA32_LITHIUM_IA32_H_ | 6 #define V8_IA32_LITHIUM_IA32_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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 V(DoubleToI) \ | 76 V(DoubleToI) \ |
77 V(DoubleToSmi) \ | 77 V(DoubleToSmi) \ |
78 V(Drop) \ | 78 V(Drop) \ |
79 V(Dummy) \ | 79 V(Dummy) \ |
80 V(DummyUse) \ | 80 V(DummyUse) \ |
81 V(FlooringDivByConstI) \ | 81 V(FlooringDivByConstI) \ |
82 V(FlooringDivByPowerOf2I) \ | 82 V(FlooringDivByPowerOf2I) \ |
83 V(FlooringDivI) \ | 83 V(FlooringDivI) \ |
84 V(ForInCacheArray) \ | 84 V(ForInCacheArray) \ |
85 V(ForInPrepareMap) \ | 85 V(ForInPrepareMap) \ |
86 V(FunctionLiteral) \ | |
87 V(GetCachedArrayIndex) \ | 86 V(GetCachedArrayIndex) \ |
88 V(Goto) \ | 87 V(Goto) \ |
89 V(HasCachedArrayIndexAndBranch) \ | 88 V(HasCachedArrayIndexAndBranch) \ |
90 V(HasInPrototypeChainAndBranch) \ | 89 V(HasInPrototypeChainAndBranch) \ |
91 V(HasInstanceTypeAndBranch) \ | 90 V(HasInstanceTypeAndBranch) \ |
92 V(InnerAllocatedObject) \ | 91 V(InnerAllocatedObject) \ |
93 V(InstanceOf) \ | 92 V(InstanceOf) \ |
94 V(InstructionGap) \ | 93 V(InstructionGap) \ |
95 V(Integer32ToDouble) \ | 94 V(Integer32ToDouble) \ |
96 V(InvokeFunction) \ | 95 V(InvokeFunction) \ |
(...skipping 2466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2563 inputs_[0] = context; | 2562 inputs_[0] = context; |
2564 } | 2563 } |
2565 | 2564 |
2566 LOperand* context() { return inputs_[0]; } | 2565 LOperand* context() { return inputs_[0]; } |
2567 | 2566 |
2568 DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal") | 2567 DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal") |
2569 DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral) | 2568 DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral) |
2570 }; | 2569 }; |
2571 | 2570 |
2572 | 2571 |
2573 class LFunctionLiteral final : public LTemplateInstruction<1, 1, 0> { | |
2574 public: | |
2575 explicit LFunctionLiteral(LOperand* context) { | |
2576 inputs_[0] = context; | |
2577 } | |
2578 | |
2579 LOperand* context() { return inputs_[0]; } | |
2580 | |
2581 DECLARE_CONCRETE_INSTRUCTION(FunctionLiteral, "function-literal") | |
2582 DECLARE_HYDROGEN_ACCESSOR(FunctionLiteral) | |
2583 }; | |
2584 | |
2585 | |
2586 class LToFastProperties final : public LTemplateInstruction<1, 1, 0> { | 2572 class LToFastProperties final : public LTemplateInstruction<1, 1, 0> { |
2587 public: | 2573 public: |
2588 explicit LToFastProperties(LOperand* value) { | 2574 explicit LToFastProperties(LOperand* value) { |
2589 inputs_[0] = value; | 2575 inputs_[0] = value; |
2590 } | 2576 } |
2591 | 2577 |
2592 LOperand* value() { return inputs_[0]; } | 2578 LOperand* value() { return inputs_[0]; } |
2593 | 2579 |
2594 DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties") | 2580 DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties") |
2595 DECLARE_HYDROGEN_ACCESSOR(ToFastProperties) | 2581 DECLARE_HYDROGEN_ACCESSOR(ToFastProperties) |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2895 | 2881 |
2896 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2882 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2897 }; | 2883 }; |
2898 | 2884 |
2899 #undef DECLARE_HYDROGEN_ACCESSOR | 2885 #undef DECLARE_HYDROGEN_ACCESSOR |
2900 #undef DECLARE_CONCRETE_INSTRUCTION | 2886 #undef DECLARE_CONCRETE_INSTRUCTION |
2901 | 2887 |
2902 } } // namespace v8::internal | 2888 } } // namespace v8::internal |
2903 | 2889 |
2904 #endif // V8_IA32_LITHIUM_IA32_H_ | 2890 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |