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

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

Issue 358363002: Move platform abstraction to base library (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 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 | Annotate | Revision Log
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
12 namespace base {
13 class Semaphore;
14 }
15
11 namespace internal { 16 namespace internal {
12 17
13 class Isolate; 18 class Isolate;
14 class JSFunction; 19 class JSFunction;
15 class Object; 20 class Object;
16 class Semaphore;
17 21
18 class RuntimeProfiler { 22 class RuntimeProfiler {
19 public: 23 public:
20 explicit RuntimeProfiler(Isolate* isolate); 24 explicit RuntimeProfiler(Isolate* isolate);
21 25
22 void OptimizeNow(); 26 void OptimizeNow();
23 27
24 void NotifyICChanged() { any_ic_changed_ = true; } 28 void NotifyICChanged() { any_ic_changed_ = true; }
25 29
26 void AttemptOnStackReplacement(JSFunction* function, int nesting_levels = 1); 30 void AttemptOnStackReplacement(JSFunction* function, int nesting_levels = 1);
27 31
28 private: 32 private:
29 void Optimize(JSFunction* function, const char* reason); 33 void Optimize(JSFunction* function, const char* reason);
30 34
31 bool CodeSizeOKForOSR(Code* shared_code); 35 bool CodeSizeOKForOSR(Code* shared_code);
32 36
33 Isolate* isolate_; 37 Isolate* isolate_;
34 38
35 bool any_ic_changed_; 39 bool any_ic_changed_;
36 }; 40 };
37 41
38 } } // namespace v8::internal 42 } } // namespace v8::internal
39 43
40 #endif // V8_RUNTIME_PROFILER_H_ 44 #endif // V8_RUNTIME_PROFILER_H_
OLDNEW
« src/base/macros.h ('K') | « src/runtime.cc ('k') | src/runtime-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698