| Index: src/parser.h
|
| diff --git a/src/parser.h b/src/parser.h
|
| index 70d0e18fdb83dc6beed1c569a2b66310b99b89b1..8623f3845900f9881b62f73d88d9c2dbd0934dde 100644
|
| --- a/src/parser.h
|
| +++ b/src/parser.h
|
| @@ -578,6 +578,26 @@ class Parser {
|
| 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 @@ class Parser {
|
|
|
| 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,
|
|
|