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

Unified Diff: src/scanner.h

Issue 1149643003: Version 4.3.61.23 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.3
Patch Set: Created 5 years, 7 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 | « include/v8-version.h ('k') | 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 804082562e15605e80e7ef90622398a57a3ecd35..61deb743a297222d8495fd451489fa75d1fc1856 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
@@ -497,6 +497,7 @@ class Scanner {
Location location;
LiteralBuffer* literal_chars;
LiteralBuffer* raw_literal_chars;
+ int smi_value_;
};
static const int kCharacterLookaheadBufferSize = 1;
@@ -724,9 +725,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 | « include/v8-version.h ('k') | src/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698