Index: src/isolate.h |
diff --git a/src/isolate.h b/src/isolate.h |
index 28bc44b1705df27f077ec70363952f691248fe59..bc78c6ddbb305204ff8e34cb194ae97f3f93d35e 100644 |
--- a/src/isolate.h |
+++ b/src/isolate.h |
@@ -529,6 +529,7 @@ class Isolate { |
// Access to top context (where the current function object was created). |
Context* context() { return thread_local_top_.context_; } |
void set_context(Context* context) { |
+ ASSERT(context == NULL || context->IsContext()); |
thread_local_top_.context_ = context; |
} |
Context** context_address() { return &thread_local_top_.context_; } |
@@ -1003,6 +1004,7 @@ class Isolate { |
void Insert(PerIsolateThreadData* data); |
void Remove(Isolate* isolate, ThreadId thread_id); |
void Remove(PerIsolateThreadData* data); |
+ void RemoveAllThreads(Isolate* isolate); |
private: |
PerIsolateThreadData* list_; |