Lines Matching defs:source
2 // Use of this source code is governed by a BSD-style license that can be
275 v8::ScriptCompiler::Source source(str);
276 auto script = ScriptCompiler::Compile(context, &source).ToLocalChecked();
413 size_t count, ValueSerializer& source,
420 destination.WriteRawBytes(source.buffer_, source.buffer_size_);
527 // Construct the minimal source string to be included in the snapshot. Maintain
531 // Full source: abcdefghijklmnopqrstuvwxyzåäö
535 // Constructed source: defghijkstuvwxyzö
551 // include any new source code, just record the position conversion.
568 Throw("Cannot construct source string");
581 Throw("Function without source code");
632 // e.g., we know all functions upfront and can construct the source code that
667 Handle<String> pattern = handle(regexp->source(), isolate_);
813 handle(String::cast(Script::cast(function->shared().script()).source()),
892 // - String id (source snippet)
893 // - Start position in the source snippet
894 // - Length in the source snippet
907 // - String id (source snippet)
908 // - Start position in the source snippet
909 // - Length in the source snippet
1116 Handle<String> pattern = handle(regexp->source(), isolate_);
1282 Handle<String> source =
1283 handle(String::cast(snapshot_as_script->source()), isolate);
1284 if (source->IsExternalOneByteString()) {
1286 ExternalOneByteString::cast(*source).resource();
1289 } else if (source->IsSeqOneByteString()) {
1290 SeqOneByteString source_as_seq = SeqOneByteString::cast(*source);
1299 } else if (source->IsExternalTwoByteString()) {
1303 ExternalTwoByteString::cast(*source).resource();
1315 } else if (source->IsSeqTwoByteString()) {
1316 SeqTwoByteString source_as_seq = SeqTwoByteString::cast(*source);
1412 v8::Local<v8::String> source =
1420 ScriptCompiler::Source script_source(source, origin);
1840 String source = ReadString(false);
1843 script_->set_source(source);
1845 // TODO(v8:11525): Support multiple source snippets.
1846 DCHECK_EQ(script_->source(), source);
1900 String source = ReadString(false);
1902 script_->set_source(source);
1904 // TODO(v8:11525): Support multiple source snippets.
1905 DCHECK_EQ(script_->source(), source);