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_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 5 #ifndef V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ |
6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 V(DoubleToSmi) \ | 64 V(DoubleToSmi) \ |
65 V(Drop) \ | 65 V(Drop) \ |
66 V(Dummy) \ | 66 V(Dummy) \ |
67 V(DummyUse) \ | 67 V(DummyUse) \ |
68 V(FastAllocate) \ | 68 V(FastAllocate) \ |
69 V(FlooringDivByConstI) \ | 69 V(FlooringDivByConstI) \ |
70 V(FlooringDivByPowerOf2I) \ | 70 V(FlooringDivByPowerOf2I) \ |
71 V(FlooringDivI) \ | 71 V(FlooringDivI) \ |
72 V(ForInCacheArray) \ | 72 V(ForInCacheArray) \ |
73 V(ForInPrepareMap) \ | 73 V(ForInPrepareMap) \ |
74 V(GetCachedArrayIndex) \ | |
75 V(Goto) \ | 74 V(Goto) \ |
76 V(HasCachedArrayIndexAndBranch) \ | |
77 V(HasInPrototypeChainAndBranch) \ | 75 V(HasInPrototypeChainAndBranch) \ |
78 V(HasInstanceTypeAndBranch) \ | 76 V(HasInstanceTypeAndBranch) \ |
79 V(InnerAllocatedObject) \ | 77 V(InnerAllocatedObject) \ |
80 V(InstructionGap) \ | 78 V(InstructionGap) \ |
81 V(Integer32ToDouble) \ | 79 V(Integer32ToDouble) \ |
82 V(InvokeFunction) \ | 80 V(InvokeFunction) \ |
83 V(IsStringAndBranch) \ | 81 V(IsStringAndBranch) \ |
84 V(IsSmiAndBranch) \ | 82 V(IsSmiAndBranch) \ |
85 V(IsUndetectableAndBranch) \ | 83 V(IsUndetectableAndBranch) \ |
86 V(Label) \ | 84 V(Label) \ |
(...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1061 LOperand* value() { return inputs_[0]; } | 1059 LOperand* value() { return inputs_[0]; } |
1062 | 1060 |
1063 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch, | 1061 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch, |
1064 "has-instance-type-and-branch") | 1062 "has-instance-type-and-branch") |
1065 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch) | 1063 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch) |
1066 | 1064 |
1067 void PrintDataTo(StringStream* stream) override; | 1065 void PrintDataTo(StringStream* stream) override; |
1068 }; | 1066 }; |
1069 | 1067 |
1070 | 1068 |
1071 class LGetCachedArrayIndex final : public LTemplateInstruction<1, 1, 0> { | |
1072 public: | |
1073 explicit LGetCachedArrayIndex(LOperand* value) { | |
1074 inputs_[0] = value; | |
1075 } | |
1076 | |
1077 LOperand* value() { return inputs_[0]; } | |
1078 | |
1079 DECLARE_CONCRETE_INSTRUCTION(GetCachedArrayIndex, "get-cached-array-index") | |
1080 DECLARE_HYDROGEN_ACCESSOR(GetCachedArrayIndex) | |
1081 }; | |
1082 | |
1083 | |
1084 class LHasCachedArrayIndexAndBranch final : public LControlInstruction<1, 0> { | |
1085 public: | |
1086 explicit LHasCachedArrayIndexAndBranch(LOperand* value) { | |
1087 inputs_[0] = value; | |
1088 } | |
1089 | |
1090 LOperand* value() { return inputs_[0]; } | |
1091 | |
1092 DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndexAndBranch, | |
1093 "has-cached-array-index-and-branch") | |
1094 DECLARE_HYDROGEN_ACCESSOR(HasCachedArrayIndexAndBranch) | |
1095 | |
1096 void PrintDataTo(StringStream* stream) override; | |
1097 }; | |
1098 | |
1099 | |
1100 class LClassOfTestAndBranch final : public LControlInstruction<1, 1> { | 1069 class LClassOfTestAndBranch final : public LControlInstruction<1, 1> { |
1101 public: | 1070 public: |
1102 LClassOfTestAndBranch(LOperand* value, LOperand* temp) { | 1071 LClassOfTestAndBranch(LOperand* value, LOperand* temp) { |
1103 inputs_[0] = value; | 1072 inputs_[0] = value; |
1104 temps_[0] = temp; | 1073 temps_[0] = temp; |
1105 } | 1074 } |
1106 | 1075 |
1107 LOperand* value() { return inputs_[0]; } | 1076 LOperand* value() { return inputs_[0]; } |
1108 LOperand* temp() { return temps_[0]; } | 1077 LOperand* temp() { return temps_[0]; } |
1109 | 1078 |
(...skipping 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2514 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2483 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2515 }; | 2484 }; |
2516 | 2485 |
2517 #undef DECLARE_HYDROGEN_ACCESSOR | 2486 #undef DECLARE_HYDROGEN_ACCESSOR |
2518 #undef DECLARE_CONCRETE_INSTRUCTION | 2487 #undef DECLARE_CONCRETE_INSTRUCTION |
2519 | 2488 |
2520 } // namespace internal | 2489 } // namespace internal |
2521 } // namespace v8 | 2490 } // namespace v8 |
2522 | 2491 |
2523 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 2492 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ |
OLD | NEW |