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" |
(...skipping 19 matching lines...) Expand all Loading... |
30 V(ArithmeticD) \ | 30 V(ArithmeticD) \ |
31 V(ArithmeticT) \ | 31 V(ArithmeticT) \ |
32 V(BitI) \ | 32 V(BitI) \ |
33 V(BitS) \ | 33 V(BitS) \ |
34 V(BoundsCheck) \ | 34 V(BoundsCheck) \ |
35 V(Branch) \ | 35 V(Branch) \ |
36 V(CallFunction) \ | 36 V(CallFunction) \ |
37 V(CallJSFunction) \ | 37 V(CallJSFunction) \ |
38 V(CallNewArray) \ | 38 V(CallNewArray) \ |
39 V(CallRuntime) \ | 39 V(CallRuntime) \ |
40 V(CallStub) \ | |
41 V(CallWithDescriptor) \ | 40 V(CallWithDescriptor) \ |
42 V(CheckArrayBufferNotNeutered) \ | 41 V(CheckArrayBufferNotNeutered) \ |
43 V(CheckInstanceType) \ | 42 V(CheckInstanceType) \ |
44 V(CheckMapValue) \ | 43 V(CheckMapValue) \ |
45 V(CheckMaps) \ | 44 V(CheckMaps) \ |
46 V(CheckNonSmi) \ | 45 V(CheckNonSmi) \ |
47 V(CheckSmi) \ | 46 V(CheckSmi) \ |
48 V(CheckValue) \ | 47 V(CheckValue) \ |
49 V(ClampDToUint8) \ | 48 V(ClampDToUint8) \ |
50 V(ClampIToUint8) \ | 49 V(ClampIToUint8) \ |
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 bool ClobbersDoubleRegisters(Isolate* isolate) const override { | 875 bool ClobbersDoubleRegisters(Isolate* isolate) const override { |
877 return save_doubles() == kDontSaveFPRegs; | 876 return save_doubles() == kDontSaveFPRegs; |
878 } | 877 } |
879 | 878 |
880 const Runtime::Function* function() const { return hydrogen()->function(); } | 879 const Runtime::Function* function() const { return hydrogen()->function(); } |
881 int arity() const { return hydrogen()->argument_count(); } | 880 int arity() const { return hydrogen()->argument_count(); } |
882 SaveFPRegsMode save_doubles() const { return hydrogen()->save_doubles(); } | 881 SaveFPRegsMode save_doubles() const { return hydrogen()->save_doubles(); } |
883 }; | 882 }; |
884 | 883 |
885 | 884 |
886 class LCallStub final : public LTemplateInstruction<1, 1, 0> { | |
887 public: | |
888 explicit LCallStub(LOperand* context) { | |
889 inputs_[0] = context; | |
890 } | |
891 | |
892 LOperand* context() { return inputs_[0]; } | |
893 | |
894 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub") | |
895 DECLARE_HYDROGEN_ACCESSOR(CallStub) | |
896 }; | |
897 | |
898 | |
899 class LCheckArrayBufferNotNeutered final | 885 class LCheckArrayBufferNotNeutered final |
900 : public LTemplateInstruction<0, 1, 0> { | 886 : public LTemplateInstruction<0, 1, 0> { |
901 public: | 887 public: |
902 explicit LCheckArrayBufferNotNeutered(LOperand* view) { inputs_[0] = view; } | 888 explicit LCheckArrayBufferNotNeutered(LOperand* view) { inputs_[0] = view; } |
903 | 889 |
904 LOperand* view() { return inputs_[0]; } | 890 LOperand* view() { return inputs_[0]; } |
905 | 891 |
906 DECLARE_CONCRETE_INSTRUCTION(CheckArrayBufferNotNeutered, | 892 DECLARE_CONCRETE_INSTRUCTION(CheckArrayBufferNotNeutered, |
907 "check-array-buffer-not-neutered") | 893 "check-array-buffer-not-neutered") |
908 DECLARE_HYDROGEN_ACCESSOR(CheckArrayBufferNotNeutered) | 894 DECLARE_HYDROGEN_ACCESSOR(CheckArrayBufferNotNeutered) |
(...skipping 2208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3117 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 3103 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
3118 }; | 3104 }; |
3119 | 3105 |
3120 #undef DECLARE_HYDROGEN_ACCESSOR | 3106 #undef DECLARE_HYDROGEN_ACCESSOR |
3121 #undef DECLARE_CONCRETE_INSTRUCTION | 3107 #undef DECLARE_CONCRETE_INSTRUCTION |
3122 | 3108 |
3123 } // namespace internal | 3109 } // namespace internal |
3124 } // namespace v8 | 3110 } // namespace v8 |
3125 | 3111 |
3126 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 3112 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
OLD | NEW |