OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64_LITHIUM_ARM64_H_ | 5 #ifndef V8_ARM64_LITHIUM_ARM64_H_ |
6 #define V8_ARM64_LITHIUM_ARM64_H_ | 6 #define V8_ARM64_LITHIUM_ARM64_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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 V(DoubleBits) \ | 75 V(DoubleBits) \ |
76 V(DoubleToIntOrSmi) \ | 76 V(DoubleToIntOrSmi) \ |
77 V(Drop) \ | 77 V(Drop) \ |
78 V(Dummy) \ | 78 V(Dummy) \ |
79 V(DummyUse) \ | 79 V(DummyUse) \ |
80 V(FlooringDivByConstI) \ | 80 V(FlooringDivByConstI) \ |
81 V(FlooringDivByPowerOf2I) \ | 81 V(FlooringDivByPowerOf2I) \ |
82 V(FlooringDivI) \ | 82 V(FlooringDivI) \ |
83 V(ForInCacheArray) \ | 83 V(ForInCacheArray) \ |
84 V(ForInPrepareMap) \ | 84 V(ForInPrepareMap) \ |
85 V(FunctionLiteral) \ | |
86 V(GetCachedArrayIndex) \ | 85 V(GetCachedArrayIndex) \ |
87 V(Goto) \ | 86 V(Goto) \ |
88 V(HasCachedArrayIndexAndBranch) \ | 87 V(HasCachedArrayIndexAndBranch) \ |
89 V(HasInPrototypeChainAndBranch) \ | 88 V(HasInPrototypeChainAndBranch) \ |
90 V(HasInstanceTypeAndBranch) \ | 89 V(HasInstanceTypeAndBranch) \ |
91 V(InnerAllocatedObject) \ | 90 V(InnerAllocatedObject) \ |
92 V(InstanceOf) \ | 91 V(InstanceOf) \ |
93 V(InstructionGap) \ | 92 V(InstructionGap) \ |
94 V(Integer32ToDouble) \ | 93 V(Integer32ToDouble) \ |
95 V(InvokeFunction) \ | 94 V(InvokeFunction) \ |
(...skipping 1594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1690 inputs_[0] = object; | 1689 inputs_[0] = object; |
1691 } | 1690 } |
1692 | 1691 |
1693 LOperand* object() { return inputs_[0]; } | 1692 LOperand* object() { return inputs_[0]; } |
1694 | 1693 |
1695 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") | 1694 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") |
1696 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) | 1695 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) |
1697 }; | 1696 }; |
1698 | 1697 |
1699 | 1698 |
1700 class LFunctionLiteral final : public LTemplateInstruction<1, 1, 0> { | |
1701 public: | |
1702 explicit LFunctionLiteral(LOperand* context) { | |
1703 inputs_[0] = context; | |
1704 } | |
1705 | |
1706 LOperand* context() { return inputs_[0]; } | |
1707 | |
1708 DECLARE_CONCRETE_INSTRUCTION(FunctionLiteral, "function-literal") | |
1709 DECLARE_HYDROGEN_ACCESSOR(FunctionLiteral) | |
1710 }; | |
1711 | |
1712 | |
1713 class LLoadFunctionPrototype final : public LTemplateInstruction<1, 1, 1> { | 1699 class LLoadFunctionPrototype final : public LTemplateInstruction<1, 1, 1> { |
1714 public: | 1700 public: |
1715 LLoadFunctionPrototype(LOperand* function, LOperand* temp) { | 1701 LLoadFunctionPrototype(LOperand* function, LOperand* temp) { |
1716 inputs_[0] = function; | 1702 inputs_[0] = function; |
1717 temps_[0] = temp; | 1703 temps_[0] = temp; |
1718 } | 1704 } |
1719 | 1705 |
1720 LOperand* function() { return inputs_[0]; } | 1706 LOperand* function() { return inputs_[0]; } |
1721 LOperand* temp() { return temps_[0]; } | 1707 LOperand* temp() { return temps_[0]; } |
1722 | 1708 |
(...skipping 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3264 | 3250 |
3265 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 3251 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
3266 }; | 3252 }; |
3267 | 3253 |
3268 #undef DECLARE_HYDROGEN_ACCESSOR | 3254 #undef DECLARE_HYDROGEN_ACCESSOR |
3269 #undef DECLARE_CONCRETE_INSTRUCTION | 3255 #undef DECLARE_CONCRETE_INSTRUCTION |
3270 | 3256 |
3271 } } // namespace v8::internal | 3257 } } // namespace v8::internal |
3272 | 3258 |
3273 #endif // V8_ARM64_LITHIUM_ARM64_H_ | 3259 #endif // V8_ARM64_LITHIUM_ARM64_H_ |
OLD | NEW |