From 55750b1c62c30cb08184038aa50a21c2f5a31033 Mon Sep 17 00:00:00 2001 From: "marja@chromium.org" Date: Fri, 28 Feb 2014 13:54:14 +0000 Subject: [PATCH] Remove Script::SetData and the script_data parameter from Script::(Compile|New). This feature makes it possible to associate data with a script and get it back when the script is compiled or when an event is handled. It was historically used by Chromium Dev Tools, but not any more. It is not used by node.js. Note: this has nothing to do with the preparse data, despite the confusing name. The preparse data is passed as ScriptData*. R=svenpanne@chromium.org BUG= Review URL: https://codereview.chromium.org/184403002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19616 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- include/v8.h | 25 ++------------- src/accessors.cc | 20 ------------ src/accessors.h | 2 -- src/api.cc | 45 +++------------------------ src/bootstrapper.cc | 7 ----- src/compiler.cc | 4 --- src/compiler.h | 1 - src/debug.cc | 1 - src/factory.cc | 1 - src/heap-snapshot-generator.cc | 3 -- src/liveedit.cc | 1 - src/objects-debug.cc | 1 - src/objects-inl.h | 1 - src/objects-printer.cc | 2 -- src/objects.h | 6 +--- test/cctest/test-api.cc | 2 -- test/cctest/test-compiler.cc | 1 - test/cctest/test-debug.cc | 70 ++---------------------------------------- test/cctest/test-parsing.cc | 2 +- 19 files changed, 13 insertions(+), 182 deletions(-) diff --git a/include/v8.h b/include/v8.h index dd8f268..d54b9e4 100644 --- a/include/v8.h +++ b/include/v8.h @@ -1011,16 +1011,12 @@ class V8_EXPORT Script { * \param pre_data Pre-parsing data, as obtained by ScriptData::PreCompile() * using pre_data speeds compilation if it's done multiple times. * Owned by caller, no references are kept when New() returns. - * \param script_data Arbitrary data associated with script. Using - * this has same effect as calling SetData(), but allows data to be - * available to compile event handlers. * \return Compiled script object (context independent; when run it * will use the currently entered context). */ static Local