Landing patch by tonyg@chromium.org:
authorager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 25 May 2010 06:38:19 +0000 (06:38 +0000)
committerager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 25 May 2010 06:38:19 +0000 (06:38 +0000)
commitab6055d85d0fa496b10bf4151afee980ced6769d
tree4f0f4e654f7594d70924350e894fbece5ceae2d1
parent0328e0cf3aec657c516fbf572d66d40dc5f7ebe2
Landing patch by tonyg@chromium.org:

Changing ScriptData API to serialize its internal representation to a
const char* array.

This decouples the API from the internal representation and avoids the need for
callers to serialize themselves.

As a side-effect, ScriptData::New() no longer assumes ownership of its input.
This shouldn't matter as typical usage patterns for the old API would have
required a copy prior to calling ScriptData::New().

Review URL: http://codereview.chromium.org/2118010/show

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4710 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
include/v8.h
src/api.cc
src/objects.cc
src/parser.cc
src/parser.h
test/cctest/test-api.cc