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

Unified Diff: src/lexer/experimental-scanner.h

Issue 137063007: Experimental parser: make marker local (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 6 years, 11 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 | tools/lexer_generator/code_generator.jinja » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/lexer/experimental-scanner.h
diff --git a/src/lexer/experimental-scanner.h b/src/lexer/experimental-scanner.h
index 204ae88df895ae62a26dfee1ca8d8a3afd78eabd..8a9a96e1e4df2560ba0841ccd86d1201b60030d6 100644
--- a/src/lexer/experimental-scanner.h
+++ b/src/lexer/experimental-scanner.h
@@ -292,7 +292,6 @@ class ExperimentalScanner : public ScannerBase {
buffer_end_(NULL),
start_(NULL),
cursor_(NULL),
- marker_(NULL),
last_octal_end_(NULL) {
ASSERT(source->IsFlat());
UpdateBufferBasedOnHandle();
@@ -322,13 +321,11 @@ class ExperimentalScanner : public ScannerBase {
if (new_buffer != buffer_) {
int start_offset = start_ - buffer_;
int cursor_offset = cursor_ - buffer_;
- int marker_offset = marker_ - buffer_;
int last_octal_end_offset = last_octal_end_ - buffer_;
buffer_ = new_buffer;
buffer_end_ = buffer_ + source_handle_->length();
start_ = buffer_ + start_offset;
cursor_ = buffer_ + cursor_offset;
- marker_ = buffer_ + marker_offset;
if (last_octal_end_ != NULL) {
last_octal_end_ = buffer_ + last_octal_end_offset;
}
@@ -373,7 +370,6 @@ class ExperimentalScanner : public ScannerBase {
const Char* buffer_end_;
const Char* start_;
const Char* cursor_;
- const Char* marker_;
// Where we have seen the last octal number or an octal escape inside a
// string. Used by octal_position().
@@ -385,7 +381,6 @@ template<typename Char>
void ExperimentalScanner<Char>::SeekForward(int pos) {
cursor_ = buffer_ + pos;
start_ = cursor_;
- marker_ = cursor_;
has_line_terminator_before_next_ = false;
has_multiline_comment_before_next_ = false;
Scan(); // Fills in next_.
« no previous file with comments | « no previous file | tools/lexer_generator/code_generator.jinja » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698