| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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.h" | 5 #include "src/compiler.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "src/ast-numbering.h" | 9 #include "src/ast-numbering.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 zone_(zone), | 143 zone_(zone), |
| 144 deferred_handles_(nullptr), | 144 deferred_handles_(nullptr), |
| 145 dependencies_(isolate, zone), | 145 dependencies_(isolate, zone), |
| 146 bailout_reason_(kNoReason), | 146 bailout_reason_(kNoReason), |
| 147 prologue_offset_(Code::kPrologueOffsetNotSet), | 147 prologue_offset_(Code::kPrologueOffsetNotSet), |
| 148 no_frame_ranges_(isolate->cpu_profiler()->is_profiling() | 148 no_frame_ranges_(isolate->cpu_profiler()->is_profiling() |
| 149 ? new List<OffsetRange>(2) | 149 ? new List<OffsetRange>(2) |
| 150 : nullptr), | 150 : nullptr), |
| 151 track_positions_(FLAG_hydrogen_track_positions || | 151 track_positions_(FLAG_hydrogen_track_positions || |
| 152 isolate->cpu_profiler()->is_profiling()), | 152 isolate->cpu_profiler()->is_profiling()), |
| 153 inlined_functions_(zone), | |
| 154 opt_count_(has_shared_info() ? shared_info()->opt_count() : 0), | 153 opt_count_(has_shared_info() ? shared_info()->opt_count() : 0), |
| 155 parameter_count_(0), | 154 parameter_count_(0), |
| 156 optimization_id_(-1), | 155 optimization_id_(-1), |
| 157 osr_expr_stack_height_(0) {} | 156 osr_expr_stack_height_(0) {} |
| 158 | 157 |
| 159 | 158 |
| 160 CompilationInfo::~CompilationInfo() { | 159 CompilationInfo::~CompilationInfo() { |
| 161 DisableFutureOptimization(); | 160 DisableFutureOptimization(); |
| 162 delete deferred_handles_; | 161 delete deferred_handles_; |
| 163 delete no_frame_ranges_; | 162 delete no_frame_ranges_; |
| (...skipping 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1569 | 1568 |
| 1570 | 1569 |
| 1571 #if DEBUG | 1570 #if DEBUG |
| 1572 void CompilationInfo::PrintAstForTesting() { | 1571 void CompilationInfo::PrintAstForTesting() { |
| 1573 PrintF("--- Source from AST ---\n%s\n", | 1572 PrintF("--- Source from AST ---\n%s\n", |
| 1574 PrettyPrinter(isolate(), zone()).PrintProgram(function())); | 1573 PrettyPrinter(isolate(), zone()).PrintProgram(function())); |
| 1575 } | 1574 } |
| 1576 #endif | 1575 #endif |
| 1577 } // namespace internal | 1576 } // namespace internal |
| 1578 } // namespace v8 | 1577 } // namespace v8 |
| OLD | NEW |