| Index: src/interpreter/bytecode-array-builder.cc
|
| diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc
|
| index c0de7c0bb1303f76f4cbb893d55efdd497a4b2df..0b41b8fc462d9b41e47ea839f8dd3ae0bb350657 100644
|
| --- a/src/interpreter/bytecode-array-builder.cc
|
| +++ b/src/interpreter/bytecode-array-builder.cc
|
| @@ -463,10 +463,11 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::CreateArguments(
|
|
|
|
|
| BytecodeArrayBuilder& BytecodeArrayBuilder::CreateRegExpLiteral(
|
| - int literal_index, Register flags) {
|
| + int literal_index, int flags) {
|
| + DCHECK(FitsInImm8Operand(flags)); // Flags should fit in 8 bits.
|
| if (FitsInIdx8Operand(literal_index)) {
|
| Output(Bytecode::kCreateRegExpLiteral, static_cast<uint8_t>(literal_index),
|
| - flags.ToOperand());
|
| + static_cast<uint8_t>(flags));
|
| } else {
|
| UNIMPLEMENTED();
|
| }
|
|
|