@@ -52,20 +52,19 @@ void php_v8_ext_mem_interface_function_template_AdjustExternalAllocatedMemory(IN
52
52
if (zend_parse_parameters (ZEND_NUM_ARGS (), " l" , &change_in_bytes) == FAILURE) {
53
53
return ;
54
54
}
55
+ PHP_V8_FUNCTION_TEMPLATE_FETCH_INTO (getThis (), php_v8_function_template);
55
56
56
- PHP_V8_OBJECT_TEMPLATE_FETCH_INTO (getThis (), php_v8_object_template);
57
-
58
- RETURN_LONG (php_v8_object_template->persistent_data ->adjustSize (change_in_bytes));
57
+ RETURN_LONG (php_v8_function_template->persistent_data ->adjustSize (change_in_bytes));
59
58
}
60
59
61
60
void php_v8_ext_mem_interface_function_template_GetExternalAllocatedMemory (INTERNAL_FUNCTION_PARAMETERS) {
62
61
if (zend_parse_parameters_none () == FAILURE) {
63
62
return ;
64
63
}
65
64
66
- PHP_V8_OBJECT_TEMPLATE_FETCH_INTO (getThis (), php_v8_object_template );
65
+ PHP_V8_FUNCTION_TEMPLATE_FETCH_INTO (getThis (), php_v8_function_template );
67
66
68
- RETURN_LONG (php_v8_object_template ->persistent_data ->getAdjustedSize ());
67
+ RETURN_LONG (php_v8_function_template ->persistent_data ->getAdjustedSize ());
69
68
}
70
69
71
70
@@ -76,19 +75,19 @@ void php_v8_ext_mem_interface_object_template_AdjustExternalAllocatedMemory(INTE
76
75
return ;
77
76
}
78
77
79
- PHP_V8_FUNCTION_TEMPLATE_FETCH_INTO (getThis (), php_v8_function_template );
78
+ PHP_V8_OBJECT_TEMPLATE_FETCH_INTO (getThis (), php_v8_object_template );
80
79
81
- RETURN_LONG (php_v8_function_template ->persistent_data ->adjustSize (change_in_bytes));
80
+ RETURN_LONG (php_v8_object_template ->persistent_data ->adjustSize (change_in_bytes));
82
81
}
83
82
84
83
void php_v8_ext_mem_interface_object_template_GetExternalAllocatedMemory (INTERNAL_FUNCTION_PARAMETERS) {
85
84
if (zend_parse_parameters_none () == FAILURE) {
86
85
return ;
87
86
}
88
87
89
- PHP_V8_FUNCTION_TEMPLATE_FETCH_INTO (getThis (), php_v8_function_template );
88
+ PHP_V8_OBJECT_TEMPLATE_FETCH_INTO (getThis (), php_v8_object_template );
90
89
91
- RETURN_LONG (php_v8_function_template ->persistent_data ->getAdjustedSize ());
90
+ RETURN_LONG (php_v8_object_template ->persistent_data ->getAdjustedSize ());
92
91
}
93
92
94
93
0 commit comments