OLD | NEW |
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 Loading... |
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 |
OLD | NEW |