}
this = njs_function_native_frame(vm, function->u.native,
- prop->value.data.string_size,
+ function->local_state_size,
&method->code);
if (nxt_slow_path(this == NULL)) {
return NXT_ERROR;
njs_object_t object;
#if (NXT_64BIT)
- uint32_t native;
+ uint8_t native;
+ uint8_t local_state_size;
uint32_t args_offset;
#else
uint8_t native;
+ uint8_t local_state_size;
uint16_t args_offset;
#endif
uint8_t external0;
uint8_t _spare;
- /*
- * A long string size.
- * Besides this field is used in native reentrant methods to
- * store size of local state data allocated on stack frame.
- */
+ /* A long string size. */
uint32_t string_size;
union {
.data = { \
.type = NJS_FUNCTION, \
.truth = 1, \
- .string_size = _local_size, \
.u.function = & (njs_function_t) { \
.native = 1, \
+ .local_state_size = _local_size, \
.args_offset = 1, \
.u.native = _function, \
} \