Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index bded80b48f0e1a43f1293ba1996423a33541ad15..146f153ea1c127340ed686ec6195016e4bbf08e8 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -1871,7 +1871,7 @@ bool Heap::CreateInitialMaps() { |
AllocateMap(FIXED_ARRAY_TYPE, kVariableSizeSentinel); |
if (!maybe_obj->ToObject(&obj)) return false; |
} |
- set_serialized_scope_info_map(Map::cast(obj)); |
+ set_scope_info_map(Map::cast(obj)); |
{ MaybeObject* maybe_obj = AllocateMap(HEAP_NUMBER_TYPE, HeapNumber::kSize); |
if (!maybe_obj->ToObject(&obj)) return false; |
@@ -2646,7 +2646,7 @@ MaybeObject* Heap::AllocateSharedFunctionInfo(Object* name) { |
share->set_name(name); |
Code* illegal = isolate_->builtins()->builtin(Builtins::kIllegal); |
share->set_code(illegal); |
- share->set_scope_info(SerializedScopeInfo::Empty()); |
+ share->set_scope_info(ScopeInfo::Empty()); |
Code* construct_stub = |
isolate_->builtins()->builtin(Builtins::kJSConstructStubGeneric); |
share->set_construct_stub(construct_stub); |
@@ -4394,10 +4394,10 @@ MaybeObject* Heap::AllocateWithContext(JSFunction* function, |
MaybeObject* Heap::AllocateBlockContext(JSFunction* function, |
Context* previous, |
- SerializedScopeInfo* scope_info) { |
+ ScopeInfo* scope_info) { |
Object* result; |
{ MaybeObject* maybe_result = |
- AllocateFixedArrayWithHoles(scope_info->NumberOfContextSlots()); |
+ AllocateFixedArrayWithHoles(scope_info->ContextLength()); |
if (!maybe_result->ToObject(&result)) return maybe_result; |
} |
Context* context = reinterpret_cast<Context*>(result); |
@@ -4410,14 +4410,13 @@ MaybeObject* Heap::AllocateBlockContext(JSFunction* function, |
} |
-MaybeObject* Heap::AllocateSerializedScopeInfo(int length) { |
+MaybeObject* Heap::AllocateScopeInfo(int length) { |
Object* result; |
{ MaybeObject* maybe_result = AllocateFixedArray(length, TENURED); |
if (!maybe_result->ToObject(&result)) return maybe_result; |
} |
- SerializedScopeInfo* scope_info = |
- reinterpret_cast<SerializedScopeInfo*>(result); |
- scope_info->set_map(serialized_scope_info_map()); |
+ ScopeInfo* scope_info = reinterpret_cast<ScopeInfo*>(result); |
+ scope_info->set_map(scope_info_map()); |
return scope_info; |
} |