From 63eff64fd581fd0363e9526b3c3061d6d8d121fa Mon Sep 17 00:00:00 2001 From: "palfia@homejinni.com" Date: Tue, 25 Jun 2013 00:09:32 +0000 Subject: [PATCH] MIPS: Fix mjsunit/regress/regress-2653. Insert proper padding after lazy deoptimization points. This change makes sure, that patching does not overwrite the code after the lazy deoptimization point. TEST=mjsunit/regress/regress-2653 BUG= Review URL: https://codereview.chromium.org/17587020 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15304 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/mips/lithium-codegen-mips.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc index ccf633b3a7..9b371add28 100644 --- a/src/mips/lithium-codegen-mips.cc +++ b/src/mips/lithium-codegen-mips.cc @@ -243,7 +243,6 @@ bool LCodeGen::GeneratePrologue() { if (FLAG_trace && info()->IsOptimizing()) { __ CallRuntime(Runtime::kTraceEnter, 0); } - EnsureSpaceForLazyDeopt(); return !is_aborted(); } @@ -271,6 +270,7 @@ bool LCodeGen::GenerateBody() { instr->CompileToNative(this); } + EnsureSpaceForLazyDeopt(); return !is_aborted(); } @@ -706,6 +706,7 @@ void LCodeGen::CallCodeGeneric(Handle code, RelocInfo::Mode mode, LInstruction* instr, SafepointMode safepoint_mode) { + EnsureSpaceForLazyDeopt(); ASSERT(instr != NULL); LPointerMap* pointers = instr->pointer_map(); RecordPosition(pointers->position());