Index: src/type-info.cc |
diff --git a/src/type-info.cc b/src/type-info.cc |
index 01943414a7cb60d8495bab94a0adacf13149dd4b..096e383c94f8e918cc15dbc6f21639f6d40d943c 100644 |
--- a/src/type-info.cc |
+++ b/src/type-info.cc |
@@ -62,23 +62,12 @@ |
Handle<Object> TypeFeedbackOracle::GetInfo(FeedbackVectorICSlot slot) { |
DCHECK(slot.ToInt() >= 0 && slot.ToInt() < feedback_vector_->length()); |
- Handle<Object> undefined = |
- Handle<Object>::cast(isolate()->factory()->undefined_value()); |
Object* obj = feedback_vector_->Get(slot); |
- |
- // Vector-based ICs do not embed direct pointers to maps, functions. |
- // Instead a WeakCell is always used. |
- if (obj->IsWeakCell()) { |
- WeakCell* cell = WeakCell::cast(obj); |
- if (cell->cleared()) return undefined; |
- obj = cell->value(); |
- } |
- |
if (!obj->IsJSFunction() || |
!CanRetainOtherContext(JSFunction::cast(obj), *native_context_)) { |
return Handle<Object>(obj, isolate()); |
} |
- return undefined; |
+ return Handle<Object>::cast(isolate()->factory()->undefined_value()); |
} |