Oliver Buchtala
387da69e84
Pull namespace implementation up to be shared between js emitters.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13775 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:59:55 +00:00
Oliver Buchtala
66ead9afb2
Simplify implementation using new issetter flag.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13774 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:59:43 +00:00
Oliver Buchtala
d2debe3270
Add more verbose temporary flags for setters in variable wrappers.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13773 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:59:31 +00:00
Oliver Buchtala
16077503c8
Fix former workaround by concerning static member functions.
...
"storage" attribute is removed by Language::staticmemberfunctionHandler
which was resolved by a workaround before.
Now, the implementation relies completely on state flags retrieved at
a proper point.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13772 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:59:18 +00:00
Oliver Buchtala
c470864d12
Remove some dead code and an obsolete member variable from JSEmitter.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13771 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:59:03 +00:00
Oliver Buchtala
46624e24e5
Remove member variable current_wrapper from JSEmitter.
...
Instead each emitting function creates local wrapper instance.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13770 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:58:49 +00:00
Oliver Buchtala
8577ae4179
Minor clean up.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13769 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:58:37 +00:00
Oliver Buchtala
b778c4816b
Remove a global variable from JSEmitter by making use of JSEmitterState.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13768 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:58:23 +00:00
Oliver Buchtala
9af3c4879b
Switch to global variable for enabling code template debug information.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13767 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:58:11 +00:00
Oliver Buchtala
b39e2bfff0
Refactor JSC emitter to reduce global state variables.
...
Also meld v8 emitter into javascript.cxx (provisional).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13766 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:57:57 +00:00
Oliver Buchtala
35e6b73d2a
Add swig configuration files for v8.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13765 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:57:42 +00:00
Oliver Buchtala
050219d998
Merge branch 'devel' of https://github.com/Neha03/gsoc2012-javascript into devel
...
Conflicts:
.project
COPYRIGHT
Doc/Manual/style.css
Examples/Makefile.in
Examples/test-suite/common.mk
Lib/typemaps/strings.swg
Makefile.in
Source/DOH/fio.c
Source/Makefile.am
Source/Modules/emit.cxx
Source/Modules/javascript.cxx
configure.in
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13764 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:56:48 +00:00
Oliver Buchtala
360ef44e09
Clean up in v8 helper functions.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13763 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:52:41 +00:00
Oliver Buchtala
229f2d0fa5
Add v8 input typemap for cstrings.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13762 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:52:28 +00:00
Oliver Buchtala
8168750c1b
Add example for string marshalling to v8 specification.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13761 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:52:16 +00:00
Oliver Buchtala
67a3de9a93
Add example for inheritance to v8 specification.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13760 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:52:02 +00:00
Oliver Buchtala
32a32633ba
Add support for static member variables and functions to v8 module.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13759 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:51:47 +00:00
Oliver Buchtala
e8dd979d16
Update v8 specification.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13758 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:51:29 +00:00
Oliver Buchtala
0fd30dc60f
Add examples to specification of v8 code generator.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13757 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:51:16 +00:00
Oliver Buchtala
badf090cb5
Extend and rename v8 helper functions.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13756 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:51:00 +00:00
Oliver Buchtala
65d4769af8
Add initial support for argument marshalling using typemaps to v8 module.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13755 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:50:41 +00:00
Oliver Buchtala
0e60acfebd
Minor restructuring in v8 generator.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13754 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:50:19 +00:00
Oliver Buchtala
71bee1e78c
Complement variable processing in v8 generator.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13753 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:50:06 +00:00
Oliver Buchtala
8e0711cbc6
Fix memory related bug in generalized javascript emitter.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13752 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:49:44 +00:00
Oliver Buchtala
285badb95b
Improve v8 generator regarding registration of function wrappers.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13751 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:49:32 +00:00
Oliver Buchtala
7ba26c8a26
Minor change in v8 emitter.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13750 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:49:15 +00:00
Oliver Buchtala
9a599be8ab
Fix order of registration in v8 generator.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13749 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:49:02 +00:00
Oliver Buchtala
886f17c343
Implement namespace support for v8 generator.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13748 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:48:43 +00:00
Oliver Buchtala
90bbc6430b
Update v8 specification.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13747 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:48:24 +00:00
Oliver Buchtala
6c90d1eb6d
Minor improvements in v8 emitter implementation
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13746 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:48:11 +00:00
Oliver Buchtala
83ac719315
Add manual generated v8 wrapper examples to v8 specification.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13745 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:47:51 +00:00
Oliver Buchtala
a0b71935f2
Update v8 code generator specification.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13744 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:47:38 +00:00
Oliver Buchtala
3c30e2d382
Add initial Javascript V8 emitter implementation.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13743 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:47:19 +00:00
Oliver Buchtala
4bcfca05dd
Add some implementation details to specification of v8 code generator.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13742 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:46:31 +00:00
Oliver Buchtala
e888d7a892
Add a document about mapping C++ language features to Javascript.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13741 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:46:18 +00:00
Oliver Buchtala
5b5fdb171e
Add a paragraph about control flow analysis to V8 specification.
...
Control flow analysis for use cases:
- static variables
- simple class
- class properties
- class methods
- static class variables and functions
- inheritance.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13740 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:46:03 +00:00
Oliver Buchtala
5c3fef6367
Add initial version of a CMake configuration.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13739 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:45:49 +00:00
Oliver Buchtala
ba40fffd91
Add initial specification of code generator templates for V8 module.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13738 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:45:35 +00:00
Oliver Buchtala
d71a5f483a
Add module for Javascript target.
...
This module comes with a design that allows different code emitter implementations.
For the the phase of development the module is split into multiple files
which will be merged together when development converges.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13737 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-08 00:44:54 +00:00
Oliver Buchtala
c86ce942c2
Correct place of copyright entry.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13070 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-11 19:20:07 +00:00
Oliver Buchtala
d6060ceced
Add copyright entry for Oliver Buchtala.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/oliverb-javascript-v8@13067 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-11 13:55:16 +00:00
William S Fulton
8aeb72ef3b
swig-2.0.6 release date and summary
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13025 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-29 21:52:27 +00:00
William S Fulton
8bf1347354
Warning fixes using clang
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13024 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-29 21:51:18 +00:00
William S Fulton
127e772693
HTML doc section update
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13023 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-28 15:33:58 +00:00
William S Fulton
88fa632715
Fix %fragment error in docs and improve preprocessing and delimiters section - SF bug 3519394
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13022 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-28 15:30:19 +00:00
William S Fulton
a0e21e82ca
char **STRING_ARRAY typemaps fixed to handle null pointers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13021 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-28 14:29:23 +00:00
William S Fulton
52fe61820a
More for Mac OSX STL fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13020 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-28 14:27:55 +00:00
William S Fulton
c13131986e
Warning fix in python STL wrappers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13019 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-28 11:39:13 +00:00
William S Fulton
e39322cd01
Fix STL wrapper compilation errors on Mac OSX 64bit
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13018 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-28 11:18:10 +00:00
William S Fulton
60b9635c79
Fix uninitialised variable in Lua SWIGTYPE **OUTPUT typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13016 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-25 05:53:14 +00:00