Revision: 5490
Author: [email protected]
Date: Mon Sep 20 01:43:35 2010
Log: Remove unused variable from Scanner class.

BUG=None
TEST=compiles

Patch from Thiago Farina <[email protected]>

Review URL: http://codereview.chromium.org/3413015
http://code.google.com/p/v8/source/detail?r=5490

Modified:
 /branches/bleeding_edge/src/parser.cc
 /branches/bleeding_edge/src/scanner.cc
 /branches/bleeding_edge/src/scanner.h

=======================================
--- /branches/bleeding_edge/src/parser.cc       Fri Sep 17 05:55:27 2010
+++ /branches/bleeding_edge/src/parser.cc       Mon Sep 20 01:43:35 2010
@@ -1457,7 +1457,7 @@
                ParserLog* log,
                ScriptDataImpl* pre_data)
     : script_(script),
-      scanner_(is_pre_parsing),
+      scanner_(),
       top_scope_(NULL),
       with_nesting_level_(0),
       temp_scope_(NULL),
=======================================
--- /branches/bleeding_edge/src/scanner.cc      Fri Sep  3 05:59:52 2010
+++ /branches/bleeding_edge/src/scanner.cc      Mon Sep 20 01:43:35 2010
@@ -1,4 +1,4 @@
-// Copyright 2006-2008 the V8 project authors. All rights reserved.
+// Copyright 2010 the V8 project authors. All rights reserved.
 // Redistribution and use in source and binary forms, with or without
 // modification, are permitted provided that the following conditions are
 // met:
@@ -342,8 +342,11 @@
// ----------------------------------------------------------------------------
 // Scanner

-Scanner::Scanner(ParserMode pre)
-    : is_pre_parsing_(pre == PREPARSE), stack_overflow_(false) { }
+Scanner::Scanner()
+    : has_line_terminator_before_next_(false),
+      is_parsing_json_(false),
+      source_(NULL),
+      stack_overflow_(false) {}


 void Scanner::Initialize(Handle<String> source,
=======================================
--- /branches/bleeding_edge/src/scanner.h       Fri Aug 27 01:26:29 2010
+++ /branches/bleeding_edge/src/scanner.h       Mon Sep 20 01:43:35 2010
@@ -1,4 +1,4 @@
-// Copyright 2006-2008 the V8 project authors. All rights reserved.
+// Copyright 2010 the V8 project authors. All rights reserved.
 // Redistribution and use in source and binary forms, with or without
 // modification, are permitted provided that the following conditions are
 // met:
@@ -281,8 +281,7 @@
     bool complete_;
   };

-  // Construction
-  explicit Scanner(ParserMode parse_mode);
+  Scanner();

   // Initialize the Scanner to scan source.
   void Initialize(Handle<String> source,
@@ -488,7 +487,6 @@
   TokenDesc current_;  // desc for current token (as returned by Next())
   TokenDesc next_;     // desc for next token (one token look-ahead)
   bool has_line_terminator_before_next_;
-  bool is_pre_parsing_;
   bool is_parsing_json_;

// Different UTF16 buffers used to pull characters from. Based on input one of

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to