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/linkage.h" | 8 #include "src/compiler/linkage.h" |
9 #include "src/compiler/pipeline.h" | 9 #include "src/compiler/pipeline.h" |
10 #include "src/frames-inl.h" | 10 #include "src/frames-inl.h" |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 : HandlerTable::UNCAUGHT; | 186 : HandlerTable::UNCAUGHT; |
187 table->SetReturnOffset(static_cast<int>(i), handlers_[i].pc_offset); | 187 table->SetReturnOffset(static_cast<int>(i), handlers_[i].pc_offset); |
188 table->SetReturnHandler(static_cast<int>(i), position, prediction); | 188 table->SetReturnHandler(static_cast<int>(i), position, prediction); |
189 } | 189 } |
190 result->set_handler_table(*table); | 190 result->set_handler_table(*table); |
191 } | 191 } |
192 | 192 |
193 PopulateDeoptimizationData(result); | 193 PopulateDeoptimizationData(result); |
194 | 194 |
195 // Ensure there is space for lazy deoptimization in the relocation info. | 195 // Ensure there is space for lazy deoptimization in the relocation info. |
196 if (!info->ShouldEnsureSpaceForLazyDeopt()) { | 196 if (info->ShouldEnsureSpaceForLazyDeopt()) { |
197 Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(result); | 197 Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(result); |
198 } | 198 } |
199 | 199 |
200 // Emit a code line info recording stop event. | 200 // Emit a code line info recording stop event. |
201 void* line_info = recorder->DetachJITHandlerData(); | 201 void* line_info = recorder->DetachJITHandlerData(); |
202 LOG_CODE_EVENT(isolate(), CodeEndLinePosInfoRecordEvent(*result, line_info)); | 202 LOG_CODE_EVENT(isolate(), CodeEndLinePosInfoRecordEvent(*result, line_info)); |
203 | 203 |
204 return result; | 204 return result; |
205 } | 205 } |
206 | 206 |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
664 : masm_(gen->masm()), next_(gen->ools_) { | 664 : masm_(gen->masm()), next_(gen->ools_) { |
665 gen->ools_ = this; | 665 gen->ools_ = this; |
666 } | 666 } |
667 | 667 |
668 | 668 |
669 OutOfLineCode::~OutOfLineCode() {} | 669 OutOfLineCode::~OutOfLineCode() {} |
670 | 670 |
671 } // namespace compiler | 671 } // namespace compiler |
672 } // namespace internal | 672 } // namespace internal |
673 } // namespace v8 | 673 } // namespace v8 |
OLD | NEW |