Home
last modified time | relevance | path

Searched refs:sp (Results 1 - 25 of 209) sorted by relevance

123456789

/arkcompiler/runtime_core/static_core/plugins/ets/tests/napi/sampler_sig_stack/arm64/
H A DSamplerSigStackArm64.S32 sub sp, sp, #16 // Move stack upper than is should be (originally sub 48)
33 str w0, [sp, -4] // to enable writing under stack pointer.
34 str w1, [sp, -8] // It is needed to enable signal stack frame override
35 str w2, [sp, -12] // memory of previos frame and corrupt it
36 str w3, [sp, -16] // To avoid it we use alternate signal stack
37 str w4, [sp, -20] // If memory under sp wasn't corrupted
38 str w5, [sp, -24] // alternate signal stack works fine
39 str w6, [sp,
[all...]
/arkcompiler/runtime_core/static_core/runtime/arch/aarch64/
H A 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], #1
[all...]
H A Dosr_aarch64.S31 sub sp, sp, REGS_BUFFER_SIZE
32 mov x4, sp
34 sub sp, sp, FP_REGS_BUFFER_SIZE
35 mov x5, sp
46 mov x16, sp
47 stp x16, x17, [sp, #-16]!
52 ldp x16, x17, [sp], #16
87 add sp, s
[all...]
/arkcompiler/runtime_core/static_core/libpandafile/
H A Dhelpers.h36 inline auto Read(Span<const uint8_t> *sp) in Read() argument
44 UnsignedType tmp = static_cast<UnsignedType>((*sp)[i]) << (i * BYTE_WIDTH); in Read()
47 *sp = sp->SubSpan(WIDTH); in Read()
52 inline auto Read<sizeof(uint16_t)>(Span<const uint8_t> *sp) in Read() argument
54 auto *p = sp->data(); in Read()
59 *sp = sp->SubSpan(sizeof(uint16_t)); in Read()
64 inline auto Read<sizeof(uint32_t)>(Span<const uint8_t> *sp) in Read() argument
66 auto *p = sp in Read()
80 Read(Span<const uint8_t> sp) Read() argument
85 ReadULeb128(Span<const uint8_t> *sp) ReadULeb128() argument
97 SkipULeb128(Span<const uint8_t> *sp) SkipULeb128() argument
118 ReadLeb128(Span<const uint8_t> *sp) ReadLeb128() argument
144 GetOptionalTaggedValue(Span<const uint8_t> sp, E tag, Span<const uint8_t> *next) GetOptionalTaggedValue() argument
161 EnumerateTaggedValues(Span<const uint8_t> sp, E tag, Callback cb, Span<const uint8_t> *next) EnumerateTaggedValues() argument
177 EnumerateTaggedValuesWithEarlyStop(Span<const uint8_t> sp, E tag, Callback cb) EnumerateTaggedValuesWithEarlyStop() argument
[all...]
H A Dclass_data_accessor.cpp28 auto sp = pandaFile_.GetSpanFromId(classId_); in ClassDataAccessor() local
29 name_.utf16Length = helpers::ReadULeb128(&sp); in ClassDataAccessor()
30 name_.data = sp.data(); in ClassDataAccessor()
32 sp = sp.SubSpan(utf::Mutf8Size(name_.data) + 1); // + 1 for null byte in ClassDataAccessor()
34 superClassOff_ = helpers::Read<ID_SIZE>(&sp); in ClassDataAccessor()
36 accessFlags_ = helpers::ReadULeb128(&sp); in ClassDataAccessor()
37 numFields_ = helpers::ReadULeb128(&sp); in ClassDataAccessor()
38 numMethods_ = helpers::ReadULeb128(&sp); in ClassDataAccessor()
40 auto tag = static_cast<ClassTag>(sp[ in ClassDataAccessor()
[all...]
H A Dcode_data_accessor.cpp22 auto sp = data; in CatchBlock() local
23 typeIdx_ = helpers::ReadULeb128(&sp) - 1; in CatchBlock()
24 handlerPc_ = helpers::ReadULeb128(&sp); in CatchBlock()
25 codeSize_ = helpers::ReadULeb128(&sp); in CatchBlock()
26 size_ = sp.data() - data.data(); in CatchBlock()
40 auto sp = pandaFile_.GetSpanFromId(codeId_); in CodeDataAccessor() local
42 numVregs_ = helpers::ReadULeb128(&sp); in CodeDataAccessor()
43 numArgs_ = helpers::ReadULeb128(&sp); in CodeDataAccessor()
44 codeSize_ = helpers::ReadULeb128(&sp); in CodeDataAccessor()
45 triesSize_ = helpers::ReadULeb128(&sp); in CodeDataAccessor()
54 auto sp = pf.GetSpanFromId(codeId); GetInstructions() local
[all...]
H A Dcode_data_accessor-inl.h27 auto sp = catchBlocksSp_; in EnumerateCatchBlocks() local
29 CatchBlock catchBlock(sp); in EnumerateCatchBlocks()
33 sp = sp.SubSpan(catchBlock.GetSize()); in EnumerateCatchBlocks()
35 size_ = sp.data() - data_.data(); in EnumerateCatchBlocks()
46 auto sp = tryBlocksSp_; in EnumerateTryBlocks() local
48 TryBlock tryBlock(sp); in EnumerateTryBlocks()
52 sp = sp.SubSpan(tryBlock.GetSize()); in EnumerateTryBlocks()
54 size_ = pandaFile_.GetIdFromPointer(sp in EnumerateTryBlocks()
66 auto sp = pf.GetSpanFromId(codeId); GetNumVregs() local
74 auto sp = pf.GetSpanFromId(codeId); GetInstructions() local
[all...]
H A Dfield_data_accessor.cpp26 auto sp = pandaFile_.GetSpanFromId(fieldId_); in FieldDataAccessor() local
28 auto classIdx = helpers::Read<IDX_SIZE>(&sp); in FieldDataAccessor()
29 auto typeIdx = helpers::Read<IDX_SIZE>(&sp); in FieldDataAccessor()
34 nameOff_ = helpers::Read<ID_SIZE>(&sp); in FieldDataAccessor()
38 accessFlags_ = helpers::ReadULeb128(&sp); in FieldDataAccessor()
39 taggedValuesSp_ = sp; in FieldDataAccessor()
43 size_ = pandaFile_.GetIdFromPointer(sp.data()).GetOffset() - fieldId_.GetOffset(); in FieldDataAccessor()
49 auto sp = taggedValuesSp_; in GetValueInternal() local
50 auto tag = static_cast<FieldTag>(sp[0]); in GetValueInternal()
54 sp in GetValueInternal()
[all...]
/arkcompiler/runtime_core/libpandafile/
H A Dclass_data_accessor.cpp27 auto sp = panda_file_.GetSpanFromId(class_id_); in ClassDataAccessor() local
28 name_.utf16_length = helpers::ReadULeb128(&sp); in ClassDataAccessor()
29 name_.data = sp.data(); in ClassDataAccessor()
32 panda_file_.ThrowIfWithCheck(sp.Size() < size, File::INVALID_FILE_OFFSET, File::CLASS_DATA_ACCESSOR); in ClassDataAccessor()
33 sp = sp.SubSpan(size); in ClassDataAccessor()
35 super_class_off_ = helpers::Read<ID_SIZE>(&sp); in ClassDataAccessor()
37 access_flags_ = helpers::ReadULeb128(&sp); in ClassDataAccessor()
38 num_fields_ = helpers::ReadULeb128(&sp); in ClassDataAccessor()
39 num_methods_ = helpers::ReadULeb128(&sp); in ClassDataAccessor()
[all...]
H A Dhelpers.h63 inline auto Read(Span<const uint8_t> *sp) in Read() argument
70 THROW_IF(sp->Size() < width, INVALID_SPAN_OFFSET); in Read()
73 unsigned_type tmp = static_cast<unsigned_type>((*sp)[i]) << (i * BYTE_WIDTH); in Read()
76 *sp = sp->SubSpan(width); in Read()
81 inline auto Read<sizeof(uint16_t)>(Span<const uint8_t> *sp) in Read() argument
84 THROW_IF(sp->Size() < sizeof(uint16_t), INVALID_SPAN_OFFSET); in Read()
86 auto *p = sp->data(); in Read()
91 *sp = sp in Read()
96 Read(Span<const uint8_t> *sp) Read() argument
115 Read(Span<const uint8_t> sp) Read() argument
120 ReadULeb128(Span<const uint8_t> *sp) ReadULeb128() argument
133 SkipULeb128(Span<const uint8_t> *sp) SkipULeb128() argument
155 ReadLeb128(Span<const uint8_t> *sp) ReadLeb128() argument
181 GetOptionalTaggedValue(Span<const uint8_t> sp, E tag, Span<const uint8_t> *next) GetOptionalTaggedValue() argument
202 EnumerateTaggedValues(Span<const uint8_t> sp, E tag, Callback cb, Span<const uint8_t> *next) EnumerateTaggedValues() argument
218 EnumerateTaggedValuesWithEarlyStop(Span<const uint8_t> sp, E tag, Callback cb) EnumerateTaggedValuesWithEarlyStop() argument
[all...]
H A 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 in EnumerateTryBlocks()
65 auto sp = pf.GetSpanFromId(code_id); GetNumVregs() local
73 auto sp = pf.GetSpanFromId(code_id); GetInstructions() local
84 auto sp = pf.GetSpanFromId(code_id); GetInstructions() local
[all...]
H A 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...]
H A Dfield_data_accessor.cpp25 auto sp = panda_file_.GetSpanFromId(field_id_); in FieldDataAccessor() local
27 auto class_idx = helpers::Read<IDX_SIZE>(&sp); in FieldDataAccessor()
28 auto type_idx = helpers::Read<IDX_SIZE>(&sp); in FieldDataAccessor()
33 name_off_ = helpers::Read<ID_SIZE>(&sp); in FieldDataAccessor()
38 access_flags_ = helpers::ReadULeb128(&sp); in FieldDataAccessor()
39 tagged_values_sp_ = sp; in FieldDataAccessor()
43 size_ = panda_file_.GetIdFromPointer(sp.data()).GetOffset() - field_id_.GetOffset(); in FieldDataAccessor()
51 auto sp = tagged_values_sp_; in GetValueInternal() local
52 auto tag = static_cast<FieldTag>(sp[0]); in GetValueInternal()
56 panda_file_.ThrowIfWithCheck(sp in GetValueInternal()
[all...]
H A Dmodule_data_accessor-inl.h27 auto sp = entry_data_sp_; in EnumerateModuleRecord() local
29 auto regular_import_num = panda_file::helpers::Read<panda_file::ID_SIZE>(&sp); in EnumerateModuleRecord()
31 auto local_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord()
32 auto import_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord()
33 auto module_request_idx = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint16_t)>(&sp)); in EnumerateModuleRecord()
37 auto namespace_import_num = panda_file::helpers::Read<panda_file::ID_SIZE>(&sp); in EnumerateModuleRecord()
39 auto local_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord()
40 auto module_request_idx = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint16_t)>(&sp)); in EnumerateModuleRecord()
44 auto local_export_num = panda_file::helpers::Read<panda_file::ID_SIZE>(&sp); in EnumerateModuleRecord()
46 auto local_name_offset = static_cast<uint32_t>(panda_file::helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateModuleRecord()
[all...]
/arkcompiler/runtime_core/static_core/runtime/tests/tooling/sampler/
H A Dsampling_profiler_test.cpp133 auto *sp = Sampler::Create(); in TEST_F() local
134 ASSERT_NE(sp, nullptr); in TEST_F()
136 ASSERT_EQ(ExtractListenerTid(sp), 0); in TEST_F()
137 ASSERT_EQ(ExtractSamplerTid(sp), 0); in TEST_F()
138 ASSERT_EQ(ExtractIsActive(sp), false); in TEST_F()
140 ASSERT_EQ(sp->Start(g_profilerFilename), true); in TEST_F()
141 ASSERT_NE(ExtractListenerTid(sp), 0); in TEST_F()
142 ASSERT_NE(ExtractSamplerTid(sp), 0); in TEST_F()
143 ASSERT_EQ(ExtractIsActive(sp), true); in TEST_F()
145 ASSERT_EQ(sp in TEST_F()
210 auto *sp = Sampler::Create(); TEST_F() local
252 auto *sp = Sampler::Create(); TEST_F() local
296 auto *sp = Sampler::Create(); TEST_F() local
336 auto *sp = Sampler::Create(); TEST_F() local
382 auto *sp = Sampler::Create(); TEST_F() local
397 auto *sp = Sampler::Create(); TEST_F() local
583 auto *sp = Sampler::Create(); TEST_F() local
614 auto *sp = Sampler::Create(); TEST_F() local
648 auto *sp = Sampler::Create(); TEST_F() local
669 auto *sp = Sampler::Create(); TEST_F() local
707 auto *sp = Sampler::Create(); TEST_F() local
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/napi/arch/arm64/
H A Dets_napi_entry_point_aarch64.S45 CFI_DEF_CFA(sp, 0)
47 stp fp, lr, [sp, #-16]!
51 mov fp, sp
53 sub sp, sp, #16
54 str x0, [sp, #8]
56 str x16, [sp]
57 stp x19, x20, [sp, #-16]!
62 sub sp, sp, #(CFRAME_LOCALS_COUN
[all...]
H A Dets_async_entry_point_aarch64.S28 CFI_DEF_CFA(sp, 0)
30 stp fp, lr, [sp, #-16]!
34 mov fp, sp
36 sub sp, sp, #16
37 str x0, [sp, #8]
39 str x16, [sp]
42 sub sp, sp, #(CFRAME_LOCALS_COUNT * 8)
46 stp x27, x28, [sp, #
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/napi/arch/arm32/
H A Dets_napi_entry_point_arm32.S45 CFI_DEF_CFA(sp,0)
52 mov fp, sp
54 sub sp, sp, #8
55 str r0, [sp, #4]
57 str lr, [sp]
64 sub sp, sp, #(CFRAME_LOCALS_COUNT * 4)
94 mov r1, sp
96 sub sp, s
[all...]
H A Dets_napi_entry_point_arm32hf.S45 CFI_DEF_CFA(sp,0)
52 mov fp, sp
54 sub sp, sp, #8
55 str r0, [sp, #4]
57 str lr, [sp]
64 sub sp, sp, #(CFRAME_LOCALS_COUNT * 4)
94 mov r1, sp
96 sub sp, s
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/assembler/aarch64/
H A Dextend_assembler.cpp30 Register sp(SP); in CalleeSave()
31 Stp(Register(X27), Register(X28), MemoryOperand(sp, -PAIR_SLOT_SIZE, PREINDEX)); in CalleeSave()
32 Stp(Register(X25), Register(X26), MemoryOperand(sp, -PAIR_SLOT_SIZE, PREINDEX)); in CalleeSave()
33 Stp(Register(X23), Register(X24), MemoryOperand(sp, -PAIR_SLOT_SIZE, PREINDEX)); in CalleeSave()
34 Stp(Register(X21), Register(X22), MemoryOperand(sp, -PAIR_SLOT_SIZE, PREINDEX)); in CalleeSave()
35 Stp(Register(X19), Register(X20), MemoryOperand(sp, -PAIR_SLOT_SIZE, PREINDEX)); in CalleeSave()
37 Stp(VectorRegister(v14), VectorRegister(v15), MemoryOperand(sp, -PAIR_SLOT_SIZE, PREINDEX)); in CalleeSave()
38 Stp(VectorRegister(v12), VectorRegister(v13), MemoryOperand(sp, -PAIR_SLOT_SIZE, PREINDEX)); in CalleeSave()
39 Stp(VectorRegister(v10), VectorRegister(v11), MemoryOperand(sp, -PAIR_SLOT_SIZE, PREINDEX)); in CalleeSave()
40 Stp(VectorRegister(v8), VectorRegister(v9), MemoryOperand(sp, in CalleeSave()
[all...]
/arkcompiler/runtime_core/static_core/runtime/bridge/arch/aarch64/
H A 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]
49 // sp should be 16 byte aligned.
86 // sp may be modified by call
94 // Signal handler of the sampling profiler use stack space below sp,
96 sub sp, f
[all...]
H A Dcompiled_code_to_interpreter_bridge_aarch64.S36 CFI_DEF_CFA(sp, 0)
42 // == <- sp
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
96 sub sp, fp, #8
97 ldr fp, [sp, #
[all...]
H A Dcompiled_code_to_runtime_bridge_aarch64.S52 CFI_DEF_CFA(sp, 0)
54 stp lr, x19, [sp, #-16]!
67 ldp lr, x19, [sp], #16
88 CFI_DEF_CFA(sp, 0)
107 CFI_DEF_CFA(sp, 0)
126 CFI_DEF_CFA(sp, 0)
145 CFI_DEF_CFA(sp, 0)
154 str lr, [sp, #-8]
157 str x17, [sp, #-16]
158 str fp, [sp, #
[all...]
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
H A Dbuiltins_number_test.cpp464 Span<const uint8_t> sp; in HWTEST_F_L0() local
470 sp = EcmaStringAccessor(str).ToUtf8Span(buf); in HWTEST_F_L0()
471 ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::IGNORE_TRAILING), 0); in HWTEST_F_L0()
473 sp = EcmaStringAccessor(str).ToUtf8Span(buf); in HWTEST_F_L0()
474 ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp.end(), 0, base::IGNORE_TRAILING), 0); in HWTEST_F_L0()
476 sp = EcmaStringAccessor(str).ToUtf8Span(buf); in HWTEST_F_L0()
477 ASSERT_EQ(base::NumberHelper::StringToDouble(sp.begin(), sp in HWTEST_F_L0()
546 Span<const uint8_t> sp; HWTEST_F_L0() local
[all...]
/arkcompiler/runtime_core/static_core/runtime/tests/arch/arm/
H A 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
[all...]

Completed in 9 milliseconds

123456789