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

Unified Diff: src/hydrogen.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/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index 6fd34aa7b36e16c0d3604eb5d58e5e51b508d16c..006bc8da967a16dd7d3d2ae72a317bf8d49df771 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -10605,6 +10605,9 @@ HValue* HGraphBuilder::BuildBinaryOperation(
case Token::SHL:
instr = AddUncasted<HShl>(left, right);
break;
+ case Token::EXP:
+ instr = AddUncasted<HPower>(left, right);
+ break;
default:
UNREACHABLE();
}
« src/compiler/typer.cc ('K') | « src/full-codegen.cc ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698