Check interceptor before optimizing load/store
Review URL: https://chromiumcodereview.appspot.com/11753027 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13324 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
a060bf0e9b
commit
11c2557452
@ -5399,6 +5399,10 @@ static bool ComputeLoadStoreField(Handle<Map> type,
|
||||
Handle<String> name,
|
||||
LookupResult* lookup,
|
||||
bool is_store) {
|
||||
if (type->has_named_interceptor()) {
|
||||
lookup->InterceptorResult(NULL);
|
||||
return false;
|
||||
}
|
||||
// If we directly find a field, the access can be inlined.
|
||||
type->LookupDescriptor(NULL, *name, lookup);
|
||||
if (lookup->IsField()) return true;
|
||||
|
Loading…
Reference in New Issue
Block a user