Home
last modified time | relevance | path

Searched refs:JERRY_UNLIKELY (Results 1 – 25 of 66) sorted by relevance

123

/third_party/jerryscript/jerry-core/ecma/operations/
Decma-function-object.c180 if (JERRY_UNLIKELY (str_p == NULL)) in ecma_op_create_dynamic_function_arguments_helper()
197 if (JERRY_UNLIKELY (str_p == NULL)) in ecma_op_create_dynamic_function_arguments_helper()
305 if (JERRY_UNLIKELY (arguments_str_p == NULL)) in ecma_op_create_dynamic_function()
316 if (JERRY_UNLIKELY (function_body_str_p == NULL)) in ecma_op_create_dynamic_function()
374 if (JERRY_UNLIKELY (proto == NULL)) in ecma_op_create_dynamic_function()
783 if (JERRY_UNLIKELY (ecma_get_object_is_builtin (func_obj_p))) in ecma_op_function_call_simple()
803 if (JERRY_UNLIKELY (status_flags & (CBC_CODE_FLAGS_CLASS_CONSTRUCTOR | CBC_CODE_FLAGS_GENERATOR))) in ecma_op_function_call_simple()
821 if (JERRY_UNLIKELY (status_flags & CBC_CODE_FLAGS_ARROW_FUNCTION)) in ecma_op_function_call_simple()
879 if (JERRY_UNLIKELY (status_flags & CBC_CODE_FLAGS_CLASS_CONSTRUCTOR)) in ecma_op_function_call_simple()
922 if (JERRY_UNLIKELY (free_this_binding)) in ecma_op_function_call_simple()
[all …]
Decma-regexp-object.c221 if (JERRY_UNLIKELY (proto_obj_p == NULL)) in ecma_op_regexp_alloc()
302 if (JERRY_UNLIKELY (pattern_str_p == NULL)) in ecma_op_create_regexp_from_pattern()
311 if (JERRY_UNLIKELY (flags_str_p == NULL)) in ecma_op_create_regexp_from_pattern()
331 if (JERRY_UNLIKELY (bc_p == NULL)) in ecma_op_create_regexp_from_pattern()
379 if (JERRY_UNLIKELY (pattern_str_p == NULL)) in ecma_op_create_regexp_with_flags()
387 if (JERRY_UNLIKELY (bc_p == NULL)) in ecma_op_create_regexp_with_flags()
418 if (JERRY_UNLIKELY (ch > LIT_UTF16_CODE_UNIT_MAX)) in ecma_regexp_canonicalize_char()
518 if (JERRY_UNLIKELY (re_ctx_p->flags & RE_FLAG_UNICODE) in ecma_regexp_advance()
576 if (JERRY_UNLIKELY (re_ctx_p->flags & RE_FLAG_UNICODE) in ecma_regexp_step_back()
604 if (JERRY_UNLIKELY (ecma_get_current_stack_usage () > CONFIG_MEM_STACK_LIMIT)) in ecma_regexp_run()
[all …]
Decma-get-put-value.c68 if (JERRY_UNLIKELY (property_value_p->value == ECMA_VALUE_UNINITIALIZED)) in ecma_op_get_value_lex_env_base()
135 if (JERRY_UNLIKELY (ecma_is_value_object (base_value))) in ecma_op_get_value_object_base()
223 if (JERRY_UNLIKELY (property_value_p->value == ECMA_VALUE_UNINITIALIZED)) in ecma_op_put_value_lex_env_base()
Decma-container-object.c380 if (JERRY_UNLIKELY (proto_p == NULL)) in ecma_op_container_create()
697 if (JERRY_UNLIKELY (ecma_op_object_is_fast_array (key_p))) in ecma_op_container_set_weak()
750 … if (JERRY_UNLIKELY (ecma_number_is_zero (number_value) && ecma_number_is_negative (number_value))) in ecma_op_container_set_noramlize_zero()
1063 if (JERRY_UNLIKELY (index == ECMA_ITERATOR_INDEX_LIMIT)) in ecma_op_iterator_get_index()
1082 if (JERRY_UNLIKELY (index >= ECMA_ITERATOR_INDEX_LIMIT)) in ecma_op_iterator_set_index()
Decma-string-object.c55 if (JERRY_UNLIKELY (str_p == NULL)) in ecma_op_create_string_object()
/third_party/jerryscript/jerry-core/include/
Djerryscript-compiler.h45 #define JERRY_UNLIKELY(x) __builtin_expect(!!(x), 0) macro
164 #ifndef JERRY_UNLIKELY
165 #define JERRY_UNLIKELY(x) (x) macro
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-math.c153 if (JERRY_UNLIKELY (nan_found || ecma_number_is_nan (arg_num))) in ecma_builtin_math_object_max_min()
178 if (JERRY_UNLIKELY (nan_found)) in ecma_builtin_math_object_max_min()
230 if (JERRY_UNLIKELY (inf_found || ecma_number_is_infinity (arg_num))) in ecma_builtin_math_object_hypot()
236 if (JERRY_UNLIKELY (nan_found || ecma_number_is_nan (arg_num))) in ecma_builtin_math_object_hypot()
245 if (JERRY_UNLIKELY (inf_found)) in ecma_builtin_math_object_hypot()
250 if (JERRY_UNLIKELY (nan_found)) in ecma_builtin_math_object_hypot()
Decma-builtin-proxy.c61 if (JERRY_UNLIKELY (rev_proxy_p == NULL)) in ecma_builtin_proxy_object_revocable()
106 if (JERRY_UNLIKELY (proxy_p == NULL)) in ecma_builtin_proxy_dispatch_construct()
Decma-builtin-error-prototype.c99 if (JERRY_UNLIKELY (name_string_p == NULL)) in ecma_builtin_error_prototype_object_to_string()
108 if (JERRY_UNLIKELY (msg_string_p == NULL)) in ecma_builtin_error_prototype_object_to_string()
Decma-builtin-string-prototype.c157 if (JERRY_UNLIKELY (!ecma_is_value_empty (to_num_result))) in ecma_builtin_string_prototype_char_at_helper()
164 if (JERRY_UNLIKELY (original_string_p == NULL)) in ecma_builtin_string_prototype_char_at_helper()
219 if (JERRY_UNLIKELY (get_arg_string_p == NULL)) in ecma_builtin_string_prototype_object_concat()
250 if (JERRY_UNLIKELY (arg_string_p == NULL)) in ecma_builtin_string_prototype_object_locale_compare()
317 if (JERRY_UNLIKELY (this_str_p == NULL)) in ecma_builtin_string_prototype_object_match()
325 if (JERRY_UNLIKELY (regexp_obj_p == NULL)) in ecma_builtin_string_prototype_object_match()
359 if (JERRY_UNLIKELY (regexp_obj_p == NULL)) in ecma_builtin_string_prototype_object_match()
634 if (JERRY_UNLIKELY (new_regexp_obj_p == NULL)) in ecma_builtin_string_prototype_object_search()
1363 if (JERRY_UNLIKELY (string_p == NULL)) in ecma_builtin_string_prototype_dispatch_routine()
Decma-builtin-string.c216 if (JERRY_UNLIKELY (next_seg_srt_p == NULL)) in ecma_builtin_string_object_raw()
246 if (JERRY_UNLIKELY (next_sub_p == NULL)) in ecma_builtin_string_object_raw()
370 if (JERRY_UNLIKELY (str_p == NULL)) in ecma_builtin_string_dispatch_call()
Decma-builtin-array-prototype.c180 if (JERRY_UNLIKELY (first_string_p == NULL)) in ecma_builtin_array_prototype_object_to_locale_string()
196 if (JERRY_UNLIKELY (next_string_p == NULL)) in ecma_builtin_array_prototype_object_to_locale_string()
347 if (JERRY_UNLIKELY (separator_string_p == NULL)) in ecma_builtin_array_prototype_join()
362 if (JERRY_UNLIKELY (first_string_p == NULL)) in ecma_builtin_array_prototype_join()
380 if (JERRY_UNLIKELY (next_string_p == NULL)) in ecma_builtin_array_prototype_join()
894 if (JERRY_UNLIKELY (obj_p->u1.property_list_cp == JMEM_CP_NULL)) in ecma_builtin_array_prototype_object_slice()
1033 if (JERRY_UNLIKELY (lhs_str_p == NULL)) in ecma_builtin_array_prototype_object_sort_compare_helper()
1039 if (JERRY_UNLIKELY (rhs_str_p == NULL)) in ecma_builtin_array_prototype_object_sort_compare_helper()
1688 if (JERRY_UNLIKELY (obj_p->u1.property_list_cp == JMEM_CP_NULL)) in ecma_builtin_array_prototype_object_index_of()
1794 if (JERRY_UNLIKELY (obj_p->u1.property_list_cp == JMEM_CP_NULL)) in ecma_builtin_array_prototype_object_last_index_of()
[all …]
Decma-builtin-helpers-error.c52 if (JERRY_UNLIKELY (message_string_p == NULL)) in ecma_builtin_helper_error_dispatch_call()
Decma-builtin-intrinsic.c111 if (JERRY_UNLIKELY (str_p == NULL)) in ecma_builtin_intrinsic_dispatch_routine()
/third_party/jerryscript/jerry-core/parser/js/
Djs-scanner-ops.c324 if (JERRY_UNLIKELY (context_p->token.type == LEXER_KEYW_FUNCTION)) in scanner_check_function_after_if()
429 if (JERRY_UNLIKELY (lexer_token_is_async (context_p))) in scanner_scan_bracket()
473 if (JERRY_UNLIKELY (scanner_context_p->async_source_p != NULL) in scanner_scan_bracket()
501 if (JERRY_UNLIKELY (scanner_context_p->async_source_p != NULL)) in scanner_scan_bracket()
529 else if (JERRY_UNLIKELY (async_source_p != NULL)) in scanner_scan_bracket()
Djs-scanner-util.c527 if (JERRY_UNLIKELY (no_declarations > PARSER_MAXIMUM_DEPTH_OF_SCOPE_STACK)) in scanner_pop_literal_pool()
768 if (JERRY_UNLIKELY (no_declarations > PARSER_MAXIMUM_DEPTH_OF_SCOPE_STACK) in scanner_pop_literal_pool()
1708 if (JERRY_UNLIKELY (type == SCANNER_STREAM_TYPE_HOLE)) in scanner_is_context_needed()
1779 if (JERRY_UNLIKELY (check_type == PARSER_CHECK_GLOBAL_CONTEXT) in scanner_is_context_needed()
1787 if (JERRY_UNLIKELY (check_type == PARSER_CHECK_FUNCTION_CONTEXT)) in scanner_is_context_needed()
1879 if (JERRY_UNLIKELY (context_p->literal_count >= PARSER_MAXIMUM_NUMBER_OF_LITERALS)) in scanner_create_unused_literal()
2153 if (JERRY_UNLIKELY (context_p->status_flags & PARSER_LEXICAL_BLOCK_NEEDED) in scanner_create_variables()
2167 if (JERRY_UNLIKELY (scope_stack_p >= scope_stack_end_p)) in scanner_create_variables()
2370 if (JERRY_UNLIKELY (scope_stack_p >= scope_stack_end_p)) in scanner_create_variables()
2418 if (JERRY_UNLIKELY (scope_stack_p >= scope_stack_end_p)) in scanner_create_variables()
/third_party/jerryscript/jerry-core/vm/
Dopcodes-ecma-relational-equality.c120 if (JERRY_UNLIKELY (!ecma_is_value_undefined (has_instance_method))) in opfunc_instanceof()
164 if (JERRY_UNLIKELY (property_name_p == NULL)) in opfunc_in()
Dopcodes-ecma-arithmetics.c144 if (JERRY_UNLIKELY (string1_p == NULL)) in opfunc_addition()
159 if (JERRY_UNLIKELY (string2_p == NULL)) in opfunc_addition()
Dvm.c124 if (JERRY_UNLIKELY (ecma_is_value_undefined (object) || ecma_is_value_null (object))) in vm_op_get_value()
169 if (JERRY_UNLIKELY (!ecma_is_value_object (base))) in vm_op_set_value()
171 if (JERRY_UNLIKELY (ecma_is_value_null (base) || ecma_is_value_undefined (base))) in vm_op_set_value()
185 if (JERRY_UNLIKELY (!ecma_is_value_prop_name (property))) in vm_op_set_value()
190 if (JERRY_UNLIKELY (property_p == NULL)) in vm_op_set_value()
219 if (JERRY_UNLIKELY (!ecma_is_value_prop_name (property))) in vm_op_set_value()
224 if (JERRY_UNLIKELY (property_p == NULL)) in vm_op_set_value()
372 if (JERRY_UNLIKELY (lex_env_p->u2.outer_reference_cp == JMEM_CP_NULL)) in vm_run_eval()
466 if (JERRY_UNLIKELY (regexp_obj_p == NULL)) in vm_construct_literal_object()
620 if (JERRY_UNLIKELY (ECMA_IS_VALUE_ERROR (completion_value))) in vm_super_call()
[all …]
/third_party/jerryscript/jerry-core/jmem/
Djmem.h234 …(((JERRY_UNLIKELY ((cp_value) == JMEM_CP_NULL)) ? NULL : JMEM_CP_GET_NON_NULL_POINTER (type, cp_va…
252 if (JERRY_UNLIKELY ((ptr_value) == NULL)) \
Djmem-heap.c204 if (JERRY_UNLIKELY (data_space_p == JERRY_CONTEXT (jmem_heap_list_skip_p))) in jmem_heap_alloc()
310 if (JERRY_UNLIKELY (size == 0)) in jmem_heap_gc_and_alloc_block()
328 while (JERRY_UNLIKELY (data_space_p == NULL) && JERRY_LIKELY (pressure < max_pressure)) in jmem_heap_gc_and_alloc_block()
/third_party/jerryscript/tests/unit-core/
Dtest-common.h33 if (JERRY_UNLIKELY (!(x))) \
/third_party/jerryscript/jerry-core/lit/
Dlit-char-helpers.c445 if (JERRY_UNLIKELY (buf_p + lookup > buf_end_p)) in lit_char_hex_lookup()
487 if (JERRY_UNLIKELY (value > UINT32_MAX / 10) || JERRY_UNLIKELY (new_value < value)) in lit_parse_decimal()
/third_party/jerryscript/jerry-ext/common/
Djext-common.h52 if (JERRY_UNLIKELY (!(x))) \
/third_party/jerryscript/jerry-core/ecma/base/
Decma-helpers-number.c368 if (JERRY_UNLIKELY (biased_exp == 0)) in ecma_number_get_fraction_and_exponent()
697 if (JERRY_UNLIKELY ((left_integer & (left_integer - 1)) == 0)) in ecma_integer_multiply()
702 else if (JERRY_UNLIKELY ((right_integer & (right_integer - 1)) == 0)) in ecma_integer_multiply()

123