Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(794)

Unified Diff: src/lexer/lexer.cc

Issue 196473026: Experimental parser: fix build after merge (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/lexer/lexer-shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/lexer/lexer.cc
diff --git a/src/lexer/lexer.cc b/src/lexer/lexer.cc
index fe6df5998c567f81ef77c4d1bb406cd977cc527d..0a8744276cd8f2b7e8c5b1d3ccf2ecedfa85bb29 100644
--- a/src/lexer/lexer.cc
+++ b/src/lexer/lexer.cc
@@ -511,7 +511,7 @@ void LexerBase::LiteralDesc::SetTwoByteString(Vector<const uint16_t> string) {
void LexerBase::LiteralDesc::SetStringFromLiteralBuffer() {
- is_one_byte_ = buffer.is_ascii();
+ is_one_byte_ = buffer.is_one_byte();
is_in_buffer_ = true;
length = buffer.length();
if (is_one_byte_) {
@@ -519,9 +519,9 @@ void LexerBase::LiteralDesc::SetStringFromLiteralBuffer() {
one_byte_string_.Dispose();
}
is_one_byte_string_owned_ = false;
- one_byte_string_ = Vector<const uint8_t>::cast(buffer.ascii_literal());
+ one_byte_string_ = buffer.one_byte_literal();
} else {
- two_byte_string_ = buffer.utf16_literal();
+ two_byte_string_ = buffer.two_byte_literal();
}
}
« no previous file with comments | « no previous file | src/lexer/lexer-shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698