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

Unified Diff: src/compiler/operation-typer.cc

Issue 2222513002: [turbofan] Insert sigma nodes for loop variable backedge. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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/operation-typer.cc
diff --git a/src/compiler/operation-typer.cc b/src/compiler/operation-typer.cc
index c189d5c854eb69beeb7088c67dc6bdad43736d91..bec6f30b208bec1d4ffb52eefe06a7bc8ef0db39 100644
--- a/src/compiler/operation-typer.cc
+++ b/src/compiler/operation-typer.cc
@@ -4,6 +4,7 @@
#include "src/compiler/operation-typer.h"
+#include "src/compiler/common-operator.h"
#include "src/factory.h"
#include "src/isolate.h"
#include "src/type-cache.h"
@@ -456,6 +457,10 @@ Type* OperationTyper::FalsifyUndefined(ComparisonOutcome outcome) {
return singleton_true();
}
+Type* OperationTyper::TypeSigma(const Operator* sigma_op, Type* input) {
+ return Type::Intersect(input, SigmaTypeOf(sigma_op), zone());
+}
+
Type* OperationTyper::TypeJSAdd(Type* lhs, Type* rhs) {
lhs = ToPrimitive(lhs);
rhs = ToPrimitive(rhs);

Powered by Google App Engine
This is Rietveld 408576698