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

Unified Diff: src/parsing/parser.cc

Issue 1916043002: [es7] Fix "implement exponentiation operator proposal" for AIX. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: introduce Pow in utils 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
« src/assembler.cc ('K') | « 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 15792805e452175a1efe9e27950f69bf1aa114a8..c25b5705d5a871a92e7864edc63696cf7097849e 100644
--- a/src/parsing/parser.cc
+++ b/src/parsing/parser.cc
@@ -438,7 +438,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,
« src/assembler.cc ('K') | « src/assembler.cc ('k') | src/utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698