RESOLVED FIXED 25201
Add ScriptFunctionCall/ScriptObject for V8
https://bugs.webkit.org/show_bug.cgi?id=25201
Summary Add ScriptFunctionCall/ScriptObject for V8
Dimitri Glazkov (Google)
Reported 2009-04-14 20:26:07 PDT
This is all part of the unforking effort for InspectorController
Attachments
Add ScriptFunctionCall/ScriptObject for V8, v1. (33.06 KB, patch)
2009-04-14 20:27 PDT, Dimitri Glazkov (Google)
fishd: review+
Dimitri Glazkov (Google)
Comment 1 2009-04-14 20:27:35 PDT
Created attachment 29488 [details] Add ScriptFunctionCall/ScriptObject for V8, v1. WebCore/ChangeLog | 23 ++++ WebCore/bindings/v8/ScriptFunctionCall.cpp | 168 ++++++++++++++++++++++++ WebCore/bindings/v8/ScriptFunctionCall.h | 70 ++++++++++ WebCore/bindings/v8/ScriptObject.cpp | 139 ++++++++++++++++++++ WebCore/bindings/v8/ScriptObject.h | 72 ++++++++++ WebCore/bindings/v8/ScriptObjectQuarantine.cpp | 102 ++++++++++++++ WebCore/bindings/v8/ScriptObjectQuarantine.h | 60 +++++++++ WebCore/bindings/v8/ScriptScope.cpp | 67 ++++++++++ WebCore/bindings/v8/ScriptScope.h | 57 ++++++++ WebCore/bindings/v8/ScriptState.cpp | 50 +++++++ WebCore/bindings/v8/ScriptState.h | 11 ++ WebCore/bindings/v8/ScriptString.h | 1 + WebCore/bindings/v8/ScriptValue.h | 5 + 13 files changed, 825 insertions(+), 0 deletions(-)
Darin Fisher (:fishd, Google)
Comment 2 2009-04-14 21:13:00 PDT
Comment on attachment 29488 [details] Add ScriptFunctionCall/ScriptObject for V8, v1. > +++ b/WebCore/bindings/v8/ScriptObject.cpp ... > +#include "config.h" > +#include "ScriptObject.h" > +#include "ScriptScope.h" > +#include "ScriptState.h" nit: insert newline after ScriptObject.h > +++ b/WebCore/bindings/v8/ScriptObject.h ... > + class ScriptObject : public ScriptValue { ... > + static ScriptObject createNew(ScriptState*); nit: isn't it more common to just call a function like this "create" instead? > +++ b/WebCore/bindings/v8/ScriptObjectQuarantine.cpp ... > +bool getQuarantinedScriptObject(Database* database, ScriptObject& quarantinedObject) > +{ > + ASSERT(database); > + > + // FIXME: Implement when Database V8 bindings are enabled nit: maybe add an ASSERT_NOT_REACHED? > + // FIXME: Implement when DOM Storage V8 bindings are enabled ditto LGTM
Dimitri Glazkov (Google)
Comment 3 2009-04-15 20:33:53 PDT
Comments addressed, landed as http://trac.webkit.org/changeset/42568.
Note You need to log in before you can comment on or make changes to this bug.