Index: src/objects-visiting-inl.h |
diff --git a/src/objects-visiting-inl.h b/src/objects-visiting-inl.h |
index f2b0e243e3e52b5be31c61f270abd9300d78c069..856ae06b7b133bb126371b40fbc42b9eed43b176 100644 |
--- a/src/objects-visiting-inl.h |
+++ b/src/objects-visiting-inl.h |
@@ -56,7 +56,7 @@ void StaticNewSpaceVisitor<StaticVisitor>::Initialize() { |
table_.Register(kVisitFixedDoubleArray, &VisitFixedDoubleArray); |
- table_.Register(kVisitGlobalContext, |
+ table_.Register(kVisitNativeContext, |
&FixedBodyVisitor<StaticVisitor, |
Context::ScavengeBodyDescriptor, |
int>::Visit); |
@@ -117,7 +117,7 @@ void StaticMarkingVisitor<StaticVisitor>::Initialize() { |
table_.Register(kVisitFixedDoubleArray, &DataObjectVisitor::Visit); |
- table_.Register(kVisitGlobalContext, &VisitGlobalContext); |
+ table_.Register(kVisitNativeContext, &VisitNativeContext); |
table_.Register(kVisitByteArray, &DataObjectVisitor::Visit); |
@@ -229,7 +229,7 @@ void StaticMarkingVisitor<StaticVisitor>::VisitCodeTarget( |
template<typename StaticVisitor> |
-void StaticMarkingVisitor<StaticVisitor>::VisitGlobalContext( |
+void StaticMarkingVisitor<StaticVisitor>::VisitNativeContext( |
Map* map, HeapObject* object) { |
FixedBodyVisitor<StaticVisitor, |
Context::MarkCompactBodyDescriptor, |
@@ -237,7 +237,7 @@ void StaticMarkingVisitor<StaticVisitor>::VisitGlobalContext( |
MarkCompactCollector* collector = map->GetHeap()->mark_compact_collector(); |
for (int idx = Context::FIRST_WEAK_SLOT; |
- idx < Context::GLOBAL_CONTEXT_SLOTS; |
+ idx < Context::NATIVE_CONTEXT_SLOTS; |
++idx) { |
Object** slot = |
HeapObject::RawField(object, FixedArray::OffsetOfElementAt(idx)); |