Status: Accepted
Owner: [email protected]
Labels: Type-FeatureRequest Priority-Low

New issue 368 by [email protected]: Consider compiling the whole lookup  
chain in LoadStubCompiler::CompileLoadInterceptor
http://code.google.com/p/v8/issues/detail?id=368

Maybe we can get additional boost if we compile the whole lookup chain for
the case with interceptors.   That could look like:

for (JSObject* o = receiver;; o = o->GetPrototype()) {
   LookupResult lookup;
   o->Lookup(&lookup);
   if (lookup is load interceptor) {
     // push o on stack
   } else {
     // generate code to get property from lookup
   }
}

Now LoadInterceptorProperty would use the list of holders to lookup the
property and if everything fails, just use compiled property lookup (see
else clause above).

The main drawback might be that we would need to check longer prototype
chain to see if ICs are valid

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to