| 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/scopes.h" | 10 #include "src/scopes.h" |
| (...skipping 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1705 int space_needed = Deoptimizer::patch_size(); | 1705 int space_needed = Deoptimizer::patch_size(); |
| 1706 if (!info()->IsStub()) { | 1706 if (!info()->IsStub()) { |
| 1707 // Ensure that we have enough space after the previous lazy-bailout | 1707 // Ensure that we have enough space after the previous lazy-bailout |
| 1708 // instruction for patching the code here. | 1708 // instruction for patching the code here. |
| 1709 int current_pc = masm()->pc_offset(); | 1709 int current_pc = masm()->pc_offset(); |
| 1710 if (current_pc < last_lazy_deopt_pc_ + space_needed) { | 1710 if (current_pc < last_lazy_deopt_pc_ + space_needed) { |
| 1711 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1711 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 1712 __ Nop(padding_size); | 1712 __ Nop(padding_size); |
| 1713 } | 1713 } |
| 1714 } | 1714 } |
| 1715 MarkLazyDeoptSite(); | |
| 1716 } | 1715 } |
| 1717 | 1716 |
| 1718 #undef __ | 1717 #undef __ |
| 1719 | 1718 |
| 1720 } // namespace internal | 1719 } // namespace internal |
| 1721 } // namespace compiler | 1720 } // namespace compiler |
| 1722 } // namespace v8 | 1721 } // namespace v8 |
| OLD | NEW |