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/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
9 #include "src/compiler/linkage.h" | 9 #include "src/compiler/linkage.h" |
10 #include "src/compiler/pipeline.h" | 10 #include "src/compiler/pipeline.h" |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 | 210 |
211 PopulateDeoptimizationData(result); | 211 PopulateDeoptimizationData(result); |
212 | 212 |
213 // Ensure there is space for lazy deoptimization in the relocation info. | 213 // Ensure there is space for lazy deoptimization in the relocation info. |
214 if (info->ShouldEnsureSpaceForLazyDeopt()) { | 214 if (info->ShouldEnsureSpaceForLazyDeopt()) { |
215 Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(result); | 215 Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(result); |
216 } | 216 } |
217 | 217 |
218 // Emit a code line info recording stop event. | 218 // Emit a code line info recording stop event. |
219 void* line_info = recorder->DetachJITHandlerData(); | 219 void* line_info = recorder->DetachJITHandlerData(); |
220 LOG_CODE_EVENT(isolate(), CodeEndLinePosInfoRecordEvent(*result, line_info)); | 220 LOG_CODE_EVENT(isolate(), CodeEndLinePosInfoRecordEvent( |
| 221 AbstractCode::cast(*result), line_info)); |
221 | 222 |
222 return result; | 223 return result; |
223 } | 224 } |
224 | 225 |
225 | 226 |
226 bool CodeGenerator::IsNextInAssemblyOrder(RpoNumber block) const { | 227 bool CodeGenerator::IsNextInAssemblyOrder(RpoNumber block) const { |
227 return code() | 228 return code() |
228 ->InstructionBlockAt(current_block_) | 229 ->InstructionBlockAt(current_block_) |
229 ->ao_number() | 230 ->ao_number() |
230 .IsNext(code()->InstructionBlockAt(block)->ao_number()); | 231 .IsNext(code()->InstructionBlockAt(block)->ao_number()); |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { | 774 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { |
774 gen->ools_ = this; | 775 gen->ools_ = this; |
775 } | 776 } |
776 | 777 |
777 | 778 |
778 OutOfLineCode::~OutOfLineCode() {} | 779 OutOfLineCode::~OutOfLineCode() {} |
779 | 780 |
780 } // namespace compiler | 781 } // namespace compiler |
781 } // namespace internal | 782 } // namespace internal |
782 } // namespace v8 | 783 } // namespace v8 |
OLD | NEW |