| 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 204 |
| 205 PopulateDeoptimizationData(result); | 205 PopulateDeoptimizationData(result); |
| 206 | 206 |
| 207 // Ensure there is space for lazy deoptimization in the relocation info. | 207 // Ensure there is space for lazy deoptimization in the relocation info. |
| 208 if (info->ShouldEnsureSpaceForLazyDeopt()) { | 208 if (info->ShouldEnsureSpaceForLazyDeopt()) { |
| 209 Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(result); | 209 Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(result); |
| 210 } | 210 } |
| 211 | 211 |
| 212 // Emit a code line info recording stop event. | 212 // Emit a code line info recording stop event. |
| 213 void* line_info = recorder->DetachJITHandlerData(); | 213 void* line_info = recorder->DetachJITHandlerData(); |
| 214 LOG_CODE_EVENT(isolate(), CodeEndLinePosInfoRecordEvent(*result, line_info)); | 214 LOG_CODE_EVENT(isolate(), CodeEndLinePosInfoRecordEvent( |
| 215 AbstractCode::cast(*result), line_info)); |
| 215 | 216 |
| 216 return result; | 217 return result; |
| 217 } | 218 } |
| 218 | 219 |
| 219 | 220 |
| 220 bool CodeGenerator::IsNextInAssemblyOrder(RpoNumber block) const { | 221 bool CodeGenerator::IsNextInAssemblyOrder(RpoNumber block) const { |
| 221 return code() | 222 return code() |
| 222 ->InstructionBlockAt(current_block_) | 223 ->InstructionBlockAt(current_block_) |
| 223 ->ao_number() | 224 ->ao_number() |
| 224 .IsNext(code()->InstructionBlockAt(block)->ao_number()); | 225 .IsNext(code()->InstructionBlockAt(block)->ao_number()); |
| (...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 733 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { | 734 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { |
| 734 gen->ools_ = this; | 735 gen->ools_ = this; |
| 735 } | 736 } |
| 736 | 737 |
| 737 | 738 |
| 738 OutOfLineCode::~OutOfLineCode() {} | 739 OutOfLineCode::~OutOfLineCode() {} |
| 739 | 740 |
| 740 } // namespace compiler | 741 } // namespace compiler |
| 741 } // namespace internal | 742 } // namespace internal |
| 742 } // namespace v8 | 743 } // namespace v8 |
| OLD | NEW |