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

Unified Diff: src/parsing/parser.cc

Issue 1931653006: Version 5.1.281.21 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.1
Patch Set: Created 4 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/assembler.cc ('k') | src/utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parser.cc
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
index 09f405704b1525093c4b36d3f756bc5443d8181a..69cea62d827034bcd931b4661e13afdccda12db5 100644
--- a/src/parsing/parser.cc
+++ b/src/parsing/parser.cc
@@ -440,7 +440,7 @@ bool ParserTraits::ShortcutNumericLiteralBinaryExpression(
return true;
}
case Token::EXP: {
- double value = std::pow(x_val, y_val);
+ double value = Pow(x_val, y_val);
int int_value = static_cast<int>(value);
*x = factory->NewNumberLiteral(
int_value == value && value != -0.0 ? int_value : value, pos,
« no previous file with comments | « src/assembler.cc ('k') | src/utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698