Index: src/isolate.h |
diff --git a/src/isolate.h b/src/isolate.h |
index a0aecd8b275bc96c307d0e75d6700e59bb4f8b6a..52177f40816761389c89b68908320884d336eddd 100644 |
--- a/src/isolate.h |
+++ b/src/isolate.h |
@@ -1121,6 +1121,8 @@ class Isolate { |
function_entry_hook_ = function_entry_hook; |
} |
+ void* stress_deopt_count_address() { return &stress_deopt_count_; } |
+ |
private: |
Isolate(); |
@@ -1356,6 +1358,9 @@ class Isolate { |
SweeperThread** sweeper_thread_; |
CallbackTable* callback_table_; |
+ // Counts deopt points if deopt_every_n_times is enabled. |
+ unsigned int stress_deopt_count_; |
+ |
friend class ExecutionAccess; |
friend class HandleScopeImplementer; |
friend class IsolateInitializer; |