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

Side by Side Diff: src/compilation-info.cc

Issue 2558283002: [turbofan] Fix source position integration with Linux perf (Closed)
Patch Set: Remove redundant flags Created 4 years 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 | « no previous file | src/flag-definitions.h » ('j') | src/perf-jit.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // with deoptimization support. 66 // with deoptimization support.
67 if (isolate_->serializer_enabled()) EnableDeoptimizationSupport(); 67 if (isolate_->serializer_enabled()) EnableDeoptimizationSupport();
68 68
69 if (FLAG_function_context_specialization) MarkAsFunctionContextSpecializing(); 69 if (FLAG_function_context_specialization) MarkAsFunctionContextSpecializing();
70 if (FLAG_turbo_splitting) MarkAsSplittingEnabled(); 70 if (FLAG_turbo_splitting) MarkAsSplittingEnabled();
71 71
72 // Collect source positions for optimized code when profiling or if debugger 72 // Collect source positions for optimized code when profiling or if debugger
73 // is active, to be able to get more precise source positions at the price of 73 // is active, to be able to get more precise source positions at the price of
74 // more memory consumption. 74 // more memory consumption.
75 if (FLAG_trace_deopt || FLAG_trace_turbo || FLAG_trace_turbo_graph || 75 if (FLAG_trace_deopt || FLAG_trace_turbo || FLAG_trace_turbo_graph ||
76 FLAG_turbo_profiling || isolate_->is_profiling() || 76 FLAG_turbo_profiling || FLAG_perf_prof || isolate_->is_profiling() ||
77 isolate_->debug()->is_active()) { 77 isolate_->debug()->is_active()) {
78 MarkAsSourcePositionsEnabled(); 78 MarkAsSourcePositionsEnabled();
79 } 79 }
80 } 80 }
81 81
82 CompilationInfo::CompilationInfo(Vector<const char> debug_name, 82 CompilationInfo::CompilationInfo(Vector<const char> debug_name,
83 Isolate* isolate, Zone* zone, 83 Isolate* isolate, Zone* zone,
84 Code::Flags code_flags) 84 Code::Flags code_flags)
85 : CompilationInfo(nullptr, debug_name, code_flags, STUB, isolate, zone) {} 85 : CompilationInfo(nullptr, debug_name, code_flags, STUB, isolate, zone) {}
86 86
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 inlined_function, handle(inlined_function->code()), pos)); 231 inlined_function, handle(inlined_function->code()), pos));
232 return id; 232 return id;
233 } 233 }
234 234
235 Code::Kind CompilationInfo::output_code_kind() const { 235 Code::Kind CompilationInfo::output_code_kind() const {
236 return Code::ExtractKindFromFlags(code_flags_); 236 return Code::ExtractKindFromFlags(code_flags_);
237 } 237 }
238 238
239 } // namespace internal 239 } // namespace internal
240 } // namespace v8 240 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | src/perf-jit.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698