Overall, this looks like the right approach. Adding another field to all contexts seems like a lot of overhead to solve this problem though. How about adding another map only used for 'catch' contexts? Then we know when resolving the receiver if the context is a 'catch' context and in that case the with object can be extracted from the scope chain and we don't have to store it explicitly?
http://codereview.chromium.org/14834 --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
