Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2331)

Unified Diff: src/v8threads.cc

Issue 2866008: [Isolates] Move contents of Top into Isolate.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: ensure we're synced Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/v8.cc ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/v8threads.cc
===================================================================
--- src/v8threads.cc (revision 4906)
+++ src/v8threads.cc (working copy)
@@ -159,7 +159,7 @@
}
char* from = state->data();
from = isolate->handle_scope_implementer()->RestoreThread(from);
- from = Top::RestoreThread(from);
+ from = isolate->RestoreThread(from);
from = Relocatable::RestoreState(from);
#ifdef ENABLE_DEBUGGER_SUPPORT
from = Debug::RestoreDebug(from);
@@ -194,7 +194,7 @@
static int ArchiveSpacePerThread() {
return HandleScopeImplementer::ArchiveSpacePerThread() +
- Top::ArchiveSpacePerThread() +
+ Isolate::ArchiveSpacePerThread() +
#ifdef ENABLE_DEBUGGER_SUPPORT
Debug::ArchiveSpacePerThread() +
#endif
@@ -291,7 +291,7 @@
// Ensure that data containing GC roots are archived first, and handle them
// in ThreadManager::Iterate(ObjectVisitor*).
to = isolate->handle_scope_implementer()->ArchiveThread(to);
- to = Top::ArchiveThread(to);
+ to = isolate->ArchiveThread(to);
to = Relocatable::ArchiveState(to);
#ifdef ENABLE_DEBUGGER_SUPPORT
to = Debug::ArchiveDebug(to);
@@ -307,7 +307,7 @@
void ThreadManager::FreeThreadResources() {
Isolate* isolate = Isolate::Current();
isolate->handle_scope_implementer()->FreeThreadResources();
- Top::FreeThreadResources();
+ isolate->FreeThreadResources();
#ifdef ENABLE_DEBUGGER_SUPPORT
Debug::FreeThreadResources();
#endif
@@ -329,7 +329,7 @@
state = state->Next()) {
char* data = state->data();
data = HandleScopeImplementer::Iterate(v, data);
- data = Top::Iterate(v, data);
+ data = Isolate::Current()->Iterate(v, data);
data = Relocatable::Iterate(v, data);
}
}
@@ -341,7 +341,7 @@
state = state->Next()) {
char* data = state->data();
data += HandleScopeImplementer::ArchiveSpacePerThread();
- Top::IterateThread(v, data);
+ Isolate::Current()->IterateThread(v, data);
}
}
@@ -352,7 +352,7 @@
state = state->Next()) {
char* data = state->data();
data += HandleScopeImplementer::ArchiveSpacePerThread();
- Top::MarkCompactPrologue(is_compacting, data);
+ Isolate::Current()->MarkCompactPrologue(is_compacting, data);
}
}
@@ -363,7 +363,7 @@
state = state->Next()) {
char* data = state->data();
data += HandleScopeImplementer::ArchiveSpacePerThread();
- Top::MarkCompactEpilogue(is_compacting, data);
+ Isolate::Current()->MarkCompactEpilogue(is_compacting, data);
}
}
@@ -379,7 +379,7 @@
int thread_id = ++last_id_;
ASSERT(thread_id > 0); // see the comment near last_id_ definition.
Thread::SetThreadLocalInt(thread_id_key, thread_id);
- Top::set_thread_id(thread_id);
+ Isolate::Current()->set_thread_id(thread_id);
}
}
« no previous file with comments | « src/v8.cc ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698