libraries/v8/runtime.cc
static Handle<JSObject> MaterializeBlockScope(
    Isolate* isolate,
    Handle<Context> context) {
  ASSERT(context->IsBlockContext());
  Handle<ScopeInfo> scope_info(ScopeInfo::cast(context->extension()));

  // Allocate and initialize a JSObject with all the arguments, stack locals
  // heap locals and extension properties of the debugged function.
  Handle<JSObject> block_scope =
      isolate->factory()->NewJSObject(isolate->object_function());

  // Fill all context locals.
  if (!ScopeInfo::CopyContextLocalsToScopeObject(
          scope_info, context, block_scope)) {
    return Handle<JSObject>();
  }

  return block_scope;
}
// Create a plain JSObject which materializes the block scope for the specified
// block context.
Create a plain JSObject which materializes the block scope for the specified
block context.
Create a plain JSObject which materializes the block scope for the specified block context .
static Handle<JSObject> MaterializeBlockScope(
    Isolate* isolate,
    Handle<Context> context) {
  ASSERT(context->IsBlockContext());
  Handle<ScopeInfo> scope_info(ScopeInfo::cast(context->extension()));
  Handle<JSObject> block_scope =
      isolate->factory()->NewJSObject(isolate->object_function());
  if (!ScopeInfo::CopyContextLocalsToScopeObject(
          scope_info, context, block_scope)) {
    return Handle<JSObject>();
  }
  return block_scope;
}
static Handle < JSObject > MaterializeBlockScope ( Isolate * isolate , Handle < Context > context ) { ASSERT ( context -> IsBlockContext ( ) ) ; Handle < ScopeInfo > scope_info ( ScopeInfo :: cast ( context -> extension ( ) ) ) ; Handle < JSObject > block_scope = isolate -> factory ( ) -> NewJSObject ( isolate -> object_function ( ) ) ; if ( ! ScopeInfo :: CopyContextLocalsToScopeObject ( scope_info , context , block_scope ) ) { return Handle < JSObject > ( ) ; } return block_scope ; }
Create a plain JSObject which materializes the block scope for the specified
block context.
Create a plain JSObject which materializes the block scope for the specified block context .
// Allocate and initialize a JSObject with all the arguments, stack locals // heap locals and extension properties of the debugged function. // Fill all context locals.