| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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/compilation-info.h" | 5 #include "src/compilation-info.h" |
| 6 | 6 |
| 7 #include "src/api.h" | 7 #include "src/api.h" |
| 8 #include "src/ast/ast.h" | 8 #include "src/ast/ast.h" |
| 9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
| 10 #include "src/isolate.h" | 10 #include "src/isolate.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 osr_ast_id_(BailoutId::None()), | 72 osr_ast_id_(BailoutId::None()), |
| 73 zone_(zone), | 73 zone_(zone), |
| 74 deferred_handles_(nullptr), | 74 deferred_handles_(nullptr), |
| 75 dependencies_(isolate, zone), | 75 dependencies_(isolate, zone), |
| 76 bailout_reason_(kNoReason), | 76 bailout_reason_(kNoReason), |
| 77 prologue_offset_(Code::kPrologueOffsetNotSet), | 77 prologue_offset_(Code::kPrologueOffsetNotSet), |
| 78 track_positions_(FLAG_hydrogen_track_positions || | 78 track_positions_(FLAG_hydrogen_track_positions || |
| 79 isolate->is_profiling()), | 79 isolate->is_profiling()), |
| 80 parameter_count_(0), | 80 parameter_count_(0), |
| 81 optimization_id_(-1), | 81 optimization_id_(-1), |
| 82 osr_expr_stack_height_(0), | 82 osr_expr_stack_height_(-1), |
| 83 debug_name_(debug_name) {} | 83 debug_name_(debug_name) {} |
| 84 | 84 |
| 85 CompilationInfo::~CompilationInfo() { | 85 CompilationInfo::~CompilationInfo() { |
| 86 if (GetFlag(kDisableFutureOptimization) && has_shared_info()) { | 86 if (GetFlag(kDisableFutureOptimization) && has_shared_info()) { |
| 87 shared_info()->DisableOptimization(bailout_reason()); | 87 shared_info()->DisableOptimization(bailout_reason()); |
| 88 } | 88 } |
| 89 dependencies()->Rollback(); | 89 dependencies()->Rollback(); |
| 90 delete deferred_handles_; | 90 delete deferred_handles_; |
| 91 } | 91 } |
| 92 | 92 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 inlined_functions_.push_back(InlinedFunctionHolder( | 207 inlined_functions_.push_back(InlinedFunctionHolder( |
| 208 inlined_function, handle(inlined_function->code()))); | 208 inlined_function, handle(inlined_function->code()))); |
| 209 } | 209 } |
| 210 | 210 |
| 211 Code::Kind CompilationInfo::output_code_kind() const { | 211 Code::Kind CompilationInfo::output_code_kind() const { |
| 212 return Code::ExtractKindFromFlags(code_flags_); | 212 return Code::ExtractKindFromFlags(code_flags_); |
| 213 } | 213 } |
| 214 | 214 |
| 215 } // namespace internal | 215 } // namespace internal |
| 216 } // namespace v8 | 216 } // namespace v8 |
| OLD | NEW |