Lines Matching full:sources
300 return Vector<const char>(sources, %(total_length)i);
307 static const char sources[] = { %s };
317 if (index == %(i)i) return Vector<const char>(sources + %(offset)i, %(source_length)i);
327 """Build the chain of filter functions to be applied to the sources.
362 class Sources: class
386 to treat different types of sources differently.
388 sources as JS strings.
391 An instance of Sources.
413 # Sort 'debugger' sources first.
426 result = Sources()
445 def BuildMetadata(sources, source_bytes, native_type): argument
449 sources: A Sources instance with the prepared sources.
451 (The concatenation of all sources; might be compressed.)
458 raw_sources = "".join(sources.modules)
460 # The sources are expected to be ASCII-only.
468 for i in xrange(len(sources.modules)):
469 native_name = "native %s.js" % sources.names[i]
472 "id": sources.names[i],
476 "source_length": len(sources.modules[i]),
481 offset += len(sources.modules[i])
485 "builtin_count": len(sources.modules),
486 "debugger_count": sum(sources.is_debugger_id),
521 def WriteStartupBlob(sources, startup_blob): argument
526 sources: A Sources instance with the prepared sources.
531 debug_sources = sum(sources.is_debugger_id);
534 PutStr(output, sources.names[i]);
535 PutStr(output, sources.modules[i]);
537 PutInt(output, len(sources.names) - debug_sources)
538 for i in xrange(debug_sources, len(sources.names)):
539 PutStr(output, sources.names[i]);
540 PutStr(output, sources.modules[i]);
545 def JS2C(sources, target, native_type, raw_file, startup_blob, emit_js): argument
546 prepared_sources = PrepareSources(sources, native_type, emit_js)
571 help="file to write the processed sources array to.")
578 parser.set_usage("""js2c out.cc type sources.js ...
581 sources.js: JS internal sources or macros.py.""")