Index: src/interpreter/bytecode-array-builder.cc |
diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc |
index abee9f78049502746686633adfe77f2d34e3516f..ca01970354b4db82ba15b4f4bb12a02640c9b3ee 100644 |
--- a/src/interpreter/bytecode-array-builder.cc |
+++ b/src/interpreter/bytecode-array-builder.cc |
@@ -351,6 +351,18 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::CreateClosure( |
} |
+BytecodeArrayBuilder& BytecodeArrayBuilder::CreateRegExpLiteral( |
+ int literal_index, Register flags) { |
+ if (FitsInIdx8Operand(literal_index)) { |
+ Output(Bytecode::kCreateRegExpLiteral, static_cast<uint8_t>(literal_index), |
+ flags.ToOperand()); |
+ } else { |
+ UNIMPLEMENTED(); |
+ } |
+ return *this; |
+} |
+ |
+ |
BytecodeArrayBuilder& BytecodeArrayBuilder::CreateArrayLiteral( |
int literal_index, int flags) { |
DCHECK(FitsInImm8Operand(flags)); // Flags should fit in 8 bytes. |