Index: src/ic.cc |
diff --git a/src/ic.cc b/src/ic.cc |
index 0544a5bf9b734b88ce19c8b906d690f115c71fce..f09af327a192fa7b7305928baa1a11b44642a047 100644 |
--- a/src/ic.cc |
+++ b/src/ic.cc |
@@ -625,17 +625,14 @@ MaybeHandle<Object> LoadIC::Load(Handle<Object> object, Handle<String> name) { |
// Update inline cache and stub cache. |
if (use_ic) UpdateCaches(&lookup, object, name); |
- PropertyAttributes attr; |
// Get the property. |
+ LookupIterator it(object, name); |
Handle<Object> result; |
ASSIGN_RETURN_ON_EXCEPTION( |
- isolate(), |
- result, |
- Object::GetProperty(object, object, &lookup, name, &attr), |
- Object); |
+ isolate(), result, Object::GetProperty(&it), Object); |
// If the property is not present, check if we need to throw an exception. |
if ((lookup.IsInterceptor() || lookup.IsHandler()) && |
- attr == ABSENT && IsUndeclaredGlobal(object)) { |
+ !it.IsFound() && IsUndeclaredGlobal(object)) { |
return ReferenceError("not_defined", name); |
} |