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

365 Commits

Author SHA1 Message Date
Stefan Siegl
1613570ced Add test on die() call, refs #122 2014-12-10 01:10:30 +01:00
Stefan Siegl
a2a9c30a11 Use zend_try/zend_catch to unwind v8 stack 2014-12-09 23:56:46 +00:00
Simon Best
dbea6fc122 Correct name of memory limit test. 2014-12-09 22:53:06 +01:00
Stefan Siegl
7ac12c4fbd Unwind stack after fatal error in V8Function, closes #130 2014-12-09 22:40:53 +01:00
Stefan Siegl
2252169a98 Use isolate->RequestInterrupt to get heap size 2014-12-09 01:08:16 +01:00
Stefan Siegl
0004626015 Make time limit tests pass more safely 2014-12-09 01:06:46 +01:00
Stefan Siegl
b6fb9acc65 Remove set_memory_limit_002 test
The test is unfortunately unstable as it somehow depends on CPU speed.
v8 seems to precompute the result even so it hasn't reached the for
loop consuming the memory.

This can be proved easily by adding a sleep(1) call at the start of the
prolongTimeLimit function.  Then the memory limit is always tripped
even so v8 didn't have to do much until there
2014-12-07 16:52:10 +01:00
Stefan Siegl
e85b095282 Add test showing that time limits can be prolonged 2014-12-07 16:44:54 +01:00
Stefan Siegl
c17208c9c0 Allow to impose memory & time limits 2014-12-07 16:44:54 +01:00
Stefan Siegl
8945357d76 Allow to change & reset memory limits 2014-12-07 16:44:52 +01:00
Stefan Siegl
daf8788e0f Allow to change & reset time limits 2014-12-07 16:05:58 +01:00
Stefan Siegl
ab6df6f14f Use std::deque for timer_stack
In order to update limits at runtime we need the stack to be iterable.
2014-12-07 15:54:37 +01:00
Stefan Siegl
e617662293 Always push timer on stack to allow updates 2014-12-07 15:49:56 +01:00
Stefan Siegl
2a1ae43496 Use prologues for V8Function calls, closes #129 2014-12-07 15:19:47 +01:00
Stefan Siegl
acd00af78a Refactor v8 call prologue/epilogue into function 2014-12-07 14:08:01 +01:00
Stefan Siegl
3a1f3e5237 Add setMemoryLimit & setTimeLimit setter methods 2014-12-07 13:25:52 +01:00
Stefan Siegl
0023c03280 Use v8::TryCatch if calling V8Function, refs #127 2014-12-01 22:12:22 +01:00
Stefan Siegl
6d43ec6dbc Fix exception_clearing test wrt. column numbers 2014-11-22 18:58:05 +01:00
Stefan Siegl
654a8b8039 Merge branch 'issue-126' 2014-11-22 13:27:26 +01:00
Stefan Siegl
65148db31f Add StartColumn/EndColumn properties to script exception, closes #126 2014-11-22 12:56:00 +01:00
Stefan Siegl
b77ba3773c Merge branch 'clear-exception' 2014-11-22 02:26:37 +01:00
Stefan Siegl
3ec580aaa3 Add test on clearPendingException 2014-11-22 02:18:32 +01:00
Stefan Siegl
687459ba7c Typo: dependancy, closes php.net bug 65725 2014-11-20 21:21:09 +01:00
Taneli Leppa
7ee8d69470 Added V8Js::clearPendingException(). 2014-11-17 10:45:35 +02:00
Stefan Siegl
760e50c705 Mention to download & unpack V8Js itself 2014-11-17 00:05:35 +01:00
Stefan Siegl
75b7b27587 Merge branch 'issue-123', closes #123, closes #24 2014-11-16 23:56:04 +01:00
Stefan Siegl
70d5349702 Add pointer to README.Win32.md 2014-11-16 23:50:33 +01:00
Stefan Siegl
720945b4ef Add build instructions for Windows 2014-11-16 23:48:05 +01:00
Stefan Siegl
7b435e30dc Skip tests/timezones on Windows 2014-11-16 23:07:32 +01:00
Stefan Siegl
920d9eeb33 Strip second timezone specification
v8 adds two timezone specifications to date strings.
However PHP fails to parse the second one, generated
on Windows systems.  Hence just strip away the redundant
specification and pass that one to PHP.
2014-11-16 22:33:32 +01:00
Stefan Siegl
cd44e72683 Slow down memory_limit test
Otherwise the test may execute so fast, that the
watchdog thread, ticking at 10ms currently, is too
slow to detect the memory limit situation.
2014-11-16 20:20:43 +01:00
Stefan Siegl
6ee72b6f0a Use concurrency::wait on Windows to sleep.
The chrono + sleep_for implementation seems not to work,
due to bugs in chrono header file.  And after all sleep_for
calculates a time_point for sleep_until, which calculates
the delta again and finally passes the number of
milliseconds to concurrency::wait ...
2014-11-14 00:08:30 +01:00
Stefan Siegl
449d66ca01 Don't force garbage collection on shutdown.
Doing so causes crashes on Windows and isn't needed anymore
anyways, since we have started tracking weak references
meanwhile.
2014-11-14 00:05:58 +01:00
Stefan Siegl
4e0b500de0 Use directory seperator pattern %e 2014-11-13 21:26:47 +01:00
Stefan Siegl
249aa39418 object_dom test requires DomDocument class 2014-11-13 21:24:22 +01:00
Stefan Siegl
293ca476f0 commonjs_modules test requires json_encode. 2014-11-13 21:14:05 +01:00
Stefan Siegl
926d160367 ignore run-tests.php helper files 2014-11-13 21:13:24 +01:00
Stefan Siegl
fc89b6ba8c eliminate left-over variable-size arrays 2014-11-13 01:36:01 +01:00
Stefan Siegl
d03641254d Use alloca for variable-size array on stack 2014-11-13 01:21:15 +01:00
Stefan Siegl
5b736a6e92 Undefine min/max macros 2014-11-13 00:58:32 +01:00
Stefan Siegl
0fed780320 Fall back to arbitrary PATH_MAX upper bound 2014-11-13 00:36:52 +01:00
Stefan Siegl
83a17b5e6a libplatform stuff not needed on Windows 2014-11-13 00:31:26 +01:00
Stefan Siegl
877ecfc720 Update file list. 2014-11-13 00:25:20 +01:00
Stefan Siegl
06ffe20fcf Adapt build flags for VC12 + debug build 2014-11-13 00:24:39 +01:00
Stefan Siegl
ad09ee0993 Undefine COMPILER symbol 2014-11-12 23:17:02 +00:00
Stefan Siegl
8d8aed1e72 Reject V8Function passback to wrong isolate, closes #116 2014-10-31 23:35:28 +00:00
Stefan Siegl
3145ea0323 Set hidden data also on already know weak objects, closes #121 2014-10-30 22:02:13 +00:00
Stefan Siegl
a9d7dbda45 Syntax highlight API stuff 2014-10-23 22:57:26 +02:00
Stefan Siegl
30119a877a Link to Debian packages, fix Jenkins link 2014-10-23 22:55:12 +02:00
Stefan Siegl
aad9941045 Merge pull request #120 from k2s/v8build_fix
fix V8 build instructions
2014-10-23 22:51:48 +02:00