| 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 #define RETURN_NAME(x) \ | 320 #define RETURN_NAME(x) \ |
| 321 case k##x: \ | 321 case k##x: \ |
| 322 return true; | 322 return true; |
| 323 CONTROL_OP_LIST(RETURN_NAME) | 323 CONTROL_OP_LIST(RETURN_NAME) |
| 324 COMMON_OP_LIST(RETURN_NAME) | 324 COMMON_OP_LIST(RETURN_NAME) |
| 325 #undef RETURN_NAME | 325 #undef RETURN_NAME |
| 326 default: | 326 default: |
| 327 return false; | 327 return false; |
| 328 } | 328 } |
| 329 } | 329 } |
| 330 |
| 331 static bool IsPhiOpcode(Value val) { |
| 332 return val == kPhi || val == kEffectPhi; |
| 333 } |
| 330 }; | 334 }; |
| 331 | 335 |
| 332 } // namespace compiler | 336 } // namespace compiler |
| 333 } // namespace internal | 337 } // namespace internal |
| 334 } // namespace v8 | 338 } // namespace v8 |
| 335 | 339 |
| 336 #endif // V8_COMPILER_OPCODES_H_ | 340 #endif // V8_COMPILER_OPCODES_H_ |
| OLD | NEW |