Index: src/parser.h |
diff --git a/src/parser.h b/src/parser.h |
index a3523ea3bc533b3e0773795b0329ee40b5f448fb..b21c2754d57446b166bf0811505481642516c79a 100644 |
--- a/src/parser.h |
+++ b/src/parser.h |
@@ -570,7 +570,6 @@ class Parser : public ParserBase<ParserTraits> { |
} |
bool inside_with() const { return scope_->inside_with(); } |
- Scanner& scanner() { return scanner_; } |
Mode mode() const { return mode_; } |
ScriptDataImpl* pre_parse_data() const { return pre_parse_data_; } |
bool is_extended_mode() { |
@@ -669,12 +668,12 @@ class Parser : public ParserBase<ParserTraits> { |
bool CheckInOrOf(bool accept_OF, ForEachStatement::VisitMode* visit_mode); |
Handle<String> LiteralString(PretenureFlag tenured) { |
- if (scanner().is_literal_ascii()) { |
+ if (scanner()->is_literal_ascii()) { |
return isolate_->factory()->NewStringFromAscii( |
- scanner().literal_ascii_string(), tenured); |
+ scanner()->literal_ascii_string(), tenured); |
} else { |
return isolate_->factory()->NewStringFromTwoByte( |
- scanner().literal_utf16_string(), tenured); |
+ scanner()->literal_utf16_string(), tenured); |
} |
} |