Revision: 17682
Author:   [email protected]
Date:     Wed Nov 13 10:33:25 2013 UTC
Log: Remove ascii encoding from lexer-shell, latin1 should be used instead.

[email protected]

Review URL: https://chromiumcodereview.appspot.com/67643005
http://code.google.com/p/v8/source/detail?r=17682

Modified:
 /branches/experimental/parser/src/lexer/lexer-shell.cc

=======================================
--- /branches/experimental/parser/src/lexer/lexer-shell.cc Wed Nov 13 10:23:36 2013 UTC +++ /branches/experimental/parser/src/lexer/lexer-shell.cc Wed Nov 13 10:33:25 2013 UTC
@@ -50,7 +50,6 @@
 using namespace v8::internal;

 enum Encoding {
-  ASCII,
   LATIN1,
   UTF8,
   UTF16
@@ -88,7 +87,6 @@
     unicode_cache_ = new UnicodeCache();
     scanner_ = new Scanner(unicode_cache_);
     switch (encoding) {
-      case ASCII:
       case UTF8:
         stream_ = new Utf8ToUtf16CharacterStream(source_, length);
         break;
@@ -262,7 +260,7 @@
 int main(int argc, char* argv[]) {
   v8::V8::InitializeICU();
   v8::V8::SetFlagsFromCommandLine(&argc, argv, true);
-  Encoding encoding = ASCII;
+  Encoding encoding = LATIN1;
   bool print_tokens = false;
   bool run_baseline = true;
   bool run_experimental = true;
@@ -276,8 +274,6 @@
       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) {

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to