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

Unified Diff: src/lexer/lexer-shell.cc

Issue 67643005: Remove ascii encoding from lexer-shell, latin1 should be used instead. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 7 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/lexer/lexer-shell.cc
diff --git a/src/lexer/lexer-shell.cc b/src/lexer/lexer-shell.cc
index c56827910674cdb8f186ae650bdeb0f550131825..afc8eb833f0773e3ca719b73687e93e3a8649a78 100644
--- a/src/lexer/lexer-shell.cc
+++ b/src/lexer/lexer-shell.cc
@@ -50,7 +50,6 @@
using namespace v8::internal;
enum Encoding {
- ASCII,
LATIN1,
UTF8,
UTF16
@@ -88,7 +87,6 @@ class BaselineScanner {
unicode_cache_ = new UnicodeCache();
scanner_ = new Scanner(unicode_cache_);
switch (encoding) {
- case ASCII:
case UTF8:
stream_ = new Utf8ToUtf16CharacterStream(source_, length);
break;
@@ -276,8 +274,6 @@ int main(int argc, char* argv[]) {
encoding = UTF8;
} else if (strcmp(argv[i], "--utf16") == 0) {
encoding = UTF16;
- } else if (strcmp(argv[i], "--ascii") == 0) {
- encoding = ASCII;
} else if (strcmp(argv[i], "--print-tokens") == 0) {
print_tokens = true;
} else if (strcmp(argv[i], "--no-baseline") == 0) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698