swig/Lib/javascript/v8
Eric Wing ed729f7d3a This brings over the memory leak fixes for pointers to structs with a %extend destructor from my Neha fork. The generator was not generating and connecting the needed code for the requested destructor to the v8 dtor finalizer.
I did not realize this branch has some JavaScriptCore stuff in it too. Unfortunately, it seems to have its own unique problems (like creating C++ files when it should be generating C files). My changes are targeted for v8, and I don't think my JSCore changes fully reach in this JSCore implementation so more work would need to be done to get this branch working. I think my Neha fork is in better shape at the moment.

Also, I did port over the 'NULL out the dtor function pointer' in the %nodefaultdtor fix to v8.

Usage case:
struct MyData {
%extend {
~MyData() {
FreeData($self);
}
}
};
%newobject CreateData;
struct MyData* CreateData(void);
%delobject FreeData;
void FreeData(struct MyData* the_data);

where the use case is something like:
var my_data = example.CreateData();
my_data = null;
2013-08-31 03:46:07 +02:00
..
ccomplex.i Add swig configuration files for v8. 2012-09-08 00:57:42 +00:00
complex.i Add swig configuration files for v8. 2012-09-08 00:57:42 +00:00
javascript.swg Add swig configuration files for v8. 2012-09-08 00:57:42 +00:00
javascriptcode.swg This brings over the memory leak fixes for pointers to structs with a %extend destructor from my Neha fork. The generator was not generating and connecting the needed code for the requested destructor to the v8 dtor finalizer. 2013-08-31 03:46:07 +02:00
javascriptcomplex.swg Add complex support to v8 module. 2012-09-08 01:15:29 +00:00
javascripthelpers.swg Fix errors concerning object wrapping and cleanup in v8 emitter. 2012-09-08 01:14:02 +00:00
javascriptinit.swg Fix errors concerning object wrapping and cleanup in v8 emitter. 2012-09-08 01:14:02 +00:00
javascriptkw.swg Add swig configuration files for v8. 2012-09-08 00:57:42 +00:00
javascriptprimitives.swg Fix AsVal macros of long and int for v8. 2012-09-08 01:12:33 +00:00
javascriptruntime.swg Fix errors related to wrapping and destruction of (undefined) SWIG_TYPES. 2012-09-08 01:15:12 +00:00
javascriptstrings.swg Fix std::string support for v8. 2013-08-31 03:23:11 +02:00
javascripttypemaps.swg Add swig configuration files for v8. 2012-09-08 00:57:42 +00:00
node.i Add a swig macro to register node.js extensions. 2013-08-31 03:23:12 +02:00
std_common.i Add swig configuration files for v8. 2012-09-08 00:57:42 +00:00
std_complex.i Add swig configuration files for v8. 2012-09-08 00:57:42 +00:00
std_except.i Add swig configuration files for v8. 2012-09-08 00:57:42 +00:00
std_map.i Add swig configuration files for v8. 2012-09-08 00:57:42 +00:00
std_pair.i Add swig configuration files for v8. 2012-09-08 00:57:42 +00:00
std_string.i Fix std::string support for v8. 2013-08-31 03:23:11 +02:00
std_vector.i Add swig configuration files for v8. 2012-09-08 00:57:42 +00:00
stl.i Add swig configuration files for v8. 2012-09-08 00:57:42 +00:00