| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 code_stub_(code_stub), | 119 code_stub_(code_stub), |
| 120 mode_(mode), | 120 mode_(mode), |
| 121 osr_ast_id_(BailoutId::None()), | 121 osr_ast_id_(BailoutId::None()), |
| 122 zone_(zone), | 122 zone_(zone), |
| 123 deferred_handles_(nullptr), | 123 deferred_handles_(nullptr), |
| 124 bailout_reason_(kNoReason), | 124 bailout_reason_(kNoReason), |
| 125 prologue_offset_(Code::kPrologueOffsetNotSet), | 125 prologue_offset_(Code::kPrologueOffsetNotSet), |
| 126 no_frame_ranges_(isolate->cpu_profiler()->is_profiling() | 126 no_frame_ranges_(isolate->cpu_profiler()->is_profiling() |
| 127 ? new List<OffsetRange>(2) | 127 ? new List<OffsetRange>(2) |
| 128 : nullptr), | 128 : nullptr), |
| 129 track_positions_(FLAG_hydrogen_track_positions), | 129 track_positions_(FLAG_hydrogen_track_positions || |
| 130 isolate->cpu_profiler()->is_profiling()), |
| 130 opt_count_(has_shared_info() ? shared_info()->opt_count() : 0), | 131 opt_count_(has_shared_info() ? shared_info()->opt_count() : 0), |
| 131 parameter_count_(0), | 132 parameter_count_(0), |
| 132 optimization_id_(-1), | 133 optimization_id_(-1), |
| 133 aborted_due_to_dependency_change_(false), | 134 aborted_due_to_dependency_change_(false), |
| 134 osr_expr_stack_height_(0) { | 135 osr_expr_stack_height_(0) { |
| 135 std::fill_n(dependencies_, DependentCode::kGroupCount, nullptr); | 136 std::fill_n(dependencies_, DependentCode::kGroupCount, nullptr); |
| 136 } | 137 } |
| 137 | 138 |
| 138 | 139 |
| 139 CompilationInfo::~CompilationInfo() { | 140 CompilationInfo::~CompilationInfo() { |
| (...skipping 1425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1565 parse_info_ = nullptr; | 1566 parse_info_ = nullptr; |
| 1566 } | 1567 } |
| 1567 | 1568 |
| 1568 #if DEBUG | 1569 #if DEBUG |
| 1569 void CompilationInfo::PrintAstForTesting() { | 1570 void CompilationInfo::PrintAstForTesting() { |
| 1570 PrintF("--- Source from AST ---\n%s\n", | 1571 PrintF("--- Source from AST ---\n%s\n", |
| 1571 PrettyPrinter(isolate(), zone()).PrintProgram(function())); | 1572 PrettyPrinter(isolate(), zone()).PrintProgram(function())); |
| 1572 } | 1573 } |
| 1573 #endif | 1574 #endif |
| 1574 } } // namespace v8::internal | 1575 } } // namespace v8::internal |
| OLD | NEW |