Index: src/hydrogen.h |
diff --git a/src/hydrogen.h b/src/hydrogen.h |
index 6d81307e2cb293e1f3678693998cdda3565b64a4..ac6b99dc5fc79315b3d1d410d49c173e35e75928 100644 |
--- a/src/hydrogen.h |
+++ b/src/hydrogen.h |
@@ -2393,10 +2393,10 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor { |
int offset; |
if (Accessors::IsJSObjectFieldAccessor<Type>(type_, name_, &offset)) { |
if (type_->Is(Type::String())) { |
- ASSERT(name_->Equals(isolate()->heap()->length_string())); |
+ ASSERT(String::Equals(isolate()->factory()->length_string(), name_)); |
*access = HObjectAccess::ForStringLength(); |
} else if (type_->Is(Type::Array())) { |
- ASSERT(name_->Equals(isolate()->heap()->length_string())); |
+ ASSERT(String::Equals(isolate()->factory()->length_string(), name_)); |
*access = HObjectAccess::ForArrayLength(map()->elements_kind()); |
} else { |
*access = HObjectAccess::ForMapAndOffset(map(), offset); |