Stefan Siegl
e686603b89
Implement direct iteration on JS generators
2016-01-07 22:41:13 +01:00
Stefan Siegl
2c7a7ab87d
Implement PHP-side iteration of JS generator objects
2016-01-07 21:35:44 +01:00
Stefan Siegl
ef779d8250
minimalist V8 -> PHP generator passing
2016-01-07 20:41:40 +01:00
Stefan Siegl
98205461be
Reorder includes for Visual Studio 2015, closes #194
...
C++ headers need to go first, since PHP headers redefine
"inline" which causes trouble with the C++ header files.
2016-01-06 09:01:35 +00:00
Stefan Siegl
a83c49266e
defer bailout until std::function dtor
...
std::function allocates some heap memory, at least with some
implementations and expects the dtor to run. Hence defer the
bailout until the dtor ran.
2016-01-01 19:10:04 +01:00
Stefan Siegl
2d34adb91f
Merge remote-tracking branch 'origin/master'
...
This primarily ports features introduced with V8Js 0.4.0
to the PHP7 branch.
2015-12-31 20:25:24 +01:00
Stefan Siegl
3c5508b956
Provide correct "this" on V8Object method invocation, closes #185
2015-12-26 12:16:17 +01:00
Stefan Siegl
227ad57163
prefer V8JS_ZSTR over V8JS_STRL(Z_STRVAL), refs #180
2015-12-04 20:14:47 +01:00
Stefan Siegl
059e0500fb
Merge remote-tracking branch 'origin/master' into php7
2015-11-29 12:21:40 +01:00
Matt Kynaston
a58f944804
Experiment to see if #172 is easy to fix
2015-11-03 17:35:30 +00:00
Stefan Siegl
5cba44ccd0
Merge remote-tracking branch 'origin/master' into php7
...
Conflicts:
README.md
v8js.cc
v8js_class.cc
v8js_exceptions.cc
v8js_object_export.cc
v8js_v8.cc
v8js_v8object_class.cc
2015-10-11 02:09:59 +02:00
Stefan Siegl
cfb1756fd7
PHP7 adapt: fix double free
2015-08-30 02:19:48 +02:00
Stefan Siegl
31bafd052d
c->properties is NULL anyways (due to ecalloc)
2015-08-29 20:20:09 +02:00
Stefan Siegl
a0f3c2302c
PHP7 adapt: initialize c->std.handlers as needed
2015-08-29 18:52:30 +02:00
Stefan Siegl
5477d780a3
PHP7 adapt v8js_v8object_class.cc
2015-08-29 16:47:37 +02:00
Stefan Siegl
ae33f6a9ab
Re-use v8js_ctx context for V8Function calls, closes #158
2015-08-26 09:38:30 +02:00
Stefan Siegl
45f7e18624
Remove conditional compilation for PHP_VERSION_ID < 7.0.0
2015-08-23 21:10:47 +02:00
Stefan Siegl
3726d233b8
return SUCCESS from PHP_MINIT_FUNCTION
2015-03-12 12:22:01 +01:00
Stefan Siegl
7b926a3d06
ForceDelete was removed, use normal Delete
2015-03-10 15:09:41 +01:00
Stefan Siegl
294a5c8d1f
php_v8js_create_v8 -> v8js_v8object_create
2014-12-13 01:21:02 +01:00
Stefan Siegl
2954de2db5
Remove php_ prefix to struct & type names
2014-12-13 01:18:42 +01:00
Stefan Siegl
d269809d8b
Move types from php_v8js_macros.h to new headers
2014-12-13 00:43:19 +01:00
Stefan Siegl
6869d318b3
Rename V8Object stuff to v8js_v8object_XXX
2014-12-13 00:28:09 +01:00
Stefan Siegl
f987cc7b4c
Rename php_v8js_objects -> v8js_v8objects
...
* drop php_ prefix, currently used inconsistently anyways
* change "object" to "v8object" to clarify it's a JS object wrapped
to a V8Object instance
2014-12-13 00:13:03 +01:00
Stefan Siegl
5ea36016fe
code cleanup, part 1
...
Splits longish v8js.cc file into pieces. It used to contain the
definitions of all V8Js exception classes, the V8Js class itself as
well as the V8Object/V8Function classes... besides the module setup
code itself.
This change factors out all exception class definitions into a
seperate pair of files (v8js_exceptions.*).
The V8Js class definition itself is moved to v8js_class.* pair,
with the v8 init & call code moved to v8js_v8.* pair
and the watchdog timer to v8js_timer.* pair.
The V8Object/V8Function code was moved to v8js_v8object_class.*
pair, not differentiating between the two like before.
2014-12-13 00:11:02 +01:00