Index: src/interpreter/bytecodes.cc |
diff --git a/src/interpreter/bytecodes.cc b/src/interpreter/bytecodes.cc |
index 543c9c5075effa0ee8c750d653b52b9e75e4bce7..825014e465613ecb0073f5511ae333931e481ec2 100644 |
--- a/src/interpreter/bytecodes.cc |
+++ b/src/interpreter/bytecodes.cc |
@@ -474,6 +474,11 @@ bool Bytecodes::IsLdarOrStar(Bytecode bytecode) { |
} |
// static |
+bool Bytecodes::IsLdaSmiOrLdaZero(Bytecode bytecode) { |
+ return bytecode == Bytecode::kLdaSmi || bytecode == Bytecode::kLdaZero; |
+} |
+ |
+// static |
bool Bytecodes::IsBytecodeWithScalableOperands(Bytecode bytecode) { |
switch (bytecode) { |
#define CASE(Name, ...) \ |