Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index f96fd83849cff3090814484757f26b352932bc87..5bf2f029a9c509198f0e83bbc3ceacdb10b53187 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -10560,13 +10560,12 @@ void Code::FindAllTypes(TypeHandleList* types) { |
ASSERT(is_inline_cache_stub()); |
DisallowHeapAllocation no_allocation; |
int mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT); |
- Isolate* isolate = GetIsolate(); |
for (RelocIterator it(this, mask); !it.done(); it.next()) { |
RelocInfo* info = it.rinfo(); |
Object* object = info->target_object(); |
if (object->IsMap()) { |
Handle<Map> map(Map::cast(object)); |
- types->Add(handle(IC::MapToType(map), isolate)); |
+ types->Add(IC::MapToType(map)); |
} |
} |
} |
@@ -16598,9 +16597,8 @@ Handle<Type> PropertyCell::UpdatedType(Handle<PropertyCell> cell, |
Handle<Type> old_type(cell->type(), isolate); |
// TODO(2803): Do not track ConsString as constant because they cannot be |
// embedded into code. |
- Handle<Type> new_type(value->IsConsString() || value->IsTheHole() |
- ? Type::Any() |
- : Type::Constant(value, isolate), isolate); |
+ Handle<Type> new_type = value->IsConsString() || value->IsTheHole() |
+ ? Type::Any(isolate) : Type::Constant(value, isolate); |
if (new_type->Is(old_type)) { |
return old_type; |
@@ -16613,7 +16611,7 @@ Handle<Type> PropertyCell::UpdatedType(Handle<PropertyCell> cell, |
return new_type; |
} |
- return handle(Type::Any(), isolate); |
+ return Type::Any(isolate); |
} |