Home
last modified time | relevance | path

Searched refs:JERRY_ASSERT (Results 1 – 25 of 127) sorted by relevance

123456

/third_party/jerryscript/jerry-core/ecma/operations/
Decma-lex-env.c79 JERRY_ASSERT (JERRY_CONTEXT (ecma_global_env_cp) != JMEM_CP_NULL); in ecma_get_global_environment()
109 JERRY_ASSERT (JERRY_CONTEXT (ecma_global_scope_cp) != JMEM_CP_NULL); in ecma_get_global_scope()
131 JERRY_ASSERT (lex_env_p != NULL in ecma_op_has_binding()
143 JERRY_ASSERT (lex_env_type == ECMA_LEXICAL_ENVIRONMENT_THIS_OBJECT_BOUND); in ecma_op_has_binding()
163 JERRY_ASSERT (lex_env_p != NULL in ecma_op_create_mutable_binding()
165 JERRY_ASSERT (name_p != NULL); in ecma_op_create_mutable_binding()
183 JERRY_ASSERT (ecma_get_lex_env_type (lex_env_p) == ECMA_LEXICAL_ENVIRONMENT_THIS_OBJECT_BOUND); in ecma_op_create_mutable_binding()
206 JERRY_ASSERT (ecma_is_value_boolean (completion)); in ecma_op_create_mutable_binding()
227 JERRY_ASSERT (lex_env_p != NULL in ecma_op_set_mutable_binding()
229 JERRY_ASSERT (name_p != NULL); in ecma_op_set_mutable_binding()
[all …]
Decma-objects-general.c93 JERRY_ASSERT (ecma_is_value_undefined (value) in ecma_op_create_object_object_arg()
143 JERRY_ASSERT (obj_p != NULL in ecma_op_general_object_delete()
145 JERRY_ASSERT (property_name_p != NULL); in ecma_op_general_object_delete()
232 JERRY_ASSERT (obj_p != NULL in ecma_op_general_object_default_value()
373 JERRY_ASSERT (object_p != NULL in ecma_op_general_object_define_own_property()
375 JERRY_ASSERT (!ecma_op_object_is_fast_array (object_p)); in ecma_op_general_object_define_own_property()
376 JERRY_ASSERT (property_name_p != NULL); in ecma_op_general_object_define_own_property()
383 JERRY_ASSERT ((property_desc_p->flags & (ECMA_PROP_IS_GET_DEFINED | ECMA_PROP_IS_SET_DEFINED)) in ecma_op_general_object_define_own_property()
389 JERRY_ASSERT (!(property_desc_p->flags & ECMA_PROP_IS_WRITABLE_DEFINED)); in ecma_op_general_object_define_own_property()
395 JERRY_ASSERT ((property_desc_p->flags & ECMA_PROP_IS_CONFIGURABLE_DEFINED) in ecma_op_general_object_define_own_property()
[all …]
Decma-array-object.c118 JERRY_ASSERT (ecma_get_object_type ((ecma_object_t *) array_p) == ECMA_OBJECT_TYPE_ARRAY); in ecma_op_array_is_fast_array()
151 JERRY_ASSERT (object_p->u1.property_list_cp == JMEM_CP_NULL); in ecma_op_new_fast_array_object()
168 JERRY_ASSERT (ecma_op_object_is_fast_array (object_p)); in ecma_fast_array_convert_to_normal()
207 JERRY_ASSERT (index <= ECMA_DIRECT_STRING_MAX_IMM); in ecma_fast_array_convert_to_normal()
240 JERRY_ASSERT (ecma_op_object_is_fast_array (object_p)); in ecma_fast_array_set_property()
248 JERRY_ASSERT (object_p->u1.property_list_cp != JMEM_CP_NULL); in ecma_fast_array_set_property()
279 JERRY_ASSERT (new_length < UINT32_MAX); in ecma_fast_array_set_property()
285 JERRY_ASSERT (object_p->u1.property_list_cp != JMEM_CP_NULL); in ecma_fast_array_set_property()
289 JERRY_ASSERT (ecma_is_value_array_hole (values_p[index])); in ecma_fast_array_set_property()
312 JERRY_ASSERT (ecma_op_object_is_fast_array (obj_p)); in ecma_fast_array_get_hole_count()
[all …]
Decma-conversion.c127 JERRY_ASSERT (ecma_is_value_object (x) || ECMA_ASSERT_VALUE_IS_SYMBOL (x)); in ecma_op_same_value()
223 JERRY_ASSERT (ecma_is_value_boolean (value) in ecma_op_to_boolean()
249 JERRY_ASSERT (ecma_is_value_object (value) || ECMA_ASSERT_VALUE_IS_SYMBOL (value)); in ecma_op_to_boolean()
317 JERRY_ASSERT (ecma_is_value_boolean (value)); in ecma_op_to_number()
391 JERRY_ASSERT (ecma_is_value_boolean (value)); in ecma_get_number()
466 JERRY_ASSERT (ecma_is_value_boolean (value)); in ecma_op_to_string()
540 JERRY_ASSERT (ecma_is_value_boolean (value)); in ecma_op_to_object()
576 JERRY_ASSERT ((prop_desc.flags & (ECMA_PROP_IS_VALUE_DEFINED | ECMA_PROP_IS_WRITABLE_DEFINED)) in ecma_op_from_property_descriptor()
585 JERRY_ASSERT (ecma_is_value_true (completion)); in ecma_op_from_property_descriptor()
593 JERRY_ASSERT (ecma_is_value_true (completion)); in ecma_op_from_property_descriptor()
[all …]
Decma-jobqueue.c97 JERRY_ASSERT (job_p != NULL); in ecma_free_promise_reaction_job()
113 JERRY_ASSERT (job_p != NULL); in ecma_free_promise_resolve_thenable_job()
141 JERRY_ASSERT (ecma_is_value_boolean (handler) || ecma_op_is_callable (handler)); in ecma_process_promise_reaction_job()
171 JERRY_ASSERT (ecma_op_is_callable (reject)); in ecma_process_promise_reaction_job()
184 JERRY_ASSERT (ecma_op_is_callable (resolve)); in ecma_process_promise_reaction_job()
259 JERRY_ASSERT (job_p->next_and_type <= ECMA_JOB_QUEURE_TYPE_MASK); in ecma_enqueue_job()
268JERRY_ASSERT ((JERRY_CONTEXT (job_queue_tail_p)->next_and_type & ~ECMA_JOB_QUEURE_TYPE_MASK) == 0); in ecma_enqueue_job()
301 JERRY_ASSERT (ecma_is_promise (ecma_get_object_from_value (promise))); in ecma_enqueue_promise_resolve_thenable_job()
302 JERRY_ASSERT (ecma_is_value_object (thenable)); in ecma_enqueue_promise_resolve_thenable_job()
303 JERRY_ASSERT (ecma_op_is_callable (then)); in ecma_enqueue_promise_resolve_thenable_job()
[all …]
/third_party/jerryscript/jerry-core/ecma/base/
Decma-helpers.c143 JERRY_ASSERT (type == ECMA_LEXICAL_ENVIRONMENT_THIS_OBJECT_BOUND in ecma_create_object_lex_env()
146 JERRY_ASSERT (type == ECMA_LEXICAL_ENVIRONMENT_THIS_OBJECT_BOUND); in ecma_create_object_lex_env()
149 JERRY_ASSERT (binding_obj_p != NULL in ecma_create_object_lex_env()
175 JERRY_ASSERT (object_p != NULL); in ecma_is_lexical_environment()
188 JERRY_ASSERT (object_p != NULL); in ecma_op_ordinary_object_set_extensible()
189 JERRY_ASSERT (!ecma_is_lexical_environment (object_p)); in ecma_op_ordinary_object_set_extensible()
202 JERRY_ASSERT (object_p != NULL); in ecma_get_object_type()
203 JERRY_ASSERT (!ecma_is_lexical_environment (object_p)); in ecma_get_object_type()
217 JERRY_ASSERT (object_p != NULL); in ecma_get_object_is_builtin()
218 JERRY_ASSERT (!ecma_is_lexical_environment (object_p)); in ecma_get_object_is_builtin()
[all …]
Decma-helpers-string.c68 JERRY_ASSERT (string_size > 0 && *string_p >= LIT_CHAR_0 && *string_p <= LIT_CHAR_9); in ecma_string_to_array_index()
152 JERRY_ASSERT (string_p->refs_and_container >= ECMA_STRING_REF_ONE); in ecma_string_get_chars_fast()
173 JERRY_ASSERT (ECMA_STRING_GET_CONTAINER (string_p) == ECMA_STRING_CONTAINER_MAGIC_STRING_EX); in ecma_string_get_chars_fast()
190 JERRY_ASSERT (id < lit_get_magic_string_ex_count ()); in ecma_new_ecma_string_from_magic_string_ex_id()
216 JERRY_ASSERT (!ecma_is_value_symbol (string_desc)); in ecma_new_symbol_from_descriptor_string()
222 JERRY_ASSERT ((symbol_p->header.u.hash & ECMA_GLOBAL_SYMBOL_FLAG) == 0); in ecma_new_symbol_from_descriptor_string()
236 JERRY_ASSERT (string_p != NULL); in ecma_prop_name_is_symbol()
266 JERRY_ASSERT (length < size); in ecma_new_ecma_string_from_utf8_buffer()
300 JERRY_ASSERT (string_p != NULL || string_size == 0); in ecma_find_special_string()
308 JERRY_ASSERT (string_size > 0); in ecma_find_special_string()
[all …]
Decma-property-hashmap.c92 JERRY_ASSERT (ECMA_PROPERTY_IS_PROPERTY_PAIR (prop_iter_p)); in ecma_property_hashmap_create()
147 JERRY_ASSERT (ECMA_PROPERTY_IS_PROPERTY_PAIR (prop_iter_p)); in ecma_property_hashmap_create()
178 JERRY_ASSERT (entry_index != start_entry_index); in ecma_property_hashmap_create()
202 JERRY_ASSERT (object_p->u1.property_list_cp != JMEM_CP_NULL); in ecma_property_hashmap_free()
207 JERRY_ASSERT (property_p->types[0] == ECMA_PROPERTY_TYPE_HASHMAP); in ecma_property_hashmap_free()
226 JERRY_ASSERT (property_pair_p != NULL); in ecma_property_hashmap_insert()
231 JERRY_ASSERT (hashmap_p->header.types[0] == ECMA_PROPERTY_TYPE_HASHMAP); in ecma_property_hashmap_insert()
241 JERRY_ASSERT (property_index < ECMA_PROPERTY_PAIR_ITEM_COUNT); in ecma_property_hashmap_insert()
260 JERRY_ASSERT (entry_index != start_entry_index); in ecma_property_hashmap_insert()
275 JERRY_ASSERT (hashmap_p->null_count > 0); in ecma_property_hashmap_insert()
[all …]
Decma-lcache.c62 JERRY_ASSERT (entry_p != NULL); in ecma_lcache_invalidate_entry()
63 JERRY_ASSERT (entry_p->id != 0); in ecma_lcache_invalidate_entry()
64 JERRY_ASSERT (entry_p->prop_p != NULL); in ecma_lcache_invalidate_entry()
92 JERRY_ASSERT (object_p != NULL); in ecma_lcache_insert()
93 JERRY_ASSERT (prop_p != NULL && !ecma_is_property_lcached (prop_p)); in ecma_lcache_insert()
94 JERRY_ASSERT (ECMA_PROPERTY_GET_TYPE (*prop_p) == ECMA_PROPERTY_TYPE_NAMEDDATA in ecma_lcache_insert()
145 JERRY_ASSERT (object_p != NULL); in ecma_lcache_lookup()
146 JERRY_ASSERT (prop_name_p != NULL); in ecma_lcache_lookup()
174 JERRY_ASSERT (entry_p->prop_p != NULL && ecma_is_property_lcached (entry_p->prop_p)); in ecma_lcache_lookup()
192 JERRY_ASSERT (object_p != NULL); in ecma_lcache_invalidate()
[all …]
Decma-helpers-conversion.c221 JERRY_ASSERT (n != 0); in ecma_uint64_clz()
298 JERRY_ASSERT (radix == 2 || radix == 8 || radix == 16); in ecma_utf8_string_to_number_by_radix()
429 JERRY_ASSERT (strlen ((const char *) infinity_zt_str_p) == 8); in ecma_utf8_string_to_number()
601 JERRY_ASSERT (str_p == end_p + 1); in ecma_utf8_string_to_number()
631 JERRY_ASSERT (e >= 0); in ecma_utf8_string_to_number()
635 JERRY_ASSERT (ECMA_UINT128_CLZ_MAX63 (fraction_uint128) == 4); in ecma_utf8_string_to_number()
643 JERRY_ASSERT (shift >= 0); in ecma_utf8_string_to_number()
651 JERRY_ASSERT (e != 0); in ecma_utf8_string_to_number()
657 JERRY_ASSERT (shift <= 4); in ecma_utf8_string_to_number()
661 JERRY_ASSERT (!ECMA_UINT128_IS_ZERO (fraction_uint128)); in ecma_utf8_string_to_number()
[all …]
Decma-helpers-number.c56 JERRY_ASSERT ((biased_exp & ~((1u << ECMA_NUMBER_BIASED_EXP_WIDTH) - 1)) == 0); in ecma_number_pack()
57 JERRY_ASSERT ((fraction & ~((1ull << ECMA_NUMBER_FRACTION_WIDTH) - 1)) == 0); in ecma_number_pack()
123 JERRY_ASSERT ((biased_exp & ~((1u << ECMA_NUMBER_BIASED_EXP_WIDTH) - 1)) == 0); in ecma_number_pack()
124 JERRY_ASSERT ((fraction & ~((1ull << ECMA_NUMBER_FRACTION_WIDTH) - 1)) == 0); in ecma_number_pack()
235 JERRY_ASSERT (is_nan == is_nan_ieee754); in ecma_number_is_nan()
288 JERRY_ASSERT (!ecma_number_is_nan (num)); in ecma_number_is_negative()
310 JERRY_ASSERT (is_zero == is_zero_ieee754); in ecma_number_is_zero()
362 JERRY_ASSERT (!ecma_number_is_nan (num)); in ecma_number_get_fraction_and_exponent()
381 JERRY_ASSERT (fraction != 0); in ecma_number_get_fraction_and_exponent()
393 JERRY_ASSERT ((fraction & (1ull << ECMA_NUMBER_FRACTION_WIDTH)) == 0); in ecma_number_get_fraction_and_exponent()
[all …]
Decma-helpers-value.c87 JERRY_ASSERT (ptr != NULL); in ecma_pointer_to_ecma_value()
89 JERRY_ASSERT ((uint_ptr & ECMA_VALUE_TYPE_MASK) == 0); in ecma_pointer_to_ecma_value()
111 JERRY_ASSERT (ptr != NULL); in ecma_get_pointer_from_ecma_value()
404 JERRY_ASSERT (ecma_is_value_undefined (value) in ecma_check_value_type_is_spec_defined()
474 JERRY_ASSERT (ECMA_IS_INTEGER_NUMBER (integer_value)); in ecma_make_integer_value()
593 JERRY_ASSERT (ecma_string_p != NULL); in ecma_make_string_value()
595 JERRY_ASSERT (!ecma_prop_name_is_symbol ((ecma_string_t *) ecma_string_p)); in ecma_make_string_value()
615 JERRY_ASSERT (ecma_symbol_p != NULL); in ecma_make_symbol_value()
616 JERRY_ASSERT (ecma_prop_name_is_symbol ((ecma_string_t *) ecma_symbol_p)); in ecma_make_symbol_value()
630 JERRY_ASSERT (ecma_prop_name_p != NULL); in ecma_make_prop_name_value()
[all …]
Decma-helpers-collection.c54 JERRY_ASSERT (collection_p != NULL); in ecma_collection_destroy()
66 JERRY_ASSERT (collection_p != NULL); in ecma_collection_free_objects()
87 JERRY_ASSERT (collection_p != NULL); in ecma_collection_free_if_not_object()
105 JERRY_ASSERT (collection_p != NULL); in ecma_collection_free()
126 JERRY_ASSERT (collection_p != NULL); in ecma_collection_push_back()
154 JERRY_ASSERT (collection_p != NULL); in ecma_collection_reserve()
155 JERRY_ASSERT (UINT32_MAX - count > collection_p->capacity); in ecma_collection_reserve()
176 JERRY_ASSERT (collection_p != NULL); in ecma_collection_append()
177 JERRY_ASSERT (collection_p->capacity >= collection_p->item_count); in ecma_collection_append()
/third_party/jerryscript/jerry-core/jmem/
Djmem-allocator.c52 JERRY_ASSERT (heap_stats->byte_code_bytes >= byte_code_size); in jmem_stats_free_byte_code_bytes()
81 JERRY_ASSERT (heap_stats->string_bytes >= string_size); in jmem_stats_free_string_bytes()
110 JERRY_ASSERT (heap_stats->object_bytes >= object_size); in jmem_stats_free_object_bytes()
139 JERRY_ASSERT (heap_stats->property_bytes >= property_size); in jmem_stats_free_property_bytes()
181 JERRY_ASSERT (pointer_p != NULL); in jmem_compress_pointer()
182 JERRY_ASSERT (jmem_is_heap_pointer (pointer_p)); in jmem_compress_pointer()
186 JERRY_ASSERT (uint_ptr % JMEM_ALIGNMENT == 0); in jmem_compress_pointer()
189 JERRY_ASSERT (((jmem_cpointer_t) uint_ptr) == uint_ptr); in jmem_compress_pointer()
197 JERRY_ASSERT (uint_ptr <= UINT32_MAX); in jmem_compress_pointer()
199 JERRY_ASSERT (uint_ptr <= UINT16_MAX); in jmem_compress_pointer()
[all …]
Djmem-poolman.c46 JERRY_ASSERT (JERRY_CONTEXT (jmem_free_8_byte_chunk_p) == NULL); in jmem_pools_finalize()
48 JERRY_ASSERT (JERRY_CONTEXT (jmem_free_16_byte_chunk_p) == NULL); in jmem_pools_finalize()
69 JERRY_ASSERT (size <= 8); in jmem_pools_alloc()
93 JERRY_ASSERT (size <= 16); in jmem_pools_alloc()
122 JERRY_ASSERT (chunk_p != NULL); in jmem_pools_free()
133 JERRY_ASSERT (size <= 8); in jmem_pools_free()
143 JERRY_ASSERT (size <= 16); in jmem_pools_free()
/third_party/jerryscript/jerry-core/lit/
Dlit-strings.c221 JERRY_ASSERT (code_point > LIT_UTF16_CODE_UNIT_MAX); in convert_code_point_to_low_surrogate()
237 JERRY_ASSERT (code_point > LIT_UTF16_CODE_UNIT_MAX); in convert_code_point_to_high_surrogate()
238 JERRY_ASSERT (code_point <= LIT_UNICODE_CODE_POINT_MAX); in convert_code_point_to_high_surrogate()
281 JERRY_ASSERT (utf8_str_p != NULL); in lit_zt_utf8_string_size()
303 JERRY_ASSERT (size == utf8_buf_size); in lit_utf8_string_length()
334 JERRY_ASSERT (offset == cesu8_buf_size); in lit_get_utf8_size_of_cesu8_string()
365 JERRY_ASSERT (offset == cesu8_buf_size); in lit_get_utf8_length_of_cesu8_string()
380 JERRY_ASSERT (buf_p && buf_size); in lit_read_code_point_from_utf8()
403 JERRY_ASSERT ((c & LIT_UTF8_4_BYTE_MASK) == LIT_UTF8_4_BYTE_MARKER); in lit_read_code_point_from_utf8()
408 JERRY_ASSERT (buf_size >= bytes_count); in lit_read_code_point_from_utf8()
[all …]
Dlit-magic-strings.c57 JERRY_ASSERT (id < LIT_NON_INTERNAL_MAGIC_STRING__COUNT); in lit_get_magic_string_utf8()
82 JERRY_ASSERT (id < LIT_NON_INTERNAL_MAGIC_STRING__COUNT); in lit_get_magic_string_size()
109JERRY_ASSERT (size <= (sizeof (lit_magic_string_size_block_starts) / sizeof (lit_magic_string_id_t… in lit_get_magic_string_size_block_start()
122JERRY_ASSERT (JERRY_CONTEXT (lit_magic_string_ex_array) && id < JERRY_CONTEXT (lit_magic_string_ex… in lit_get_magic_string_ex_utf8()
147 JERRY_ASSERT (ex_str_items != NULL); in lit_magic_strings_ex_set()
148 JERRY_ASSERT (count > 0); in lit_magic_strings_ex_set()
149 JERRY_ASSERT (ex_str_sizes != NULL); in lit_magic_strings_ex_set()
151 JERRY_ASSERT (JERRY_CONTEXT (lit_magic_string_ex_array) == NULL); in lit_magic_strings_ex_set()
152 JERRY_ASSERT (JERRY_CONTEXT (lit_magic_string_ex_count) == 0); in lit_magic_strings_ex_set()
153 JERRY_ASSERT (JERRY_CONTEXT (lit_magic_string_ex_sizes) == NULL); in lit_magic_strings_ex_set()
[all …]
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtins.c252 JERRY_ASSERT (builtin_id < ECMA_BUILTIN_ID__COUNT); in ecma_builtin_get_property_count()
275 JERRY_ASSERT (obj_p != NULL && !ecma_is_lexical_environment (obj_p)); in ecma_builtin_is()
276 JERRY_ASSERT (builtin_id < ECMA_BUILTIN_ID__COUNT); in ecma_builtin_is()
296 JERRY_ASSERT (builtin_id < ECMA_BUILTIN_ID__COUNT); in ecma_builtin_get()
317 JERRY_ASSERT (JERRY_CONTEXT (ecma_builtin_objects)[ECMA_BUILTIN_ID_GLOBAL] != JMEM_CP_NULL); in ecma_builtin_get_global()
331 JERRY_ASSERT (ecma_get_object_type (func_obj_p) == ECMA_OBJECT_TYPE_FUNCTION); in ecma_builtin_function_is_routine()
332 JERRY_ASSERT (ecma_get_object_is_builtin (func_obj_p)); in ecma_builtin_function_is_routine()
344 JERRY_ASSERT (obj_builtin_id < ECMA_BUILTIN_ID__COUNT); in ecma_instantiate_builtin()
345 JERRY_ASSERT (JERRY_CONTEXT (ecma_builtin_objects)[obj_builtin_id] == JMEM_CP_NULL); in ecma_instantiate_builtin()
365 JERRY_ASSERT (prototype_obj_p != NULL); in ecma_instantiate_builtin()
[all …]
Decma-builtin-helpers-date.c57 JERRY_ASSERT (!ecma_number_is_nan (time)); in ecma_date_day()
73 JERRY_ASSERT (!ecma_number_is_nan (time)); in ecma_date_time_within_day()
95 JERRY_ASSERT (!ecma_number_is_nan (year)); in ecma_date_day_from_year()
114 JERRY_ASSERT (!ecma_number_is_nan (year)); in ecma_date_time_from_year()
130 JERRY_ASSERT (!ecma_number_is_nan (time)); in ecma_date_year_from_time()
175 JERRY_ASSERT (mod_400 >= -399 && mod_400 <= 399); in ecma_date_in_leap_year()
214 JERRY_ASSERT (!ecma_number_is_nan (time)); in ecma_date_month_from_time()
225 JERRY_ASSERT (day_within_year >= 0); in ecma_date_month_from_time()
234 JERRY_ASSERT (day_within_year < 365); in ecma_date_month_from_time()
258 JERRY_ASSERT (!ecma_number_is_nan (time)); in ecma_date_date_from_time()
[all …]
Decma-builtin-helpers.c54 JERRY_ASSERT (ecma_is_value_string (tag_value)); in ecma_builtin_helper_object_to_string_tag_helper()
79 JERRY_ASSERT (buffer_ptr <= str_buffer + buffer_size); in ecma_builtin_helper_object_to_string_tag_helper()
86 JERRY_ASSERT (buffer_ptr <= str_buffer + buffer_size); in ecma_builtin_helper_object_to_string_tag_helper()
92 JERRY_ASSERT (buffer_ptr <= str_buffer + buffer_size); in ecma_builtin_helper_object_to_string_tag_helper()
139 JERRY_ASSERT (ecma_is_value_object (obj_this)); in ecma_builtin_helper_object_to_string()
189 JERRY_ASSERT (buffer_ptr <= str_buffer + buffer_size); in ecma_builtin_helper_object_to_string()
282 JERRY_ASSERT (obj_p != NULL); in ecma_builtin_helper_object_get_properties()
423 JERRY_ASSERT (ecma_is_value_true (put_comp)); in ecma_builtin_helper_array_concat_value()
437 JERRY_ASSERT (ecma_is_value_true (put_comp)); in ecma_builtin_helper_array_concat_value()
535 JERRY_ASSERT (ECMA_STRING_LAST_INDEX_OF < mode && mode <= ECMA_STRING_ENDS_WITH); in ecma_builtin_helper_string_prototype_object_index_of()
[all …]
/third_party/jerryscript/jerry-core/api/
Djerry-debugger-transport.c42 JERRY_ASSERT (max_send_message_size > JERRY_DEBUGGER_TRANSPORT_MIN_BUFFER_SIZE in jerry_debugger_transport_add()
66JERRY_ASSERT (max_send_size > JERRY_DEBUGGER_TRANSPORT_MIN_BUFFER_SIZE + send_message_header_size); in jerry_debugger_transport_add()
67JERRY_ASSERT (max_receive_size > JERRY_DEBUGGER_TRANSPORT_MIN_BUFFER_SIZE + receive_message_header… in jerry_debugger_transport_add()
98 JERRY_ASSERT (JERRY_CONTEXT (debugger_flags) & JERRY_DEBUGGER_CONNECTED); in jerry_debugger_transport_start()
134 JERRY_ASSERT (current_p != NULL); in jerry_debugger_transport_close()
161 JERRY_ASSERT (jerry_debugger_transport_is_connected ()); in jerry_debugger_transport_send()
162 JERRY_ASSERT (message_length > 0); in jerry_debugger_transport_send()
201 JERRY_ASSERT (jerry_debugger_transport_is_connected ()); in jerry_debugger_transport_receive()
221 JERRY_ASSERT (context_p->message_p != NULL); in jerry_debugger_transport_receive_completed()
222 JERRY_ASSERT (context_p->buffer_p == JERRY_CONTEXT (debugger_receive_buffer)); in jerry_debugger_transport_receive_completed()
[all …]
/third_party/jerryscript/jerry-core/vm/
Dvm.c202 JERRY_ASSERT (!ECMA_IS_VALUE_ERROR (object)); in vm_op_set_value()
323 JERRY_ASSERT (JERRY_CONTEXT (module_top_context_p)->parent_p == NULL); in vm_run_global()
326 JERRY_ASSERT (module_p->scope_p == NULL); in vm_run_global()
475 JERRY_ASSERT (bytecode_p->status_flags & CBC_CODE_FLAGS_FUNCTION); in vm_construct_literal_object()
518 JERRY_ASSERT (!ECMA_IS_VALUE_ERROR (completion_value)); in vm_get_implicit_this_value()
543 JERRY_ASSERT (frame_ctx_p->call_operation == VM_EXEC_SUPER_CALL); in vm_super_call()
544 JERRY_ASSERT (frame_ctx_p->byte_code_p[0] == CBC_EXT_OPCODE); in vm_super_call()
660 JERRY_ASSERT (frame_ctx_p->byte_code_p[0] == CBC_EXT_OPCODE); in vm_spread_operation()
1065 JERRY_ASSERT (stack_top_p > VM_GET_REGISTERS (frame_ctx_p) + register_end); in vm_loop()
1072 JERRY_ASSERT (operands == VM_OC_GET_THIS_LITERAL); in vm_loop()
[all …]
Dvm-stack.c47 JERRY_ASSERT (lex_env_p->u2.outer_reference_cp != JMEM_CP_NULL); in vm_stack_context_abort()
96 JERRY_ASSERT (VM_GET_CONTEXT_TYPE (vm_stack_top_p[-1]) == VM_CONTEXT_FOR_IN); in vm_stack_context_abort()
132 JERRY_ASSERT (length >= 1 && length <= 3); in vm_decode_branch_offset()
167 JERRY_ASSERT (finally_type <= VM_CONTEXT_FINALLY_RETURN); in vm_stack_find_finally()
202 JERRY_ASSERT (lex_env_p->u2.outer_reference_cp != JMEM_CP_NULL); in vm_stack_find_finally()
212 JERRY_ASSERT (byte_code_p[0] == CBC_EXT_OPCODE); in vm_stack_find_finally()
250 JERRY_ASSERT (lex_env_p->u2.outer_reference_cp != JMEM_CP_NULL); in vm_stack_find_finally()
264 JERRY_ASSERT (byte_code_p[0] == CBC_EXT_OPCODE); in vm_stack_find_finally()
265 JERRY_ASSERT (byte_code_p[1] >= CBC_EXT_FINALLY in vm_stack_find_finally()
345 JERRY_ASSERT (context_top_p > context_end_p); in vm_ref_lex_env_chain()
[all …]
/third_party/jerryscript/jerry-core/parser/js/
Djs-parser-util.c156 JERRY_ASSERT (last_opcode != PARSER_TO_EXT_OPCODE (CBC_EXT_PUSH_SUPER)); in parser_flush_cbc()
164 JERRY_ASSERT (opcode < CBC_END); in parser_flush_cbc()
174 JERRY_ASSERT (opcode < CBC_EXT_END); in parser_flush_cbc()
180 JERRY_ASSERT ((flags >> CBC_STACK_ADJUST_SHIFT) >= CBC_STACK_ADJUST_BASE in parser_flush_cbc()
218 JERRY_ASSERT (context_p->last_cbc.value <= CBC_MAXIMUM_BYTE_VALUE); in parser_flush_cbc()
222 JERRY_ASSERT (context_p->stack_depth >= byte_argument); in parser_flush_cbc()
294 JERRY_ASSERT (PARSER_ARGS_EQ (opcode, 0)); in parser_emit_cbc()
312 JERRY_ASSERT (PARSER_ARGS_EQ (opcode, CBC_HAS_LITERAL_ARG)); in parser_emit_cbc_literal()
334 JERRY_ASSERT (PARSER_ARGS_EQ (opcode, CBC_HAS_LITERAL_ARG | CBC_HAS_LITERAL_ARG2)); in parser_emit_cbc_literal_value()
355 JERRY_ASSERT (PARSER_ARGS_EQ (opcode, CBC_HAS_LITERAL_ARG)); in parser_emit_cbc_literal_from_token()
[all …]
Djs-scanner-util.c70 JERRY_ASSERT (0); in scanner_raise_error()
100 JERRY_ASSERT (size > 0); in scanner_malloc()
165 JERRY_ASSERT ((data_p[0] & SCANNER_STREAM_TYPE_MASK) == SCANNER_STREAM_TYPE_HOLE); in scanner_get_stream_size()
200 JERRY_ASSERT (scanner_info_p != NULL); in scanner_insert_info()
201 JERRY_ASSERT (source_p != NULL); in scanner_insert_info()
210 JERRY_ASSERT (scanner_info_p != NULL); in scanner_insert_info()
214 JERRY_ASSERT (source_p != scanner_info_p->source_p); in scanner_insert_info()
241 JERRY_ASSERT (start_info_p != NULL); in scanner_insert_info_before()
254 JERRY_ASSERT (scanner_info_p != NULL); in scanner_insert_info_before()
258 JERRY_ASSERT (source_p != scanner_info_p->source_p); in scanner_insert_info_before()
[all …]

123456