Home | History | Annotate | Download | only in src

Lines Matching refs:Script

337 MaybeLocal<Script> Shell::CompileString(
344 return source_type == SCRIPT
362 MaybeLocal<Script> result =
363 source_type == SCRIPT
385 Local<Script> script;
387 source_type).ToLocal(&script)) {
392 maybe_result = script->Run(realm);
608 Local<UnboundScript> script;
610 .ToLocal(&script)) {
616 if (!script->BindToCurrentContext()->Run(realm).ToLocal(&result)) {
790 String::Utf8Value script(args[0]);
791 if (!*script) {
792 Throw(args.GetIsolate(), "Can't get worker script");
795 worker->StartExecuteInThread(*script);
1090 // Run the d8 shell utility script in the utility context
1104 Local<Script> script =
1105 Script::Compile(utility_context, source, &origin).ToLocalChecked();
1106 script->Run(utility_context).ToLocalChecked();
1107 // Mark the d8 shell script as native to avoid it showing up as normal source
1109 i::Handle<i::Object> compiled_script = Utils::OpenHandle(*script);
1110 i::Handle<i::Script> script_object = compiled_script->IsJSFunction()
1111 ? i::Handle<i::Script>(i::Script::cast(
1112 i::JSFunction::cast(*compiled_script)->shared()->script()))
1113 : i::Handle<i::Script>(i::Script::cast(
1114 i::SharedFunctionInfo::cast(*compiled_script)->script()));
1115 script_object->set_type(i::Script::TYPE_EXTENSION);
1504 Shell::SourceType source_type = Shell::SCRIPT;
1748 void Worker::StartExecuteInThread(const char* script) {
1750 script_ = i::StrDup(script);
1816 // First run the script
2016 // Not a flag, so it must be a script to execute.
2524 // Run interactive shell if explicitly requested or if no script has been