![]() |
v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <parser.h>
Public Member Functions | |
| Parser (CompilationInfo *info, int parsing_flags, v8::Extension *extension, ScriptDataImpl *pre_data) | |
| virtual | ~Parser () |
| FunctionLiteral * | ParseProgram () |
| FunctionLiteral * | ParseLazy () |
| void | ReportMessageAt (Scanner::Location loc, const char *message, Vector< const char * > args) |
| void | ReportMessageAt (Scanner::Location loc, const char *message, Vector< Handle< String > > args) |
Friends | |
| class | BlockState |
| class | FunctionState |
| Parser | ( | CompilationInfo * | info, |
| int | parsing_flags, | ||
| v8::Extension * | extension, | ||
| ScriptDataImpl * | pre_data | ||
| ) |
Definition at line 535 of file parser.cc.
References ASSERT, v8::internal::EXTENDED_MODE, v8::internal::kAllowModules, v8::internal::kLanguageModeMask, Scanner::SetHarmonyModules(), and Scanner::SetHarmonyScoping().
|
inlinevirtual |
Definition at line 435 of file parser.h.
References v8::internal::NULL.
| FunctionLiteral * ParseLazy | ( | ) |
Definition at line 685 of file parser.cc.
References String::cast(), FunctionLiteral::debug_name(), v8::internal::DONT_DELETE_ON_EXIT, v8::internal::NULL, v8::internal::PrintF(), CompilationInfo::shared_info(), and OS::Ticks().
| FunctionLiteral * ParseProgram | ( | ) |
Definition at line 568 of file parser.cc.
References String::cast(), v8::internal::DONT_DELETE_ON_EXIT, Scanner::Initialize(), CompilationInfo::is_eval(), v8::internal::NULL, v8::internal::PrintF(), OS::Ticks(), and String::ToCString().
Referenced by TEST(), and TestParserSync().
| void ReportMessageAt | ( | Scanner::Location | loc, |
| const char * | message, | ||
| Vector< const char * > | args | ||
| ) |
Definition at line 800 of file parser.cc.
References Scanner::Location::beg_pos, v8::internal::CStrVector(), Scanner::Location::end_pos, Vector< T >::length(), Factory::NewFixedArray(), Factory::NewJSArrayWithElements(), Factory::NewStringFromUtf8(), and Factory::NewSyntaxError().
| void ReportMessageAt | ( | Scanner::Location | loc, |
| const char * | message, | ||
| Vector< Handle< String > > | args | ||
| ) |
Definition at line 818 of file parser.cc.
References Scanner::Location::beg_pos, Scanner::Location::end_pos, Factory::NewFixedArray(), Factory::NewJSArrayWithElements(), and Factory::NewSyntaxError().
|
friend |