| 1 |
typedef unsigned long uintptr_t; |
| 2 |
namespace v8 |
| 3 |
{ |
| 4 |
|
| 5 |
int kPointerSize = 0; |
| 6 |
|
| 7 |
class Extension; |
| 8 |
namespace internal |
| 9 |
{ |
| 10 |
class Token; |
| 11 |
class Scanner; |
| 12 |
int kCodeOffset = 0; |
| 13 |
int kOptimizedCodeMapOffset = 0; |
| 14 |
int kScopeInfoOffset = 0; |
| 15 |
|
| 16 |
class FuncNameInferrer; |
| 17 |
template < typename Traits > class ParserBase:Traits |
| 18 |
{ |
| 19 |
class FunctionState; |
| 20 |
bool parenthesized_function_; |
| 21 |
typename Traits::Type::Scope * scope_; |
| 22 |
FunctionState *function_state_; |
| 23 |
v8::Extension * extension_; |
| 24 |
FuncNameInferrer *fni_; |
| 25 |
Scanner *scanner_; |
| 26 |
uintptr_t stack_limit_; |
| 27 |
bool stack_overflow_; |
| 28 |
bool allow_lazy_; |
| 29 |
bool allow_natives_syntax_; |
| 30 |
bool allow_generators_; |
| 31 |
bool allow_for_of_; |
| 32 |
typename Traits::Type::Zone * zone_; |
| 33 |
}; |
| 34 |
class PreParserScope; |
| 35 |
class PreParser; |
| 36 |
class PreParserTraits |
| 37 |
{ |
| 38 |
public:struct Type |
| 39 |
{ |
| 40 |
typedef PreParserScope Scope; |
| 41 |
typedef void Zone; |
| 42 |
}; |
| 43 |
PreParser *pre_parser_; |
| 44 |
}; |
| 45 |
class PreParser:ParserBase < PreParserTraits > |
| 46 |
{ |
| 47 |
int ParseMemberWithNewPrefixesExpression ( bool * ); |
| 48 |
}; |
| 49 |
int PreParser::ParseMemberWithNewPrefixesExpression ( bool * ) |
| 50 |
{ |
| 51 |
return 0; |
| 52 |
} |
| 53 |
} |
| 54 |
} |