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

45 Commits

Author SHA1 Message Date
Stefan Siegl
262707a97b
fix check for CreateDefaultPlatform, fixes #313
Include libplatform.h, as meanwhile all supported V8 versions have that file.
2017-05-29 21:44:49 +02:00
Stefan Siegl
6723ff2d34
fix check for libv8.dylib (on macOS) 2017-04-14 21:00:31 +02:00
Stefan Siegl
c957be8b2a
Initialize ICU as (meanwhile) needed 2017-04-14 21:00:31 +02:00
Stefan Siegl
cc1e14034b search for CreateDefaultPlatform with 2nd arg, closes #301 2017-03-13 22:45:55 +01:00
Stefan Siegl
5073111829 Rename v8js.cc -> v8js_main.cc
This eases coverage generation as linking of v8js.so would
otherwise clobber results of v8js.cc compilation.
2017-03-12 17:26:39 +01:00
Stefan Siegl
77e7338018 Don't try to guess if blob.bin files are needed
Search for them, if they exist, provide them to V8.  Otherwise
try to go without them.
2016-12-05 16:29:03 +00:00
Stefan Siegl
09f98e7cb1 Use linker to detect libv8_libplatform & libv8_libbase 2016-12-05 16:18:16 +00:00
Remi Collet
2b9d37672c honours --with-libdir option, instead of harcoding lib or lib64 2016-09-29 16:05:46 +02:00
Stefan Siegl
90ca5cb142 Fix libv8_libbase.a detection, closes #264 2016-09-22 20:03:44 +02:00
Stefan Siegl
956a21743d Optionally link in libv8_libbase.a on Linux as well 2016-09-04 14:58:40 +02:00
Stefan Siegl
e9e90bac65 Merge remote-tracking branch 'origin/master' into php7
Conflicts:
      config.w32
      package.xml
      php_v8js_macros.h
      v8js.cc
      v8js_array_access.cc
      v8js_class.cc
      v8js_convert.cc
      v8js_exceptions.cc
      v8js_object_export.cc
      v8js_timer.cc
      v8js_v8.cc
      v8js_v8object_class.cc
2016-05-22 22:30:19 +02:00
Stefan Siegl
ed8e88e11d Search libv8_libplatform.a in V8_DIR only
Otherwise config.m4 will find another libv8_libplatform.a (e.g. in
/usr/lib) as well ... and then use the wrong one.
2016-05-22 15:17:24 +02:00
Stefan Siegl
4fea8f4fb9 Require V8 4.6.76 or higher
... and hence remove all #ifdef hell.  Those versions didn't have
security support by Google anyhow, and it helps to drastically
shrink the test matrix.
2016-05-11 16:50:37 +02:00
Stefan Siegl
28a5832f23 Fix configuration on MacOS platform 2016-03-23 10:25:32 +01:00
Stefan Siegl
bf6effba63 Merge remote-tracking branch 'origin/master' into php7 2016-03-05 22:21:42 +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
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
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
a18ae9e853 Implement JS-side wrapper around PHP Generator objects 2016-01-09 12:50:40 +01:00
Stefan Siegl
7805abfb18 Improve -Wno-c++11-narrowing/-Wno-narrowing detection 2015-10-18 18:03:04 +02:00
Stefan Siegl
b38c31b521 Remove v8::Debug agent stuff
Debug Agent support was removed from V8 with 3.28 line which
is pretty old meanwhile.
2015-10-11 19:47:22 +02:00
Taneli Leppa
9f082a057b Check lib64 dir for libplatform as well. 2015-08-12 18:26:23 +03:00
Stefan Siegl
b30ee1e09b auto-add CXXFLAG -Wno-c++11-narrowing if possible 2015-07-25 21:36:34 +02:00
Stefan Siegl
0e76b675d2 Require v8 3.24.6 or higher
Just tested it, v8js builds correctly with 3.24.6 and fails to build
against 3.24.5 due to `RequestInterrupt' being undefined.

Syncing the check in config.m4 (used to test 3.21.12 or newer) against
README.md file (which stated 3.24.10 or newer).
2015-03-11 15:00:01 +01:00
Stefan Siegl
90c3b9db5f Fix debug build; move debug stuff into seperate files 2015-03-11 14:06:21 +01:00
Stefan Siegl
ddc6a46049 Set c++ -std version on v8 version test 2015-03-10 14:16:37 +01:00
Stefan Siegl
453a95826b On MacOS/Darwin link against libv8_libbase.a as well, refs #97 2015-03-09 04:48:09 -07:00
Stefan Siegl
37e3e001c5 Don't --rpath link on MacOS/Darwin, refs #97 2015-03-08 16:07:54 -07:00
Stefan Siegl
3efec8d428 Remove CVS $Id$ comment lines 2014-12-13 00:45:05 +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
Stefan Siegl
fc583a8ec6 Move PHP to JS object wrapping into seperate file 2014-11-29 15:42:41 +01:00
Stefan Siegl
ddcaee47d6 Refactor array access code into seperate files 2014-11-25 21:06:11 +01:00
Stefan Siegl
3843fc1b5c Remove stray debug-echo 2014-09-17 16:33:03 +02:00
Stefan Siegl
14600d3be3 Initialize v8 platform as needed
See http://comments.gmane.org/gmane.comp.lang.javascript.v8.general/8029
for more information.
2014-09-17 00:45:24 +02:00
Stefan Siegl
d69f2be50a Add v8 debug support 2013-10-13 11:36:57 +02:00
C. Scott Ananian
d416d9b59b Support g++-4.6 in configuration script.
gcc 4.6 doesn't have the -std=c++11 option, it uses the not-yet-finalized
-std=c++0x option.  Use whichever is found to be appropriate at configure
time.
2013-10-12 01:19:14 -04:00
C. Scott Ananian
91393faca3 Ensure all v8 libraries are copied in README; sanity check in config.m4.
The latest versions of v8 build libicu as well.  If this isn't copied to
the lib directory, then the v8 version check fails (with a link error).
Ensure that this is caught at configuration time.
2013-10-03 17:59:27 -04:00
Stefan Siegl
619231913c Adapt to new v8::Persistent API, support V8 >= 3.21.12 2013-10-03 16:27:04 +02:00
C. Scott Ananian
1f2eefdbea Support compiling v8js with v8 in a custom path.
If you don't want to overwrite the system copy of v8 in /usr/lib/libv8.so,
you can use the --with-v8=<path> option to have php-v8js use its own
copy of libv8.
2013-10-01 18:05:36 -04:00
C. Scott Ananian
e508410a79 Ensure libv8 is >= 3.17.11 (fixes issue #12). 2013-09-28 02:48:59 -04:00
Patrick Reilly
4a82311b4d fix mutex issue and c++11 support on Ubuntu — remove stray EOL marker 2013-05-15 12:21:38 -07:00
Simon Best
8ae7606338 Refactor CommonJS modules functionality to store state in the extension globals and context as appropriate. 2013-04-13 00:00:27 +01:00
Simon Best
15dc9e157b Script timeout thread to forcefully terminate the current thread of V8 execution in the corresponding isolate.
Note that threads are implemented using std::thread which is only available in C++0x. The relevant compile flags have been added but compiler support has not been tested and is therefore not guaranteed.
2013-04-09 22:52:42 +01:00
Zakay Danial
e21b955c6a Fixed version parsing 2012-06-07 20:29:12 +02:00
preilly
30e1d22863 Initial import 2012-04-27 16:26:15 +00:00