Commit a98baf96 authored by lrn@chromium.org's avatar lrn@chromium.org

Remove unused variable from Scanner class.

BUG=None
TEST=compiles

Patch from Thiago Farina <tfarina@chromium.org>

Review URL: http://codereview.chromium.org/3413015

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5490 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 81b0236d
...@@ -1457,7 +1457,7 @@ Parser::Parser(Handle<Script> script, ...@@ -1457,7 +1457,7 @@ Parser::Parser(Handle<Script> script,
ParserLog* log, ParserLog* log,
ScriptDataImpl* pre_data) ScriptDataImpl* pre_data)
: script_(script), : script_(script),
scanner_(is_pre_parsing), scanner_(),
top_scope_(NULL), top_scope_(NULL),
with_nesting_level_(0), with_nesting_level_(0),
temp_scope_(NULL), temp_scope_(NULL),
......
// 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 // Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are // modification, are permitted provided that the following conditions are
// met: // met:
...@@ -342,8 +342,11 @@ void Scanner::LiteralScope::Complete() { ...@@ -342,8 +342,11 @@ void Scanner::LiteralScope::Complete() {
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// Scanner // Scanner
Scanner::Scanner(ParserMode pre) Scanner::Scanner()
: is_pre_parsing_(pre == PREPARSE), stack_overflow_(false) { } : has_line_terminator_before_next_(false),
is_parsing_json_(false),
source_(NULL),
stack_overflow_(false) {}
void Scanner::Initialize(Handle<String> source, void Scanner::Initialize(Handle<String> source,
......
// 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 // Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are // modification, are permitted provided that the following conditions are
// met: // met:
...@@ -281,8 +281,7 @@ class Scanner { ...@@ -281,8 +281,7 @@ class Scanner {
bool complete_; bool complete_;
}; };
// Construction Scanner();
explicit Scanner(ParserMode parse_mode);
// Initialize the Scanner to scan source. // Initialize the Scanner to scan source.
void Initialize(Handle<String> source, void Initialize(Handle<String> source,
...@@ -488,7 +487,6 @@ class Scanner { ...@@ -488,7 +487,6 @@ class Scanner {
TokenDesc current_; // desc for current token (as returned by Next()) TokenDesc current_; // desc for current token (as returned by Next())
TokenDesc next_; // desc for next token (one token look-ahead) TokenDesc next_; // desc for next token (one token look-ahead)
bool has_line_terminator_before_next_; bool has_line_terminator_before_next_;
bool is_pre_parsing_;
bool is_parsing_json_; bool is_parsing_json_;
// Different UTF16 buffers used to pull characters from. Based on input one of // Different UTF16 buffers used to pull characters from. Based on input one of
......
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