Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index bd341e3fbbac39db073cdeb44de58fa4ca45d349..722705f6b770a76788ccfd8ced5e00c86a5cdc84 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -1027,7 +1027,7 @@ bool Heap::PerformGarbageCollection(GarbageCollector collector, |
isolate_->eternal_handles()->PostGarbageCollectionProcessing(this); |
// Update relocatables. |
- Relocatable::PostGarbageCollectionProcessing(); |
+ Relocatable::PostGarbageCollectionProcessing(isolate_); |
if (collector == MARK_COMPACTOR) { |
// Register the amount of external allocated memory. |
@@ -2938,7 +2938,7 @@ MaybeObject* Heap::CreateOddball(const char* to_string, |
{ MaybeObject* maybe_result = Allocate(oddball_map(), OLD_POINTER_SPACE); |
if (!maybe_result->ToObject(&result)) return maybe_result; |
} |
- return Oddball::cast(result)->Initialize(to_string, to_number, kind); |
+ return Oddball::cast(result)->Initialize(this, to_string, to_number, kind); |
} |
@@ -3042,15 +3042,16 @@ bool Heap::CreateInitialObjects() { |
// Finish initializing oddballs after creating the string table. |
{ MaybeObject* maybe_obj = |
- undefined_value()->Initialize("undefined", |
+ undefined_value()->Initialize(this, |
+ "undefined", |
nan_value(), |
Oddball::kUndefined); |
if (!maybe_obj->ToObject(&obj)) return false; |
} |
// Initialize the null_value. |
- { MaybeObject* maybe_obj = |
- null_value()->Initialize("null", Smi::FromInt(0), Oddball::kNull); |
+ { MaybeObject* maybe_obj = null_value()->Initialize( |
+ this, "null", Smi::FromInt(0), Oddball::kNull); |
if (!maybe_obj->ToObject(&obj)) return false; |
} |
@@ -6574,7 +6575,7 @@ void Heap::IterateStrongRoots(ObjectVisitor* v, VisitMode mode) { |
v->Synchronize(VisitorSynchronization::kBootstrapper); |
isolate_->Iterate(v); |
v->Synchronize(VisitorSynchronization::kTop); |
- Relocatable::Iterate(v); |
+ Relocatable::Iterate(isolate_, v); |
v->Synchronize(VisitorSynchronization::kRelocatable); |
#ifdef ENABLE_DEBUGGER_SUPPORT |