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:
parent
5cd4e83bbc
commit
c3df19e692
10
src/ic.cc
10
src/ic.cc
@ -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() &&
|
||||
|
Loading…
Reference in New Issue
Block a user