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

Unified Diff: src/scanner.h

Issue 1114073003: Fix smi scanning (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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 | src/scanner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scanner.h
diff --git a/src/scanner.h b/src/scanner.h
index 5162fbec12d0bfec37a7c8847e7a6400b84b58c0..ef5f01baec03a228c9517ae8b862024f9e10832b 100644
--- a/src/scanner.h
+++ b/src/scanner.h
@@ -436,7 +436,7 @@ class Scanner {
void clear_octal_position() { octal_pos_ = Location::invalid(); }
// Returns the value of the last smi that was scanned.
- int smi_value() const { return smi_value_; }
+ int smi_value() const { return current_.smi_value_; }
// Seek forward to the given position. This operation does not
// work in general, for instance when there are pushed back
@@ -491,6 +491,7 @@ class Scanner {
Location location;
LiteralBuffer* literal_chars;
LiteralBuffer* raw_literal_chars;
+ int smi_value_;
};
static const int kCharacterLookaheadBufferSize = 1;
@@ -718,9 +719,6 @@ class Scanner {
// Start position of the octal literal last scanned.
Location octal_pos_;
- // Value of the last smi that was scanned.
- int smi_value_;
-
// One Unicode character look-ahead; c0_ < 0 at the end of the input.
uc32 c0_;
« no previous file with comments | « no previous file | src/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698