| Index: src/interpreter/bytecode-array-writer.cc
|
| diff --git a/src/interpreter/bytecode-array-writer.cc b/src/interpreter/bytecode-array-writer.cc
|
| index 1eb80dda8095d97c8b33639cc868d6d9879a1234..4263a623a0585f2e1da5cdd124bebbf04de0b218 100644
|
| --- a/src/interpreter/bytecode-array-writer.cc
|
| +++ b/src/interpreter/bytecode-array-writer.cc
|
| @@ -254,13 +254,11 @@ void BytecodeArrayWriter::PatchJumpWith8BitOperand(size_t jump_location,
|
| constant_array_builder()->DiscardReservedEntry(OperandSize::kByte);
|
| bytecodes()->at(operand_location) = static_cast<uint8_t>(delta);
|
| } else {
|
| - // TODO(5203): Remove this temporary exception.
|
| - AllowHandleAllocation allow_handles;
|
| // The jump does not fit within the range of an Imm operand, so
|
| // commit reservation putting the offset into the constant pool,
|
| // and update the jump instruction and operand.
|
| size_t entry = constant_array_builder()->CommitReservedEntry(
|
| - OperandSize::kByte, handle(Smi::FromInt(delta), isolate()));
|
| + OperandSize::kByte, Smi::FromInt(delta));
|
| DCHECK_LE(entry, kMaxUInt32);
|
| DCHECK_EQ(Bytecodes::SizeForUnsignedOperand(static_cast<uint32_t>(entry)),
|
| OperandSize::kByte);
|
| @@ -280,12 +278,10 @@ void BytecodeArrayWriter::PatchJumpWith16BitOperand(size_t jump_location,
|
| constant_array_builder()->DiscardReservedEntry(OperandSize::kShort);
|
| WriteUnalignedUInt16(operand_bytes, static_cast<uint16_t>(delta));
|
| } else {
|
| - // TODO(5203): Remove this temporary exception.
|
| - AllowHandleAllocation allow_handles;
|
| jump_bytecode = GetJumpWithConstantOperand(jump_bytecode);
|
| bytecodes()->at(jump_location) = Bytecodes::ToByte(jump_bytecode);
|
| size_t entry = constant_array_builder()->CommitReservedEntry(
|
| - OperandSize::kShort, handle(Smi::FromInt(delta), isolate()));
|
| + OperandSize::kShort, Smi::FromInt(delta));
|
| WriteUnalignedUInt16(operand_bytes, static_cast<uint16_t>(entry));
|
| }
|
| DCHECK(bytecodes()->at(operand_location) == k8BitJumpPlaceholder &&
|
|
|