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

Unified Diff: src/scanner.cc

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 | « src/scanner.h ('k') | test/mjsunit/regress/regress-smi-scanning.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scanner.cc
diff --git a/src/scanner.cc b/src/scanner.cc
index a40688f52b8a54ca500a868452faafcdd88a0650..e90ebc6518e95f3abc70288a9678281c66d860f7 100644
--- a/src/scanner.cc
+++ b/src/scanner.cc
@@ -1007,7 +1007,7 @@ Token::Value Scanner::ScanNumber(bool seen_period) {
if (next_.literal_chars->one_byte_literal().length() <= 10 &&
value <= Smi::kMaxValue && c0_ != '.' && c0_ != 'e' && c0_ != 'E') {
- smi_value_ = static_cast<int>(value);
+ next_.smi_value_ = static_cast<int>(value);
literal.Complete();
HandleLeadSurrogate();
« no previous file with comments | « src/scanner.h ('k') | test/mjsunit/regress/regress-smi-scanning.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698