| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index 66aae6c58175035aeec329e3779466197aa90258..5780016fd742c4537a07732b03a61adfad06eac0 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -1039,9 +1039,9 @@ void Heap::UpdateNewSpaceReferencesInExternalStringTable(
|
|
|
| class NewSpaceScavenger : public StaticNewSpaceVisitor<NewSpaceScavenger> {
|
| public:
|
| - static inline void VisitPointer(Object** p) {
|
| + static inline void VisitPointer(Heap* heap, Object** p) {
|
| Object* object = *p;
|
| - if (!HEAP->InNewSpace(object)) return;
|
| + if (!heap->InNewSpace(object)) return;
|
| Heap::ScavengeObject(reinterpret_cast<HeapObject**>(p),
|
| reinterpret_cast<HeapObject*>(object));
|
| }
|
| @@ -2787,7 +2787,7 @@ Object* Heap::AllocateGlobalObject(JSFunction* constructor) {
|
|
|
| // Setup the global object as a normalized object.
|
| global->set_map(new_map);
|
| - global->map()->set_instance_descriptors(HEAP->empty_descriptor_array());
|
| + global->map()->set_instance_descriptors(empty_descriptor_array());
|
| global->set_properties(dictionary);
|
|
|
| // Make sure result is a global object with properties in dictionary.
|
|
|