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..7252bf44799666d9eacb0b2b176a5a92116149ba 100644 |
--- a/src/interpreter/bytecode-array-builder.cc |
+++ b/src/interpreter/bytecode-array-builder.cc |
@@ -967,7 +967,8 @@ bool BytecodeArrayBuilder::OperandIsValid(Bytecode bytecode, int operand_index, |
// Fall-through to kReg8 case. |
case OperandType::kReg8: { |
Register reg = Register::FromOperand(static_cast<uint8_t>(operand_value)); |
- if (reg.is_function_context() || reg.is_function_closure()) { |
+ if (reg.is_function_context() || reg.is_function_closure() || |
+ reg.is_new_target()) { |
return true; |
} else if (reg.is_parameter()) { |
int parameter_index = reg.ToParameterIndex(parameter_count_); |