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

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

Issue 1707693003: [Interpreter] Enable runtime profiler support for Ignition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Really fix --debug-code Created 4 years, 10 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/ppc/builtins-ppc.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 11
12 namespace base { 12 namespace base {
13 class Semaphore; 13 class Semaphore;
14 } 14 }
15 15
16 namespace internal { 16 namespace internal {
17 17
18 class Isolate; 18 class Isolate;
19 class JSFunction; 19 class JSFunction;
20 class Object; 20 class Object;
21 21
22 class RuntimeProfiler { 22 class RuntimeProfiler {
23 public: 23 public:
24 explicit RuntimeProfiler(Isolate* isolate); 24 explicit RuntimeProfiler(Isolate* isolate);
25 25
26 void OptimizeNow(); 26 void MarkCandidatesForOptimization();
27 27
28 void NotifyICChanged() { any_ic_changed_ = true; } 28 void NotifyICChanged() { any_ic_changed_ = true; }
29 29
30 void AttemptOnStackReplacement(JSFunction* function, int nesting_levels = 1); 30 void AttemptOnStackReplacement(JSFunction* function, int nesting_levels = 1);
31 31
32 private: 32 private:
33 void MaybeOptimizeFullCodegen(JSFunction* function, int frame_count,
34 bool frame_optimized);
35 void MaybeOptimizeIgnition(JSFunction* function, bool frame_optimized);
33 void Optimize(JSFunction* function, const char* reason); 36 void Optimize(JSFunction* function, const char* reason);
34 37
35 bool CodeSizeOKForOSR(Code* shared_code); 38 bool CodeSizeOKForOSR(Code* shared_code);
36 39
37 Isolate* isolate_; 40 Isolate* isolate_;
38 41
39 bool any_ic_changed_; 42 bool any_ic_changed_;
40 }; 43 };
41 44
42 } // namespace internal 45 } // namespace internal
43 } // namespace v8 46 } // namespace v8
44 47
45 #endif // V8_RUNTIME_PROFILER_H_ 48 #endif // V8_RUNTIME_PROFILER_H_
OLDNEW
« no previous file with comments | « src/ppc/builtins-ppc.cc ('k') | src/runtime-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698