Commit 11c25574 authored by verwaest@chromium.org's avatar verwaest@chromium.org

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
parent a060bf0e
...@@ -5399,6 +5399,10 @@ static bool ComputeLoadStoreField(Handle<Map> type, ...@@ -5399,6 +5399,10 @@ static bool ComputeLoadStoreField(Handle<Map> type,
Handle<String> name, Handle<String> name,
LookupResult* lookup, LookupResult* lookup,
bool is_store) { bool is_store) {
if (type->has_named_interceptor()) {
lookup->InterceptorResult(NULL);
return false;
}
// If we directly find a field, the access can be inlined. // If we directly find a field, the access can be inlined.
type->LookupDescriptor(NULL, *name, lookup); type->LookupDescriptor(NULL, *name, lookup);
if (lookup->IsField()) return true; if (lookup->IsField()) return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment