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

Unified Diff: src/compiler/type-hints.h

Issue 2149583002: [turbofan] Extend undefined-to-number truncation to all oddballs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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/type-hint-analyzer.cc ('k') | src/compiler/type-hints.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/type-hints.h
diff --git a/src/compiler/type-hints.h b/src/compiler/type-hints.h
index 7c9baddd1394dd9355f31459c8cd7e0509f03fc4..c805265d490806251807609caf7b8c17ef7244a7 100644
--- a/src/compiler/type-hints.h
+++ b/src/compiler/type-hints.h
@@ -15,14 +15,7 @@ namespace compiler {
// Type hints for an binary operation.
class BinaryOperationHints final {
public:
- enum Hint {
- kNone,
- kSignedSmall,
- kSigned32,
- kNumberOrUndefined,
- kString,
- kAny
- };
+ enum Hint { kNone, kSignedSmall, kSigned32, kNumberOrOddball, kString, kAny };
BinaryOperationHints() : BinaryOperationHints(kNone, kNone, kNone) {}
BinaryOperationHints(Hint left, Hint right, Hint result)
@@ -71,7 +64,7 @@ class CompareOperationHints final {
kNone,
kBoolean,
kSignedSmall,
- kNumber,
+ kNumberOrOddball,
kString,
kInternalizedString,
kUniqueName,
« no previous file with comments | « src/compiler/type-hint-analyzer.cc ('k') | src/compiler/type-hints.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698