Index: src/interpreter/bytecodes.cc |
diff --git a/src/interpreter/bytecodes.cc b/src/interpreter/bytecodes.cc |
index 543c9c5075effa0ee8c750d653b52b9e75e4bce7..9f126bcb58b67a60c066c834f99fea33beebd9b5 100644 |
--- a/src/interpreter/bytecodes.cc |
+++ b/src/interpreter/bytecodes.cc |
@@ -501,6 +501,11 @@ bool Bytecodes::IsPrefixScalingBytecode(Bytecode bytecode) { |
} |
// static |
+bool Bytecodes::PutsNameInAccumulator(Bytecode bytecode) { |
+ return bytecode == Bytecode::kToName || bytecode == Bytecode::kTypeOf; |
+} |
+ |
+// static |
bool Bytecodes::IsJumpOrReturn(Bytecode bytecode) { |
return bytecode == Bytecode::kReturn || IsJump(bytecode); |
} |