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

Side by Side Diff: src/compiler/type-cache.h

Issue 2609373002: [turbofan] Improve typing rules for NumberFloor and NumberDivide. (Closed)
Patch Set: Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « src/compiler/operation-typer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_COMPILER_TYPE_CACHE_H_ 5 #ifndef V8_COMPILER_TYPE_CACHE_H_
6 #define V8_COMPILER_TYPE_CACHE_H_ 6 #define V8_COMPILER_TYPE_CACHE_H_
7 7
8 #include "src/compiler/types.h" 8 #include "src/compiler/types.h"
9 #include "src/date.h" 9 #include "src/date.h"
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 Type* const kZeroish = 57 Type* const kZeroish =
58 Type::Union(kSingletonZero, Type::MinusZeroOrNaN(), zone()); 58 Type::Union(kSingletonZero, Type::MinusZeroOrNaN(), zone());
59 Type* const kInteger = CreateRange(-V8_INFINITY, V8_INFINITY); 59 Type* const kInteger = CreateRange(-V8_INFINITY, V8_INFINITY);
60 Type* const kIntegerOrMinusZero = 60 Type* const kIntegerOrMinusZero =
61 Type::Union(kInteger, Type::MinusZero(), zone()); 61 Type::Union(kInteger, Type::MinusZero(), zone());
62 Type* const kIntegerOrMinusZeroOrNaN = 62 Type* const kIntegerOrMinusZeroOrNaN =
63 Type::Union(kIntegerOrMinusZero, Type::NaN(), zone()); 63 Type::Union(kIntegerOrMinusZero, Type::NaN(), zone());
64 Type* const kPositiveInteger = CreateRange(0.0, V8_INFINITY); 64 Type* const kPositiveInteger = CreateRange(0.0, V8_INFINITY);
65 Type* const kPositiveIntegerOrMinusZero = 65 Type* const kPositiveIntegerOrMinusZero =
66 Type::Union(kPositiveInteger, Type::MinusZero(), zone()); 66 Type::Union(kPositiveInteger, Type::MinusZero(), zone());
67 Type* const kPositiveIntegerOrNaN =
68 Type::Union(kPositiveInteger, Type::NaN(), zone());
67 Type* const kPositiveIntegerOrMinusZeroOrNaN = 69 Type* const kPositiveIntegerOrMinusZeroOrNaN =
68 Type::Union(kPositiveIntegerOrMinusZero, Type::NaN(), zone()); 70 Type::Union(kPositiveIntegerOrMinusZero, Type::NaN(), zone());
69 71
70 Type* const kAdditiveSafeInteger = 72 Type* const kAdditiveSafeInteger =
71 CreateRange(-4503599627370496.0, 4503599627370496.0); 73 CreateRange(-4503599627370496.0, 4503599627370496.0);
72 Type* const kSafeInteger = CreateRange(-kMaxSafeInteger, kMaxSafeInteger); 74 Type* const kSafeInteger = CreateRange(-kMaxSafeInteger, kMaxSafeInteger);
73 Type* const kAdditiveSafeIntegerOrMinusZero = 75 Type* const kAdditiveSafeIntegerOrMinusZero =
74 Type::Union(kAdditiveSafeInteger, Type::MinusZero(), zone()); 76 Type::Union(kAdditiveSafeInteger, Type::MinusZero(), zone());
75 Type* const kSafeIntegerOrMinusZero = 77 Type* const kSafeIntegerOrMinusZero =
76 Type::Union(kSafeInteger, Type::MinusZero(), zone()); 78 Type::Union(kSafeInteger, Type::MinusZero(), zone());
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 } 159 }
158 160
159 Zone* zone() { return &zone_; } 161 Zone* zone() { return &zone_; }
160 }; 162 };
161 163
162 } // namespace compiler 164 } // namespace compiler
163 } // namespace internal 165 } // namespace internal
164 } // namespace v8 166 } // namespace v8
165 167
166 #endif // V8_COMPILER_TYPE_CACHE_H_ 168 #endif // V8_COMPILER_TYPE_CACHE_H_
OLDNEW
« no previous file with comments | « src/compiler/operation-typer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698