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

Unified Diff: src/compiler/verifier.cc

Issue 2753773010: [compiler] Fix typing of ToLength. (Closed)
Patch Set: Created 3 years, 9 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/compiler/verifier.cc
diff --git a/src/compiler/verifier.cc b/src/compiler/verifier.cc
index 0f678735e903971b1c6ebd179a1e4e8efbfb3d01..418a277ee843f5c2bdb0b556b80428abaad369fe 100644
--- a/src/compiler/verifier.cc
+++ b/src/compiler/verifier.cc
@@ -570,8 +570,7 @@ void Verifier::Visitor::Check(Node* node) {
CheckTypeIs(node, Type::OrderedNumber());
break;
case IrOpcode::kJSToLength:
- // Type is OrderedNumber.
- CheckTypeIs(node, Type::OrderedNumber());
+ CheckTypeIs(node, Type::Range(0, kMaxSafeInteger, zone));
break;
case IrOpcode::kJSToName:
// Type is Name.
« 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