| 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_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 5 #ifndef V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
| 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_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" |
| 11 #include "src/safepoint-table.h" | 11 #include "src/safepoint-table.h" |
| 12 #include "src/utils.h" | 12 #include "src/utils.h" |
| 13 | 13 |
| 14 namespace v8 { | 14 namespace v8 { |
| 15 namespace internal { | 15 namespace internal { |
| 16 | 16 |
| 17 // Forward declarations. | 17 // Forward declarations. |
| 18 class LCodeGen; | 18 class LCodeGen; |
| 19 | 19 |
| 20 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ | 20 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ |
| 21 V(AccessArgumentsAt) \ | 21 V(AccessArgumentsAt) \ |
| 22 V(AddE) \ | 22 V(AddE) \ |
| 23 V(AddI) \ | 23 V(AddI) \ |
| 24 V(AddS) \ | 24 V(AddS) \ |
| 25 V(Allocate) \ | 25 V(Allocate) \ |
| 26 V(AllocateBlockContext) \ | |
| 27 V(ApplyArguments) \ | 26 V(ApplyArguments) \ |
| 28 V(ArgumentsElements) \ | 27 V(ArgumentsElements) \ |
| 29 V(ArgumentsLength) \ | 28 V(ArgumentsLength) \ |
| 30 V(ArithmeticD) \ | 29 V(ArithmeticD) \ |
| 31 V(ArithmeticT) \ | 30 V(ArithmeticT) \ |
| 32 V(BitI) \ | 31 V(BitI) \ |
| 33 V(BitS) \ | 32 V(BitS) \ |
| 34 V(BoundsCheck) \ | 33 V(BoundsCheck) \ |
| 35 V(Branch) \ | 34 V(Branch) \ |
| 36 V(CallFunction) \ | 35 V(CallFunction) \ |
| (...skipping 2857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2894 explicit LStoreFrameContext(LOperand* context) { | 2893 explicit LStoreFrameContext(LOperand* context) { |
| 2895 inputs_[0] = context; | 2894 inputs_[0] = context; |
| 2896 } | 2895 } |
| 2897 | 2896 |
| 2898 LOperand* context() { return inputs_[0]; } | 2897 LOperand* context() { return inputs_[0]; } |
| 2899 | 2898 |
| 2900 DECLARE_CONCRETE_INSTRUCTION(StoreFrameContext, "store-frame-context") | 2899 DECLARE_CONCRETE_INSTRUCTION(StoreFrameContext, "store-frame-context") |
| 2901 }; | 2900 }; |
| 2902 | 2901 |
| 2903 | 2902 |
| 2904 class LAllocateBlockContext: public LTemplateInstruction<1, 2, 0> { | |
| 2905 public: | |
| 2906 LAllocateBlockContext(LOperand* context, LOperand* function) { | |
| 2907 inputs_[0] = context; | |
| 2908 inputs_[1] = function; | |
| 2909 } | |
| 2910 | |
| 2911 LOperand* context() { return inputs_[0]; } | |
| 2912 LOperand* function() { return inputs_[1]; } | |
| 2913 | |
| 2914 Handle<ScopeInfo> scope_info() { return hydrogen()->scope_info(); } | |
| 2915 | |
| 2916 DECLARE_CONCRETE_INSTRUCTION(AllocateBlockContext, "allocate-block-context") | |
| 2917 DECLARE_HYDROGEN_ACCESSOR(AllocateBlockContext) | |
| 2918 }; | |
| 2919 | |
| 2920 | |
| 2921 class LWrapReceiver final : public LTemplateInstruction<1, 2, 0> { | 2903 class LWrapReceiver final : public LTemplateInstruction<1, 2, 0> { |
| 2922 public: | 2904 public: |
| 2923 LWrapReceiver(LOperand* receiver, LOperand* function) { | 2905 LWrapReceiver(LOperand* receiver, LOperand* function) { |
| 2924 inputs_[0] = receiver; | 2906 inputs_[0] = receiver; |
| 2925 inputs_[1] = function; | 2907 inputs_[1] = function; |
| 2926 } | 2908 } |
| 2927 | 2909 |
| 2928 DECLARE_CONCRETE_INSTRUCTION(WrapReceiver, "wrap-receiver") | 2910 DECLARE_CONCRETE_INSTRUCTION(WrapReceiver, "wrap-receiver") |
| 2929 DECLARE_HYDROGEN_ACCESSOR(WrapReceiver) | 2911 DECLARE_HYDROGEN_ACCESSOR(WrapReceiver) |
| 2930 | 2912 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3103 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 3085 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 3104 }; | 3086 }; |
| 3105 | 3087 |
| 3106 #undef DECLARE_HYDROGEN_ACCESSOR | 3088 #undef DECLARE_HYDROGEN_ACCESSOR |
| 3107 #undef DECLARE_CONCRETE_INSTRUCTION | 3089 #undef DECLARE_CONCRETE_INSTRUCTION |
| 3108 | 3090 |
| 3109 } // namespace internal | 3091 } // namespace internal |
| 3110 } // namespace v8 | 3092 } // namespace v8 |
| 3111 | 3093 |
| 3112 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 3094 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
| OLD | NEW |