Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Commit 009c8d0

Browse files
committed
Remove non-documented V8Isolate::ContextDisposedNotification()
1 parent dcd9ea7 commit 009c8d0

File tree

2 files changed

+12
-25
lines changed

2 files changed

+12
-25
lines changed

src/php_v8_isolate.cc

-16
Original file line numberDiff line numberDiff line change
@@ -424,18 +424,6 @@ static PHP_METHOD(V8Isolate, LowMemoryNotification) {
424424
isolate->LowMemoryNotification();
425425
}
426426

427-
428-
static PHP_METHOD(V8Isolate, ContextDisposedNotification) {
429-
if (zend_parse_parameters_none() == FAILURE) {
430-
return;
431-
}
432-
433-
PHP_V8_ISOLATE_FETCH_WITH_CHECK(getThis(), php_v8_isolate);
434-
PHP_V8_ENTER_ISOLATE(php_v8_isolate);
435-
436-
RETURN_LONG((long) isolate->ContextDisposedNotification());
437-
}
438-
439427
static PHP_METHOD(V8Isolate, TerminateExecution) {
440428
if (zend_parse_parameters_none() == FAILURE) {
441429
return;
@@ -563,9 +551,6 @@ ZEND_END_ARG_INFO()
563551
ZEND_BEGIN_ARG_INFO_EX(arginfo_v8_isolate_LowMemoryNotification, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
564552
ZEND_END_ARG_INFO()
565553

566-
PHP_V8_ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_v8_isolate_ContextDisposedNotification, ZEND_RETURN_VALUE, 0, IS_LONG, 0)
567-
ZEND_END_ARG_INFO()
568-
569554
// void method
570555
ZEND_BEGIN_ARG_INFO_EX(arginfo_v8_isolate_TerminateExecution, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 0)
571556
ZEND_END_ARG_INFO()
@@ -611,7 +596,6 @@ static const zend_function_entry php_v8_isolate_methods[] = {
611596
PHP_ME(V8Isolate, ThrowException, arginfo_v8_isolate_ThrowException, ZEND_ACC_PUBLIC)
612597
PHP_ME(V8Isolate, IdleNotificationDeadline, arginfo_v8_isolate_IdleNotificationDeadline, ZEND_ACC_PUBLIC)
613598
PHP_ME(V8Isolate, LowMemoryNotification, arginfo_v8_isolate_LowMemoryNotification, ZEND_ACC_PUBLIC)
614-
PHP_ME(V8Isolate, ContextDisposedNotification, arginfo_v8_isolate_ContextDisposedNotification, ZEND_ACC_PUBLIC)
615599

616600
PHP_ME(V8Isolate, TerminateExecution, arginfo_v8_isolate_TerminateExecution, ZEND_ACC_PUBLIC)
617601
PHP_ME(V8Isolate, IsExecutionTerminating, arginfo_v8_isolate_IsExecutionTerminating, ZEND_ACC_PUBLIC)

tests/V8Isolate.phpt

+12-9
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ $helper->line();
1919
$helper->method_export($isolate, 'GetHeapStatistics');
2020

2121
$isolate = null;
22+
23+
// EXPECTF: ---/float\([^)]{2,\)"/
24+
// EXPECTF: +++float(%f)
2225
?>
2326
--EXPECTF--
2427
Object representation:
@@ -37,23 +40,23 @@ object(V8\Isolate)#2 (5) {
3740
}
3841

3942
V8\Isolate->GetHeapStatistics():
40-
object(V8\HeapStatistics)#28 (9) {
43+
object(V8\HeapStatistics)#27 (9) {
4144
["total_heap_size":"V8\HeapStatistics":private]=>
42-
float(%d)
45+
float(3244032)
4346
["total_heap_size_executable":"V8\HeapStatistics":private]=>
44-
float(%d)
47+
float(3145728)
4548
["total_physical_size":"V8\HeapStatistics":private]=>
46-
float(%d)
49+
float(1676112)
4750
["total_available_size":"V8\HeapStatistics":private]=>
48-
float(%d)
51+
float(1496291688)
4952
["used_heap_size":"V8\HeapStatistics":private]=>
50-
float(%d)
53+
float(1583440)
5154
["heap_size_limit":"V8\HeapStatistics":private]=>
52-
float(%d)
55+
float(1501560832)
5356
["malloced_memory":"V8\HeapStatistics":private]=>
54-
float(%d)
57+
float(8192)
5558
["peak_malloced_memory":"V8\HeapStatistics":private]=>
56-
float(%d)
59+
float(8192)
5760
["does_zap_garbage":"V8\HeapStatistics":private]=>
5861
bool(false)
5962
}

0 commit comments

Comments
 (0)