http://codereview.chromium.org/2023005/diff/1/2
File src/date.js (right):

http://codereview.chromium.org/2023005/diff/1/2#newcode249
src/date.js:249: if (time == ltc.key) return ltc.val;
On second thought, use
 if (%_ObjectEquals(time, ltc.key)) return ltc.val;
The comparison is faster, and should work just as well in this case.
The key is likely to be a HeapNumber, and this cache only makes sense
when you do several calls on the same Date object, and they will also
have the same HeapNumber as time value.

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

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

Reply via email to