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

Unified Diff: src/type-cache.h

Issue 2202413002: [turbofan] Improve typing rule for modulus. (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
« src/compiler/simplified-lowering.cc ('K') | « src/compiler/simplified-lowering.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/type-cache.h
diff --git a/src/type-cache.h b/src/type-cache.h
index 3ebf91e66b8b6c1a91b32d3934120b7120621340..c164708245c076296721eb76f082f4ed0878ef82 100644
--- a/src/type-cache.h
+++ b/src/type-cache.h
@@ -78,6 +78,10 @@ class TypeCache final {
Type::Intersect(Type::Undefined(), Type::Untagged(), zone());
Type* const kSigned32OrMinusZero =
Type::Union(Type::Signed32(), Type::MinusZero(), zone());
+ Type* const kSigned32OrMinusZeroOrNaN =
+ Type::Union(Type::Signed32(), Type::MinusZeroOrNaN(), zone());
+ Type* const kUnsigned32OrMinusZeroOrNaN =
+ Type::Union(Type::Unsigned32(), Type::MinusZeroOrNaN(), zone());
// Asm.js related types.
Type* const kAsmSigned = kInt32;
« src/compiler/simplified-lowering.cc ('K') | « src/compiler/simplified-lowering.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698