Index: src/isolate.h |
diff --git a/src/isolate.h b/src/isolate.h |
old mode 100644 |
new mode 100755 |
index 76a5a41e70ab0b32502d10a5c9ed37ad22789985..d71ebcf0ff6b1d424393d3cf72e2620802980c50 |
--- a/src/isolate.h |
+++ b/src/isolate.h |
@@ -549,7 +549,7 @@ class Isolate { |
} |
Context** context_address() { return &thread_local_top_.context_; } |
- SaveContext* save_context() {return thread_local_top_.save_context_; } |
+ SaveContext* save_context() { return thread_local_top_.save_context_; } |
void set_save_context(SaveContext* save) { |
thread_local_top_.save_context_ = save; |
} |
@@ -1053,6 +1053,8 @@ class Isolate { |
context_exit_happened_ = context_exit_happened; |
} |
+ bool initialized_from_snapshot() { return initialized_from_snapshot_; } |
+ |
double time_millis_since_init() { |
return OS::TimeCurrentMillis() - time_millis_at_init_; |
} |
@@ -1110,6 +1112,11 @@ class Isolate { |
HStatistics* GetHStatistics(); |
HTracer* GetHTracer(); |
+ FunctionEntryHook function_entry_hook() { return function_entry_hook_; } |
+ void set_function_entry_hook(FunctionEntryHook function_entry_hook) { |
+ function_entry_hook_ = function_entry_hook; |
+ } |
+ |
private: |
Isolate(); |
@@ -1292,6 +1299,9 @@ class Isolate { |
// that a context was recently exited. |
bool context_exit_happened_; |
+ // True if this isolate was initialized from a snapshot. |
+ bool initialized_from_snapshot_; |
+ |
// Time stamp at initialization. |
double time_millis_at_init_; |
@@ -1315,6 +1325,7 @@ class Isolate { |
#endif |
CpuProfiler* cpu_profiler_; |
HeapProfiler* heap_profiler_; |
+ FunctionEntryHook function_entry_hook_; |
#define GLOBAL_BACKING_STORE(type, name, initialvalue) \ |
type name##_; |