Home
last modified time | relevance | path

Searched refs:sp (Results 1 – 25 of 100) sorted by relevance

1234

/ark/runtime_core/runtime/arch/aarch64/
Dhelpers_aarch64.S21 stp x0, x1, [sp, #-16]!
22 stp x2, x3, [sp, #-16]!
23 stp x4, x5, [sp, #-16]!
24 stp x6, x7, [sp, #-16]!
25 stp x8, x9, [sp, #-16]!
26 stp x10, x11, [sp, #-16]!
27 stp x12, x13, [sp, #-16]!
28 stp x14, x15, [sp, #-16]!
32 ldp x14, x15, [sp], #16
33 ldp x12, x13, [sp], #16
[all …]
/ark/js_runtime/ecmascript/trampoline/
Dcall_trampoline_aarch64.S19 stp x27, x28, [sp, #-16]!
20 stp x25, x26, [sp, #-16]!
21 stp x23, x24, [sp, #-16]!
22 stp x21, x22, [sp, #-16]!
23 stp x19, x20, [sp, #-16]!
24 stp d14, d15, [sp, #-16]!
25 stp d12, d13, [sp, #-16]!
26 stp d10, d11, [sp, #-16]!
27 stp d8, d9, [sp, #-16]!
32 ldp d8, d9, [sp], #16
[all …]
Dcall_trampoline_arm32.S29 add r11, sp, #28
30 sub sp, sp, #4
72 add sp, sp, r2
73 sub sp, r11, #28
90 add r11, sp, #8
93 add sp, sp, #8
104 add r11, sp, #28
105 sub sp, sp, #4
107 add sp, sp, #8
/ark/runtime_core/libpandafile/
Dclass_data_accessor.cpp36 auto sp = panda_file_.GetSpanFromId(class_id_); in ClassDataAccessor() local
37 name_.utf16_length = helpers::ReadULeb128(&sp); in ClassDataAccessor()
38 name_.data = sp.data(); in ClassDataAccessor()
39 sp = sp.SubSpan(utf::Mutf8Size(name_.data) + 1); // + 1 for null byte in ClassDataAccessor()
41 super_class_off_ = helpers::Read<ID_SIZE>(&sp); in ClassDataAccessor()
42 access_flags_ = helpers::ReadULeb128(&sp); in ClassDataAccessor()
43 num_fields_ = helpers::ReadULeb128(&sp); in ClassDataAccessor()
44 num_methods_ = helpers::ReadULeb128(&sp); in ClassDataAccessor()
46 auto tag = static_cast<ClassTag>(sp[0]); in ClassDataAccessor()
48 sp = sp.SubSpan(1); in ClassDataAccessor()
[all …]
Dhelpers.h32 inline auto Read(Span<const uint8_t> *sp) in Read() argument
40 unsigned_type tmp = static_cast<unsigned_type>((*sp)[i]) << (i * BYTE_WIDTH); in Read()
43 *sp = sp->SubSpan(width); in Read()
48 inline auto Read(Span<const uint8_t> sp) in Read() argument
50 return Read<width>(&sp); in Read()
53 inline uint32_t ReadULeb128(Span<const uint8_t> *sp) in ReadULeb128() argument
58 std::tie(result, n, is_full) = leb128::DecodeUnsigned<uint32_t>(sp->data()); in ReadULeb128()
60 *sp = sp->SubSpan(n); in ReadULeb128()
64 inline int32_t ReadLeb128(Span<const uint8_t> *sp) in ReadLeb128() argument
69 std::tie(result, n, is_full) = leb128::DecodeSigned<int32_t>(sp->data()); in ReadLeb128()
[all …]
Dfield_data_accessor.cpp26 auto sp = panda_file_.GetSpanFromId(field_id_); in FieldDataAccessor() local
28 auto class_idx = helpers::Read<IDX_SIZE>(&sp); in FieldDataAccessor()
29 auto type_idx = helpers::Read<IDX_SIZE>(&sp); in FieldDataAccessor()
34 name_off_ = helpers::Read<ID_SIZE>(&sp); in FieldDataAccessor()
39 access_flags_ = helpers::ReadULeb128(&sp); in FieldDataAccessor()
40 tagged_values_sp_ = sp; in FieldDataAccessor()
44 size_ = panda_file_.GetIdFromPointer(sp.data()).GetOffset() - field_id_.GetOffset(); in FieldDataAccessor()
50 auto sp = tagged_values_sp_; in GetValueInternal() local
51 auto tag = static_cast<FieldTag>(sp[0]); in GetValueInternal()
55 sp = sp.SubSpan(1); in GetValueInternal()
[all …]
Dcode_data_accessor.cpp22 auto sp = data; in CatchBlock() local
23 type_idx_ = helpers::ReadULeb128(&sp) - 1; in CatchBlock()
24 handler_pc_ = helpers::ReadULeb128(&sp); in CatchBlock()
25 code_size_ = helpers::ReadULeb128(&sp); in CatchBlock()
26 size_ = sp.data() - data.data(); in CatchBlock()
40 auto sp = panda_file_.GetSpanFromId(code_id_); in CodeDataAccessor() local
42 num_vregs_ = helpers::ReadULeb128(&sp); in CodeDataAccessor()
43 num_args_ = helpers::ReadULeb128(&sp); in CodeDataAccessor()
44 code_size_ = helpers::ReadULeb128(&sp); in CodeDataAccessor()
45 tries_size_ = helpers::ReadULeb128(&sp); in CodeDataAccessor()
[all …]
Dparam_annotations_data_accessor.h47 auto sp = offsets_; in EnumerateAnnotations() local
49 File::EntityId id(helpers::Read<ID_SIZE>(&sp)); in EnumerateAnnotations()
61 auto sp = panda_file_.GetSpanFromId(id); in ParamAnnotationsDataAccessor() local
62 count_ = helpers::Read<COUNT_SIZE>(&sp); in ParamAnnotationsDataAccessor()
63 annotations_array_ = sp; in ParamAnnotationsDataAccessor()
74 auto sp = annotations_array_; in EnumerateAnnotationArrays() local
78 auto count = helpers::Read<COUNT_SIZE>(&sp); in EnumerateAnnotationArrays()
79 AnnotationArray array(count, sp); in EnumerateAnnotationArrays()
80 sp = sp.SubSpan(count * ID_SIZE); in EnumerateAnnotationArrays()
92 auto sp = annotations_array_; in GetAnnotationArray() local
[all …]
Dcode_data_accessor-inl.h26 auto sp = catch_blocks_sp_; in EnumerateCatchBlocks() local
28 CatchBlock catch_block(sp); in EnumerateCatchBlocks()
32 sp = sp.SubSpan(catch_block.GetSize()); in EnumerateCatchBlocks()
34 size_ = sp.data() - data_.data(); in EnumerateCatchBlocks()
45 auto sp = try_blocks_sp_; in EnumerateTryBlocks() local
47 TryBlock try_block(sp); in EnumerateTryBlocks()
51 sp = sp.SubSpan(try_block.GetSize()); in EnumerateTryBlocks()
53 size_ = panda_file_.GetIdFromPointer(sp.data()).GetOffset() - code_id_.GetOffset(); in EnumerateTryBlocks()
Dliteral_data_accessor-inl.h29 auto sp = panda_file_.GetSpanFromId(File::EntityId( in GetLiteralValsNum() local
31 auto num = helpers::Read<ID_SIZE>(&sp); in GetLiteralValsNum()
38 auto sp = panda_file_.GetSpanFromId(id); in EnumerateLiteralVals() local
39 auto literal_vals_num = helpers::Read<ID_SIZE>(&sp); in EnumerateLiteralVals()
43 auto tag = static_cast<LiteralTag>(helpers::Read<TAG_SIZE>(&sp)); in EnumerateLiteralVals()
46 value = static_cast<uint32_t>(helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateLiteralVals()
49 value = bit_cast<double>(helpers::Read<sizeof(uint64_t)>(&sp)); in EnumerateLiteralVals()
52 value = static_cast<bool>(helpers::Read<sizeof(uint8_t)>(&sp)); in EnumerateLiteralVals()
55 value = static_cast<float>(helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateLiteralVals()
58 value = static_cast<uint32_t>(helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateLiteralVals()
[all …]
Ddebug_data_accessor-inl.h27 auto sp = parameters_sp_; in EnumerateParameters() local
30 File::EntityId id(helpers::ReadULeb128(&sp)); in EnumerateParameters()
34 constant_pool_size_sp_ = sp; in EnumerateParameters()
48 auto sp = constant_pool_size_sp_; in GetConstantPool() local
50 uint32_t size = helpers::ReadULeb128(&sp); in GetConstantPool()
51 line_num_program_off_sp_ = sp.SubSpan(size); in GetConstantPool()
53 return sp.First(size); in GetConstantPool()
67 auto sp = line_num_program_off_sp_; in GetLineNumberProgram() local
68 uint32_t index = helpers::ReadULeb128(&sp); in GetLineNumberProgram()
71 size_ = panda_file_.GetIdFromPointer(sp.data()).GetOffset() - debug_info_id_.GetOffset(); in GetLineNumberProgram()
Dannotation_data_accessor.cpp24 auto sp = panda_file_.GetSpanFromId(annotation_id_); in AnnotationDataAccessor() local
25 auto class_idx = helpers::Read<IDX_SIZE>(&sp); in AnnotationDataAccessor()
27 count_ = helpers::Read<COUNT_SIZE>(&sp); in AnnotationDataAccessor()
30 elements_sp_ = sp; in AnnotationDataAccessor()
31 elements_tags_ = sp.SubSpan(count_ * (ID_SIZE + VALUE_SIZE)); in AnnotationDataAccessor()
37 auto sp = elements_sp_.SubSpan(i * (ID_SIZE + VALUE_SIZE)); in GetElement() local
38 uint32_t name = helpers::Read<ID_SIZE>(&sp); in GetElement()
39 uint32_t value = helpers::Read<VALUE_SIZE>(&sp); in GetElement()
46 auto sp = elements_tags_.SubSpan(i * TYPE_TAG_SIZE); in GetTag() local
47 auto item = static_cast<char>(helpers::Read<TYPE_TAG_SIZE>(&sp)); in GetTag()
/ark/runtime_core/runtime/bridge/arch/aarch64/
Dcompiled_code_to_runtime_bridge_aarch64.S23 CFI_DEF_CFA(sp, 0)
40 …str lr, [sp, #-8] // Bridge frame, slot 1 = npc = LR (the StackMap is just after the bridge cal…
44 str lr, [sp, #-16] // Bridge frame, slot 2 = COMPILED_CODE_TO_INTERPRETER
45 str fp, [sp, #-24] // Bridge frame, slot 3 = parent frame pointer
47 sub lr, sp, #0x18
49 sub sp, sp, #BRIDGE_FRAME_SIZE
54 add sp, sp, #BRIDGE_FRAME_SIZE
56 ldr x17, [sp, #-24]
70 ldr lr, [sp, #-8]
83 CFI_DEF_CFA(sp, 0)
[all …]
Dinterpreter_to_compiled_code_bridge_dyn_aarch64.S27 CFI_DEF_CFA(sp, 0)
29 stp x1, lr, [sp, -16]!
32 stp x19, THREAD_REG, [sp, -32]!
36 str fp, [sp, 16]
38 add fp, sp, 32
48 str x3, [sp, #24]
83 sub sp, fp, 32
84 ldp x19, THREAD_REG, [sp], 48
87 ldr fp, [sp, -32]
89 CFI_DEF_CFA(sp, 0)
[all …]
Dcompiled_code_to_interpreter_bridge_aarch64.S36 CFI_DEF_CFA(sp, 0)
44 sub sp, sp, #32
46 str lr, [sp, #24]
49 stp fp, lr, [sp, #8]
51 add fp, sp, #8
56 PUSH_CALLEE_REGS sp
95 sub sp, fp, #8
96 ldr fp, [sp, #8]
99 CFI_DEF_CFA(sp, (4 * 8))
101 ldr lr, [sp, #24]
[all …]
Dcompiled_code_to_interpreter_bridge_dyn_aarch64.S34 CFI_DEF_CFA(sp, 0)
42 sub sp, sp, #32
44 str lr, [sp, #24]
47 stp fp, lr, [sp, #8]
49 add fp, sp, #8
54 PUSH_CALLEE_REGS sp
92 sub sp, fp, #8
93 ldr fp, [sp, #8]
96 CFI_DEF_CFA(sp, (4 * 8))
97 ldr lr, [sp, #24]
[all …]
/ark/js_runtime/ecmascript/builtins/tests/
Dbuiltins_number_test.cpp406 Span<const uint8_t> sp; in HWTEST_F_L0() local
411 sp = Span<const uint8_t>(str->GetDataUtf8(), str->GetUtf8Length() - 1); in HWTEST_F_L0()
412 … ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::IGNORE_TRAILING), 0); in HWTEST_F_L0()
414 sp = Span<const uint8_t>(str->GetDataUtf8(), str->GetUtf8Length() - 1); in HWTEST_F_L0()
415 … ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::IGNORE_TRAILING), 0); in HWTEST_F_L0()
417 sp = Span<const uint8_t>(str->GetDataUtf8(), str->GetUtf8Length() - 1); in HWTEST_F_L0()
418 … ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::IGNORE_TRAILING), 0); in HWTEST_F_L0()
420 sp = Span<const uint8_t>(str->GetDataUtf8(), str->GetUtf8Length() - 1); in HWTEST_F_L0()
421 … ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::IGNORE_TRAILING), 0); in HWTEST_F_L0()
423 sp = Span<const uint8_t>(str->GetDataUtf8(), str->GetUtf8Length() - 1); in HWTEST_F_L0()
[all …]
/ark/runtime_core/runtime/bridge/arch/arm/
Dhandle_call_imm4_v4_v4_v4_arm.S33 sub sp, sp, r1, lsl #4
40 stm sp!, {r7, r8}
42 stm sp!, {r7-r8}
44 subeq sp, sp, r1, lsl #4
52 stm sp!, {r7, r8}
54 stm sp!, {r7-r8}
56 subeq sp, sp, r1, lsl #4
64 stm sp!, {r7, r8}
66 stm sp!, {r7-r8}
68 subeq sp, sp, r1, lsl #4
[all …]
Dcompiled_code_to_runtime_bridge_arm.S23 CFI_DEF_CFA(sp, 0)
25 …str lr, [sp, #-4] // Bridge frame, slot 1 = npc = LR (the StackMap stays just after the bridge…
29 str lr, [sp, #-8] // Bridge frame, slot 2 = COMPILED_CODE_TO_INTERPRETER_BRIDGE flag
30 str fp, [sp, #-12] // Bridge frame, slot 3 = parent frame pointer
32 sub lr, sp, #12
34 sub sp, sp, #BRIDGE_FRAME_SIZE
39 add sp, sp, #BRIDGE_FRAME_SIZE
41 ldr fp, [sp, #-12]
44 ldr lr, [sp, #-4]
57 CFI_DEF_CFA(sp, 0)
[all …]
Dinterpreter_to_compiled_code_bridge_arm.S67 bic sp, sp, #7 // round downd sp to 8 bytes boundary
81 subeq sp, sp, #4 // r0 contains a pointer to the space to which the result will be stored
83 sub sp, sp, #4 // space for Method
88 subeq sp, sp, #4 // it is an instance method
101 subhi sp, sp, #4
104 bicls sp, sp, #7
105 subls sp, sp, #8
109 bic sp, sp, #7
110 sub sp, sp, #16
113 bic sp, sp, #7 // round downd sp to 8 bytes boundary
[all …]
Dinterpreter_to_compiled_code_bridge_armhf.S244 subge sp, sp, #4
257 bicge sp, sp, #7
258 subge sp, sp, #8
264 bic sp, sp, #7
265 sub sp, sp, #8
273 bicge sp, sp, #7
274 subge sp, sp, #8
277 bic sp, sp, #7 // align sp
278 sub r4, sp, r4, lsl #3
286 CFI_DEF_CFA(sp, 0)
[all …]
Dinterpreter_to_compiled_code_bridge_dyn_arm.S25 CFI_DEF_CFA(sp, 0)
30 sub sp, sp, #12
33 stm sp, {THREAD_REG, fp}
37 add fp, sp, #12
43 str r3, [sp, #8]
75 sub sp, fp, #32
84 CFI_DEF_CFA(sp, 12)
85 add sp, sp, #12
87 ldr lr, [sp, #-4]
/ark/js_runtime/ecmascript/interpreter/
Dinterpreter_assembly.h40 …c void RunInternal(JSThread *thread, ConstantPool *constpool, const uint8_t *pc, JSTaggedType *sp);
44 static inline JSTaggedValue UpdateHotnessCounter(JSThread* thread, TaggedType *sp);
47 static inline JSTaggedValue GetThisFunction(JSTaggedType *sp);
48 static inline JSTaggedValue GetNewTarget(JSTaggedType *sp);
49 static inline uint32_t GetNumArgs(JSTaggedType *sp, uint32_t restIdx, uint32_t &startIdx);
52 …JSThread *thread, const uint8_t *pc, JSTaggedType *sp, JSTaggedValue constpool, JSTaggedValue prof…
55 …JSThread *thread, const uint8_t *pc, JSTaggedType *sp, JSTaggedValue constpool, JSTaggedValue prof…
58 …JSThread *thread, const uint8_t *pc, JSTaggedType *sp, JSTaggedValue constpool, JSTaggedValue prof…
61 …JSThread *thread, const uint8_t *pc, JSTaggedType *sp, JSTaggedValue constpool, JSTaggedValue prof…
64 …JSThread *thread, const uint8_t *pc, JSTaggedType *sp, JSTaggedValue constpool, JSTaggedValue prof…
[all …]
/ark/runtime_core/runtime/tests/arch/arm/
Dinvokation_helper_hf.S23 CFI_DEF_CFA(sp, 0)
32 mov fp, sp
39 ldr r8, [sp, #28]
41 sub sp, sp, #4
50 sub sp, sp, r7, lsl #2
51 bic sp, sp, #7
52 mov r8, sp
64 mov sp, fp
65 ldr THREAD_REG, [sp, #-8]
/ark/runtime_core/runtime/tests/arch/aarch64/
Dinvokation_helper.S23 CFI_DEF_CFA(sp, 0)
33 stp fp, lr, [sp, #-16]!
37 mov fp, sp
39 str THREAD_REG, [sp, #-16]!
52 sub sp, sp, x12, lsl #3
53 mov x14, sp
64 mov sp, fp
65 ldr THREAD_REG, [sp, #-16]
67 ldp fp, lr, [sp], #16
70 CFI_DEF_CFA(sp, 0)

1234