| Index: src/parser.h
|
| ===================================================================
|
| --- src/parser.h (revision 6170)
|
| +++ src/parser.h (working copy)
|
| @@ -578,6 +578,26 @@
|
| bool Check(Token::Value token);
|
| void ExpectSemicolon(bool* ok);
|
|
|
| + Handle<String> LiteralString(PretenureFlag tenured) {
|
| + if (scanner().is_literal_ascii()) {
|
| + return Factory::NewStringFromAscii(scanner().literal_ascii_string(),
|
| + tenured);
|
| + } else {
|
| + return Factory::NewStringFromTwoByte(scanner().literal_uc16_string(),
|
| + tenured);
|
| + }
|
| + }
|
| +
|
| + Handle<String> NextLiteralString(PretenureFlag tenured) {
|
| + if (scanner().is_next_literal_ascii()) {
|
| + return Factory::NewStringFromAscii(scanner().next_literal_ascii_string(),
|
| + tenured);
|
| + } else {
|
| + return Factory::NewStringFromTwoByte(scanner().next_literal_uc16_string(),
|
| + tenured);
|
| + }
|
| + }
|
| +
|
| Handle<String> GetSymbol(bool* ok);
|
|
|
| // Get odd-ball literals.
|
| @@ -612,11 +632,9 @@
|
|
|
| Scope* NewScope(Scope* parent, Scope::Type type, bool inside_with);
|
|
|
| - Handle<String> LookupSymbol(int symbol_id,
|
| - Vector<const char> string);
|
| + Handle<String> LookupSymbol(int symbol_id);
|
|
|
| - Handle<String> LookupCachedSymbol(int symbol_id,
|
| - Vector<const char> string);
|
| + Handle<String> LookupCachedSymbol(int symbol_id);
|
|
|
| Expression* NewCall(Expression* expression,
|
| ZoneList<Expression*>* arguments,
|
|
|