Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/interpreter/bytecodes.cc

Issue 1723223002: [Interpreter] Textual representation for runtime function IDs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 276
277 277
278 // static 278 // static
279 bool Bytecodes::IsCallOrNew(Bytecode bytecode) { 279 bool Bytecodes::IsCallOrNew(Bytecode bytecode) {
280 return bytecode == Bytecode::kCall || bytecode == Bytecode::kTailCall || 280 return bytecode == Bytecode::kCall || bytecode == Bytecode::kTailCall ||
281 bytecode == Bytecode::kNew || bytecode == Bytecode::kCallWide || 281 bytecode == Bytecode::kNew || bytecode == Bytecode::kCallWide ||
282 bytecode == Bytecode::kTailCallWide || bytecode == Bytecode::kNewWide; 282 bytecode == Bytecode::kTailCallWide || bytecode == Bytecode::kNewWide;
283 } 283 }
284 284
285 // static 285 // static
286 bool Bytecodes::IsCallRuntime(Bytecode bytecode) {
287 return bytecode == Bytecode::kCallRuntime ||
288 bytecode == Bytecode::kCallRuntimeWide ||
289 bytecode == Bytecode::kCallRuntimeForPair ||
290 bytecode == Bytecode::kCallRuntimeForPairWide ||
291 bytecode == Bytecode::kCallJSRuntime ||
292 bytecode == Bytecode::kCallJSRuntimeWide;
293 }
294
295 // static
286 bool Bytecodes::IsDebugBreak(Bytecode bytecode) { 296 bool Bytecodes::IsDebugBreak(Bytecode bytecode) {
287 switch (bytecode) { 297 switch (bytecode) {
288 #define CASE(Name, ...) case Bytecode::k##Name: 298 #define CASE(Name, ...) case Bytecode::k##Name:
289 DEBUG_BREAK_BYTECODE_LIST(CASE); 299 DEBUG_BREAK_BYTECODE_LIST(CASE);
290 #undef CASE 300 #undef CASE
291 return true; 301 return true;
292 default: 302 default:
293 break; 303 break;
294 } 304 }
295 return false; 305 return false;
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 } else { 641 } else {
632 std::ostringstream s; 642 std::ostringstream s;
633 s << "r" << index(); 643 s << "r" << index();
634 return s.str(); 644 return s.str();
635 } 645 }
636 } 646 }
637 647
638 } // namespace interpreter 648 } // namespace interpreter
639 } // namespace internal 649 } // namespace internal
640 } // namespace v8 650 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698