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 // Opcodes for control operators. | 8 // Opcodes for control operators. |
9 #define INNER_CONTROL_OP_LIST(V) \ | 9 #define INNER_CONTROL_OP_LIST(V) \ |
10 V(Dead) \ | 10 V(Dead) \ |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 | 287 |
288 // Returns true if opcode for JavaScript operator. | 288 // Returns true if opcode for JavaScript operator. |
289 static bool IsJsOpcode(Value value) { | 289 static bool IsJsOpcode(Value value) { |
290 return kJSEqual <= value && value <= kJSDebugger; | 290 return kJSEqual <= value && value <= kJSDebugger; |
291 } | 291 } |
292 | 292 |
293 // Returns true if opcode for leaf operator. | 293 // Returns true if opcode for leaf operator. |
294 static bool IsLeafOpcode(Value value) { | 294 static bool IsLeafOpcode(Value value) { |
295 return kInt32Constant <= value && value <= kHeapConstant; | 295 return kInt32Constant <= value && value <= kHeapConstant; |
296 } | 296 } |
| 297 |
| 298 static bool IsPhiOpcode(Value val) { |
| 299 return val == kPhi || val == kEffectPhi; |
| 300 } |
297 }; | 301 }; |
298 | 302 |
299 } // namespace compiler | 303 } // namespace compiler |
300 } // namespace internal | 304 } // namespace internal |
301 } // namespace v8 | 305 } // namespace v8 |
302 | 306 |
303 #endif // V8_COMPILER_OPCODES_H_ | 307 #endif // V8_COMPILER_OPCODES_H_ |
OLD | NEW |