Lines Matching defs:source

2 // Use of this source code is governed by a BSD-style license that can be
756 Extension::Extension(const char* name, const char* source, int dep_count,
761 : (source ? static_cast<int>(strlen(source)) : 0)),
765 source_ = new ExtensionResource(source, source_length_);
766 CHECK(source != nullptr || source_length_ == 0);
2489 Isolate* v8_isolate, Source* source, CompileOptions options,
2497 i::Handle<i::String> str = Utils::OpenHandle(*(source->source_string));
2502 isolate, source->resource_name, source->resource_line_offset,
2503 source->resource_column_offset, source->source_map_url,
2504 source->host_defined_options, source->resource_options);
2508 if (source->consume_cache_task) {
2510 // the consume task on the source.
2511 DCHECK_NOT_NULL(source->consume_cache_task->impl_);
2513 std::move(source->consume_cache_task->impl_);
2518 source->cached_data->rejected = deserialize_task->rejected();
2520 DCHECK(source->cached_data);
2523 source->cached_data->data, source->cached_data->length);
2528 source->cached_data->rejected = cached_data->rejected();
2543 Isolate* v8_isolate, Source* source, CompileOptions options,
2546 !source->GetResourceOptions().IsModule(),
2549 return CompileUnboundInternal(v8_isolate, source, options, no_cache_reason);
2553 Source* source,
2557 !source->GetResourceOptions().IsModule(), "v8::ScriptCompiler::Compile",
2561 CompileUnboundInternal(isolate, source, options, no_cache_reason);
2569 Isolate* isolate, Source* source, CompileOptions options,
2574 Utils::ApiCheck(source->GetResourceOptions().IsModule(),
2578 CompileUnboundInternal(isolate, source, options, no_cache_reason);
2588 Local<Context> context, Source* source, size_t arguments_count,
2592 return CompileFunctionInternal(context, source, arguments_count, arguments,
2599 Local<Context> context, Source* source, size_t arguments_count,
2605 context, source, arguments_count, arguments, context_extension_count,
2610 Local<Context> v8_context, Source* source, size_t arguments_count,
2653 isolate, source->resource_name, source->resource_line_offset,
2654 source->resource_column_offset, source->source_map_url,
2655 source->host_defined_options, source->resource_options);
2659 DCHECK(source->cached_data);
2661 cached_data.reset(new i::AlignedCachedData(source->cached_data->data,
2662 source->cached_data->length));
2668 Utils::OpenHandle(*source->source_string), arguments_list, context,
2672 source->cached_data->rejected = cached_data->rejected();
2703 Isolate* v8_isolate, StreamedSource* source, v8::ScriptType type) {
2707 i::ScriptStreamingData* data = source->impl();
2823 "Expected SharedFunctionInfo with wrapped source code.");
2827 MaybeLocal<Script> Script::Compile(Local<Context> context, Local<String> source,
2830 ScriptCompiler::Source script_source(source, *origin);
2833 ScriptCompiler::Source script_source(source);
3131 i::Handle<i::String> source(self->GetSource(), isolate);
3132 RETURN_ESCAPED(Utils::ToLocal(source));
3226 i::Handle<i::PrimitiveHeapObject> source(self->script().source(), isolate);
3227 if (!source->IsString()) return {};
3228 return Utils::ToLocal(i::Handle<i::String>::cast(source));
3269 i::Handle<i::String> source = i::String::Flatten(isolate, string);
3271 auto maybe = source->IsOneByteRepresentation()
3272 ? i::JsonParser<uint8_t>::Parse(isolate, source, undefined)
3273 : i::JsonParser<uint16_t>::Parse(isolate, source, undefined);
3403 void ValueSerializer::WriteRawBytes(const void* source, size_t length) {
3404 private_->serializer.WriteRawBytes(source, length);
8050 const char* source;
8053 source = reinterpret_cast<char*>(array->DataPtr());
8057 source = reinterpret_cast<char*>(data_view->data_pointer());
8059 memcpy(dest, source, bytes_to_copy);