RESOLVED INVALID 93095
[V8] meta: Refactor V8 bindings
https://bugs.webkit.org/show_bug.cgi?id=93095
Summary [V8] meta: Refactor V8 bindings
Kentaro Hara
Reported 2012-08-03 05:21:33 PDT
I'm planning to refactor V8 bindings, blocking this meta bug. Let's discuss high-level stuff here. Examples: - Remove v8::Undefined(), v8::Handle<v8::Value>(), ...etc and use v8Undefined() everywhere. - Clean up V8Binding.h and document what each method does (just like v8.h). - Rename classes and files for clarification and consistency (e.g. SharedPersistent => OwnPersistent, WindowShell => WindowProxy, V8BindingsPerIsolateData => V8PerIsolateData, etc) - Remove hand-written ref()/deref() and Persistent::New()/Dispose(). - Fix a bunch of incorrect use of v8::TryCatch(). - Simplify V8Parameter and V8ParameterBase. - ...
Attachments
Adam Barth
Comment 1 2012-08-03 09:46:34 PDT
That all sounds great. Can I add one thing? We should break V8Binding.h down into a bunch of smaller headers. At the moment, it's a bit of a dumping ground for random functions.
Kentaro Hara
Comment 2 2012-08-03 09:49:46 PDT
(In reply to comment #1) > That all sounds great. Can I add one thing? We should break V8Binding.h down into a bunch of smaller headers. At the moment, it's a bit of a dumping ground for random functions. I do agree. At least I'd like to split out "V8 Binding APIs" from V8Binding.h to another header with a good documentation in each method (just like v8.h).
Anders Carlsson
Comment 3 2013-09-01 10:49:20 PDT
V8 is gone.
Note You need to log in before you can comment on or make changes to this bug.