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

Unified Diff: src/typing.cc

Issue 953563002: Implement experimental exponentiation operator (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add more tests and fix some bugs Created 5 years, 10 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
Index: src/typing.cc
diff --git a/src/typing.cc b/src/typing.cc
index 48528705bf1e1abb605d2a243199eb7a7ab05e30..a4a6dade9d1caf0ad5e2c1ca264dc6a8ef9b2f38 100644
--- a/src/typing.cc
+++ b/src/typing.cc
@@ -726,6 +726,7 @@ void AstTyper::VisitBinaryOperation(BinaryOperation* expr) {
case Token::MUL:
case Token::DIV:
case Token::MOD:
+ case Token::EXP:
RECURSE(Visit(expr->left()));
RECURSE(Visit(expr->right()));
NarrowType(expr, Bounds(Type::SignedSmall(zone()), Type::Number(zone())));
« src/compiler/typer.cc ('K') | « src/token.h ('k') | test/mjsunit/harmony/exponentiation.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698