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

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

Issue 1297203002: Add CompileInfo::GetDebugName() (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@interpreter_immed_bytecodes
Patch Set: Add CompilationInfo::ShouldEnsureSpaceForLazyDeopt() Created 5 years, 4 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
Index: src/compiler/code-generator.cc
diff --git a/src/compiler/code-generator.cc b/src/compiler/code-generator.cc
index 07a741f73e24f2595ee5777ca8df5d8d8afc36aa..fd974cbeb29005e7d04f46853048b4643a5170b7 100644
--- a/src/compiler/code-generator.cc
+++ b/src/compiler/code-generator.cc
@@ -147,7 +147,7 @@ Handle<Code> CodeGenerator::GenerateCode() {
}
// Ensure there is space for lazy deoptimization in the code.
- if (!info->IsStub()) {
+ if (info->ShouldEnsureSpaceForLazyDeopt()) {
int target_offset = masm()->pc_offset() + Deoptimizer::patch_size();
while (masm()->pc_offset() < target_offset) {
masm()->nop();
@@ -193,7 +193,7 @@ Handle<Code> CodeGenerator::GenerateCode() {
PopulateDeoptimizationData(result);
// Ensure there is space for lazy deoptimization in the relocation info.
- if (!info->IsStub()) {
+ if (!info->IsStub() && !info->IsBytecodeHandler()) {
titzer 2015/08/21 13:37:21 Missed this one.
rmcilroy 2015/08/21 16:41:05 Done.
Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(result);
}

Powered by Google App Engine
This is Rietveld 408576698