| 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/address-map.h" | 7 #include "src/address-map.h" |
| 8 #include "src/assembler-inl.h" | 8 #include "src/assembler-inl.h" |
| 9 #include "src/base/adapters.h" | 9 #include "src/base/adapters.h" |
| 10 #include "src/compilation-info.h" | 10 #include "src/compilation-info.h" |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 } | 202 } |
| 203 | 203 |
| 204 // Ensure there is space for lazy deoptimization in the code. | 204 // Ensure there is space for lazy deoptimization in the code. |
| 205 if (info->ShouldEnsureSpaceForLazyDeopt()) { | 205 if (info->ShouldEnsureSpaceForLazyDeopt()) { |
| 206 int target_offset = masm()->pc_offset() + Deoptimizer::patch_size(); | 206 int target_offset = masm()->pc_offset() + Deoptimizer::patch_size(); |
| 207 while (masm()->pc_offset() < target_offset) { | 207 while (masm()->pc_offset() < target_offset) { |
| 208 masm()->nop(); | 208 masm()->nop(); |
| 209 } | 209 } |
| 210 } | 210 } |
| 211 | 211 |
| 212 FinishCode(masm()); | 212 FinishCode(); |
| 213 | 213 |
| 214 // Emit the jump tables. | 214 // Emit the jump tables. |
| 215 if (jump_tables_) { | 215 if (jump_tables_) { |
| 216 masm()->Align(kPointerSize); | 216 masm()->Align(kPointerSize); |
| 217 for (JumpTable* table = jump_tables_; table; table = table->next()) { | 217 for (JumpTable* table = jump_tables_; table; table = table->next()) { |
| 218 masm()->bind(table->label()); | 218 masm()->bind(table->label()); |
| 219 AssembleJumpTable(table->targets(), table->target_count()); | 219 AssembleJumpTable(table->targets(), table->target_count()); |
| 220 } | 220 } |
| 221 } | 221 } |
| 222 | 222 |
| (...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 998 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { | 998 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { |
| 999 gen->ools_ = this; | 999 gen->ools_ = this; |
| 1000 } | 1000 } |
| 1001 | 1001 |
| 1002 | 1002 |
| 1003 OutOfLineCode::~OutOfLineCode() {} | 1003 OutOfLineCode::~OutOfLineCode() {} |
| 1004 | 1004 |
| 1005 } // namespace compiler | 1005 } // namespace compiler |
| 1006 } // namespace internal | 1006 } // namespace internal |
| 1007 } // namespace v8 | 1007 } // namespace v8 |
| OLD | NEW |