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_HYDROGEN_INSTRUCTIONS_H_ | 5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_ |
6 #define V8_HYDROGEN_INSTRUCTIONS_H_ | 6 #define V8_HYDROGEN_INSTRUCTIONS_H_ |
7 | 7 |
8 #include <cstring> | 8 #include <cstring> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 | 10 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 V(LoadRoot) \ | 124 V(LoadRoot) \ |
125 V(MapEnumLength) \ | 125 V(MapEnumLength) \ |
126 V(MathFloorOfDiv) \ | 126 V(MathFloorOfDiv) \ |
127 V(MathMinMax) \ | 127 V(MathMinMax) \ |
128 V(MaybeGrowElements) \ | 128 V(MaybeGrowElements) \ |
129 V(Mod) \ | 129 V(Mod) \ |
130 V(Mul) \ | 130 V(Mul) \ |
131 V(OsrEntry) \ | 131 V(OsrEntry) \ |
132 V(Parameter) \ | 132 V(Parameter) \ |
133 V(Power) \ | 133 V(Power) \ |
| 134 V(Prologue) \ |
134 V(PushArguments) \ | 135 V(PushArguments) \ |
135 V(RegExpLiteral) \ | 136 V(RegExpLiteral) \ |
136 V(Return) \ | 137 V(Return) \ |
137 V(Ror) \ | 138 V(Ror) \ |
138 V(Sar) \ | 139 V(Sar) \ |
139 V(SeqStringGetChar) \ | 140 V(SeqStringGetChar) \ |
140 V(SeqStringSetChar) \ | 141 V(SeqStringSetChar) \ |
141 V(Shl) \ | 142 V(Shl) \ |
142 V(Shr) \ | 143 V(Shr) \ |
143 V(Simulate) \ | 144 V(Simulate) \ |
(...skipping 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 DECLARE_INSTRUCTION_FACTORY_P0(HDebugBreak); | 1278 DECLARE_INSTRUCTION_FACTORY_P0(HDebugBreak); |
1278 | 1279 |
1279 Representation RequiredInputRepresentation(int index) override { | 1280 Representation RequiredInputRepresentation(int index) override { |
1280 return Representation::None(); | 1281 return Representation::None(); |
1281 } | 1282 } |
1282 | 1283 |
1283 DECLARE_CONCRETE_INSTRUCTION(DebugBreak) | 1284 DECLARE_CONCRETE_INSTRUCTION(DebugBreak) |
1284 }; | 1285 }; |
1285 | 1286 |
1286 | 1287 |
| 1288 class HPrologue final : public HTemplateInstruction<0> { |
| 1289 public: |
| 1290 static HPrologue* New(Zone* zone) { return new (zone) HPrologue(); } |
| 1291 |
| 1292 Representation RequiredInputRepresentation(int index) override { |
| 1293 return Representation::None(); |
| 1294 } |
| 1295 |
| 1296 DECLARE_CONCRETE_INSTRUCTION(Prologue) |
| 1297 }; |
| 1298 |
| 1299 |
1287 class HGoto final : public HTemplateControlInstruction<1, 0> { | 1300 class HGoto final : public HTemplateControlInstruction<1, 0> { |
1288 public: | 1301 public: |
1289 explicit HGoto(HBasicBlock* target) { | 1302 explicit HGoto(HBasicBlock* target) { |
1290 SetSuccessorAt(0, target); | 1303 SetSuccessorAt(0, target); |
1291 } | 1304 } |
1292 | 1305 |
1293 bool KnownSuccessorBlock(HBasicBlock** block) override { | 1306 bool KnownSuccessorBlock(HBasicBlock** block) override { |
1294 *block = FirstSuccessor(); | 1307 *block = FirstSuccessor(); |
1295 return true; | 1308 return true; |
1296 } | 1309 } |
(...skipping 6739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8036 }; | 8049 }; |
8037 | 8050 |
8038 | 8051 |
8039 | 8052 |
8040 #undef DECLARE_INSTRUCTION | 8053 #undef DECLARE_INSTRUCTION |
8041 #undef DECLARE_CONCRETE_INSTRUCTION | 8054 #undef DECLARE_CONCRETE_INSTRUCTION |
8042 | 8055 |
8043 } } // namespace v8::internal | 8056 } } // namespace v8::internal |
8044 | 8057 |
8045 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 8058 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |