Lines Matching defs:source

2 // Use of this source code is governed by a BSD-style license that can be
261 // Log the code generation. If source information is available include
503 PrintF("Compiled: %d functions with %d byte source size in %fms.\n",
1582 // The API can provide a source map URL, but a source map URL could also have
1584 // preference over the former, so we don't want to override the source mapping
1638 // We don't have the script source, origin, or details yet, so use default
1730 Isolate* isolate, Handle<String> source,
1748 script_->set_source(*source);
1865 Isolate* isolate, Handle<String> source,
1868 isolate, std::move(off_thread_data_), &cached_data_, source,
1885 // Collecting source positions requires allocating a new source position
1902 // Unfinalized scripts don't yet have the proper source string attached and
1963 // If debugging, make sure that instrumented bytecode has the source position
2296 Handle<String> source, Handle<SharedFunctionInfo> outer_info,
2302 int source_length = source->length();
2323 source, outer_info, context, language_mode, eval_scope_position);
2357 isolate, source, kNullMaybeHandle,
2362 // walking the stack. Do not translate the code offset into source
2408 compilation_cache->PutEval(source, outer_info, context, shared_info,
2424 compilation_cache->PutEval(source, outer_info, context, shared_info,
2436 Handle<String> source) {
2445 return callback(v8::Utils::ToLocal(context), v8::Utils::ToLocal(source));
2452 Handle<i::Object>* source,
2456 DCHECK(source);
2458 // Callback set. Run it, and use the return value as source, or block
2465 v8::Utils::ToLocal(*source))
2467 v8::Utils::ToLocal(*source),
2470 // Use the new source (which might be the same as the old source).
2471 *source =
2483 // Returns: (assuming: std::tie(source, unknown_object))
2484 // - !source.is_null(): compilation allowed, source contains the source string.
2487 // - source.is_null() && !unknown_object: compilation should be blocked.
2523 // Check if the context wants to block or modify this source object.
2555 Handle<Context> context, MaybeHandle<String> source,
2561 if (source.is_null()) {
2570 // Compile source string in the native context.
2575 return Compiler::GetFunctionFromEval(source.ToHandleChecked(), outer_info,
2583 Handle<Context> context, Handle<Object> source,
2587 ValidateDynamicCompilationSource(isolate, context, source, is_code_like)
2796 Isolate* isolate, ParseInfo* parse_info, Handle<String> source,
2801 parse_info->CreateScript(isolate, source, maybe_wrapped_arguments,
2810 const UnoptimizedCompileFlags flags, Handle<String> source,
2820 NewScript(isolate, &parse_info, source, script_details, natives);
2831 StressBackgroundCompileThread(Isolate* isolate, Handle<String> source,
2835 source_(source),
2836 streamed_source_(std::make_unique<SourceStream>(source, isolate),
2847 // Dummy external source stream which returns the whole source in one go.
2851 SourceStream(Handle<String> source, Isolate* isolate) : done_(false) {
2852 source_buffer_ = source->ToCString(ALLOW_NULLS, FAST_STRING_TRAVERSAL,
2899 Handle<String> source, const ScriptDetails& script_details,
2903 isolate, source,
2923 flags_copy, source, script_details, NOT_NATIVES_CODE, nullptr, isolate,
2941 isolate, source, script_details, background_compile_thread.data());
2965 Isolate* isolate, Handle<String> source,
2983 int source_length = source->length();
2989 (source->IsExternalOneByteString() || source->IsSeqOneByteString() ||
2990 source->IsExternalTwoByteString() || source->IsSeqTwoByteString()) &&
2998 if (source->Get(static_cast<int>(i)) !=
3006 isolate, source, script_details.name_obj);
3028 compilation_cache->LookupScript(source, script_details, language_mode);
3041 maybe_result = deserialize_task->Finish(isolate, source,
3045 isolate, cached_data, source, script_details.origin_options);
3055 compilation_cache->PutScript(source, language_mode, result);
3073 source, script_details, isolate, &is_compiled_scope);
3086 CompileScriptOnMainThread(flags, source, script_details, natives,
3094 compilation_cache->PutScript(source, language_mode, result);
3106 Isolate* isolate, Handle<String> source,
3111 isolate, source, script_details, nullptr, nullptr, nullptr,
3117 Isolate* isolate, Handle<String> source,
3121 isolate, source, script_details, extension, nullptr, nullptr,
3127 Isolate* isolate, Handle<String> source,
3132 isolate, source, script_details, nullptr, cached_data, nullptr,
3138 Isolate* isolate, Handle<String> source,
3144 isolate, source, script_details, nullptr, nullptr, deserialize_task,
3150 Handle<String> source, Handle<FixedArray> arguments,
3166 int source_length = source->length();
3181 maybe_result = CodeSerializer::Deserialize(isolate, cached_data, source,
3199 // functions fully non-lazy instead thus preventing source positions from
3213 script = NewScript(isolate, &parse_info, source, script_details,
3246 Isolate* isolate, Handle<String> source,
3254 int source_length = source->length();
3268 source, script_details, task->flags().outer_language_mode());
3282 maybe_result = task->FinalizeScript(isolate, source, script_details);
3289 compilation_cache->PutScript(source, task->flags().outer_language_mode(),
3302 Isolate* isolate, Handle<String> source,
3308 Handle<Script> script = isolate->factory()->NewScript(source);