Home
last modified time | relevance | path

Searched full:format (Results 1 – 25 of 1170) sorted by relevance

12345678910>>...47

/arkcompiler/runtime_core/static_core/verification/absint/
Dabs_int_inl.h308 template <BytecodeInstructionSafe::Format FORMAT>
313 uint16_t vd = inst_.GetVReg<FORMAT, 0x00>(); in HandleMov()
314 uint16_t vs = inst_.GetVReg<FORMAT, 0x01>(); in HandleMov()
323 MoveToNextInst<FORMAT>(); in HandleMov()
327 template <BytecodeInstructionSafe::Format FORMAT>
332 uint16_t vd = inst_.GetVReg<FORMAT, 0x00>(); in HandleMovWide()
333 uint16_t vs = inst_.GetVReg<FORMAT, 0x01>(); in HandleMovWide()
342 MoveToNextInst<FORMAT>(); in HandleMovWide()
346 template <BytecodeInstructionSafe::Format FORMAT>
351 uint16_t vd = inst_.GetVReg<FORMAT, 0x00>(); in HandleMovObj()
[all …]
/arkcompiler/runtime_core/static_core/runtime/interpreter/
Dinterpreter-inl.h76 template <BytecodeInstruction::Format FORMAT, class InstructionHandler>
80 return instrHandler->GetInst().template GetImm<FORMAT, 0>() + 1; in GetNumberActualArgsDyn()
83 template <BytecodeInstruction::Format FORMAT, class InstructionHandler>
106 template <BytecodeInstruction::Format FORMAT>
110 this->template MoveToNextInst<FORMAT, false>(); in HandleNop()
113 template <BytecodeInstruction::Format FORMAT>
116 auto imm = bit_cast<double>(this->GetInst().template GetImm<FORMAT>()); in HandleFldaiDyn()
119 this->template MoveToNextInst<FORMAT, false>(); in HandleFldaiDyn()
122 template <BytecodeInstruction::Format FORMAT>
125 int32_t imm = this->GetInst().template GetImm<FORMAT>(); in HandleLdaiDyn()
[all …]
Dvregister_iterator.h20 template <BytecodeInstruction::Format FORMAT>
28 if constexpr (BytecodeInstruction::IsVregArgsShort(FORMAT)) { in GetVRegIdx()
31 return instn_.GetVReg<FORMAT, 0>(); in GetVRegIdx()
34 return instn_.GetVReg<FORMAT, 1>(); in GetVRegIdx()
39 } else if constexpr (BytecodeInstruction::IsVregArgs(FORMAT)) { in GetVRegIdx()
42 return instn_.GetVReg<FORMAT, 0U>(); in GetVRegIdx()
45 return instn_.GetVReg<FORMAT, 1U>(); in GetVRegIdx()
48 return instn_.GetVReg<FORMAT, 2U>(); in GetVRegIdx()
51 return instn_.GetVReg<FORMAT, 3U>(); in GetVRegIdx()
56 } else if constexpr (BytecodeInstruction::IsVregArgsRange(FORMAT)) { in GetVRegIdx()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Decma_isa.yaml37 format: [pref_op_none]
41 format: [pref_op_none]
45 format: [pref_op_none]
49 format: [pref_op_none]
53 format: [pref_op_none]
57 format: [pref_op_none]
61 format: [pref_op_none]
65 format: [pref_op_none]
69 format: [pref_op_none]
73 format: [pref_op_none]
[all …]
/arkcompiler/ets_runtime/ecmascript/jspandafile/bytecode_inst/
Dold_instruction.h62 Format format = GetFormat(GetOpcode()); in GetId() local
63 if (format == Format::ID16) { in GetId()
66 if (format == Format::ID32) { in GetId()
69 if (format == Format::PREF_ID16_IMM16_IMM16_V8_V8) { in GetId()
72 if (format == Format::PREF_ID16_IMM16_V8) { in GetId()
75 if (format == Format::PREF_ID32) { in GetId()
78 if (format == Format::PREF_ID32_IMM8) { in GetId()
81 if (format == Format::PREF_ID32_V8) { in GetId()
84 if (format == Format::V4_IMM4_ID16) { in GetId()
87 if (format == Format::V4_V4_ID16) { in GetId()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/
DFormatTest.ets31 failures += check(testUtilFormat(), "Test util.format()")
32 … check(testFormatLessArgsThanInFormat(), "Test util.format() with less arguments count than in for…
33 failures += check(testFormatIncorrectArgs(), "Test util.format() with incorrect argument flags")
34 …failures += check(testFormatNoMatchArgs(), "Test util.format() with no matching flags & arguments")
35 …= check(testFormatMoreArgsThanInUtilFormat(), "Test util.format() with more args than in format st…
36 failures += check(testFormatJSON(), "Test util.format() JSON")
37 failures += check(testFormatRemoveCSS(), "Test util.format() remove CSS from string")
38 failures += check(testFormatEscapePercent(), "Test util.format() for %%")
39 … failures += check(testEmptyFormatWithArgs(), "Test util.format() with args & empty format string")
40 …ailures += check(testNonEmptyFormatWithArgs(), "Test util.format() with args & non-empty format st…
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/
DIntlNumberFormatFormatOptionsTest.ets17 const suite = new ArkTestsuite("Intl. NumberFormat format with NumberFormatOptions");
29 let format = Intl.NumberFormat.$_invoke().format(100);
30 assertEQ(format, "100");
34 let format = Intl.NumberFormat.$_invoke("de").format(100);
35 assertEQ(format, "100");
42 let format = Intl.NumberFormat.$_invoke('ru-RU', options).format(100);
43 assertEQ(format, "100,00\xa0₽");
50 let format = Intl.NumberFormat.$_invoke("zh", options).format(100);
51 assertEQ(format, "¥100.00");
58 let format = Intl.NumberFormat.$_invoke("zh", options).format(100);
[all …]
/arkcompiler/runtime_core/isa/
Disa.yaml108 # File format and ISA versioning
318 format: [op_none]
323 format: [op_none]
328 format: [op_none]
333 format: [op_none]
338 format: [op_none]
342 format: [op_none]
346 format: [op_none]
351 format: [op_none]
356 format: [op_none]
[all …]
/arkcompiler/runtime_core/static_core/libpandafile/templates/
Dbytecode_instruction-inl_gen.h.erb20 constexpr bool BytecodeInst<MODE>::HasId(Format format, size_t idx) {
21 switch (format) {
23 % fmt = i.format
26 case Format::<%= fmt.pretty.upcase %>:
39 constexpr bool BytecodeInst<MODE>::HasVReg(Format format, size_t idx) {
40 switch (format) {
42 % fmt = i.format
45 case Format::<%= fmt.pretty.upcase %>:
58 constexpr bool BytecodeInst<MODE>::HasImm(Format format, size_t idx) {
59 switch (format) {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interpreter/
Dinterpreter-inl.h45 template <BytecodeInstruction::Format FORMAT>
48 uint16_t vs = this->GetInst().template GetVReg<FORMAT>(); in HandleEtsLdobjName()
49 auto id = this->GetInst().template GetId<FORMAT>(); in HandleEtsLdobjName()
67 this->template MoveToNextInst<FORMAT, true>(); in HandleEtsLdobjName()
73 …this->template HandleCall<ark::interpreter::FrameHelperDefault, FORMAT, false, false, false, false, in HandleEtsLdobjName()
82 template <BytecodeInstruction::Format FORMAT>
85 uint16_t vs = this->GetInst().template GetVReg<FORMAT>(); in HandleEtsLdobjNameWide()
86 auto id = this->GetInst().template GetId<FORMAT>(); in HandleEtsLdobjNameWide()
104 this->template MoveToNextInst<FORMAT, true>(); in HandleEtsLdobjNameWide()
110 …this->template HandleCall<ark::interpreter::FrameHelperDefault, FORMAT, false, false, false, false, in HandleEtsLdobjNameWide()
[all …]
/arkcompiler/runtime_core/libpandafile/templates/
Dbytecode_instruction-inl_gen.h.erb18 constexpr bool BytecodeInst<Mode>::HasId(Format format, size_t idx) {
19 switch (format) {
21 % fmt = i.format
24 case Format::<%= fmt.pretty.upcase %>:
37 constexpr bool BytecodeInst<Mode>::HasVReg(Format format, size_t idx) {
38 switch (format) {
40 % fmt = i.format
43 case Format::<%= fmt.pretty.upcase %>:
56 constexpr bool BytecodeInst<Mode>::HasImm(Format format, size_t idx) {
57 switch (format) {
[all …]
/arkcompiler/ets_frontend/ets2panda/test/unit/
Dsizeof_node_test.cpp64 // clang-format off in SizeOf()
75 // clang-format on in SizeOf()
83 // clang-format off in SizeOf()
86 // clang-format on in SizeOf()
100 // clang-format off in SizeOf()
103 // clang-format on in SizeOf()
111 // clang-format off in SizeOf()
114 // clang-format on in SizeOf()
122 // clang-format off in SizeOf()
143 // clang-format on in SizeOf()
[all …]
/arkcompiler/runtime_core/libabckit/src/irbuilder_dynamic/templates/
Dbytecode_inst-inl_gen.h.erb39 constexpr bool BytecodeInst::HasId(Format format, size_t idx) {
40 switch (format) {
46 % fmt = i.format
49 case Format::<%= fmt.pretty.upcase %>:
60 constexpr bool BytecodeInst::HasVReg(Format format, size_t idx) {
61 switch (format) {
67 % fmt = i.format
70 case Format::<%= fmt.pretty.upcase %>:
81 constexpr bool BytecodeInst::HasImm(Format format, size_t idx) {
82 switch (format) {
[all …]
/arkcompiler/runtime_core/static_core/isa/
Disa.yaml106 # File format and ISA versioning
284 format: [op_none]
298 format: [op_v1_4_v2_4, op_v1_8_v2_8, op_v1_16_v2_16]
302 format: [op_v1_4_v2_4, op_v1_16_v2_16]
306 format: [op_v1_4_v2_4, op_v1_8_v2_8, op_v1_16_v2_16]
321 format: [op_v_4_imm_4, op_v_8_imm_8, op_v_8_imm_16, op_v_8_imm_32]
325 format: [op_v_8_imm_64]
330 format: [pref_op_v_8_imm_32]
335 format: [op_v_8_imm_64]
350 format: [op_v_8]
[all …]
/arkcompiler/runtime_core/libpandafile/tests/
Dbytecode_instruction_tests.cpp34 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V4_IMM4, 0>()), 1); in TEST()
35 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V4_IMM4, 0>()), -6); in TEST()
42 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V4_IMM4, 0>()), 0xf); in TEST()
43 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V4_IMM4, 0>()), 0x2); in TEST()
54 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8, 0>()), static_cast<int8_t>(0xf2)); in TEST()
61 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8, 0>()), 0x21); in TEST()
69 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM8, 0>()), 0x12); in TEST()
70 … EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V8_IMM8, 0>()), static_cast<int8_t>(0xf2)); in TEST()
77 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM8, 0>()), 0xf2); in TEST()
78 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V8_IMM8, 0>()), 0x12); in TEST()
[all …]
Dbytecode_imm_fetch_tests.cpp33 …EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8_V8_V8_V8, 0>()), static_cast<int8_t>(0x17… in TEST()
34 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8_V8_V8_V8, 0, true>()), in TEST()
45 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8, 0>()), static_cast<int8_t>(-22)); in TEST()
46 … EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8, 0, true>()), static_cast<int8_t>(-22)); in TEST()
56 EXPECT_EQ(inst.GetFormat(), BytecodeInstruction::Format::IMM32); in TEST()
57 … EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM32, 0>()), static_cast<int32_t>(0x1e)); in TEST()
58 …EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM32, 0, true>()), static_cast<int32_t>(0x1e)… in TEST()
68 … EXPECT_EQ((bit_cast<double>(inst.GetImm<BytecodeInstruction::Format::IMM64, 0, true>())), 3.14); in TEST()
81 …EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8_V8_V8_V8, 0>()), static_cast<int8_t>(0x8e… in TEST()
82 …EXPECT_NE((inst.GetImm<BytecodeInstruction::Format::IMM8_V8_V8_V8, 0>()), static_cast<uint8_t>(0x8… in TEST()
[all …]
/arkcompiler/runtime_core/static_core/libpandafile/tests/
Dbytecode_instruction_tests.cpp37 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V4_IMM4, 0>()), 1); in TEST()
38 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V4_IMM4, 0>()), -6); in TEST()
45 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V4_IMM4, 0>()), 0xf); in TEST()
46 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V4_IMM4, 0>()), 0x2); in TEST()
54 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8, 0>()), static_cast<int8_t>(0xf2)); in TEST()
61 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8, 0>()), 0x21); in TEST()
69 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM8, 0>()), 0x12); in TEST()
70 … EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V8_IMM8, 0>()), static_cast<int8_t>(0xf2)); in TEST()
77 EXPECT_EQ((inst.GetVReg<BytecodeInstruction::Format::V8_IMM8, 0>()), 0xf2); in TEST()
78 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V8_IMM8, 0>()), 0x12); in TEST()
[all …]
/arkcompiler/runtime_core/cmake/
DREADME.md12 …ets (if you have installed additional libraries, like google-test, clang-format, clang-tidy, etc.).
25 …roject and then also build style-checker targets (you must install clang-format and clang-tidy wit…
41 You may force fixes for clang-format issues, with the `make clang_force_format` command.
42 Run `make help | grep clang` to see all possible clang-[format|style] targets.
43 …ponding clang-format target (`make clang_format_opt_opt.cpp`) or the clang-tidy one (`make clang_t…
53 * Clang-format style file - `.clang-format`
54 * Script to show diff through clang-format execution - `scripts/run-clang-format.py`
/arkcompiler/runtime_core/static_core/docs/
Dfile_format.md1 # Panda Binary File Format
3 This document describes the Panda binary file format with the following goals
20 Current binary file format must extend these limits to conform to modern
24 The format uses [TaggedValue](#taggedvalue) which allows storing only the
36 The binary file format must support fast access to information. It means that
37 redundant references are to be avoided. Where possible, the binary file format
39 format described above supports one index: a sorted list of offsets to classes.
83 format uses offsets and does not specify how structures must be located
90 The binary file format supports future changes via version number.
94 Any tool which supports format version `N` must support format version `N - 1` too.
[all …]
/arkcompiler/runtime_core/docs/
Dfile_format.md1 # Panda Binary File Format
3 This document describes Panda binary file format with the following goals in mind:
16 Current binary file format should extend these limits to conform to the modern requirements.
21 The format uses [TaggedValue](#taggedvalue) which allows to store only information we have and
30 Binary file format should support fast access to information. It means that
31 redundant references should be avoided. Also, if it possible, binary file format should avoid data
32 indexes (like sorted list of strings). However, the described binary format supports one index:
59 To support this feature, the described binary file format uses offsets and doesn't specify how
64 The binary file format supports future changes via version number.
68 Any tool which supports format version `N` must support format version `N - 1` too.
[all …]
/arkcompiler/runtime_core/static_core/abc2program/templates/
Dabc_inst_convert.cpp.erb30 const BytecodeInstruction::Format format = bcIns.GetFormat();
32 switch (format) {
36 case BytecodeInstruction::Format::<%=i.format.pretty.upcase%>:
42 …e_back(bit_cast<double, int64_t>(bcIns.GetImm<BytecodeInstruction::Format::<%=i.format.pretty.upca…
44 …ce_back(bit_cast<float, int32_t>(bcIns.GetImm<BytecodeInstruction::Format::<%=i.format.pretty.upca…
48 …mplace_back(static_cast<int64_t>(bcIns.GetImm<BytecodeInstruction::Format::<%=i.format.pretty.upca…
50 …ins.imms.emplace_back(bcIns.GetImm<BytecodeInstruction::Format::<%=i.format.pretty.upcase%>, <%=im…
72 // if format has ID in it - recieve it. else instruction is indirect call and id = methodId
75 if (bcIns.HasId(format, 0)) {
108 … "between amount of registers specified by instruction format and amount of function's arguments) "
/arkcompiler/runtime_core/static_core/plugins/ets/irtoc_scripts/
Dinterpreter_main_loop.irt23 handle_ets_ldobj_name_short(op[0], as_id(op[1]), i.format.size)
25 handle_ets_ldobj_name_long(op[0], as_id(op[1]), i.format.size)
27 handle_ets_ldobj_name_obj(op[0], as_id(op[1]), i.format.size)
29 handle_ets_stobj_name_short(op[0], as_id(op[1]), i.format.size)
31 handle_ets_stobj_name_long(op[0], as_id(op[1]), i.format.size)
33 handle_ets_stobj_name_obj(op[0], as_id(op[1]), i.format.size)
45 handle_ets_call_name_short(op[1], op[2], as_id(op[0]), i.format.size)
47 handle_ets_call_name_long(op[1], op[2], op[3], op[4], as_id(op[0]), i.format.size)
49 handle_ets_call_name_range(op[1], as_id(op[0]), i.format.size)
/arkcompiler/runtime_core/static_core/cmake/
DREADME.md12 …ets (if you have installed additional libraries, like google-test, clang-format, clang-tidy, etc.).
25 …roject and then also build style-checker targets (you must install clang-format and clang-tidy wit…
41 You may force fixes for clang-format issues, with the `make clang_force_format` command.
42 Run `make help | grep clang` to see all possible clang-[format|style] targets.
43 …ponding clang-format target (`make clang_format_opt_opt.cpp`) or the clang-tidy one (`make clang_t…
53 * Clang-format style file - `.clang-format`
54 * Script to show diff through clang-format execution - `scripts/run-clang-format.py`
/arkcompiler/runtime_core/static_core/libpandafile/
Dbytecode_instruction.h242 template <Format FORMAT, typename EnumT = BytecodeInst<MODE>::Opcode, size_t IDX = 0>
245 template <Format FORMAT, size_t IDX = 0>
248 template <Format FORMAT>
251 template <Format FORMAT, size_t IDX = 0>
325 template <Format FORMAT>
328 return JumpTo(Size(FORMAT)); in GetNext()
383 Format GetFormat() const;
407 static constexpr bool HasId(Format format, size_t idx);
409 static constexpr bool HasVReg(Format format, size_t idx);
411 static constexpr bool HasImm(Format format, size_t idx);
[all …]
/arkcompiler/jsvm/src/platform/
Dplatform.cpp49 void VPrint(const char* format, va_list args) in VPrint() argument
51 vprintf(format, args); in VPrint()
54 void VPrintError(const char* format, va_list args) in VPrintError() argument
56 (void)vfprintf(stderr, format, args); in VPrintError()
59 void OS::Print(OS::LogLevel level, const char* format, ...) in Print() argument
62 va_start(args, format); in Print()
64 VPrintError(format, args); in Print()
66 VPrint(format, args); in Print()

12345678910>>...47