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

Side by Side Diff: src/runtime-profiler.h

Issue 2165223002: Revert of [Intepreter] Always use BytecodeGraphBuilder when --turbo-from-bytecode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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.cc ('k') | src/runtime-profiler.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 #ifndef V8_RUNTIME_PROFILER_H_ 5 #ifndef V8_RUNTIME_PROFILER_H_
6 #define V8_RUNTIME_PROFILER_H_ 6 #define V8_RUNTIME_PROFILER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 12
13 class Isolate; 13 class Isolate;
14 class JSFunction; 14 class JSFunction;
15 15
16 class RuntimeProfiler { 16 class RuntimeProfiler {
17 public: 17 public:
18 explicit RuntimeProfiler(Isolate* isolate); 18 explicit RuntimeProfiler(Isolate* isolate);
19 19
20 void MarkCandidatesForOptimization(); 20 void MarkCandidatesForOptimization();
21 21
22 void NotifyICChanged() { any_ic_changed_ = true; } 22 void NotifyICChanged() { any_ic_changed_ = true; }
23 23
24 void AttemptOnStackReplacement(JSFunction* function, int nesting_levels = 1); 24 void AttemptOnStackReplacement(JSFunction* function, int nesting_levels = 1);
25 25
26 private: 26 private:
27 void MaybeOptimizeFullCodegen(JSFunction* function, int frame_count, 27 void MaybeOptimizeFullCodegen(JSFunction* function, int frame_count,
28 bool frame_optimized); 28 bool frame_optimized);
29 void MaybeBaselineIgnition(JSFunction* function);
30 void MaybeOptimizeIgnition(JSFunction* function); 29 void MaybeOptimizeIgnition(JSFunction* function);
31 void Optimize(JSFunction* function, const char* reason); 30 void Optimize(JSFunction* function, const char* reason);
32 void Baseline(JSFunction* function, const char* reason); 31 void Baseline(JSFunction* function, const char* reason);
33 32
34 bool CodeSizeOKForOSR(Code* shared_code); 33 bool CodeSizeOKForOSR(Code* shared_code);
35 34
36 Isolate* isolate_; 35 Isolate* isolate_;
37 36
38 bool any_ic_changed_; 37 bool any_ic_changed_;
39 }; 38 };
40 39
41 } // namespace internal 40 } // namespace internal
42 } // namespace v8 41 } // namespace v8
43 42
44 #endif // V8_RUNTIME_PROFILER_H_ 43 #endif // V8_RUNTIME_PROFILER_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/runtime-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698