Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 902e507258c6c722c829c244df0c1e17be632620..1bdc5aa71ccd18b8ad4fc855d5c52816e3cc07bf 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -7351,7 +7351,7 @@ HInstruction* HOptimizedGraphBuilder::BuildMonomorphicElementAccess( |
PrototypeIterator iter(map); |
JSObject* holder = NULL; |
while (!iter.IsAtEnd()) { |
- holder = JSObject::cast(*PrototypeIterator::GetCurrent(iter)); |
+ holder = *PrototypeIterator::GetCurrent<JSObject>(iter); |
iter.Advance(); |
} |
DCHECK(holder && holder->IsJSObject()); |
@@ -7915,15 +7915,13 @@ HInstruction* HGraphBuilder::BuildCheckPrototypeMaps(Handle<JSObject> prototype, |
PrototypeIterator::START_AT_RECEIVER); |
while (holder.is_null() || |
!PrototypeIterator::GetCurrent(iter).is_identical_to(holder)) { |
- BuildConstantMapCheck( |
- Handle<JSObject>::cast(PrototypeIterator::GetCurrent(iter))); |
+ BuildConstantMapCheck(PrototypeIterator::GetCurrent<JSObject>(iter)); |
iter.Advance(); |
if (iter.IsAtEnd()) { |
return NULL; |
} |
} |
- return BuildConstantMapCheck( |
- Handle<JSObject>::cast(PrototypeIterator::GetCurrent(iter))); |
+ return BuildConstantMapCheck(PrototypeIterator::GetCurrent<JSObject>(iter)); |
} |