Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Unified Diff: src/compiler/code-generator.cc

Issue 874863003: [turbofan] Make sure there is space for lazy deopt patching before the constant pool. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/compiler/regress-446647.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/code-generator.cc
diff --git a/src/compiler/code-generator.cc b/src/compiler/code-generator.cc
index 44e3b9dc9d708378b0c1b60b215d3e762756c26f..72c6ec984af552e9528ee8f126c64f2557e20c50 100644
--- a/src/compiler/code-generator.cc
+++ b/src/compiler/code-generator.cc
@@ -85,8 +85,6 @@ Handle<Code> CodeGenerator::GenerateCode() {
}
}
- FinishCode(masm());
-
// Ensure there is space for lazy deoptimization in the code.
if (!info->IsStub()) {
int target_offset = masm()->pc_offset() + Deoptimizer::patch_size();
@@ -95,6 +93,8 @@ Handle<Code> CodeGenerator::GenerateCode() {
}
}
+ FinishCode(masm());
+
safepoints()->Emit(masm(), frame()->GetSpillSlotCount());
// TODO(titzer): what are the right code flags here?
« no previous file with comments | « no previous file | test/mjsunit/compiler/regress-446647.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698