libraries/v8/runtime.cc
// Get the script object from script data. NOTE: Regarding performance
// see the NOTE for GetScriptFromScriptData.
// args[0]: script data for the script to find the source for
Get the script object from script data. NOTE: Regarding performance
see the NOTE for GetScriptFromScriptData.
args[0]: script data for the script to find the source for
Get the script object from script data . NOTE : Regarding performance see the NOTE for GetScriptFromScriptData . args [ 0 ] : script data for the script to find the source for
RUNTIME_FUNCTION(MaybeObject*, Runtime_GetScript) {
  HandleScope scope(isolate);
  ASSERT(args.length() == 1);
  CONVERT_ARG_CHECKED(String, script_name, 0);
  Handle<Object> result =
      Runtime_GetScriptFromScriptName(Handle<String>(script_name));
  return *result;
}
RUNTIME_FUNCTION ( MaybeObject * , Runtime_GetScript ) { HandleScope scope ( isolate ) ; ASSERT ( args . length ( ) == 1 ) ; CONVERT_ARG_CHECKED ( String , script_name , 0 ) ; Handle < Object > result = Runtime_GetScriptFromScriptName ( Handle < String > ( script_name ) ) ; return * result ; }
Get the script object from script data.
Get the script object from script data .
// Find the requested script.