Drive-by comment: The cache should definitely be per-context (and I should have
noticed during review. My bad!).
The result of a function that belongs to one context must not be returned by a
function in another context, since it might be using completely different
objects to build the result (in the current use-case, the two contexts have
different RegExp.prototype objects, so caching the result of the RegExp function
would give incorrect results).

http://codereview.chromium.org/1731002/show

--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev

Reply via email to