Rework startup-data-util.
authorvogelheim <vogelheim@chromium.org>
Fri, 14 Aug 2015 12:11:29 +0000 (05:11 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 14 Aug 2015 12:11:46 +0000 (12:11 +0000)
commitc69e2eae548d4a68bb1b91032e9825709155a8c5
tree58c691ff9781d878598e4d8cd4ba0d2a77b4bd77
parentf3a4d2c550270f18f21f64b0d921415ffdebd0dd
Rework startup-data-util.

- Make the API look like v8::V8::InitializeICU.
  (That is: A static method call, not an object to be created on the stack.)
- Fix path separator on Windows, by calling base::OS::isPathSeparator.
- Move into API, so that it can be called by hello-world & friends.
- Actually call it from hello-world and friends.

R=jochen@chromium.org
BUG=

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

Cr-Commit-Position: refs/heads/master@{#30174}
17 files changed:
BUILD.gn
include/v8.h
samples/hello-world.cc
samples/process.cc
samples/shell.cc
src/api.cc
src/d8.cc
src/d8.gyp
src/startup-data-util.cc
src/startup-data-util.h
test/cctest/cctest.cc
test/cctest/cctest.gyp
test/unittests/run-all-unittests.cc
test/unittests/unittests.gyp
tools/gyp/v8.gyp
tools/parser-shell.cc
tools/parser-shell.gyp