Commit 9ec8e586 authored by marja@chromium.org's avatar marja@chromium.org

Remove Parser::scanner(). There is already ParserBase::scanner().

R=ulan@chromium.org
BUG=v8:3126
LOG=N

Review URL: https://codereview.chromium.org/166513003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19376 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 8acefb33
This diff is collapsed.
...@@ -570,7 +570,6 @@ class Parser : public ParserBase<ParserTraits> { ...@@ -570,7 +570,6 @@ class Parser : public ParserBase<ParserTraits> {
} }
bool inside_with() const { return scope_->inside_with(); } bool inside_with() const { return scope_->inside_with(); }
Scanner& scanner() { return scanner_; }
Mode mode() const { return mode_; } Mode mode() const { return mode_; }
ScriptDataImpl* pre_parse_data() const { return pre_parse_data_; } ScriptDataImpl* pre_parse_data() const { return pre_parse_data_; }
bool is_extended_mode() { bool is_extended_mode() {
...@@ -669,12 +668,12 @@ class Parser : public ParserBase<ParserTraits> { ...@@ -669,12 +668,12 @@ class Parser : public ParserBase<ParserTraits> {
bool CheckInOrOf(bool accept_OF, ForEachStatement::VisitMode* visit_mode); bool CheckInOrOf(bool accept_OF, ForEachStatement::VisitMode* visit_mode);
Handle<String> LiteralString(PretenureFlag tenured) { Handle<String> LiteralString(PretenureFlag tenured) {
if (scanner().is_literal_ascii()) { if (scanner()->is_literal_ascii()) {
return isolate_->factory()->NewStringFromAscii( return isolate_->factory()->NewStringFromAscii(
scanner().literal_ascii_string(), tenured); scanner()->literal_ascii_string(), tenured);
} else { } else {
return isolate_->factory()->NewStringFromTwoByte( return isolate_->factory()->NewStringFromTwoByte(
scanner().literal_utf16_string(), tenured); scanner()->literal_utf16_string(), tenured);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment