Revision f230a1cf deps/v8/src/scopeinfo.cc

View differences:

deps/v8/src/scopeinfo.cc
363 363
}
364 364

  
365 365

  
366
bool ScopeInfo::CopyContextLocalsToScopeObject(
367
    Isolate* isolate,
368
    Handle<Context> context,
369
    Handle<JSObject> scope_object) {
370
  int local_count = ContextLocalCount();
366
bool ScopeInfo::CopyContextLocalsToScopeObject(Handle<ScopeInfo> scope_info,
367
                                               Handle<Context> context,
368
                                               Handle<JSObject> scope_object) {
369
  Isolate* isolate = scope_info->GetIsolate();
370
  int local_count = scope_info->ContextLocalCount();
371 371
  if (local_count == 0) return true;
372 372
  // Fill all context locals to the context extension.
373
  int start = ContextLocalNameEntriesIndex();
373
  int start = scope_info->ContextLocalNameEntriesIndex();
374 374
  int end = start + local_count;
375 375
  for (int i = start; i < end; ++i) {
376 376
    int context_index = Context::MIN_CONTEXT_SLOTS + i - start;
......
378 378
        isolate,
379 379
        SetProperty(isolate,
380 380
                    scope_object,
381
                    Handle<String>(String::cast(get(i))),
381
                    Handle<String>(String::cast(scope_info->get(i))),
382 382
                    Handle<Object>(context->get(context_index), isolate),
383 383
                    ::NONE,
384 384
                    kNonStrictMode),

Also available in: Unified diff