| 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)                        \ | 
|   11   V(Loop)                        \ |   11   V(Loop)                        \ | 
|   12   V(Branch)                      \ |   12   V(Branch)                      \ | 
|   13   V(IfTrue)                      \ |   13   V(IfTrue)                      \ | 
|   14   V(IfFalse)                     \ |   14   V(IfFalse)                     \ | 
 |   15   V(IfSuccess)                   \ | 
 |   16   V(IfException)                 \ | 
|   15   V(Switch)                      \ |   17   V(Switch)                      \ | 
|   16   V(IfValue)                     \ |   18   V(IfValue)                     \ | 
|   17   V(IfDefault)                   \ |   19   V(IfDefault)                   \ | 
|   18   V(Merge)                       \ |   20   V(Merge)                       \ | 
|   19   V(Return)                      \ |   21   V(Return)                      \ | 
|   20   V(OsrNormalEntry)              \ |   22   V(OsrNormalEntry)              \ | 
|   21   V(OsrLoopEntry)                \ |   23   V(OsrLoopEntry)                \ | 
|   22   V(Throw) |   24   V(Throw) | 
|   23  |   25  | 
|   24 #define CONTROL_OP_LIST(V) \ |   26 #define CONTROL_OP_LIST(V) \ | 
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  292   // Returns true if opcode for JavaScript operator. |  294   // Returns true if opcode for JavaScript operator. | 
|  293   static bool IsJsOpcode(Value value) { |  295   static bool IsJsOpcode(Value value) { | 
|  294     return kJSEqual <= value && value <= kJSDebugger; |  296     return kJSEqual <= value && value <= kJSDebugger; | 
|  295   } |  297   } | 
|  296  |  298  | 
|  297   // Returns true if opcode for constant operator. |  299   // Returns true if opcode for constant operator. | 
|  298   static bool IsConstantOpcode(Value value) { |  300   static bool IsConstantOpcode(Value value) { | 
|  299     return kInt32Constant <= value && value <= kHeapConstant; |  301     return kInt32Constant <= value && value <= kHeapConstant; | 
|  300   } |  302   } | 
|  301  |  303  | 
|  302   static bool IsPhiOpcode(Value val) { |  304   static bool IsPhiOpcode(Value value) { | 
|  303     return val == kPhi || val == kEffectPhi; |  305     return value == kPhi || value == kEffectPhi; | 
 |  306   } | 
 |  307  | 
 |  308   static bool IsMergeOpcode(Value value) { | 
 |  309     return value == kMerge || value == kLoop; | 
|  304   } |  310   } | 
|  305 }; |  311 }; | 
|  306  |  312  | 
|  307 }  // namespace compiler |  313 }  // namespace compiler | 
|  308 }  // namespace internal |  314 }  // namespace internal | 
|  309 }  // namespace v8 |  315 }  // namespace v8 | 
|  310  |  316  | 
|  311 #endif  // V8_COMPILER_OPCODES_H_ |  317 #endif  // V8_COMPILER_OPCODES_H_ | 
| OLD | NEW |