Reviewers: Søren Gjesse,
Message:
Hi Soren
Recently I have been porting liveedit implementation from C++ to JavaScript.
However some functions must stay in C++. This small CL is about data
exchanging
between C++ and JS.
1. It provides 2 structures for C++, that are backed by JSArray object. I
did it
very simple and without touching other parts of V8 (like objects.h).
2. It also introduces BlindReference JavaScript type; I need to temporary
give
some sensitive objects (SharedFunctionInfo and Code) to JavaScript.
JavaScript
should hold them and then give them back to C++. I think it's good to
sanitize
these objects by BlindReference wrapper.
In particular, I tried to run my liveedit JS implementation under debugger
(!),
and debugger became crazy on seeing SharedFunctionInfo or Code.
Peter
Description:
Implement BlindReference object and provide couple of liveedit-specific
structures
Please review this at http://codereview.chromium.org/650127
Affected files:
M src/bootstrapper.cc
M src/contexts.h
M src/liveedit.cc
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev