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

Unified Diff: src/compiler/verifier.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/compiler/verifier.cc
diff --git a/src/compiler/verifier.cc b/src/compiler/verifier.cc
index fe19eaa07edfb8ed14ab82493808f1503f28f2dc..44ebbd2eb1c7990e9c33862fb3b236c947b83ae0 100644
--- a/src/compiler/verifier.cc
+++ b/src/compiler/verifier.cc
@@ -461,6 +461,7 @@ void Verifier::Visitor::Check(Node* node) {
case IrOpcode::kJSMultiply:
case IrOpcode::kJSDivide:
case IrOpcode::kJSModulus:
+ case IrOpcode::kJSExponentiate:
// Type is Number.
CheckUpperIs(node, Type::Number());
break;
@@ -575,6 +576,7 @@ void Verifier::Visitor::Check(Node* node) {
case IrOpcode::kNumberMultiply:
case IrOpcode::kNumberDivide:
case IrOpcode::kNumberModulus:
+ case IrOpcode::kNumberExponentiate:
// (Number, Number) -> Number
CheckValueInputIs(node, 0, Type::Number());
CheckValueInputIs(node, 1, Type::Number());
« src/compiler/typer.cc ('K') | « src/compiler/typer.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698