Index: src/compiler/typed-optimization.cc |
diff --git a/src/compiler/typed-optimization.cc b/src/compiler/typed-optimization.cc |
index 34661ee9618d99b2888cc495e0975b51e9cab5bc..1f943927b5ec234dd73435c763ef2a7123b355e6 100644 |
--- a/src/compiler/typed-optimization.cc |
+++ b/src/compiler/typed-optimization.cc |
@@ -98,11 +98,8 @@ Reduction TypedOptimization::Reduce(Node* node) { |
namespace { |
MaybeHandle<Map> GetStableMapFromObjectType(Type* object_type) { |
- if (object_type->IsHeapConstant() && |
- object_type->AsHeapConstant()->Value()->IsHeapObject()) { |
- Handle<Map> object_map( |
- Handle<HeapObject>::cast(object_type->AsHeapConstant()->Value()) |
- ->map()); |
+ if (object_type->IsHeapConstant()) { |
+ Handle<Map> object_map(object_type->AsHeapConstant()->Value()->map()); |
if (object_map->is_stable()) return object_map; |
} |
return MaybeHandle<Map>(); |