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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
Index: src/interpreter/bytecodes.cc
diff --git a/src/interpreter/bytecodes.cc b/src/interpreter/bytecodes.cc
index c3b17c7b10573f4712d5377258212d381f66dd28..2e318b7bd1be4db40e8b4be33f0a05f045a76617 100644
--- a/src/interpreter/bytecodes.cc
+++ b/src/interpreter/bytecodes.cc
@@ -283,6 +283,16 @@ bool Bytecodes::IsCallOrNew(Bytecode bytecode) {
}
// static
+bool Bytecodes::IsCallRuntime(Bytecode bytecode) {
+ return bytecode == Bytecode::kCallRuntime ||
+ bytecode == Bytecode::kCallRuntimeWide ||
+ bytecode == Bytecode::kCallRuntimeForPair ||
+ bytecode == Bytecode::kCallRuntimeForPairWide ||
+ bytecode == Bytecode::kCallJSRuntime ||
+ bytecode == Bytecode::kCallJSRuntimeWide;
+}
+
+// static
bool Bytecodes::IsDebugBreak(Bytecode bytecode) {
switch (bytecode) {
#define CASE(Name, ...) case Bytecode::k##Name:

Powered by Google App Engine
This is Rietveld 408576698