Home
last modified time | relevance | path

Searched refs:int_num (Results 1 – 4 of 4) sorted by relevance

/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-number.c177 ecma_number_t int_num; in ecma_builtin_number_object_is_integer() local
178 ecma_op_to_integer (arg, &int_num); in ecma_builtin_number_object_is_integer()
180 if (int_num != num) in ecma_builtin_number_object_is_integer()
215 ecma_number_t int_num = ecma_number_trunc (num); in ecma_builtin_number_object_is_safe_integer() local
217 if (int_num == num && fabs (int_num) <= ECMA_NUMBER_MAX_SAFE_INTEGER) in ecma_builtin_number_object_is_safe_integer()
/third_party/jerryscript/tests/unit-core/
Dtest-to-length.c40 ecma_value_t int_num = ecma_make_int32_value (123); in main() local
42 uint32_t result = ecma_op_to_length (int_num, &num); in main()
44 ecma_free_value (int_num); in main()
Dtest-to-integer.c40 ecma_value_t int_num = ecma_make_int32_value (123); in main() local
42 ecma_number_t result = ecma_op_to_integer (int_num, &num); in main()
44 ecma_free_value (int_num); in main()
/third_party/jerryscript/jerry-core/parser/js/
Djs-lexer.c2498 int32_t int_num = (int32_t) num; in lexer_construct_number_object() local
2500 if (int_num == num in lexer_construct_number_object()
2501 && int_num <= CBC_PUSH_NUMBER_BYTE_RANGE_END in lexer_construct_number_object()
2502 && (int_num != 0 || !is_negative_number)) in lexer_construct_number_object()
2504 context_p->lit_object.index = (uint16_t) int_num; in lexer_construct_number_object()