Index: src/compiler/access-builder.cc |
diff --git a/src/compiler/access-builder.cc b/src/compiler/access-builder.cc |
index c69f22cb870fb7361774aa4322867555c3b61f08..9e5a0bbb8d84268d3117cf12ba10be0f57a82cca 100644 |
--- a/src/compiler/access-builder.cc |
+++ b/src/compiler/access-builder.cc |
@@ -59,10 +59,9 @@ FieldAccess AccessBuilder::ForMapInstanceType() { |
// static |
-FieldAccess AccessBuilder::ForStringLength() { |
+FieldAccess AccessBuilder::ForStringLength(Zone* zone) { |
return {kTaggedBase, String::kLengthOffset, Handle<Name>(), |
- Type::Intersect(Type::UnsignedSmall(), Type::TaggedSigned()), |
- kMachAnyTagged}; |
+ Type::Range(0, String::kMaxLength, zone), kMachAnyTagged}; |
} |