| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 #include "src/interpreter/bytecodes.h" | 5 #include "src/interpreter/bytecodes.h" |
| 6 | 6 |
| 7 #include "src/frames.h" | 7 #include "src/frames.h" |
| 8 #include "src/interpreter/bytecode-traits.h" | 8 #include "src/interpreter/bytecode-traits.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 | 301 |
| 302 // static | 302 // static |
| 303 bool Bytecodes::IsCallOrNew(Bytecode bytecode) { | 303 bool Bytecodes::IsCallOrNew(Bytecode bytecode) { |
| 304 return bytecode == Bytecode::kCall || bytecode == Bytecode::kTailCall || | 304 return bytecode == Bytecode::kCall || bytecode == Bytecode::kTailCall || |
| 305 bytecode == Bytecode::kNew; | 305 bytecode == Bytecode::kNew; |
| 306 } | 306 } |
| 307 | 307 |
| 308 // static | 308 // static |
| 309 bool Bytecodes::IsCallRuntime(Bytecode bytecode) { | 309 bool Bytecodes::IsCallRuntime(Bytecode bytecode) { |
| 310 return bytecode == Bytecode::kCallRuntime || | 310 return bytecode == Bytecode::kCallRuntime || |
| 311 bytecode == Bytecode::kCallRuntimeForPair; | 311 bytecode == Bytecode::kCallRuntimeForPair || |
| 312 bytecode == Bytecode::kInvokeIntrinsic; |
| 312 } | 313 } |
| 313 | 314 |
| 314 // static | 315 // static |
| 315 bool Bytecodes::IsDebugBreak(Bytecode bytecode) { | 316 bool Bytecodes::IsDebugBreak(Bytecode bytecode) { |
| 316 switch (bytecode) { | 317 switch (bytecode) { |
| 317 #define CASE(Name, ...) case Bytecode::k##Name: | 318 #define CASE(Name, ...) case Bytecode::k##Name: |
| 318 DEBUG_BREAK_BYTECODE_LIST(CASE); | 319 DEBUG_BREAK_BYTECODE_LIST(CASE); |
| 319 #undef CASE | 320 #undef CASE |
| 320 return true; | 321 return true; |
| 321 default: | 322 default: |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 } else { | 676 } else { |
| 676 std::ostringstream s; | 677 std::ostringstream s; |
| 677 s << "r" << index(); | 678 s << "r" << index(); |
| 678 return s.str(); | 679 return s.str(); |
| 679 } | 680 } |
| 680 } | 681 } |
| 681 | 682 |
| 682 } // namespace interpreter | 683 } // namespace interpreter |
| 683 } // namespace internal | 684 } // namespace internal |
| 684 } // namespace v8 | 685 } // namespace v8 |
| OLD | NEW |