swig/Lib/javascript/jsc
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 Merge branch 'devel' of https://github.com/Neha03/gsoc2012-javascript into devel 2012-09-08 00:56:48 +00:00
javascript.swg Merge branch 'devel' of https://github.com/Neha03/gsoc2012-javascript into devel 2012-09-08 00:56:48 +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 Merge branch 'devel' of https://github.com/Neha03/gsoc2012-javascript into devel 2012-09-08 00:56:48 +00:00
javascripthelpers.swg Merge branch 'devel' of https://github.com/Neha03/gsoc2012-javascript into devel 2012-09-08 00:56:48 +00:00
javascriptinit.swg Merge branch 'devel' of https://github.com/Neha03/gsoc2012-javascript into devel 2012-09-08 00:56:48 +00:00
javascriptkw.swg Merge branch 'devel' of https://github.com/Neha03/gsoc2012-javascript into devel 2012-09-08 00:56:48 +00:00
javascriptprimitives.swg Merge branch 'devel' of https://github.com/Neha03/gsoc2012-javascript into devel 2012-09-08 00:56:48 +00:00
javascriptruntime.swg Merge branch 'devel' of https://github.com/Neha03/gsoc2012-javascript into devel 2012-09-08 00:56:48 +00:00
javascriptstrings.swg Fix handling of Char constants in JSC typemaps. 2012-09-08 01:09:57 +00:00
javascripttypemaps.swg Add swig configuration files for v8. 2012-09-08 00:57:42 +00:00
std_common.i Merge branch 'devel' of https://github.com/Neha03/gsoc2012-javascript into devel 2012-09-08 00:56:48 +00:00
std_complex.i Merge branch 'devel' of https://github.com/Neha03/gsoc2012-javascript into devel 2012-09-08 00:56:48 +00:00
std_except.i Merge branch 'devel' of https://github.com/Neha03/gsoc2012-javascript into devel 2012-09-08 00:56:48 +00:00
std_map.i Merge branch 'devel' of https://github.com/Neha03/gsoc2012-javascript into devel 2012-09-08 00:56:48 +00:00
std_pair.i Merge branch 'devel' of https://github.com/Neha03/gsoc2012-javascript into devel 2012-09-08 00:56:48 +00:00
std_string.i Fix std::string support for v8. 2013-08-31 03:23:11 +02:00
std_vector.i Merge branch 'devel' of https://github.com/Neha03/gsoc2012-javascript into devel 2012-09-08 00:56:48 +00:00
stl.i Merge branch 'devel' of https://github.com/Neha03/gsoc2012-javascript into devel 2012-09-08 00:56:48 +00:00