Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index 482c2e6cb74ec776a37a91bf2ac551ca49c82502..1ef5ab3aac4b1fb560a93bf4144dcdeaded77b5e 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -625,11 +625,10 @@ Call::CallType Call::GetCallType(Isolate* isolate) const { |
bool Call::ComputeGlobalTarget(Handle<GlobalObject> global, |
LookupIterator* it) { |
target_ = Handle<JSFunction>::null(); |
- cell_ = Handle<Cell>::null(); |
DCHECK(it->IsFound() && it->GetHolder<JSObject>().is_identical_to(global)); |
- cell_ = it->GetPropertyCell(); |
- if (cell_->value()->IsJSFunction()) { |
- Handle<JSFunction> candidate(JSFunction::cast(cell_->value())); |
+ Handle<PropertyCell> cell = it->GetPropertyCell(); |
+ if (cell->value()->IsJSFunction()) { |
+ Handle<JSFunction> candidate(JSFunction::cast(cell->value())); |
// If the function is in new space we assume it's more likely to |
// change and thus prefer the general IC code. |
if (!it->isolate()->heap()->InNewSpace(*candidate)) { |