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

Unified Diff: src/scanner.cc

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 | « 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 1dae1e42cd4c8f726cf95916205066782dc35fcd..aa5ae4a5e93c317dd804d92420b792fdf0707221 100644
--- a/src/scanner.cc
+++ b/src/scanner.cc
@@ -1006,7 +1006,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