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

Side by Side Diff: src/compiler/x87/code-generator-x87.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/x64/code-generator-x64.cc ('k') | no next file » | 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/scopes.h" 10 #include "src/scopes.h"
(...skipping 1822 matching lines...) Expand 10 before | Expand all | Expand 10 after
1833 int space_needed = Deoptimizer::patch_size(); 1833 int space_needed = Deoptimizer::patch_size();
1834 if (!info()->IsStub()) { 1834 if (!info()->IsStub()) {
1835 // Ensure that we have enough space after the previous lazy-bailout 1835 // Ensure that we have enough space after the previous lazy-bailout
1836 // instruction for patching the code here. 1836 // instruction for patching the code here.
1837 int current_pc = masm()->pc_offset(); 1837 int current_pc = masm()->pc_offset();
1838 if (current_pc < last_lazy_deopt_pc_ + space_needed) { 1838 if (current_pc < last_lazy_deopt_pc_ + space_needed) {
1839 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 1839 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
1840 __ Nop(padding_size); 1840 __ Nop(padding_size);
1841 } 1841 }
1842 } 1842 }
1843 MarkLazyDeoptSite();
1844 } 1843 }
1845 1844
1846 #undef __ 1845 #undef __
1847 1846
1848 } // namespace compiler 1847 } // namespace compiler
1849 } // namespace internal 1848 } // namespace internal
1850 } // namespace v8 1849 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/code-generator-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698