• Home
  • Raw
  • Download

Lines Matching full:script

59   // Do not support re-parsing top-level function of a wrapped script.  in ParseInfo()
61 // wrapped script at all. in ParseInfo()
62 DCHECK_IMPLIES(is_toplevel(), !Script::cast(shared->script())->is_wrapped()); in ParseInfo()
78 Handle<Script> script(Script::cast(shared->script()), isolate); in ParseInfo() local
79 set_script(script); in ParseInfo()
92 : script->IsUserJavaScript())); in ParseInfo()
95 ParseInfo::ParseInfo(Isolate* isolate, Handle<Script> script) in ParseInfo() argument
97 SetScriptForToplevelCompile(isolate, script); in ParseInfo()
99 script->IsUserJavaScript()); in ParseInfo()
134 Handle<Script> ParseInfo::CreateScript(Isolate* isolate, Handle<String> source, in CreateScript()
137 // Create a script object describing the script to be compiled. in CreateScript()
138 Handle<Script> script; in CreateScript() local
140 script = isolate->factory()->NewScript(source); in CreateScript()
142 script = isolate->factory()->NewScriptWithId(source, script_id_); in CreateScript()
145 Script::InitLineEnds(script); in CreateScript()
149 script->set_type(Script::TYPE_NATIVE); in CreateScript()
152 script->set_type(Script::TYPE_EXTENSION); in CreateScript()
155 script->set_type(Script::TYPE_INSPECTOR); in CreateScript()
160 script->set_origin_options(origin_options); in CreateScript()
162 SetScriptForToplevelCompile(isolate, script); in CreateScript()
163 return script; in CreateScript()
188 Handle<Script> script) { in SetScriptForToplevelCompile() argument
189 set_script(script); in SetScriptForToplevelCompile()
193 script->IsUserJavaScript()); in SetScriptForToplevelCompile()
194 set_wrapped_as_function(script->is_wrapped()); in SetScriptForToplevelCompile()
197 void ParseInfo::set_script(Handle<Script> script) { in set_script() argument
198 script_ = script; in set_script()
199 DCHECK(script_id_ == -1 || script_id_ == script->id()); in set_script()
200 script_id_ = script->id(); in set_script()
202 set_native(script->type() == Script::TYPE_NATIVE); in set_script()
203 set_eval(script->compilation_type() == Script::COMPILATION_TYPE_EVAL); in set_script()
204 set_module(script->origin_options().IsModule()); in set_script()
207 if (block_coverage_enabled() && script->IsUserJavaScript()) { in set_script()