Home
last modified time | relevance | path

Searched refs:status_flags (Results 1 – 25 of 39) sorted by relevance

12

/third_party/jerryscript/jerry-core/parser/js/
Djs-parser.c77 if (literal_p->status_flags & LEXER_FLAG_USED) in parser_compute_indicies()
83 else if (!(literal_p->status_flags & LEXER_FLAG_SOURCE_PTR)) in parser_compute_indicies()
87 literal_p->status_flags |= LEXER_FLAG_SOURCE_PTR; in parser_compute_indicies()
116 uint32_t status_flags = context_p->status_flags; in parser_compute_indicies() local
118 if ((literal_p->status_flags & LEXER_FLAG_SOURCE_PTR) in parser_compute_indicies()
126 literal_p->status_flags |= LEXER_FLAG_LATE_INIT; in parser_compute_indicies()
127 status_flags |= PARSER_HAS_LATE_LIT_INIT; in parser_compute_indicies()
128 context_p->status_flags = status_flags; in parser_compute_indicies()
138 if (!(literal_p->status_flags & LEXER_FLAG_SOURCE_PTR)) in parser_compute_indicies()
142 literal_p->status_flags |= LEXER_FLAG_SOURCE_PTR; in parser_compute_indicies()
[all …]
Djs-scanner-ops.c54 if (scanner_context_p->active_literal_pool_p->status_flags & SCANNER_LITERAL_POOL_IN_WITH) in scanner_add_async_literal()
111 uint16_t status_flags = literal_pool_p->status_flags; in scanner_check_arrow() local
113 status_flags |= SCANNER_LITERAL_POOL_FUNCTION_WITHOUT_ARGUMENTS; in scanner_check_arrow()
114 status_flags &= (uint16_t) ~(SCANNER_LITERAL_POOL_IN_WITH in scanner_check_arrow()
118 context_p->status_flags &= (uint32_t) ~(PARSER_IS_GENERATOR_FUNCTION | PARSER_IS_ASYNC_FUNCTION); in scanner_check_arrow()
120 if (status_flags & SCANNER_LITERAL_POOL_ASYNC_ARROW) in scanner_check_arrow()
122 status_flags |= SCANNER_LITERAL_POOL_ASYNC; in scanner_check_arrow()
123 context_p->status_flags |= PARSER_IS_ASYNC_FUNCTION; in scanner_check_arrow()
126 literal_pool_p->status_flags = status_flags; in scanner_check_arrow()
140 uint16_t status_flags = SCANNER_LITERAL_POOL_FUNCTION_WITHOUT_ARGUMENTS; in scanner_scan_simple_arrow() local
[all …]
Djs-scanner-util.c395 … uint16_t status_flags) /**< combination of scanner_literal_pool_flags_t flags */ in scanner_push_literal_pool() argument
402 if (!(status_flags & SCANNER_LITERAL_POOL_FUNCTION)) in scanner_push_literal_pool()
405 status_flags |= SCANNER_LITERAL_POOL_NO_ARGUMENTS; in scanner_push_literal_pool()
415 status_flags |= (uint16_t) (prev_literal_pool_p->status_flags & copied_flags); in scanner_push_literal_pool()
420 … context_p->status_flags &= (uint32_t) ~(PARSER_IS_GENERATOR_FUNCTION | PARSER_IS_ASYNC_FUNCTION); in scanner_push_literal_pool()
422 if (status_flags & SCANNER_LITERAL_POOL_GENERATOR) in scanner_push_literal_pool()
424 context_p->status_flags |= PARSER_IS_GENERATOR_FUNCTION; in scanner_push_literal_pool()
427 if (status_flags & SCANNER_LITERAL_POOL_ASYNC) in scanner_push_literal_pool()
429 context_p->status_flags |= PARSER_IS_ASYNC_FUNCTION; in scanner_push_literal_pool()
437 status_flags |= (uint16_t) (prev_literal_pool_p->status_flags & copied_flags); in scanner_push_literal_pool()
[all …]
Djs-parser-expr.c122 if (JERRY_UNLIKELY (context_p->status_flags & PARSER_IS_STRICT)) in parser_check_invalid_assign()
211 if (JERRY_UNLIKELY (context_p->status_flags & PARSER_IS_STRICT)) in parser_emit_unary_lvalue_opcode()
417 && !(context_p->status_flags & PARSER_IS_STRICT)) in parser_append_object_literal_item()
493 uint32_t status_flags = PARSER_FUNCTION_CLOSURE | PARSER_ALLOW_SUPER; in parser_parse_class_literal() local
506 ctor_literal_p->status_flags = 0; in parser_parse_class_literal()
552 uint32_t accessor_status_flags = status_flags; in parser_parse_class_literal()
630 uint32_t constructor_status_flags = (status_flags in parser_parse_class_literal()
647 status_flags &= (uint32_t) ~(PARSER_IS_GENERATOR_FUNCTION in parser_parse_class_literal()
653 status_flags |= PARSER_IS_ASYNC_FUNCTION | PARSER_DISALLOW_AWAIT_YIELD; in parser_parse_class_literal()
664 status_flags |= PARSER_IS_GENERATOR_FUNCTION | PARSER_DISALLOW_AWAIT_YIELD; in parser_parse_class_literal()
[all …]
Djs-scanner.c103 uint16_t status_flags = SCANNER_LITERAL_POOL_FUNCTION; in scanner_scan_primary_expression() local
108 status_flags |= SCANNER_LITERAL_POOL_ASYNC; in scanner_scan_primary_expression()
113 status_flags |= SCANNER_LITERAL_POOL_GENERATOR; in scanner_scan_primary_expression()
117 scanner_push_literal_pool (context_p, scanner_context_p, status_flags); in scanner_scan_primary_expression()
470 uint16_t status_flags = scanner_context_p->active_literal_pool_p->status_flags; in scanner_scan_primary_expression_end() local
471 parser_stack_push_uint8 (context_p, (status_flags & SCANNER_LITERAL_POOL_IN_WITH) ? 1 : 0); in scanner_scan_primary_expression_end()
473 status_flags |= SCANNER_LITERAL_POOL_IN_WITH; in scanner_scan_primary_expression_end()
474 scanner_context_p->active_literal_pool_p->status_flags = status_flags; in scanner_scan_primary_expression_end()
615 …scanner_context_p->active_literal_pool_p->status_flags &= (uint16_t) ~SCANNER_LITERAL_POOL_IN_EXPO… in scanner_scan_primary_expression_end()
983 uint16_t status_flags = (uint16_t) (SCANNER_LITERAL_POOL_FUNCTION in scanner_scan_primary_expression_end() local
[all …]
Djs-scanner-internal.h302 #define SCANNER_FROM_LITERAL_POOL_TO_COMPUTED(status_flags) \ argument
303 ((uint8_t) ((((status_flags) >> 9) & 0x3) + SCAN_STACK_COMPUTED_PROPERTY))
319 uint16_t status_flags; /**< combination of scanner_literal_pool_flags_t flags */ member
333 uint16_t status_flags; /**< scanner status flags */ member
360 uint16_t status_flags);
Djs-parser-statm.c622 context_p->status_flags &= (uint32_t) ~(PARSER_MODULE_STORE_IDENT); in parser_parse_var_statement()
637 if (context_p->status_flags & PARSER_IS_STRICT) in parser_parse_function_statement()
710 context_p->status_flags &= (uint32_t) ~(PARSER_MODULE_STORE_IDENT); in parser_parse_function_statement()
713 uint32_t status_flags = PARSER_FUNCTION_CLOSURE; in parser_parse_function_statement() local
717 status_flags |= PARSER_HAS_NON_STRICT_ARG; in parser_parse_function_statement()
723 status_flags |= PARSER_IS_GENERATOR_FUNCTION | PARSER_DISALLOW_AWAIT_YIELD; in parser_parse_function_statement()
728 status_flags |= PARSER_IS_ASYNC_FUNCTION | PARSER_DISALLOW_AWAIT_YIELD; in parser_parse_function_statement()
762 if (!(context_p->status_flags & PARSER_IS_STRICT) in parser_parse_function_statement()
817 && literal_p->status_flags == 0); in parser_parse_function_statement()
819 ecma_compiled_code_t *compiled_code_p = parser_parse_function (context_p, status_flags); in parser_parse_function_statement()
[all …]
Djs-lexer.c823 if (!(context_p->status_flags & PARSER_IS_ASYNC_FUNCTION) in lexer_parse_identifier()
829 if (context_p->status_flags & PARSER_DISALLOW_AWAIT_YIELD) in lexer_parse_identifier()
854 if (keyword_p->type == LEXER_KEYW_LET && (context_p->status_flags & PARSER_IS_STRICT)) in lexer_parse_identifier()
865 …if (keyword_p->type == LEXER_KEYW_YIELD && (context_p->status_flags & PARSER_IS_GENERATOR_FUNCTION… in lexer_parse_identifier()
867 if (context_p->status_flags & PARSER_DISALLOW_AWAIT_YIELD) in lexer_parse_identifier()
882 && (context_p->status_flags & PARSER_IS_STRICT)) in lexer_parse_identifier()
1026 if (context_p->status_flags & PARSER_IS_STRICT) in lexer_parse_string()
1059 if (context_p->status_flags & PARSER_IS_STRICT) in lexer_parse_string()
1322 if (context_p->status_flags & PARSER_IS_STRICT) in lexer_parse_number()
2010 uint32_t status_flags) /**< parser status flags after restore */ in lexer_update_await_yield() argument
[all …]
Djs-parser-internal.h215 #define PARSER_NEEDS_MAPPED_ARGUMENTS(status_flags) \ argument
216 (((status_flags) & PARSER_ARGUMENTS_RELATED_FLAGS) == PARSER_ARGUMENTS_NEEDED)
458 uint32_t status_flags; /**< parsing options */ member
504 uint32_t status_flags; /**< status flags */ member
696 void lexer_update_await_yield (parser_context_t *context_p, uint32_t status_flags);
826 ecma_compiled_code_t *parser_parse_function (parser_context_t *context_p, uint32_t status_flags);
828 …_compiled_code_t *parser_parse_arrow_function (parser_context_t *context_p, uint32_t status_flags);
Dcommon.h115 uint8_t status_flags; /**< status flags */ member
/third_party/jerryscript/jerry-core/jcontext/
Djcontext.c31 return JERRY_CONTEXT (status_flags) & ECMA_STATUS_EXCEPTION; in jcontext_has_pending_exception()
43 return JERRY_CONTEXT (status_flags) & ECMA_STATUS_ABORT; in jcontext_has_pending_abort()
57 JERRY_CONTEXT (status_flags) |= ECMA_STATUS_ABORT; in jcontext_set_abort_flag()
61 JERRY_CONTEXT (status_flags) &= (uint32_t) ~ECMA_STATUS_ABORT; in jcontext_set_abort_flag()
74 JERRY_CONTEXT (status_flags) |= ECMA_STATUS_EXCEPTION; in jcontext_set_exception_flag()
78 JERRY_CONTEXT (status_flags) &= (uint32_t) ~ECMA_STATUS_EXCEPTION; in jcontext_set_exception_flag()
/third_party/jerryscript/jerry-core/ecma/operations/
Decma-function-object.c56 if (bytecode_header_p->status_flags & CBC_CODE_FLAG_HAS_TAGGED_LITERALS) in ecma_op_resource_name()
231 if (bytecode_data_p->status_flags & CBC_CODE_FLAGS_STATIC_FUNCTION) in ecma_op_create_function_object()
263 if (bytecode_data_p->status_flags & CBC_CODE_FLAGS_STATIC_FUNCTION) in ecma_op_create_function_object()
450 if (bytecode_data_p->status_flags & CBC_CODE_FLAGS_STATIC_FUNCTION) in ecma_op_create_arrow_function_object()
465 if ((bytecode_data_p->status_flags & CBC_CODE_FLAGS_STATIC_FUNCTION)) in ecma_op_create_arrow_function_object()
562 return (bytecode_data_p->status_flags & CBC_CODE_FLAGS_GENERATOR) != 0; in ecma_op_function_is_generator()
799 uint16_t status_flags = bytecode_data_p->status_flags; in ecma_op_function_call_simple() local
803 if (JERRY_UNLIKELY (status_flags & (CBC_CODE_FLAGS_CLASS_CONSTRUCTOR | CBC_CODE_FLAGS_GENERATOR))) in ecma_op_function_call_simple()
805 if (!is_construct_call && (status_flags & CBC_CODE_FLAGS_CLASS_CONSTRUCTOR)) in ecma_op_function_call_simple()
810 if ((status_flags & CBC_CODE_FLAGS_GENERATOR) && is_construct_call) in ecma_op_function_call_simple()
[all …]
Decma-objects-arguments.c50 bool is_strict = (bytecode_data_p->status_flags & CBC_CODE_FLAGS_STRICT_MODE) != 0; in ecma_op_create_arguments_object()
54 if (bytecode_data_p->status_flags & CBC_CODE_FLAGS_UINT16_ARGUMENTS) in ecma_op_create_arguments_object()
71 if ((bytecode_data_p->status_flags & CBC_CODE_FLAGS_MAPPED_ARGUMENTS_NEEDED) in ecma_op_create_arguments_object()
/third_party/jerryscript/jerry-core/api/
Djerry-snapshot.c164 if (compiled_code_p->status_flags & CBC_CODE_FLAG_HAS_TAGGED_LITERALS) in snapshot_add_compiled_code()
171 if (compiled_code_p->status_flags & CBC_CODE_FLAGS_CLASS_CONSTRUCTOR) in snapshot_add_compiled_code()
178 if (!(compiled_code_p->status_flags & CBC_CODE_FLAGS_FUNCTION)) in snapshot_add_compiled_code()
225 copied_code_p->status_flags = compiled_code_p->status_flags; in snapshot_add_compiled_code()
231 JERRY_ASSERT (compiled_code_p->status_flags & CBC_CODE_FLAGS_FUNCTION); in snapshot_add_compiled_code()
249 if (compiled_code_p->status_flags & CBC_CODE_FLAGS_UINT16_ARGUMENTS) in snapshot_add_compiled_code()
348 if (!(compiled_code_p->status_flags & CBC_CODE_FLAGS_FUNCTION)) in static_snapshot_add_compiled_code()
374 ((ecma_compiled_code_t *) copied_code_p)->status_flags |= CBC_CODE_FLAGS_STATIC_FUNCTION; in static_snapshot_add_compiled_code()
376 if (compiled_code_p->status_flags & CBC_CODE_FLAGS_UINT16_ARGUMENTS) in static_snapshot_add_compiled_code()
427 if (compiled_code_p->status_flags & CBC_CODE_FLAGS_MAPPED_ARGUMENTS_NEEDED) in static_snapshot_add_compiled_code()
[all …]
/third_party/jerryscript/jerry-core/ecma/base/
Decma-literal-storage.c337 JERRY_ASSERT (compiled_code_p->status_flags & CBC_CODE_FLAGS_FUNCTION); in ecma_save_literals_add_compiled_code()
339 if (compiled_code_p->status_flags & CBC_CODE_FLAGS_UINT16_ARGUMENTS) in ecma_save_literals_add_compiled_code()
349 if (compiled_code_p->status_flags & CBC_CODE_FLAGS_MAPPED_ARGUMENTS_NEEDED) in ecma_save_literals_add_compiled_code()
364 if (compiled_code_p->status_flags & CBC_CODE_FLAGS_MAPPED_ARGUMENTS_NEEDED) in ecma_save_literals_add_compiled_code()
385 if ((bytecode_p->status_flags & CBC_CODE_FLAGS_FUNCTION) in ecma_save_literals_add_compiled_code()
Decma-helpers.c1360 JERRY_ASSERT (!(bytecode_p->status_flags & CBC_CODE_FLAGS_STATIC_FUNCTION)); 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()
1409 && !(bytecode_p->status_flags & CBC_CODE_FLAGS_DEBUGGER_IGNORE) in ecma_bytecode_deref()
1442 if (bytecode_p->status_flags & CBC_CODE_FLAG_HAS_TAGGED_LITERALS) in ecma_bytecode_deref()
1480 JERRY_ASSERT (bytecode_header_p->status_flags & CBC_CODE_FLAG_HAS_TAGGED_LITERALS); in ecma_compiled_code_get_tagged_template_collection()
1501 if (!(bytecode_header_p->status_flags & CBC_CODE_FLAGS_MAPPED_ARGUMENTS_NEEDED)) in ecma_compiled_code_get_formal_params()
1506 if (bytecode_header_p->status_flags & CBC_CODE_FLAGS_UINT16_ARGUMENTS) in ecma_compiled_code_get_formal_params()
Decma-init-finalize.c51 JERRY_CONTEXT (status_flags) &= (uint32_t) ~ECMA_STATUS_HIGH_PRESSURE_GC; in ecma_init()
Decma-globals.h705 …JERRY_CONTEXT (status_flags) |= ((uint32_t) opts << ECMA_LOCAL_PARSE_OPTS_OFFSET) | ECMA_STATUS_DI…
712 …(JERRY_CONTEXT (status_flags) >> (ECMA_LOCAL_PARSE_OPTS_OFFSET - JERRY_LOG2 (ECMA_PARSE_ALLOW_SUPE…
720 JERRY_CONTEXT (status_flags) &= ((1 << ECMA_LOCAL_PARSE_OPTS_OFFSET) - 1); \
953 uint16_t status_flags; /**< various status flags: member
Decma-gc.c460 if (bytecode_header_p->status_flags & CBC_CODE_FLAGS_UINT16_ARGUMENTS) in ecma_gc_mark_executable_object()
716 if (byte_code_p->status_flags & CBC_CODE_FLAGS_ARROW_FUNCTION) in ecma_gc_mark()
857 if (bytecode_header_p->status_flags & CBC_CODE_FLAGS_UINT16_ARGUMENTS) in ecma_gc_free_executable_object()
1234 if (byte_code_p->status_flags & CBC_CODE_FLAGS_ARROW_FUNCTION) in ecma_gc_free_object()
1516 JERRY_CONTEXT (status_flags) &= (uint32_t) ~ECMA_STATUS_HIGH_PRESSURE_GC; in ecma_free_unused_memory()
1535 if (JERRY_CONTEXT (status_flags) & ECMA_STATUS_HIGH_PRESSURE_GC) in ecma_free_unused_memory()
1542 JERRY_CONTEXT (status_flags) |= ECMA_STATUS_HIGH_PRESSURE_GC; in ecma_free_unused_memory()
/third_party/jerryscript/jerry-core/vm/
Dvm-utils.c34 …return JERRY_CONTEXT (vm_top_context_p)->bytecode_header_p->status_flags & CBC_CODE_FLAGS_STRICT_M… in vm_is_strict_mode()
52 return (JERRY_CONTEXT (status_flags) & ECMA_STATUS_DIRECT_EVAL) != 0; in vm_is_direct_eval_form_call()
Dvm.c312 if (bytecode_p->status_flags & CBC_CODE_FLAGS_LEXICAL_BLOCK_NEEDED) in vm_run_global()
397 if ((bytecode_data_p->status_flags & CBC_CODE_FLAGS_STRICT_MODE) != 0) in vm_run_eval()
405 if ((bytecode_data_p->status_flags & CBC_CODE_FLAGS_LEXICAL_BLOCK_NEEDED) != 0) in vm_run_eval()
424 if (!(bytecode_data_p->status_flags & CBC_CODE_FLAGS_STATIC_FUNCTION)) in vm_run_eval()
447 …if (JERRY_LIKELY (!(frame_ctx_p->bytecode_header_p->status_flags & CBC_CODE_FLAGS_STATIC_FUNCTION)… in vm_construct_literal_object()
462 if (!(bytecode_p->status_flags & CBC_CODE_FLAGS_FUNCTION)) in vm_construct_literal_object()
475 JERRY_ASSERT (bytecode_p->status_flags & CBC_CODE_FLAGS_FUNCTION); in vm_construct_literal_object()
480 if (bytecode_p->status_flags & CBC_CODE_FLAGS_ARROW_FUNCTION) in vm_construct_literal_object()
486 else if (bytecode_p->status_flags & CBC_CODE_FLAGS_GENERATOR) in vm_construct_literal_object()
794 JERRY_CONTEXT (status_flags) &= (uint32_t) ~ECMA_STATUS_DIRECT_EVAL; in opfunc_call()
[all …]
/third_party/jerryscript/jerry-core/parser/regexp/
Dre-compiler.c64 if ((cached_bytecode_p->header.status_flags & RE_FLAGS_MASK) == flags in re_cache_lookup()
151 re_compiled_code_p->header.status_flags = re_ctx.flags; in re_compile_bytecode()
/third_party/libunwind/src/riscv/
DGinit.c116 int status_flags = fcntl (fd, F_GETFL, 0); in set_pipe_flags() local
121 status_flags |= O_NONBLOCK; in set_pipe_flags()
122 fcntl (fd, F_SETFL, status_flags); in set_pipe_flags()
/third_party/libunwind/src/x86_64/
DGinit.c92 int status_flags = fcntl (fd, F_GETFL, 0); in set_pipe_flags() local
97 status_flags |= O_NONBLOCK; in set_pipe_flags()
98 fcntl (fd, F_SETFL, status_flags); in set_pipe_flags()
/third_party/libunwind/src/aarch64/
DGinit.c107 int status_flags = fcntl (fd, F_GETFL, 0); in set_pipe_flags() local
112 status_flags |= O_NONBLOCK; in set_pipe_flags()
113 fcntl (fd, F_SETFL, status_flags); in set_pipe_flags()

12