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

Side by Side Diff: src/compiler/ia32/code-generator-ia32.cc

Issue 1186353003: [turbofan] Fix overzealous reserving of lazy deopt space. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « src/compiler/arm64/code-generator-arm64.cc ('k') | src/compiler/mips/code-generator-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/ia32/assembler-ia32.h" 10 #include "src/ia32/assembler-ia32.h"
(...skipping 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after
1504 int space_needed = Deoptimizer::patch_size(); 1504 int space_needed = Deoptimizer::patch_size();
1505 if (!info()->IsStub()) { 1505 if (!info()->IsStub()) {
1506 // Ensure that we have enough space after the previous lazy-bailout 1506 // Ensure that we have enough space after the previous lazy-bailout
1507 // instruction for patching the code here. 1507 // instruction for patching the code here.
1508 int current_pc = masm()->pc_offset(); 1508 int current_pc = masm()->pc_offset();
1509 if (current_pc < last_lazy_deopt_pc_ + space_needed) { 1509 if (current_pc < last_lazy_deopt_pc_ + space_needed) {
1510 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 1510 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
1511 __ Nop(padding_size); 1511 __ Nop(padding_size);
1512 } 1512 }
1513 } 1513 }
1514 MarkLazyDeoptSite();
1515 } 1514 }
1516 1515
1517 #undef __ 1516 #undef __
1518 1517
1519 } // namespace compiler 1518 } // namespace compiler
1520 } // namespace internal 1519 } // namespace internal
1521 } // namespace v8 1520 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm64/code-generator-arm64.cc ('k') | src/compiler/mips/code-generator-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698