Index: src/api.cc |
=================================================================== |
--- src/api.cc (revision 2968) |
+++ src/api.cc (working copy) |
@@ -71,7 +71,7 @@ |
thread_local.DecrementCallDepth(); \ |
if (has_pending_exception) { \ |
if (thread_local.CallDepthIsZero() && i::Top::is_out_of_memory()) { \ |
- if (!thread_local.IgnoreOutOfMemory()) \ |
+ if (!thread_local.ignore_out_of_memory()) \ |
i::V8::FatalProcessOutOfMemory(NULL); \ |
} \ |
bool call_depth_is_zero = thread_local.CallDepthIsZero(); \ |
@@ -3187,7 +3187,7 @@ |
void V8::IgnoreOutOfMemoryException() { |
- thread_local.SetIgnoreOutOfMemory(true); |
+ thread_local.set_ignore_out_of_memory(true); |
} |
@@ -3669,6 +3669,11 @@ |
} |
+void HandleScopeImplementer::FreeThreadResources() { |
+ thread_local.Free(); |
+} |
+ |
+ |
char* HandleScopeImplementer::ArchiveThread(char* storage) { |
return thread_local.ArchiveThreadHelper(storage); |
} |
@@ -3706,14 +3711,14 @@ |
void HandleScopeImplementer::IterateThis(ObjectVisitor* v) { |
// Iterate over all handles in the blocks except for the last. |
- for (int i = Blocks()->length() - 2; i >= 0; --i) { |
- Object** block = Blocks()->at(i); |
+ for (int i = blocks()->length() - 2; i >= 0; --i) { |
+ Object** block = blocks()->at(i); |
v->VisitPointers(block, &block[kHandleBlockSize]); |
} |
// Iterate over live handles in the last block (if any). |
- if (!Blocks()->is_empty()) { |
- v->VisitPointers(Blocks()->last(), handle_scope_data_.next); |
+ if (!blocks()->is_empty()) { |
+ v->VisitPointers(blocks()->last(), handle_scope_data_.next); |
} |
if (!saved_contexts_.is_empty()) { |