summaryrefslogtreecommitdiff
path: root/deps/v8/src/runtime-profiler.h
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-06-09 08:09:42 -0700
committerisaacs <i@izs.me>2012-06-09 08:09:42 -0700
commit940a6863ead6622e5439e07be631359c31e63b68 (patch)
treec5aa25c048b8f0fd622d4c42fa134ca645fcbcd7 /deps/v8/src/runtime-profiler.h
parent569acea0eefed2c7da7453b7dcef6ff47491ca1c (diff)
downloadnode-new-940a6863ead6622e5439e07be631359c31e63b68.tar.gz
Roll V8 back to 3.9.24.31
Diffstat (limited to 'deps/v8/src/runtime-profiler.h')
-rw-r--r--deps/v8/src/runtime-profiler.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/deps/v8/src/runtime-profiler.h b/deps/v8/src/runtime-profiler.h
index ab6cb378ea..e3388492cb 100644
--- a/deps/v8/src/runtime-profiler.h
+++ b/deps/v8/src/runtime-profiler.h
@@ -43,7 +43,7 @@ class RuntimeProfiler {
public:
explicit RuntimeProfiler(Isolate* isolate);
- static void GlobalSetUp();
+ static void GlobalSetup();
static inline bool IsEnabled() {
ASSERT(has_been_globally_set_up_);
@@ -63,6 +63,13 @@ class RuntimeProfiler {
void NotifyICChanged() { any_ic_changed_ = true; }
+ void NotifyCodeGenerated(int generated_code_size) {
+ if (FLAG_watch_ic_patching) {
+ code_generated_ = true;
+ total_code_generated_ += generated_code_size;
+ }
+ }
+
// Rate limiting support.
// VM thread interface.
@@ -123,6 +130,7 @@ class RuntimeProfiler {
bool any_ic_changed_;
bool code_generated_;
+ int total_code_generated_;
// Possible state values:
// -1 => the profiler thread is waiting on the semaphore