Fixed comment and simplified the related code a bit.

TBR=erik.corry@gmail.com

Review URL: https://chromiumcodereview.appspot.com/10911003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12411 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
svenpanne@chromium.org 2012-08-30 06:45:45 +00:00
parent 5cd4e83bbc
commit c3df19e692

View File

@ -1323,15 +1323,9 @@ static bool LookupForWrite(Handle<JSObject> receiver,
receiver->map()->LookupTransition(*receiver, *name, lookup);
}
if (!StoreICableLookup(lookup)) {
// 2nd chance: There can be accessors somewhere in the prototype chain. Note
// that we explicitly exclude native accessors for now, because the stubs
// are not yet prepared for this scenario.
// 2nd chance: There can be accessors somewhere in the prototype chain.
receiver->Lookup(*name, lookup);
if (!lookup->IsPropertyCallbacks()) {
return false;
}
Handle<Object> callback(lookup->GetCallbackObject());
return StoreICableLookup(lookup);
return lookup->IsPropertyCallbacks() && StoreICableLookup(lookup);
}
if (lookup->IsInterceptor() &&