| Index: src/mips/full-codegen-mips.cc
|
| diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc
|
| index 7fca1c18bc0a8aa2dc0de681403a1897c0f15785..77a336829a52bba8a032a29f94103426b2ae615e 100644
|
| --- a/src/mips/full-codegen-mips.cc
|
| +++ b/src/mips/full-codegen-mips.cc
|
| @@ -494,11 +494,6 @@ void FullCodeGenerator::EmitReturnSequence() {
|
| EmitProfilingCounterReset();
|
| __ bind(&ok);
|
|
|
| -#ifdef DEBUG
|
| - // Add a label for checking the size of the code used for returning.
|
| - Label check_exit_codesize;
|
| - masm_->bind(&check_exit_codesize);
|
| -#endif
|
| // Make sure that the constant pool is not emitted inside of the return
|
| // sequence.
|
| { Assembler::BlockTrampolinePoolScope block_trampoline_pool(masm_);
|
| @@ -507,7 +502,6 @@ void FullCodeGenerator::EmitReturnSequence() {
|
| int32_t arg_count = info_->scope()->num_parameters() + 1;
|
| int32_t sp_delta = arg_count * kPointerSize;
|
| SetReturnPosition(function());
|
| - __ RecordJSReturn();
|
| masm_->mov(sp, fp);
|
| int no_frame_start = masm_->pc_offset();
|
| masm_->MultiPop(static_cast<RegList>(fp.bit() | ra.bit()));
|
| @@ -515,13 +509,6 @@ void FullCodeGenerator::EmitReturnSequence() {
|
| masm_->Jump(ra);
|
| info_->AddNoFrameRange(no_frame_start, masm_->pc_offset());
|
| }
|
| -
|
| -#ifdef DEBUG
|
| - // Check that the size of the code used for returning is large enough
|
| - // for the debugger's requirements.
|
| - DCHECK(Assembler::kJSReturnSequenceInstructions <=
|
| - masm_->InstructionsGeneratedSince(&check_exit_codesize));
|
| -#endif
|
| }
|
| }
|
|
|
|
|