Lines Matching defs:script
2971 Handle<Object> script = Handle<Object>(fun->shared()->script(), isolate);
2972 if (!script->IsScript()) return isolate->heap()->undefined_value();
2974 return *Script::GetWrapper(Handle<Script>::cast(script));
3096 target_shared->set_script(source_shared->script());
11931 if (shared_info->script() == isolate->heap()->undefined_value()) {
11944 // Currently it takes too much time to find nested scopes due to script
11980 Handle<Script> script(Script::cast(shared_info->script()));
11987 CompilationInfoWithZone info(script);
12730 // Changes the state of a break point in a script and returns source position
12733 // args[0]: script to set break point in
12734 // args[1]: number: break source position (within the script source)
12752 // Get the script from the script wrapper.
12754 Handle<Script> script(Script::cast(wrapper->value()));
12757 if (!isolate->debug()->SetBreakPointForScript(script, break_point_object_arg,
13057 // Fill the script objects.
13060 // Convert the script objects to proper JS objects.
13062 Handle<Script> script = Handle<Script>(Script::cast(instances->get(i)));
13063 // Get the script wrapper in a local handle before calling GetScriptWrapper,
13065 // instances->set(i, *GetScriptWrapper(script))
13068 Handle<JSObject> wrapper = Script::GetWrapper(script);
13300 // Patches script source (should be called upon BeforeCompile event).
13309 Handle<Script> script(Script::cast(script_wrapper->value()));
13311 int compilation_state = script->compilation_state();
13312 RUNTIME_ASSERT(compilation_state == Script::COMPILATION_STATE_INITIAL);
13313 script->set_source(*source);
13367 Script* script,
13380 if (shared->script() != script) {
13392 // For a script finds all SharedFunctionInfo's in the heap that points
13393 // to this script. Returns JSArray of SharedFunctionInfo wrapped
13402 Handle<Script> script = Handle<Script>(Script::cast(script_value->value()));
13412 Script* scr = *script;
13419 Script* scr = *script;
13433 // For a script calculates compilation information about all its functions.
13434 // The script source is explicitly specified by the second argument.
13435 // The source of the actual script is not used, however it is important that
13436 // all generated code keeps references to this particular instance of script.
13439 // with the function itself going first. The root function is a script function.
13444 CONVERT_ARG_CHECKED(JSValue, script, 0);
13447 RUNTIME_ASSERT(script->value()->IsScript());
13448 Handle<Script> script_handle = Handle<Script>(Script::cast(script->value()));
13457 // Changes the source of the script to a new_source.
13459 // the script with its original source and sends notification to debugger.
13469 Handle<Script> original_script(Script::cast(original_script_value->value()));
13475 Handle<Script> script_handle = Handle<Script>::cast(old_script);
13476 return *Script::GetWrapper(script_handle);
13509 // Connects SharedFunctionInfo to another script.
13521 Script* script = Script::cast(JSValue::cast(*script_object)->value());
13522 script_object = Handle<Object>(script, isolate);
13556 // to script source change. Text change is described in second parameter as
14487 // Finds the script object from the script data. NOTE: This operation uses
14495 // Scan the heap for Script objects to find the script with the requested
14496 // script data.
14497 Handle<Script> script;
14502 while (script.is_null() && ((obj = iterator.next()) != NULL)) {
14503 // If a script is found check if it has the script data requested.
14505 if (Script::cast(obj)->name()->IsString()) {
14506 if (String::cast(Script::cast(obj)->name())->Equals(*script_name)) {
14507 script = Handle<Script>(Script::cast(obj));
14513 // If no script with the requested script data is found return undefined.
14514 if (script.is_null()) return factory->undefined_value();
14516 // Return the script found.
14517 return Script::GetWrapper(script);
14521 // Get the script object from script data. NOTE: Regarding performance
14523 // args[0]: script data for the script to find the source for
14531 // Find the requested script.
14770 return message->script();