0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-09-19 21:15:19 +00:00
Commit Graph

853 Commits

Author SHA1 Message Date
Stefan Siegl
3dca462e9d Use V8::LowMemoryNotification on V8 < 3.28.36 2016-03-26 14:11:20 +01:00
Stefan Siegl
c804b16e4c fix compiler warnings 2016-03-26 12:11:11 +01:00
Stefan Siegl
97ade17ef9 fix: initialize variables 2016-03-26 12:10:32 +01:00
Stefan Siegl
3d5f163899 skip time/memory limit tests on SKIP_SLOW_TESTS 2016-03-26 11:47:58 +01:00
Stefan Siegl
b2eb89e49e send LowMemoryNotification before imposing memory limit, fixes #217 2016-03-26 00:53:52 +01:00
Stefan Siegl
4faab8842c Re-check memory limit, refs #217 2016-03-26 00:37:53 +01:00
Stefan Siegl
2b4d41abb1 Remove old-age test.php & samples files
These date back to the initial checkin and mostly haven't been
updated ever since.  Besides the provided code samples aren't
really suitable as a getting started guide.
2016-03-25 23:50:36 +01:00
Stefan Siegl
da89fa257b Bump version to 0.6.2 2016-03-25 23:25:23 +01:00
Stefan Siegl
b0f761ae3b Merge pull request #221 from stesie/fluent-setters-js
Retain object identity on JS-side 'return this'
2016-03-25 23:20:16 +01:00
Stefan Siegl
07c81e5a86 Merge pull request #220 from stesie/fluent-setters
Retain object identity on 'return $this'
2016-03-25 23:20:09 +01:00
Stefan Siegl
5595c3bbd7 Fix compilation with PHP 5.5 2016-03-25 22:55:11 +01:00
Stefan Siegl
93b1118fe8 Retain object identity on JS-side 'return this' 2016-03-25 22:15:05 +01:00
Stefan Siegl
d44592910d Retain object indentity on 'return $this' 2016-03-25 19:15:25 +01:00
Stefan Siegl
21c8bd2288 Merge pull request #219 from stesie/fix-v8object-passback
Pass back V8Object instances, don't re-wrap
2016-03-25 18:18:38 +01:00
Stefan Siegl
d6394301b2 Pass back V8Object instances, don't re-wrap 2016-03-25 17:40:43 +01:00
Stefan Siegl
90b2b2b0b1 Bump version to 0.6.1 2016-03-24 12:28:00 +01:00
Stefan Siegl
28a5832f23 Fix configuration on MacOS platform 2016-03-23 10:25:32 +01:00
Stefan Siegl
2a80b0b866 Merge pull request #214 from tiemevanveen/patch-2
Linux guide - Move adding extension to php.ini to bottom
2016-03-12 14:19:16 +01:00
Tieme van Veen
2f5db5d9ef Linux guide - Move adding extension to php.ini to bottom 2016-03-10 10:58:53 +01:00
Stefan Siegl
dd2ad91452 config.w32: fix v8api version generation, refs #210 2016-03-09 11:43:01 +01:00
Stefan Siegl
dc3e4c4260 Merge pull request #213 from Jan-E/php7
#210 Windows: Autodetect V8 API & V8 Engine Compiled Version
2016-03-09 08:34:29 +01:00
Stefan Siegl
5d2163ffef Merge pull request #212 from Jan-E/master
Windows: Autodetect V8 API & V8 Engine Compiled Version
2016-03-09 08:32:54 +01:00
Jan Ehrhardt
44abbc5668 #210 Windows: Autodetect V8 API & V8 Engine Compiled Version - v8js_zeroPad 2016-03-08 22:48:09 +01:00
Jan Ehrhardt
8575dc0e55 #210 Windows: Autodetect V8 API & V8 Engine Compiled Version - v8js_zeroPad 2016-03-08 22:46:32 +01:00
Jan Ehrhardt
ebdc5e4942 #210 Windows: Autodetect V8 API & V8 Engine Compiled Version 2016-03-08 22:14:52 +01:00
Jan Ehrhardt
468d9e1090 Windows: Autodetect V8 API & V8 Engine Compiled Version 2016-03-08 22:12:51 +01:00
Stefan Siegl
4c548e60f2 Bump version to 0.6.0 2016-03-08 18:11:29 +01:00
Stefan Siegl
7ab602f982 Merge pull request #211 from stesie/setaverageobjectsize
add V8Js::setAverageObjectSize method
2016-03-08 10:53:32 +01:00
Stefan Siegl
12903ca269 add V8Js::setAverageObjectSize method 2016-03-08 09:28:16 +01:00
Stefan Siegl
ef5dc4e728 Bump version to 1.2.0 2016-03-05 23:24:55 +01:00
Stefan Siegl
25cf46aa0c Use zend_string with zend_parse_parameters 2016-03-05 22:43:57 +01:00
Stefan Siegl
bf6effba63 Merge remote-tracking branch 'origin/master' into php7 2016-03-05 22:21:42 +01:00
Stefan Siegl
770c9b2fca Bump version to 0.5.0 2016-03-05 21:23:27 +01:00
Stefan Siegl
87b29749b9 Merge pull request #207 from stesie/custom-snapshots
Handle V8 heap snapshots well + allow custom snapshot generation
2016-03-05 19:27:40 +01:00
Stefan Siegl
9fd25e6fff Merge pull request #209 from stesie/fix-tests-v8-5.1
Adapt test expectations to V8 error message changes
2016-03-05 18:35:22 +01:00
Stefan Siegl
f49d3b79ca Update README.Linux.md for snapshot usage 2016-03-05 17:12:36 +01:00
Stefan Siegl
de0b8e2aa8 Check V8_DIR/share/v8 for snapshot images as well 2016-03-05 17:12:36 +01:00
Stefan Siegl
930b450d99 refcount on snapshot_blob zval 2016-03-05 17:12:36 +01:00
Stefan Siegl
606eb5a60f Mention limitted snapshot availibility in README.md 2016-03-05 17:12:36 +01:00
Stefan Siegl
8e3e0c91b5 Add ZEND_ARG_INFO for V8Js::__construct 5th arg: snapshot_blob 2016-03-05 17:12:36 +01:00
Stefan Siegl
d0e78019aa Allow snapshot creation & use with V8 > 4.3.7
This does *not* seem to depend on whether V8 itself was compiled
with support for snapshots or not.

