Home
last modified time | relevance | path

Searched refs:length_num (Results 1 – 3 of 3) sorted by relevance

/third_party/jerryscript/jerry-core/ecma/operations/
Decma-arraybuffer-object.c111 ecma_number_t length_num = 0; in ecma_op_create_arraybuffer_object() local
118 length_num = ecma_get_number_from_value (arguments_list_p[0]); in ecma_op_create_arraybuffer_object()
129 length_num = ecma_get_number_from_value (to_number_value); in ecma_op_create_arraybuffer_object()
134 if (ecma_number_is_nan (length_num)) in ecma_op_create_arraybuffer_object()
136 length_num = 0; in ecma_op_create_arraybuffer_object()
141 if (length_num <= -1.0 || length_num > (ecma_number_t) maximum_size_in_byte + 0.5) in ecma_op_create_arraybuffer_object()
147 uint32_t length_uint32 = ecma_number_to_uint32 (length_num); in ecma_op_create_arraybuffer_object()
Decma-conversion.c931 ecma_value_t length_num = ecma_op_to_integer (value, &num); in ecma_op_to_length() local
934 if (ECMA_IS_VALUE_ERROR (length_num)) in ecma_op_to_length()
936 return length_num; in ecma_op_to_length()
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-string-prototype.c1258 ecma_number_t length_num = ecma_number_make_infinity (false); in ecma_builtin_string_prototype_object_substr() local
1269 length_num = ecma_number_is_nan (len) ? 0 : len; in ecma_builtin_string_prototype_object_substr()
1284 ecma_number_t to_num = JERRY_MIN (JERRY_MAX (length_num, 0), this_len - from); in ecma_builtin_string_prototype_object_substr()