Home | History | Annotate | Download | only in src

Lines Matching defs:script

54 CompilationInfo::CompilationInfo(Handle<Script> script)
55 : isolate_(script->GetIsolate()),
60 script_(script),
76 script_(Handle<Script>(Script::cast(shared_info->script()))),
93 script_(Handle<Script>(Script::cast(shared_info_->script()))),
363 Handle<Script> script = info->script();
364 script->set_context_data((*isolate->global_context())->data());
368 Script::CompilationType compilation_type = Script::COMPILATION_TYPE_EVAL;
369 script->set_compilation_type(Smi::FromInt(compilation_type));
375 script->set_eval_from_shared(
380 script->set_eval_from_instructions_offset(Smi::FromInt(offset));
386 isolate->debugger()->OnBeforeCompile(script);
393 String::cast(script->source())->length() > FLAG_min_preparse_length) {
426 Compiler::SetFunctionInfo(result, lit, true, script);
428 if (script->name()->IsString()) {
432 : Logger::ToNativeByScript(Logger::SCRIPT_TAG, *script),
435 String::cast(script->name())));
436 GDBJIT(AddCode(Handle<String>(String::cast(script->name())),
437 script,
444 : Logger::ToNativeByScript(Logger::SCRIPT_TAG, *script),
448 GDBJIT(AddCode(Handle<String>(), script, info->code(), info));
456 script->set_compilation_state(
457 Smi::FromInt(Script::COMPILATION_STATE_COMPILED));
462 script, Debugger::NO_AFTER_COMPILE_FLAGS);
500 // the script.
508 // Create a script object describing the script to be compiled.
509 Handle<Script> script = FACTORY->NewScript(source);
511 script->set_type(Smi::FromInt(Script::TYPE_NATIVE));
514 script->set_name(*script_name);
515 script->set_line_offset(Smi::FromInt(line_offset));
516 script->set_column_offset(Smi::FromInt(column_offset));
519 script->set_data(script_data.is_null() ? HEAP->undefined_value()
523 CompilationInfo info(script);
569 // Create a script object describing the script to be compiled.
570 Handle<Script> script = isolate->factory()->NewScript(source);
571 CompilationInfo info(script);
706 Handle<Script> script) {
708 CompilationInfo info(script);
742 SetFunctionInfo(result, literal, false, script);
757 // in the full script source. When counting characters in the script source the
762 Handle<Script> script) {
765 function_info->set_script(*script);
791 // was created using Script object, it will not have it.
794 // script name and line number. Check explicitly whether logging is
798 Handle<Script> script = info->script();
802 if (script->name()->IsString()) {
803 int line_num = GetScriptLineNumber(script, shared->start_position()) + 1;
806 CodeCreateEvent(Logger::ToNativeByScript(tag, *script),
809 String::cast(script->name()),
813 CodeCreateEvent(Logger::ToNativeByScript(tag, *script),
821 Handle<Script>(info->script()),