Home
last modified time | relevance | path

Searched refs:bytecode_p (Results 1 – 16 of 16) sorted by relevance

/third_party/jerryscript/jerry-core/parser/regexp/
Dre-bytecode.c379 const uint8_t *bytecode_p = bytecode_start_p; in re_dump_bytecode() local
383 JERRY_DEBUG_MSG ("[%3u] ", (uint32_t) ((uintptr_t) bytecode_p - (uintptr_t) bytecode_start_p)); in re_dump_bytecode()
384 re_opcode_t op = *bytecode_p++; in re_dump_bytecode()
390 …const uint32_t offset = re_get_value (&bytecode_p) + re_get_bytecode_offset (bytecode_start_p, byt… in re_dump_bytecode()
397 …const uint32_t offset = re_get_value (&bytecode_p) + re_get_bytecode_offset (bytecode_start_p, byt… in re_dump_bytecode()
409 JERRY_DEBUG_MSG ("idx: %u, ", re_get_value (&bytecode_p)); in re_dump_bytecode()
410 JERRY_DEBUG_MSG ("capture count: %u, ", re_get_value (&bytecode_p)); in re_dump_bytecode()
412 const uint32_t qmin = re_get_value (&bytecode_p); in re_dump_bytecode()
416 …const uint32_t offset = re_get_value (&bytecode_p) + re_get_bytecode_offset (bytecode_start_p, byt… in re_dump_bytecode()
429 JERRY_DEBUG_MSG ("idx: %u, ", re_get_value (&bytecode_p)); in re_dump_bytecode()
[all …]
/third_party/jerryscript/jerry-core/api/
Djerry-snapshot.c268 ecma_compiled_code_t *bytecode_p = ECMA_GET_INTERNAL_VALUE_POINTER (ecma_compiled_code_t, in snapshot_add_compiled_code() local
271 if (bytecode_p == compiled_code_p) in snapshot_add_compiled_code()
277 uint32_t offset = snapshot_add_compiled_code (bytecode_p, in snapshot_add_compiled_code()
407 ecma_compiled_code_t *bytecode_p = ECMA_GET_INTERNAL_VALUE_POINTER (ecma_compiled_code_t, in static_snapshot_add_compiled_code() local
410 if (bytecode_p == compiled_code_p) in static_snapshot_add_compiled_code()
416 uint32_t offset = static_snapshot_add_compiled_code (bytecode_p, in static_snapshot_add_compiled_code()
457 ecma_compiled_code_t *bytecode_p = (ecma_compiled_code_t *) buffer_p; in jerry_snapshot_set_offsets() local
458 uint32_t code_size = ((uint32_t) bytecode_p->size) << JMEM_ALIGNMENT_LOG; in jerry_snapshot_set_offsets()
460 if (bytecode_p->status_flags & CBC_CODE_FLAGS_FUNCTION) in jerry_snapshot_set_offsets()
466 if (bytecode_p->status_flags & CBC_CODE_FLAGS_UINT16_ARGUMENTS) in jerry_snapshot_set_offsets()
[all …]
/third_party/jerryscript/jerry-core/ecma/base/
Decma-helpers.c1341 ecma_bytecode_ref (ecma_compiled_code_t *bytecode_p) /**< byte code pointer */ in ecma_bytecode_ref() argument
1344 if (bytecode_p->refs >= UINT16_MAX) in ecma_bytecode_ref()
1349 bytecode_p->refs++; in ecma_bytecode_ref()
1357 ecma_bytecode_deref (ecma_compiled_code_t *bytecode_p) /**< byte code pointer */ in ecma_bytecode_deref() argument
1359 JERRY_ASSERT (bytecode_p->refs > 0); in ecma_bytecode_deref()
1360 JERRY_ASSERT (!(bytecode_p->status_flags & CBC_CODE_FLAGS_STATIC_FUNCTION)); in ecma_bytecode_deref()
1362 bytecode_p->refs--; in ecma_bytecode_deref()
1364 if (bytecode_p->refs > 0) in ecma_bytecode_deref()
1370 if (bytecode_p->status_flags & CBC_CODE_FLAGS_FUNCTION) in ecma_bytecode_deref()
1376 if (bytecode_p->status_flags & CBC_CODE_FLAGS_UINT16_ARGUMENTS) in ecma_bytecode_deref()
[all …]
Decma-literal-storage.c415 ecma_compiled_code_t *bytecode_p = ECMA_GET_INTERNAL_VALUE_POINTER (ecma_compiled_code_t, in ecma_save_literals_add_compiled_code() local
418 if ((bytecode_p->status_flags & CBC_CODE_FLAGS_FUNCTION) in ecma_save_literals_add_compiled_code()
419 && bytecode_p != compiled_code_p) in ecma_save_literals_add_compiled_code()
421 ecma_save_literals_add_compiled_code (bytecode_p, lit_pool_p); in ecma_save_literals_add_compiled_code()
Decma-helpers.h489 void ecma_bytecode_ref (ecma_compiled_code_t *bytecode_p);
490 void ecma_bytecode_deref (ecma_compiled_code_t *bytecode_p);
495 ecma_length_t ecma_compiled_code_get_formal_params (const ecma_compiled_code_t *bytecode_p);
Decma-globals.h979 const ecma_compiled_code_t *bytecode_p; /**< real byte code pointer */ member
1004 const ecma_compiled_code_t *bytecode_p; member
Decma-gc.c1118 … ecma_compiled_code_t *bytecode_p = ECMA_GET_INTERNAL_VALUE_ANY_POINTER (ecma_compiled_code_t, in ecma_gc_free_object() local
1121 ecma_bytecode_deref (bytecode_p); in ecma_gc_free_object()
/third_party/jerryscript/jerry-core/vm/
Dvm.h437 ecma_value_t vm_run_global (const ecma_compiled_code_t *bytecode_p);
441 ecma_value_t vm_run_module (const ecma_compiled_code_t *bytecode_p, ecma_object_t *lex_env_p);
Dvm.c281 vm_run_module (const ecma_compiled_code_t *bytecode_p, /**< pointer to bytecode to run */ in vm_run_module() argument
290 return vm_run (bytecode_p, in vm_run_module()
307 vm_run_global (const ecma_compiled_code_t *bytecode_p) /**< pointer to bytecode to run */ in vm_run_global() argument
312 if (bytecode_p->status_flags & CBC_CODE_FLAGS_LEXICAL_BLOCK_NEEDED) in vm_run_global()
341 return vm_run (bytecode_p, in vm_run_global()
444 ecma_compiled_code_t *bytecode_p; in vm_construct_literal_object() local
450 bytecode_p = ECMA_GET_INTERNAL_VALUE_POINTER (ecma_compiled_code_t, in vm_construct_literal_object()
457 bytecode_p = (ecma_compiled_code_t *) byte_p; in vm_construct_literal_object()
462 if (!(bytecode_p->status_flags & CBC_CODE_FLAGS_FUNCTION)) in vm_construct_literal_object()
471 return ecma_op_create_regexp_from_bytecode (regexp_obj_p, (re_compiled_code_t *) bytecode_p);; in vm_construct_literal_object()
[all …]
/third_party/jerryscript/jerry-core/parser/js/
Dcommon.h100 ecma_compiled_code_t *bytecode_p; /**< compiled function or regexp pointer */ member
Dcommon.c48 ecma_bytecode_deref (literal_p->u.bytecode_p); in util_free_literal()
Djs-lexer.c2675 literal_p->u.bytecode_p = compiled_code_p; in lexer_construct_function_object()
2874 literal_p->u.bytecode_p = (ecma_compiled_code_t *) re_bytecode_p; in lexer_construct_regexp_object()
Djs-parser-statm.c823 ecma_bytecode_deref (literal_p->u.bytecode_p); in parser_parse_function_statement()
826 literal_p->u.bytecode_p = compiled_code_p; in parser_parse_function_statement()
Djs-parser.c263 literal_p->u.bytecode_p); in parser_init_literal_pool()
Djs-parser-expr.c641 ctor_literal_p->u.bytecode_p = compiled_code_p; in parser_parse_class_literal()
/third_party/jerryscript/jerry-core/ecma/operations/
Decma-function-object.c266 ((ecma_static_function_t *) func_p)->bytecode_p = bytecode_data_p; in ecma_op_create_function_object()
468 ((ecma_static_arrow_function_t *) func_p)->bytecode_p = bytecode_data_p; in ecma_op_create_arrow_function_object()
538 return ((ecma_static_function_t *) function_p)->bytecode_p; in ecma_op_function_get_compiled_code()