| Index: src/profile-generator.cc
|
| diff --git a/src/profile-generator.cc b/src/profile-generator.cc
|
| index 57ff6610e87aabe40296c71bd63163b6b443e71a..613a480b3d9ed4432004a72703ae4d271a1aeefc 100644
|
| --- a/src/profile-generator.cc
|
| +++ b/src/profile-generator.cc
|
| @@ -1555,8 +1555,9 @@ void HeapSnapshotGenerator::ExtractClosureReferences(JSObject* js_obj,
|
| JSFunction* func = JSFunction::cast(js_obj);
|
| Context* context = func->context();
|
| ZoneScope zscope(DELETE_ON_EXIT);
|
| + // TODO(peter.rybin): make sure the function scope is really normal.
|
| ScopeInfo<ZoneListAllocationPolicy> scope_info(
|
| - context->closure()->shared()->code());
|
| + context->closure()->shared()->code(), FUNCTION_SCOPE_NORMAL);
|
| int locals_number = scope_info.NumberOfLocals();
|
| for (int i = 0; i < locals_number; ++i) {
|
| String* local_name = *scope_info.LocalName(i);
|
|
|