Index: src/profile-generator.cc |
=================================================================== |
--- src/profile-generator.cc (revision 5059) |
+++ src/profile-generator.cc (working copy) |
@@ -1555,12 +1555,13 @@ |
JSFunction* func = JSFunction::cast(js_obj); |
Context* context = func->context(); |
ZoneScope zscope(DELETE_ON_EXIT); |
- Object* scope_info = context->closure()->shared()->scope_info(); |
- ScopeInfo<ZoneListAllocationPolicy> zone_scope_info(scope_info); |
+ SerializedScopeInfo* serialized_scope_info = |
+ context->closure()->shared()->scope_info(); |
+ ScopeInfo<ZoneListAllocationPolicy> zone_scope_info(serialized_scope_info); |
int locals_number = zone_scope_info.NumberOfLocals(); |
for (int i = 0; i < locals_number; ++i) { |
String* local_name = *zone_scope_info.LocalName(i); |
- int idx = ScopeInfo<>::ContextSlotIndex(scope_info, local_name, NULL); |
+ int idx = serialized_scope_info->ContextSlotIndex(local_name, NULL); |
if (idx >= 0 && idx < context->length()) { |
snapshot_->SetClosureReference(entry, local_name, context->get(idx)); |
} |