Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index 94d2f9e6a09586ce3713e0d4dffd6e7e69c9c768..1744faae8c607fdcf8343341019511697f21e6df 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -254,7 +254,7 @@ Handle<String> Parser::LookupSymbol(int symbol_id) { |
if (static_cast<unsigned>(symbol_id) |
>= static_cast<unsigned>(symbol_cache_.length())) { |
if (scanner().is_literal_ascii()) { |
- return isolate()->factory()->LookupAsciiSymbol( |
+ return isolate()->factory()->LookupOneByteSymbol( |
scanner().literal_ascii_string()); |
} else { |
return isolate()->factory()->LookupTwoByteSymbol( |
@@ -275,7 +275,7 @@ Handle<String> Parser::LookupCachedSymbol(int symbol_id) { |
Handle<String> result = symbol_cache_.at(symbol_id); |
if (result.is_null()) { |
if (scanner().is_literal_ascii()) { |
- result = isolate()->factory()->LookupAsciiSymbol( |
+ result = isolate()->factory()->LookupOneByteSymbol( |
scanner().literal_ascii_string()); |
} else { |
result = isolate()->factory()->LookupTwoByteSymbol( |
@@ -3988,7 +3988,7 @@ ObjectLiteral::Property* Parser::ParseObjectLiteralGetSet(bool is_getter, |
next == Token::STRING || is_keyword) { |
Handle<String> name; |
if (is_keyword) { |
- name = isolate_->factory()->LookupAsciiSymbol(Token::String(next)); |
+ name = isolate_->factory()->LookupUtf8Symbol(Token::String(next)); |
} else { |
name = GetSymbol(CHECK_OK); |
} |