Closed Bug 488837 Opened 16 years ago Closed 14 years ago

js_LookupPropertyWithFlags and shared scopes: extra locks and checks for classes without resolve hooks

Categories

(Core :: JavaScript Engine, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: igor, Assigned: igor)

Details

Currently js_LookupPropertyWithFlags only searches the scope when the object owns the scope. For shared scopes the search is delayed until the following iteration of the main loop. But this is only necessary if the class has a resolve hook. If there is no hook and scope->object is the prototype of the object, then the scope can be searched immediately skipping unnecessary locking/unlocking and native/non-native checks for the prototype.
This is no longer relevant in view of coming changes to object sharing across threads.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.