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

Side by Side Diff: src/crankshaft/compilation-phase.cc

Issue 1823033002: [compiler] Move PassesFilter onto SharedFunctionInfo. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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
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/crankshaft/compilation-phase.h" 5 #include "src/crankshaft/compilation-phase.h"
6 6
7 #include "src/crankshaft/hydrogen.h" 7 #include "src/crankshaft/hydrogen.h"
8 #include "src/isolate.h" 8 #include "src/isolate.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 16 matching lines...) Expand all
27 } 27 }
28 28
29 bool CompilationPhase::ShouldProduceTraceOutput() const { 29 bool CompilationPhase::ShouldProduceTraceOutput() const {
30 // Trace if the appropriate trace flag is set and the phase name's first 30 // Trace if the appropriate trace flag is set and the phase name's first
31 // character is in the FLAG_trace_phase command line parameter. 31 // character is in the FLAG_trace_phase command line parameter.
32 AllowHandleDereference allow_deref; 32 AllowHandleDereference allow_deref;
33 bool tracing_on = 33 bool tracing_on =
34 info()->IsStub() 34 info()->IsStub()
35 ? FLAG_trace_hydrogen_stubs 35 ? FLAG_trace_hydrogen_stubs
36 : (FLAG_trace_hydrogen && 36 : (FLAG_trace_hydrogen &&
37 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); 37 info()->shared_info()->PassesFilter(FLAG_trace_hydrogen_filter));
38 return (tracing_on && 38 return (tracing_on &&
39 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != 39 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) !=
40 NULL); 40 NULL);
41 } 41 }
42 42
43 } // namespace internal 43 } // namespace internal
44 } // namespace v8 44 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698