0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-22 17:31:53 +00:00
Commit Graph

574 Commits

Author SHA1 Message Date
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
8575dc0e55 #210 Windows: Autodetect V8 API & V8 Engine Compiled Version - v8js_zeroPad 2016-03-08 22:46:32 +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
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
Stefan Siegl
82ffaa2c35 Merge pull request #202 from stesie/issue-183
Export public methods on derived classes to V8
2016-01-10 16:13:58 +01:00
Stefan Siegl
3808f69dea Adapt tests V8 3.24 also 2016-01-09 21:45:10 +01:00
Stefan Siegl
796ae85cb6 Adapt tests to different V8 versions 2016-01-09 21:36:30 +01:00
Stefan Siegl
4a8a8b812f Add test that V8Js::__sleep and V8Js::__wakeup are final 2016-01-09 19:15:12 +01:00
Stefan Siegl
d438624a3d Don't export V8Js methods even if overwritten 2016-01-09 19:11:30 +01:00
Stefan Siegl
1e86e2c9f7 Don't export methods of V8Js object to V8 2016-01-09 19:02:58 +01:00
Stefan Siegl
e0f990bfa1 Add test with private/protected methods, refs #183 2016-01-08 15:47:24 +01:00
Stefan Siegl
3508f0c8e7 export public methods of classes derived from \V8Js, closes #183 2016-01-08 15:42:43 +01:00
Stefan Siegl
bd442beffd Bump version to 0.4.1 2016-01-08 08:25:53 +01:00
Stefan Siegl
0945749e7c add basic test on issue #183 2016-01-07 13:44:40 +01:00
Stefan Siegl
61febfb589 Merge pull request #186 from stesie/issue-185
Provide correct "this" on V8Object method invocation, closes #185
2015-12-30 22:33:49 +01:00
Stefan Siegl
30fe9937de Merge pull request #187 from stesie/fix-regexp-vardump
Fix output of var_dump on regexp (V8 > 4.8)
2015-12-30 15:34:58 +01:00
Stefan Siegl
3108d3947d Fix output of var_dump on regexp (V8 > 4.8)
Newer V8 versions' toString() converts RegExp objects
just to [object RegExp] (instead of the actual regexp
as before).  Work-around by calling GetSource() on the
regexp and create former outhway that way.
2015-12-30 14:59:37 +01:00
Stefan Siegl
3c5508b956 Provide correct "this" on V8Object method invocation, closes #185 2015-12-26 12:16:17 +01:00
Stefan Siegl
d9e4ae5abe Bump version to 0.4.0 2015-12-07 13:26:44 +01:00
Stefan Siegl
28f061101e Merge pull request #184 from stesie/cust-module-normalisation
Allow custom module path normalisation
2015-12-06 14:48:50 +01:00
Stefan Siegl
67a9de01bd Allow custom module normalisation 2015-12-06 13:55:13 +01:00
Stefan Siegl
f258980399 Accept empty string as module source
This might be perfectly valid, if you're using a third-party module,
which requires a module yet doesn't use it in the code paths hit
and hence you just want to stub it out.
2015-12-06 13:25:43 +01:00
Stefan Siegl
4853c6d17f Set script identifier as String, not Symbol
Otherwise long module identifiers might get cut off.
2015-12-06 13:23:14 +01:00
Stefan Siegl
bf58fe67c1 wrap module loading in zend_try/zend_catch, closes #178 2015-12-04 22:09:04 +01:00
Stefan Siegl
39fff2301e Use module id as JsFileName for V8
This way the information to V8JsScriptException instances are way
more clear since they contain the name of the module that caused
the exception.
2015-12-04 21:46:54 +01:00
Stefan Siegl
2f0b8e2873 Make var_dump command available to modules as well 2015-12-04 21:37:51 +01:00
Stefan Siegl
f73abfac62 Merge pull request #177 from stesie/fix-vardump-test
Fix tests/var_dump.phpt
2015-11-28 17:31:19 +01:00
Stefan Siegl
670554306a Fix tests/var_dump.phpt
Recent V8 versions (e.g. 4.8.253 or 4.9.19) consider
`IsFunction() = true` for Closure objects from PHP; but earlier
versions didn't.

This ensures consistent var_dump behaviour (sticking to the
behaviour with older V8 versions).
2015-11-28 15:27:35 +01:00
Stefan Siegl
4376d59942 Merge pull request #175 from kynx/readme-osx
Updated README.MacOS to recommend installing extension via brew
2015-11-20 21:53:09 +01:00
Matt Kynaston
e5ee35a30e Updated README.MacOS to recommend installing extension via brew 2015-11-20 18:19:23 +00:00