Use a per-isolate cache for the date object JS bits
authorjochen@chromium.org <jochen@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 11 Mar 2014 09:04:14 +0000 (09:04 +0000)
committerjochen@chromium.org <jochen@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 11 Mar 2014 09:04:14 +0000 (09:04 +0000)
commit00ba711658a1f0a105b0fe00a0641dfcaec68ea8
tree02dae30b69528c2a7c2010c899846b127637872b
parent91a2aa6a2c28d465a672683b70096f00d82cb73c
Use a per-isolate cache for the date object JS bits

The old per-context cache made it difficult for the embedder to notify
v8 of date/time configuration changes. The embedder had to enter all
contexts for the isolate and notify v8 for each context.

With the new per-isolate cache, the embedder only needs to notify v8
once per isolate.

BUG=348856
LOG=y
R=dcarney@chromium.org, ulan@chromium.org
TEST=cctest/test-date

Review URL: https://codereview.chromium.org/189913023

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19784 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/api.cc
src/date.js
src/global-handles.h
src/runtime.cc
src/runtime.h
test/cctest/test-date.cc