peek() is defined as - v8::internal::Parser::peek() in src/parser.h - v8::internal::Scanner::peek() in src/scanner.h - v8::preparser::Preparser::peek() in src/preparser.h
I hope this answers your question Yang On Mon, Jan 21, 2013 at 2:06 AM, Heath Matlock <[email protected]>wrote: > If it wasn't clear, I'm looking for where peek() is defined and I'm > wondering if any of the preparser sources use the library files (string.js > e.g.)? > > > On Sunday, January 20, 2013 6:12:22 PM UTC-6, Heath Matlock wrote: >> >> I see statements such as if peek() ==, and var foo = peek(), but I'm able >> to locate its definition. Would someone mind pointing me to its definition? >> I see this in line 319 of string.js: >> var peek = %_StringCharCodeAt(string, position); >> >> But I don't see that as a dependency for the modules required by >> parser.cc. Do any of the preparser sources use the library files? >> > -- > v8-dev mailing list > [email protected] > http://groups.google.com/group/v8-dev > -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
