Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index 8033207ba479c20f4345ac5b4b3619ffd941fd14..13a971dc1a25474efcd90c978ce8e65f1aea11b6 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -6559,7 +6559,6 @@ bool HOptimizedGraphBuilder::PropertyAccessInfo::IsIntegerIndexedExotic() { |
bool HOptimizedGraphBuilder::PropertyAccessInfo::CanAccessMonomorphic() { |
if (!CanInlinePropertyAccess(map_)) return false; |
if (IsJSObjectFieldAccessor()) return IsLoad(); |
- if (IsJSArrayBufferViewFieldAccessor()) return IsLoad(); |
if (map_->IsJSFunctionMap() && map_->is_constructor() && |
!map_->has_non_instance_prototype() && |
name_.is_identical_to(isolate()->factory()->prototype_string())) { |
@@ -6607,17 +6606,6 @@ bool HOptimizedGraphBuilder::PropertyAccessInfo::CanAccessAsMonomorphic( |
} |
return true; |
} |
- if (GetJSArrayBufferViewFieldAccess(&access)) { |
- for (int i = 1; i < maps->length(); ++i) { |
- PropertyAccessInfo test_info(builder_, access_type_, maps->at(i), name_); |
- HObjectAccess test_access = HObjectAccess::ForMap(); // bogus default |
- if (!test_info.GetJSArrayBufferViewFieldAccess(&test_access)) { |
- return false; |
- } |
- if (!access.Equals(test_access)) return false; |
- } |
- return true; |
- } |
// Currently only handle numbers as a polymorphic case. |
// TODO(verwaest): Support monomorphic handling of numbers with a HCheckNumber |
@@ -6671,12 +6659,6 @@ HValue* HOptimizedGraphBuilder::BuildMonomorphicAccess( |
return New<HLoadNamedField>(object, checked_object, access); |
} |
- if (info->GetJSArrayBufferViewFieldAccess(&access)) { |
- DCHECK(info->IsLoad()); |
- checked_object = Add<HCheckArrayBufferNotNeutered>(checked_object); |
- return New<HLoadNamedField>(object, checked_object, access); |
- } |
- |
if (info->name().is_identical_to(isolate()->factory()->prototype_string()) && |
info->map()->IsJSFunctionMap() && info->map()->is_constructor()) { |
DCHECK(!info->map()->has_non_instance_prototype()); |