Lines Matching defs:Source
2 // Use of this source code is governed by a BSD-style license that can be
921 const char* source,
928 (source ? static_cast<int>(strlen(source)) : 0)),
932 source_ = new ExtensionResource(source, source_length_);
933 CHECK(source != nullptr || source_length_ == 0);
2360 Isolate* v8_isolate, Source* source, CompileOptions options,
2374 source->cached_data->rejected = true;
2382 DCHECK(source->cached_data);
2384 script_data = new i::ScriptData(source->cached_data->data,
2385 source->cached_data->length);
2388 i::Handle<i::String> str = Utils::OpenHandle(*(source->source_string));
2392 isolate, source->resource_name, source->resource_line_offset,
2393 source->resource_column_offset, source->source_map_url,
2394 source->host_defined_options);
2397 isolate, str, script_details, source->resource_options, nullptr,
2400 source->cached_data->rejected = script_data->rejected();
2409 Isolate* v8_isolate, Source* source, CompileOptions options,
2412 !source->GetResourceOptions().IsModule(),
2415 return CompileUnboundInternal(v8_isolate, source, options, no_cache_reason);
2419 Source* source,
2423 !source->GetResourceOptions().IsModule(), "v8::ScriptCompiler::Compile",
2427 CompileUnboundInternal(isolate, source, options, no_cache_reason);
2435 Isolate* isolate, Source* source, CompileOptions options,
2441 Utils::ApiCheck(source->GetResourceOptions().IsModule(),
2445 CompileUnboundInternal(isolate, source, options, no_cache_reason);
2493 Local<Context> v8_context, Source* source, size_t arguments_count,
2536 isolate, source->resource_name, source->resource_line_offset,
2537 source->resource_column_offset, source->source_map_url,
2538 source->host_defined_options);
2542 DCHECK(source->cached_data);
2544 script_data = new i::ScriptData(source->cached_data->data,
2545 source->cached_data->length);
2551 Utils::OpenHandle(*source->source_string), arguments_list, context,
2552 script_details, source->resource_options, script_data, options,
2556 source->cached_data->rejected = script_data->rejected();
2565 Isolate* v8_isolate, StreamedSource* source, CompileOptions options) {
2573 return i::Compiler::NewBackgroundCompileTask(source->impl(), isolate);
2645 MaybeLocal<Script> Script::Compile(Local<Context> context, Local<String> source,
2648 ScriptCompiler::Source script_source(source, *origin);
2651 ScriptCompiler::Source script_source(source);
3034 i::Handle<i::String> source = i::String::Flatten(isolate, string);
3036 auto maybe = source->IsSeqOneByteString()
3037 ? i::JsonParser<true>::Parse(isolate, source, undefined)
3038 : i::JsonParser<false>::Parse(isolate, source, undefined);
3049 i::Handle<i::String> source = i::String::Flatten(isolate, string);
3051 auto maybe = source->IsSeqOneByteString()
3052 ? i::JsonParser<true>::Parse(isolate, source, undefined)
3053 : i::JsonParser<false>::Parse(isolate, source, undefined);
3182 void ValueSerializer::WriteRawBytes(const void* source, size_t length) {
3183 private_->serializer.WriteRawBytes(source, length);
7725 const char* source = reinterpret_cast<char*>(buffer->backing_store());
7726 if (source == nullptr) {
7732 source = reinterpret_cast<char*>(fixed_array->DataPtr());
7734 memcpy(dest, source + byte_offset, bytes_to_copy);
9270 MaybeLocal<String> debug::Script::Source() const {
9274 i::Handle<i::Object> value(script->source(), isolate);
9534 Local<String> source) {
9537 i::Handle<i::String> str = Utils::OpenHandle(*source);
9730 v8::Local<v8::String> source,
9736 i::DebugEvaluate::Global(internal_isolate, Utils::OpenHandle(*source),