Home
last modified time | relevance | path

Searched refs:JERRY_LIKELY (Results 1 – 25 of 26) sorted by relevance

12

/third_party/jerryscript/jerry-core/include/
Djerryscript-compiler.h44 #define JERRY_LIKELY(x) __builtin_expect(!!(x), 1) macro
157 #ifndef JERRY_LIKELY
158 #define JERRY_LIKELY(x) (x) macro
/third_party/jerryscript/jerry-core/ecma/base/
Decma-helpers-string.c194 if (JERRY_LIKELY (string_id <= ECMA_DIRECT_STRING_MAX_IMM)) in ecma_new_ecma_string_from_magic_string_ex_id()
253 if (JERRY_LIKELY (size <= UINT16_MAX)) in ecma_new_ecma_string_from_utf8_buffer()
255 if (JERRY_LIKELY (length == size)) in ecma_new_ecma_string_from_utf8_buffer()
369 if (JERRY_LIKELY (size <= UINT16_MAX)) in ecma_new_nonref_ecma_string_from_utf8()
371 if (JERRY_LIKELY (length != size)) in ecma_new_nonref_ecma_string_from_utf8()
548 if (JERRY_LIKELY (uint32_number <= ECMA_DIRECT_STRING_MAX_IMM)) in ecma_new_ecma_string_from_uint32()
814 if (JERRY_LIKELY (string_p->refs_and_container < ECMA_STRING_MAX_REF)) in ecma_ref_ecma_string()
1705 …if (JERRY_LIKELY (ECMA_STRING_GET_CONTAINER (string1_p) == ECMA_STRING_CONTAINER_HEAP_UTF8_STRING)) in ecma_compare_ecma_strings_longpath()
1799 if(JERRY_LIKELY (ECMA_STRING_GET_CONTAINER (string1_p) == ECMA_STRING_CONTAINER_HEAP_UTF8_STRING)) in ecma_compare_ecma_strings_longpath_with_literal()
2279 if (JERRY_LIKELY (size == length)) in ecma_external_string_get_char_at_pos()
[all …]
Decma-helpers-collection.c130 if (JERRY_LIKELY (collection_p->item_count < collection_p->capacity)) in ecma_collection_push_back()
Decma-lcache.c172 …if (entry_p->id == id && JERRY_LIKELY (ECMA_PROPERTY_GET_NAME_TYPE (*entry_p->prop_p) == prop_name… in ecma_lcache_lookup()
Decma-gc.c142 if (JERRY_LIKELY (object_p->type_flags_refs < ECMA_OBJECT_MAX_REF)) in ecma_ref_object()
1525 if (JERRY_LIKELY (pressure == JMEM_PRESSURE_LOW)) in ecma_free_unused_memory()
Decma-helpers-conversion.c743 if (JERRY_LIKELY (buf_p != out_buffer_p)) in ecma_uint32_to_utf8_string()
Decma-helpers.c1278 if (JERRY_LIKELY (error_ref_p->refs_and_flags < ECMA_ERROR_MAX_REF)) in ecma_ref_error_reference()
/third_party/jerryscript/jerry-core/ecma/operations/
Decma-try-catch-macro.h72 if (JERRY_LIKELY (ecma_is_value_empty (return_value))) \
Decma-objects.c153 if (JERRY_LIKELY (index < ext_object_p->u.array.length)) in ecma_op_object_get_own_property()
501 if (JERRY_LIKELY (ecma_op_array_is_fast_array (ext_object_p))) in ecma_op_object_find_own()
505 if (JERRY_LIKELY (index != ECMA_STRING_NOT_ARRAY_INDEX)) in ecma_op_object_find_own()
507 if (JERRY_LIKELY (index < ext_object_p->u.array.length)) in ecma_op_object_find_own()
688 if (JERRY_LIKELY (index <= ECMA_DIRECT_STRING_MAX_IMM)) in ecma_op_object_find_by_uint32_index()
874 if (JERRY_LIKELY (index <= ECMA_DIRECT_STRING_MAX_IMM)) in ecma_op_object_get_by_uint32_index()
898 if (JERRY_LIKELY (ecma_get_object_type (object_p) == ECMA_OBJECT_TYPE_ARRAY)) in ecma_op_object_get_length()
1074 if (JERRY_LIKELY (index <= ECMA_DIRECT_STRING_MAX_IMM)) in ecma_op_object_put_by_uint32_index()
1304 if (JERRY_LIKELY (ecma_op_array_is_fast_array (ext_object_p))) in ecma_op_object_put_with_receiver()
1637 if (JERRY_LIKELY (index <= ECMA_DIRECT_STRING_MAX_IMM)) in ecma_op_object_delete_by_uint32_index()
[all …]
Decma-get-put-value.c143 if (JERRY_LIKELY (ecma_is_value_string (base_value))) in ecma_op_get_value_object_base()
Decma-reference.c229 if (JERRY_LIKELY (lex_env_p == ecma_get_global_scope ())) in ecma_op_object_bound_environment_resolve_reference_value()
Decma-array-object.c246 if (JERRY_LIKELY (index < old_length)) in ecma_fast_array_set_property()
283 if (JERRY_LIKELY (index < aligned_length)) in ecma_fast_array_set_property()
Decma-objects-general.c500 else if (JERRY_LIKELY (property_desc_type == current_property_type)) in ecma_op_general_object_define_own_property()
Decma-function-object.c1086 if (JERRY_LIKELY (type == ECMA_OBJECT_TYPE_FUNCTION)) in ecma_op_function_call()
Decma-regexp-object.c406 if (JERRY_LIKELY (ch <= LIT_UTF8_1_BYTE_CODE_POINT_MAX)) in ecma_regexp_canonicalize_char()
3108 while (code_unit_count-- > 0 && JERRY_LIKELY (match_position_p < string_end_p)) in ecma_regexp_replace_helper()
/third_party/jerryscript/jerry-core/parser/regexp/
Dre-bytecode.c202 if (JERRY_LIKELY (value <= RE_VALUE_1BYTE_MAX)) in re_get_encoded_value_size()
217 if (JERRY_LIKELY (value <= RE_VALUE_1BYTE_MAX)) in re_encode_value()
261 if (JERRY_LIKELY (value <= RE_VALUE_1BYTE_MAX)) in re_get_value()
/third_party/jerryscript/jerry-core/jmem/
Djmem-heap.c170 && JERRY_LIKELY (JERRY_HEAP_CONTEXT (first).next_offset != JMEM_HEAP_END_OF_LIST)) in jmem_heap_alloc()
215 while (JERRY_LIKELY (current_offset != JMEM_HEAP_END_OF_LIST)) in jmem_heap_alloc()
328 while (JERRY_UNLIKELY (data_space_p == NULL) && JERRY_LIKELY (pressure < max_pressure)) in jmem_heap_gc_and_alloc_block()
/third_party/jerryscript/jerry-core/parser/js/
Djs-scanner-util.c218 if (JERRY_LIKELY (prev_scanner_info_p == NULL)) in scanner_insert_info()
1127 if (JERRY_LIKELY (!literal_location_p->has_escape)) in scanner_add_custom_literal()
1133 if (JERRY_LIKELY (!literal_p->has_escape)) in scanner_add_custom_literal()
1226 if (JERRY_LIKELY (!context_p->token.lit_location.has_escape)) in scanner_append_argument()
1232 if (JERRY_LIKELY (!literal_p->has_escape)) in scanner_append_argument()
1306 if (JERRY_LIKELY (!literal_p->has_escape)) in scanner_scope_find_let_declaration()
1381 if (JERRY_LIKELY (!context_p->token.lit_location.has_escape)) in scanner_detect_invalid_var()
1390 if (JERRY_LIKELY (!literal_p->has_escape)) in scanner_detect_invalid_var()
Djs-parser.c1478 if (opcode == CBC_ASSIGN_SET_IDENT && JERRY_LIKELY (first_byte < last_register_index)) in parser_post_processing()
Djs-parser-expr.c3353 if (JERRY_LIKELY (grouping_level != PARSE_EXPR_LEFT_HAND_SIDE)) in parser_parse_expression()
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-regexp.c163 if (JERRY_LIKELY (new_target_obj_p != NULL)) in ecma_builtin_regexp_dispatch_helper()
Decma-builtin-helpers.c790 if (JERRY_LIKELY (index <= ECMA_DIRECT_STRING_MAX_IMM)) in ecma_builtin_helper_def_prop_by_index()
/third_party/jerryscript/jerry-core/vm/
Dvm.c79 if (JERRY_LIKELY (ecma_op_array_is_fast_array (ext_object_p) in vm_op_get_value()
84 if (JERRY_LIKELY (!ecma_is_value_array_hole (values_p[int_value]))) in vm_op_get_value()
447 …if (JERRY_LIKELY (!(frame_ctx_p->bytecode_header_p->status_flags & CBC_CODE_FLAGS_STATIC_FUNCTION)… in vm_construct_literal_object()
2411 if (JERRY_LIKELY (int_increase != 0)) in vm_loop()
3623 if (JERRY_LIKELY (ecma_is_value_true (result))) in vm_loop()
4307 if (JERRY_LIKELY(frame_ctx_p->prev_context_p != NULL)) { in vm_init_exec()
Dopcodes.c512 if (JERRY_LIKELY (ecma_op_array_is_fast_array (ext_array_obj_p))) in opfunc_append_array()
/third_party/jerryscript/jerry-core/api/
Djerry.c1868 if (JERRY_LIKELY (ecma_get_object_type (object_p) == ECMA_OBJECT_TYPE_ARRAY)) in jerry_get_array_length()

12