Index: src/v8threads.cc |
diff --git a/src/v8threads.cc b/src/v8threads.cc |
index 33b620d8eabe29252e17d4e6491a2251d1e2febb..17277a9c50c883f54be9e03608ed3b09fdb0ee5e 100644 |
--- a/src/v8threads.cc |
+++ b/src/v8threads.cc |
@@ -227,7 +227,7 @@ void ThreadManager::Unlock() { |
} |
-static int ArchiveSpacePerThread() { |
+static int ArchiveSpacePerThread(Isolate* isolate) { |
return HandleScopeImplementer::ArchiveSpacePerThread() + |
Isolate::ArchiveSpacePerThread() + |
#ifdef ENABLE_DEBUGGER_SUPPORT |
@@ -236,7 +236,7 @@ static int ArchiveSpacePerThread() { |
StackGuard::ArchiveSpacePerThread() + |
RegExpStack::ArchiveSpacePerThread() + |
Bootstrapper::ArchiveSpacePerThread() + |
- Relocatable::ArchiveSpacePerThread(); |
+ Relocatable::ArchiveSpacePerThread(isolate); |
} |
@@ -256,7 +256,7 @@ ThreadState::~ThreadState() { |
void ThreadState::AllocateSpace() { |
- data_ = NewArray<char>(ArchiveSpacePerThread()); |
+ data_ = NewArray<char>(ArchiveSpacePerThread(Isolate::Current())); |
} |
@@ -396,7 +396,7 @@ void ThreadManager::Iterate(ObjectVisitor* v) { |
char* data = state->data(); |
data = HandleScopeImplementer::Iterate(v, data); |
data = isolate_->Iterate(v, data); |
- data = Relocatable::Iterate(v, data); |
+ data = Relocatable::Iterate(Isolate::Current(), v, data); |
} |
} |