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_COMPILER_OPCODES_H_ | 5 #ifndef V8_COMPILER_OPCODES_H_ |
6 #define V8_COMPILER_OPCODES_H_ | 6 #define V8_COMPILER_OPCODES_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 // Opcodes for control operators. | 10 // Opcodes for control operators. |
(...skipping 14 matching lines...) Expand all Loading... |
25 V(DeoptimizeUnless) \ | 25 V(DeoptimizeUnless) \ |
26 V(Return) \ | 26 V(Return) \ |
27 V(TailCall) \ | 27 V(TailCall) \ |
28 V(Terminate) \ | 28 V(Terminate) \ |
29 V(OsrNormalEntry) \ | 29 V(OsrNormalEntry) \ |
30 V(OsrLoopEntry) \ | 30 V(OsrLoopEntry) \ |
31 V(Throw) \ | 31 V(Throw) \ |
32 V(End) | 32 V(End) |
33 | 33 |
34 // Opcodes for constant operators. | 34 // Opcodes for constant operators. |
35 #define CONSTANT_OP_LIST(V) \ | 35 #define CONSTANT_OP_LIST(V) \ |
36 V(Int32Constant) \ | 36 V(Int32Constant) \ |
37 V(Int64Constant) \ | 37 V(Int64Constant) \ |
38 V(Float32Constant) \ | 38 V(Float32Constant) \ |
39 V(Float64Constant) \ | 39 V(Float64Constant) \ |
40 V(ExternalConstant) \ | 40 V(ExternalConstant) \ |
41 V(NumberConstant) \ | 41 V(NumberConstant) \ |
42 V(HeapConstant) | 42 V(HeapConstant) \ |
| 43 V(RelocatableInt32Constant) \ |
| 44 V(RelocatableInt64Constant) |
43 | 45 |
44 #define INNER_OP_LIST(V) \ | 46 #define INNER_OP_LIST(V) \ |
45 V(Select) \ | 47 V(Select) \ |
46 V(Phi) \ | 48 V(Phi) \ |
47 V(EffectSet) \ | 49 V(EffectSet) \ |
48 V(EffectPhi) \ | 50 V(EffectPhi) \ |
49 V(Guard) \ | 51 V(Guard) \ |
50 V(BeginRegion) \ | 52 V(BeginRegion) \ |
51 V(FinishRegion) \ | 53 V(FinishRegion) \ |
52 V(FrameState) \ | 54 V(FrameState) \ |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 return kStart <= value && value <= kEnd; | 384 return kStart <= value && value <= kEnd; |
383 } | 385 } |
384 | 386 |
385 // Returns true if opcode for JavaScript operator. | 387 // Returns true if opcode for JavaScript operator. |
386 static bool IsJsOpcode(Value value) { | 388 static bool IsJsOpcode(Value value) { |
387 return kJSEqual <= value && value <= kJSStackCheck; | 389 return kJSEqual <= value && value <= kJSStackCheck; |
388 } | 390 } |
389 | 391 |
390 // Returns true if opcode for constant operator. | 392 // Returns true if opcode for constant operator. |
391 static bool IsConstantOpcode(Value value) { | 393 static bool IsConstantOpcode(Value value) { |
392 return kInt32Constant <= value && value <= kHeapConstant; | 394 return kInt32Constant <= value && value <= kRelocatableInt64Constant; |
393 } | 395 } |
394 | 396 |
395 static bool IsPhiOpcode(Value value) { | 397 static bool IsPhiOpcode(Value value) { |
396 return value == kPhi || value == kEffectPhi; | 398 return value == kPhi || value == kEffectPhi; |
397 } | 399 } |
398 | 400 |
399 static bool IsMergeOpcode(Value value) { | 401 static bool IsMergeOpcode(Value value) { |
400 return value == kMerge || value == kLoop; | 402 return value == kMerge || value == kLoop; |
401 } | 403 } |
402 | 404 |
(...skipping 14 matching lines...) Expand all Loading... |
417 } | 419 } |
418 }; | 420 }; |
419 | 421 |
420 std::ostream& operator<<(std::ostream&, IrOpcode::Value); | 422 std::ostream& operator<<(std::ostream&, IrOpcode::Value); |
421 | 423 |
422 } // namespace compiler | 424 } // namespace compiler |
423 } // namespace internal | 425 } // namespace internal |
424 } // namespace v8 | 426 } // namespace v8 |
425 | 427 |
426 #endif // V8_COMPILER_OPCODES_H_ | 428 #endif // V8_COMPILER_OPCODES_H_ |
OLD | NEW |