Therefore use PHP_V8_USE_EXTERNAL_STARTUP_DATA only to mark
whether we need to provide external snapshot data to V8.
2016-03-05 17:12:36 +01:00
Stefan Siegl
67269ddfc4 Adapt test expectations to V8 error message changes
V8 5.1 uses slightly changed SyntaxError messages.
This adapts our tests as needed (for support of V8 5.1 as well
as older versions)
2016-03-05 17:11:52 +01:00
Stefan Siegl
4df6e80be9 Add testcase on V8Js::createSnapshot 2016-03-05 14:12:19 +01:00
Stefan Siegl
a1cdd7537b Fix conditional compilation for snapshot=off 2016-02-28 20:29:53 +01:00
Stefan Siegl
93d3f9591f Add CreateParams fields in v8js_ctx only if needed 2016-02-28 20:17:56 +01:00
Stefan Siegl
40f0f5e89f Provide startup data loader for V8 < 4.6.76 2016-02-28 20:17:20 +01:00
Stefan Siegl
52ebdc28ed Simply v8::Isolate::New to test if snapshot blob needed
The test on internal symbols seems too fragile, e.g. with V8
version 4.5.90 it is false positive.
2016-02-28 19:52:46 +01:00
Stefan Siegl
2c8ef2aa66 conditionally compile in snapshot functionality 2016-02-28 17:54:00 +01:00
Stefan Siegl
39062b4248 Test for snapshot support in V8
Looks like we have to test for internal functions unfortunately
since the public V8 snapshot API is available no matter whether
the library really supports it or not.
2016-02-28 17:48:44 +01:00
Stefan Siegl
b405a34690 Allow to create snapshots and re-use them 2016-02-28 17:00:47 +01:00