Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: src/compiler.cc

Issue 1178683004: Revert of [turbofan] Record the SharedFunctionInfo of ALL inlined functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler.h ('k') | src/compiler/code-generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler.h ('k') | src/compiler/code-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698