Lines Matching refs:Script
2012 Handle<Object> script = Handle<Object>(fun->shared()->script(), isolate);
2013 if (!script->IsScript()) return isolate->heap()->undefined_value();
2015 return *GetScriptWrapper(Handle<Script>::cast(script));
10936 if (shared_info->script() == isolate->heap()->undefined_value()) {
10970 Handle<Script> script(Script::cast(shared_info->script()));
10977 CompilationInfo info(script);
11433 Handle<Script> script,
11436 // script. The inner most SharedFunctionInfo containing the source position
11456 if (shared->script() == *script) {
11457 // If the SharedFunctionInfo found has the requested script data and
11515 // Changes the state of a break point in a script and returns source position
11518 // args[0]: script to set break point in
11519 // args[1]: number: break source position (within the script source)
11529 // Get the script from the script wrapper.
11531 Handle<Script> script(Script::cast(wrapper->value()));
11534 isolate, script, source_position);
11537 // Find position within function. The script position might be before the
11993 // Fill the script objects.
11996 // Convert the script objects to proper JS objects.
11998 Handle<Script> script = Handle<Script>(Script::cast(instances->get(i)));
11999 // Get the script wrapper in a local handle before calling GetScriptWrapper,
12001 // instances->set(i, *GetScriptWrapper(script))
12004 Handle<JSValue> wrapper = GetScriptWrapper(script);
12241 // Patches script source (should be called upon BeforeCompile event).
12250 Handle<Script> script(Script::cast(script_wrapper->value()));
12252 int compilation_state = Smi::cast(script->compilation_state())->value();
12253 RUNTIME_ASSERT(compilation_state == Script::COMPILATION_STATE_INITIAL);
12254 script->set_source(*source);
12309 Script* script,
12322 if (shared->script() != script) {
12333 // For a script finds all SharedFunctionInfo's in the heap that points
12334 // to this script. Returns JSArray of SharedFunctionInfo wrapped
12343 Handle<Script> script = Handle<Script>(Script::cast(script_value->value()));
12354 Script* scr = *script;
12363 Script* scr = *script;
12376 // For a script calculates compilation information about all its functions.
12377 // The script source is explicitly specified by the second argument.
12378 // The source of the actual script is not used, however it is important that
12379 // all generated code keeps references to this particular instance of script.
12382 // with the function itself going first. The root function is a script function.
12386 CONVERT_ARG_CHECKED(JSValue, script, 0);
12388 Handle<Script> script_handle = Handle<Script>(Script::cast(script->value()));
12399 // Changes the source of the script to a new_source.
12401 // the script with its original source and sends notification to debugger.
12410 Handle<Script> original_script(Script::cast(original_script_value->value()));
12417 Handle<Script> script_handle(Script::cast(old_script));
12443 // Connects SharedFunctionInfo to another script.
12454 Script* script = Script::cast(JSValue::cast(*script_object)->value());
12455 script_object = Handle<Object>(script, isolate);
12486 // to script source change. Text change is described in second parameter as
12835 // Finds the script object from the script data. NOTE: This operation uses
12843 // Scan the heap for Script objects to find the script with the requested
12844 // script data.
12845 Handle<Script> script;
12850 while (script.is_null() && ((obj = iterator.next()) != NULL)) {
12851 // If a script is found check if it has the script data requested.
12853 if (Script::cast(obj)->name()->IsString()) {
12854 if (String::cast(Script::cast(obj)->name())->Equals(*script_name)) {
12855 script = Handle<Script>(Script::cast(obj));
12861 // If no script with the requested script data is found return undefined.
12862 if (script.is_null()) return FACTORY->undefined_value();
12864 // Return the script found.
12865 return GetScriptWrapper(script);
12869 // Get the script object from script data. NOTE: Regarding performance
12871 // args[0]: script data for the script to find the source for
12879 // Find the requested script.
13146 return message->script();