| 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/debug/debug.h" | 10 #include "src/debug/debug.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 mode_(mode), | 93 mode_(mode), |
| 94 osr_ast_id_(BailoutId::None()), | 94 osr_ast_id_(BailoutId::None()), |
| 95 zone_(zone), | 95 zone_(zone), |
| 96 deferred_handles_(nullptr), | 96 deferred_handles_(nullptr), |
| 97 dependencies_(isolate, zone), | 97 dependencies_(isolate, zone), |
| 98 bailout_reason_(kNoReason), | 98 bailout_reason_(kNoReason), |
| 99 prologue_offset_(Code::kPrologueOffsetNotSet), | 99 prologue_offset_(Code::kPrologueOffsetNotSet), |
| 100 parameter_count_(0), | 100 parameter_count_(0), |
| 101 optimization_id_(-1), | 101 optimization_id_(-1), |
| 102 osr_expr_stack_height_(-1), | 102 osr_expr_stack_height_(-1), |
| 103 debug_name_(debug_name) {} | 103 debug_name_(debug_name), |
| 104 verify_graph_(false) {} |
| 104 | 105 |
| 105 CompilationInfo::~CompilationInfo() { | 106 CompilationInfo::~CompilationInfo() { |
| 106 if (GetFlag(kDisableFutureOptimization) && has_shared_info()) { | 107 if (GetFlag(kDisableFutureOptimization) && has_shared_info()) { |
| 107 shared_info()->DisableOptimization(bailout_reason()); | 108 shared_info()->DisableOptimization(bailout_reason()); |
| 108 } | 109 } |
| 109 dependencies()->Rollback(); | 110 dependencies()->Rollback(); |
| 110 delete deferred_handles_; | 111 delete deferred_handles_; |
| 111 } | 112 } |
| 112 | 113 |
| 113 int CompilationInfo::num_parameters() const { | 114 int CompilationInfo::num_parameters() const { |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 inlined_function, handle(inlined_function->code()), pos)); | 230 inlined_function, handle(inlined_function->code()), pos)); |
| 230 return id; | 231 return id; |
| 231 } | 232 } |
| 232 | 233 |
| 233 Code::Kind CompilationInfo::output_code_kind() const { | 234 Code::Kind CompilationInfo::output_code_kind() const { |
| 234 return Code::ExtractKindFromFlags(code_flags_); | 235 return Code::ExtractKindFromFlags(code_flags_); |
| 235 } | 236 } |
| 236 | 237 |
| 237 } // namespace internal | 238 } // namespace internal |
| 238 } // namespace v8 | 239 } // namespace v8 |
| OLD | NEW |