Oliver Buchtala
2efe63ebb2
Add some test runners.
2013-09-24 01:50:33 +02:00
Oliver Buchtala
b9ecf75f17
Fix emitter for member pointer constants.
...
However, I am not happy with the constant emitter in general.
Should not return dynamic values but register constant wrappers statically.
2013-09-24 01:50:13 +02:00
Oliver Buchtala
8bf966a65c
Fix %nspace support and activated relevant tests.
2013-09-24 01:47:13 +02:00
Oliver Buchtala
d34a6da08c
Disable warnings for some v8 test-cases.
2013-09-17 01:53:22 +02:00
Oliver Buchtala
b3c198ccee
Fix regression.
2013-09-16 22:28:14 +02:00
Oliver Buchtala
b99e8613ad
Bugfix in argument marshalling.
2013-09-16 21:56:52 +02:00
Oliver Buchtala
dd4ed7f3d6
Disable testcase 'typemap_variables' for v8.
...
It uses output typemaps that are not compatible with the
v8 API.
2013-09-16 11:46:52 +02:00
Oliver Buchtala
0528fd3ac3
Bugfix for Javascript generator.
2013-09-16 11:46:00 +02:00
Oliver Buchtala
147cec70f1
Replace $symname in generated function wrappers.
2013-09-16 04:54:57 +02:00
Oliver Buchtala
eb9523b5ca
Add missing macros.
2013-09-16 04:12:55 +02:00
Oliver Buchtala
3e28d1e28f
Let v8 generated code include stdlib.h
2013-09-16 04:12:42 +02:00
Oliver Buchtala
b6426bde25
Add cdata.i typemaps.
2013-09-16 04:12:06 +02:00
Oliver Buchtala
1f07195812
Rearrange generation of init block to have custom init code within the initializer body.
2013-09-16 03:53:00 +02:00
Oliver Buchtala
80ce36c445
Make JSC inheritance definition more robust.
2013-09-16 02:27:51 +02:00
Oliver Buchtala
973042302b
Removed dead code.
2013-09-16 01:57:55 +02:00
Oliver Buchtala
bf416876dd
Bugfix for JSC %typemap(out) std::string&.
2013-09-16 01:33:19 +02:00
Oliver Buchtala
b7f827e42c
Fix typemap declarations for (unsigned) long long.
2013-09-16 01:23:03 +02:00
Oliver Buchtala
68eff3e81e
Merge branch 'devel' of github.com:oliver----/swig-v8 into devel
2013-09-16 00:55:57 +02:00
Oliver Buchtala
bb7bd50eab
Add support for IN/OUTPUT typemaps.
2013-09-16 00:55:43 +02:00
Oliver Buchtala
018847b000
Merge pull request #28 from whoozle/devel
...
fixed newer v8 compilation
2013-09-15 06:00:06 -07:00
Vladimir Menshakov
325b5445d6
removed Clear before Dispose from newer v8 code, consider the following code:
...
template <class T>
void Persistent<T>::Dispose() {
if (this->IsEmpty()) return; //Clear will trigger this
V8::DisposeGlobal(reinterpret_cast<internal::Object**>(this->val_));
...
}
2013-09-14 16:19:47 +04:00
Vladimir Menshakov
89fd7ed9c1
fixed newer v8 compilation
2013-09-14 16:17:21 +04:00
Oliver Buchtala
477b2393b1
Add stub 'typemaps.i' files.
2013-09-12 05:26:22 +02:00
Oliver Buchtala
acfed20eba
Bugfix Javascript generator: valid name for dispatcher functions.
2013-09-12 05:10:23 +02:00
Oliver Buchtala
1a04e488bc
Fix Javascript generator for smartpointeraccessed variables.
2013-09-12 05:40:59 +03:00
Oliver Buchtala
8bf95c4356
Bugfix for Javascript generator: avoid duplicate action code generation.
2013-09-12 05:09:35 +03:00
Oliver Buchtala
09a210e037
Bugfix in Javascript generator: detect member setter/getters correctly.
2013-09-12 04:09:21 +03:00
Oliver Buchtala
c53e3e4dab
Fix configuration for nodejs based tests.
...
- use $(SWIGOPT)
- less verbose
2013-09-10 14:45:33 +03:00
Oliver Buchtala
dd84e6f9e0
Some fixes and cleanup in Javascript generator.
...
- v8 generator uses the correct mangled name for class templates
- removed symbols for template variables in favor of using the string
literals directly, as it is easier to understand when debugging.
2013-09-10 14:16:36 +03:00
Oliver Buchtala
001f38c6a9
Fix settings for building nodejs tests.
...
Removed the `-node` command line flag.
Instead one has to use `-v8 -DBUILDING_NODE_EXTENSION=1`.
2013-09-10 13:29:16 +03:00
Oliver Buchtala
be35d94fdb
Add support for PackedData to Javascript generator.
2013-09-10 11:53:12 +03:00
Oliver Buchtala
e5ad9cdc05
Added two more Javascript tests.
...
- `abstract_inherit`
- `char_strings`
2013-09-09 22:26:30 +03:00
Oliver Buchtala
571c516a0b
Some fixes for the Javascript generator.
...
- added missing `exception.i`
- added missing generator block `wrappers` for v8
2013-09-09 22:25:51 +03:00
Oliver Buchtala
3c5946d998
Redefined set of Javascript smoke tests.
2013-09-09 17:38:44 +03:00
Oliver Buchtala
407d8ef5ac
Clean up in javascripttypemaps.swg.
...
- following the same layout/order as pytypemaps
- added typemaps for `long long` and `unsigned long long`, which are
only copies of those for `long` and `unsigned long` and hence are
just experimental.
2013-09-09 17:34:53 +03:00
Oliver Buchtala
fc4d9b665c
Fix v8 generator to use a non clashing name for built-in 'equals' method.
2013-09-09 16:28:29 +03:00
Oliver Buchtala
b6c9c97b96
Fix Javascript generator to use %renamed variable names.
2013-09-09 15:05:11 +03:00
Oliver Buchtala
108143951d
Activate Javascript test-cases rename_simple and rename_scope.
...
These reveal current deficiencies in the Javascript generator with `%rename`ing.
2013-09-09 13:55:08 +03:00
Oliver Buchtala
64da1173dd
Activate Javascript testcases rename1-4.
2013-09-09 13:23:47 +03:00
Oliver Buchtala
1438d0cfb4
Add infinity test-case to list of smoke tests.
2013-09-09 13:17:38 +03:00
Eric Wing
e01e337d75
Added unit test using C99 INFINITY. This test actually tests a float
...
conversion bug where converting to float imposed overflow checking which
should not be there and causes this program to error out. This was seen
originally in Javascript, but it turns out Python has the same bug. Lua
does not have this bug. Other generators have not been tested.
This test also tests the rename feature. The Javascript generator was
not renaming the variable correctly.
2013-09-09 12:53:37 +03:00
Oliver Buchtala
1729fac360
Bug-fix for static variables as proposed by Kota Iguchi.
...
Fixes #20 .
2013-09-09 12:46:07 +03:00
Oliver Buchtala
8408e9b193
Merge pull request #19 from whoozle/devel
...
fixed deprecation warnings for v8-3.21
2013-09-06 19:50:51 -07:00
Oliver Buchtala
6b35c2d419
Let Travis test all three targets.
...
- nodejs: 0.10.12
- libwebgitgtk 1.0
- libv8 3.7.12
We should soon switch to a new v8 version or add an extra runner.
2013-09-06 16:26:02 +03:00
Oliver Buchtala
0facc7ecf9
Allow to run the test suite with our list of smoke tests.
...
The javascript generator can not deal with the whole test-suite.
Moreover, during development I want to have immediate feedback using
a set of smoke tests.
2013-09-06 15:59:43 +03:00
Oliver Buchtala
492d3010ff
Javascript V8 test-cases always create cpp wrappers.
2013-09-06 01:40:23 +03:00
Oliver Buchtala
26b5acbbe8
Test-suite Makefile now supports testing for all three Javascript variants.
...
- node.js
- custom JavascriptCore interpreter
- custom V8 interpreter
2013-09-06 00:42:56 +03:00
Oliver Buchtala
962207e0f3
Rewritten Javascript autoconfiguration.
2013-09-06 00:41:18 +03:00
Oliver Buchtala
29ccb270af
Renamed object provided to JS initializers.
...
JSC initializer create a new module object.
V8 initializer fill a provided 'exports' object.
2013-09-06 00:40:29 +03:00
Oliver Buchtala
4794fa1884
Refactored custom javascript engines to support primitive 'require' statements.
2013-09-06 00:38:07 +03:00