summaryrefslogtreecommitdiff
path: root/chromium/v8/src/isolate.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/v8/src/isolate.h')
-rw-r--r--chromium/v8/src/isolate.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/chromium/v8/src/isolate.h b/chromium/v8/src/isolate.h
index 401505afdda..c0083177373 100644
--- a/chromium/v8/src/isolate.h
+++ b/chromium/v8/src/isolate.h
@@ -661,9 +661,9 @@ class Isolate {
}
inline Address* handler_address() { return &thread_local_top_.handler_; }
- // Bottom JS entry.
- Address js_entry_sp() {
- return thread_local_top_.js_entry_sp_;
+ // Bottom JS entry (see StackTracer::Trace in sampler.cc).
+ static Address js_entry_sp(ThreadLocalTop* thread) {
+ return thread->js_entry_sp_;
}
inline Address* js_entry_sp_address() {
return &thread_local_top_.js_entry_sp_;
@@ -922,8 +922,6 @@ class Isolate {
GlobalHandles* global_handles() { return global_handles_; }
- EternalHandles* eternal_handles() { return eternal_handles_; }
-
ThreadManager* thread_manager() { return thread_manager_; }
ContextSwitcher* context_switcher() { return context_switcher_; }
@@ -1062,6 +1060,13 @@ class Isolate {
thread_local_top_.top_lookup_result_ = top;
}
+ bool context_exit_happened() {
+ return context_exit_happened_;
+ }
+ void set_context_exit_happened(bool context_exit_happened) {
+ context_exit_happened_ = context_exit_happened;
+ }
+
bool initialized_from_snapshot() { return initialized_from_snapshot_; }
double time_millis_since_init() {
@@ -1290,7 +1295,6 @@ class Isolate {
InnerPointerToCodeCache* inner_pointer_to_code_cache_;
ConsStringIteratorOp* write_iterator_;
GlobalHandles* global_handles_;
- EternalHandles* eternal_handles_;
ContextSwitcher* context_switcher_;
ThreadManager* thread_manager_;
RuntimeState runtime_state_;
@@ -1310,6 +1314,10 @@ class Isolate {
unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_;
CodeStubInterfaceDescriptor* code_stub_interface_descriptors_;
+ // The garbage collector should be a little more aggressive when it knows
+ // that a context was recently exited.
+ bool context_exit_happened_;
+
// True if this isolate was initialized from a snapshot.
bool initialized_from_snapshot_;