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

Unified Diff: src/zone-type-cache.h

Issue 1420093005: [turbofan] Sanitize typing rules for function calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « src/compiler/typer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/zone-type-cache.h
diff --git a/src/zone-type-cache.h b/src/zone-type-cache.h
index bdc4388009a52e2127f2c6736a242af3739b60fa..f723997badd5b3161df2c137c515fe39e910d11c 100644
--- a/src/zone-type-cache.h
+++ b/src/zone-type-cache.h
@@ -37,28 +37,11 @@ class ZoneTypeCache final {
Type* const kSingletonZero = CreateRange(0.0, 0.0);
Type* const kSingletonOne = CreateRange(1.0, 1.0);
Type* const kZeroOrOne = CreateRange(0.0, 1.0);
+ Type* const kZeroToThirtyTwo = CreateRange(0.0, 32.0);
Type* const kZeroish =
Type::Union(kSingletonZero, Type::MinusZeroOrNaN(), zone());
Type* const kInteger = CreateRange(-V8_INFINITY, V8_INFINITY);
Type* const kWeakint = Type::Union(kInteger, Type::MinusZeroOrNaN(), zone());
- Type* const kWeakintFunc1 = Type::Function(kWeakint, Type::Number(), zone());
-
- Type* const kRandomFunc0 = Type::Function(Type::OrderedNumber(), zone());
- Type* const kAnyFunc0 = Type::Function(Type::Any(), zone());
- Type* const kAnyFunc1 = Type::Function(Type::Any(), Type::Any(), zone());
- Type* const kAnyFunc2 =
- Type::Function(Type::Any(), Type::Any(), Type::Any(), zone());
- Type* const kAnyFunc3 = Type::Function(Type::Any(), Type::Any(), Type::Any(),
- Type::Any(), zone());
- Type* const kNumberFunc0 = Type::Function(Type::Number(), zone());
- Type* const kNumberFunc1 =
- Type::Function(Type::Number(), Type::Number(), zone());
- Type* const kNumberFunc2 =
- Type::Function(Type::Number(), Type::Number(), Type::Number(), zone());
- Type* const kImulFunc = Type::Function(Type::Signed32(), Type::Integral32(),
- Type::Integral32(), zone());
- Type* const kClz32Func =
- Type::Function(CreateRange(0, 32), Type::Number(), zone());
#define TYPED_ARRAY(TypeName, type_name, TYPE_NAME, ctype, size) \
Type* const k##TypeName##Array = CreateArray(k##TypeName);
« no previous file with comments | « src/compiler/typer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698