Home | History | Annotate | Download | only in preparser

Lines Matching defs:source

2 // Redistribution and use in source and binary forms, with or without
6 // * Redistributions of source code must retain the above copyright
42 // The first argument must be the path of a JavaScript source file, or
43 // the flags "-e" and the next argument is then the source of a JavaScript
52 // This source file is preparsed and tested against the expectations, and if
55 // The source file must contain only ASCII characters (UTF-8 isn't supported).
103 bool ReadBuffer(FILE* source, void* buffer, size_t length) {
104 size_t actually_read = fread(buffer, 1, length, source);
299 // Format: preparser (<scriptfile> | -e "<source>")
309 const uint8_t* source = NULL;
314 fail(NULL, "ERROR: No source after -e on command line.\n");
316 source = reinterpret_cast<const uint8_t*>(argv[arg_index]);
326 if (source == NULL) {
350 source = *buffer;
352 length = strlen(reinterpret_cast<const char*>(source));
356 AsciiInputStream input_buffer(source, length);