[platform] Implement a worker pool
authorjochen@chromium.org <jochen@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 20 Dec 2013 07:52:58 +0000 (07:52 +0000)
committerjochen@chromium.org <jochen@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 20 Dec 2013 07:52:58 +0000 (07:52 +0000)
commite6ef64c5907fd7b1fbd624d9d9fe3b64223ed220
tree677302925a1d20208f87293231d683c3620c2d2e
parent0dbbedc3443b3ad3677ae4c63e7d0cb647b53112
[platform] Implement a worker pool

We don't use the worker pool yet, however, there are tests. Yay. The
next step is to use the worker pool for parallel sweeping.

I've also started to move the platform related files into a sub
directory. The goal is to eventually build all the platform stuff as
a separate library which is used by d8 and cctest (and other embedders
that wish to use the default implementation) but not by chromium.

BUG=v8:3015
R=hpayer@chromium.org, svenpanne@chromium.org
LOG=n

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18380 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
15 files changed:
src/default-platform.cc [deleted file]
src/default-platform.h [deleted file]
src/isolate.h
src/libplatform/default-platform.cc [new file with mode: 0644]
src/libplatform/default-platform.h [new file with mode: 0644]
src/libplatform/task-queue.cc [new file with mode: 0644]
src/libplatform/task-queue.h [new file with mode: 0644]
src/libplatform/worker-thread.cc [new file with mode: 0644]
src/libplatform/worker-thread.h [new file with mode: 0644]
src/v8.cc
test/cctest/cctest.gyp
test/cctest/test-libplatform-task-queue.cc [new file with mode: 0644]
test/cctest/test-libplatform-worker-thread.cc [new file with mode: 0644]
test/cctest/test-libplatform.h [new file with mode: 0644]
tools/gyp/v8.gyp