Home
last modified time | relevance | path

Searched full:accumulator (Results 1 – 25 of 509) sorted by relevance

12345678910>>...21

/arkcompiler/ets_runtime/test/moduletest/arrayreducecase/
Darrayreducecase.js19 (accumulator, currentValue) => accumulator + currentValue,
25 (accumulator, currentValue) => accumulator + currentValue.x,
39 const myArrayWithNoDuplicates = myArray.reduce((accumulator, currentValue) => {
40 if (!accumulator.includes(currentValue)) {
41 return [...accumulator, currentValue];
43 return accumulator;
49 const doubledPositiveNumbers = numbers.reduce((accumulator, currentValue) => {
52 return [...accumulator, doubled];
54 return accumulator;
/arkcompiler/runtime_core/tests/cts-coverage-tool/config/
Dnon_testable.yaml20 - title: Load accumulator from string constant pool
31 - title: Load accumulator from type constant pool
48 - title: Dynamic load accumulator from register
50 Move 'any' value from register to accumulator
61 - title: Dynamic store accumulator
63 Move 'any' value from accumulator to register
74 - title: Dynamic load accumulator from immediate
76 Move immediate as 'any' value to accumulator
94 Return 'any' value in accumulator from method to its caller
109 Callee should treat accumulator value as undefined and cannot use it until accumulator
[all …]
/arkcompiler/runtime_core/static_core/tests/cts-coverage-tool/config/
Dnon_testable.yaml20 - title: Load accumulator from string constant pool
31 - title: Load accumulator from type constant pool
48 - title: Dynamic load accumulator from register
50 Move 'any' value from register to accumulator
61 - title: Dynamic store accumulator
63 Move 'any' value from accumulator to register
74 - title: Dynamic load accumulator from immediate
76 Move immediate as 'any' value to accumulator
/arkcompiler/runtime_core/static_core/isa/
Disa.yaml19 …VM is register-based with a dedicated accumulator register that serves as an implicit operand to i…
31 - name: Accumulator
33 …*Accumulator* is a special register which is used implicitly by instructions as a source and/or de…
34 …The main goal of using accumulator is to improve encoding density without losing much in performan…
35 …the general intuition regarding accumulator usage is to utilize accumulator as much as possible by…
38 …through accumulator. However, instruction variations that do not write into accumulator are also i…
46 …by the number of arguments. The accumulator value is considered *undefined*; it is not read in the…
48 …via accumulator. Otherwise, the accumulator content in the caller frame is considered *undefined*;…
103 …that hold 'any' values, whether primitive or not. Virtual registers and accumulator are wide enoug…
203 description: Accumulator contains a value of i32 type.
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/isa/
Disa.yaml29 Get field value from an object by field name field_id and put it into accumulator.
78 - title: Store accumulator content into object field by name
80 Store accumulator content into object field by field name field_id.
81 …If field type size is less than 32, accumulator content will be truncated to storage size before s…
137 Callee must treat the accumulator value as undefined, and cannot use it
138 until accumulator in the new frame is defined.
139 Result (if any) is returned in accumulator.
190 - title: Load 'nullvalue' reference into accumulator
192 Load 'nullvalue' reference into accumulator.
222 - title: Check if accumulator value is 'nullvalue'
[all …]
/arkcompiler/ets_runtime/ecmascript/base/
Ddtoa_helper.h67 uint64_t accumulator = (low_bits_ & kMask32) * multiplicand; in Multiply() local
68 uint32_t part = static_cast<uint32_t>(accumulator & kMask32); in Multiply()
69 accumulator >>= SHIFT_32BIT; in Multiply()
70 accumulator = accumulator + (low_bits_ >> SHIFT_32BIT) * multiplicand; in Multiply()
71 low_bits_ = (accumulator << SHIFT_32BIT) + part; in Multiply()
72 accumulator >>= SHIFT_32BIT; in Multiply()
73 accumulator = accumulator + (high_bits_ & kMask32) * multiplicand; in Multiply()
74 part = static_cast<uint32_t>(accumulator & kMask32); in Multiply()
75 accumulator >>= SHIFT_32BIT; in Multiply()
76 accumulator = accumulator + (high_bits_ >> SHIFT_32BIT) * multiplicand; in Multiply()
[all …]
/arkcompiler/runtime_core/static_core/verification/
Dmessages.yaml71 Field is '${field}'. Field type is '${field_type}'. Accumulator type is '${acc_type}'.
102 Function return type: '${return_type}'. Value type in accumulator: '${acc_type}'.
109 Function return type: '${return_type}'. Value type in accumulator: '${acc_type}'.
166 …nt null in register v${reg}. NPE exception will always be thrown here. Accumulator type is not kno…
171 short_message: always NPE in accumulator
172 message: constant null in accumulator. NPE exception will always be thrown here.
236 Wrong return value type (in accumulator): '${acc_type}'
242 … Wrong return value type (in accumulator): '${acc_type}'. Expected a subtype of '${expected_type}'.
265 message: Accumulator is not a reference to an object.
270 message: Accumulator constantly holds 'null' value. It may be a sign of possible error here.
[all …]
/arkcompiler/runtime_core/static_core/docs/
Drationale-for-bytecode.md91 * Implicitly addressed accumulator register.
97 ### Implicitly addressed accumulator register
105 ; at this point, accumulator register contains arg1 + arg2
111 be an accumulator register. Having an implicitly addressed accumulator register de facto borrows
115 In an ideal case, accumulator register may safe us ~25% of size. But it needs to be used carefully:
120 * You don't need to pass object reference in accumulator in the object call. Usually objects live
121 longer than accumulator value (otherwise calls will be accompanied with moves from and to
122 accumulator, reducing performance and increasing encoding size).
126 accumulator, a simple optimizer will be introduced as a part of the toolchain.
128 Finally, using accumulator allows getting rid of the instructions for writing the result to the reg…
[all …]
/arkcompiler/runtime_core/docs/
Drationale-for-bytecode.md91 * Implicitly addressed accumulator register.
97 ### Implicitly addressed accumulator register
105 ; at this point, accumulator register contains arg1 + arg2
111 be an accumulator register. Having an implicitly addressed accumulator register de facto borrows
115 In an ideal case, accumulator register may safe us ~25% of size. But it needs to be used carefully:
120 * You don't need to pass object reference in accumulator in the object call. Usually objects live
121 longer than accumulator value (otherwise calls will be accompanied with moves from and to
122 accumulator, reducing performance and increasing encoding size).
126 accumulator, a simple optimizer will be introduced as a part of the toolchain.
128 Finally, using accumulator allows getting rid of the instructions for writing the result to the reg…
[all …]
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Dlda.null.yaml18 title: Load null reference into accumulator
19 description: Load null reference into accumulator.
31 description: Check lda.null loads null reference into accumulator.
Dlda.str.yaml29 title: Load accumulator from string constant pool
30 description: Load string specified by id into accumulator.
42 description: Load string specified by id into accumulator.
113 description: Load string specified by id into accumulator.
142 description: Load string specified by id into accumulator.
181 description: Load string specified by id into accumulator.
221 description: Load string specified by id into accumulator.
273 description: Load string specified by id into accumulator.
332 description: Load string specified by id into accumulator.
385 description: Load string specified by id into accumulator.
[all …]
Dsta.yaml18 title: Store accumulator
19 description: Moves accumulator content into a register.
24 description: Check sta moves accumulator content into a register.
117 description: Check 'sta' with incorrect accumulator type. Register type is not checked.
133 ##- Accumulator initialization with incorrect types
203 … description: Check 'sta' with uninitialized accumulator. Destination register is not checked.
Dldstatic.yaml64 Get static field value by field_id and put it into accumulator.
240 …description: Check that field value is loaded into accumulator in PandaAssembly context. More test…
244 …ost significant bits are sign or unsigned extended based on the field type to fit accumulator size.
280 …description: Check that field value is loaded into accumulator in PandaAssembly context. Signed in…
284 …ost significant bits are sign or unsigned extended based on the field type to fit accumulator size.
319 …description: Check that field value is loaded into accumulator in PandaAssembly context. More test…
323 …ost significant bits are sign or unsigned extended based on the field type to fit accumulator size.
352 …description: Check that field value is loaded into accumulator in PandaAssembly context. Signed in…
356 …ost significant bits are sign or unsigned extended based on the field type to fit accumulator size.
524 …description: Check that accumulator value is loaded from field into accumulator in PandaAssembly c…
[all …]
Dldstatic.64.yaml65 Get static field value by field_id and put it into accumulator.
261 …description: Check that accumulator value is loaded from field into accumulator in PandaAssembly c…
263 description: Get static field value by field_id and put it into accumulator.
291 …description: Check that accumulator value is loaded from field into accumulator in PandaAssembly c…
293 description: Get static field value by field_id and put it into accumulator.
318 …description: Check that accumulator value is loaded from field into accumulator in PandaAssembly c…
350 …description: Check that accumulator value is loaded from field into accumulator in PandaAssembly c…
Dsta.64.yaml18 title: Store accumulator
19 description: Moves accumulator content into a register.
24 description: Check sta.64 moves accumulator content into a register.
144 description: Check 'sta.64' with incorrect accumulator type. Register type is not checked.
160 ##- Accumulator initialization with incorrect types
233 … description: Check 'sta.64' with uninitialized accumulator. Destination register is not checked.
/arkcompiler/runtime_core/static_core/tests/cts-generator/cts-template/
Dlda.null.yaml18 title: Load null reference into accumulator
19 description: Load null reference into accumulator.
31 description: Check lda.null loads null reference into accumulator.
Dlda.str.yaml22 title: Load accumulator from string constant pool
23 description: Load string specified by id into accumulator.
33 description: Load string specified by id into accumulator.
103 description: Load string specified by id into accumulator.
131 description: Load string specified by id into accumulator.
169 description: Load string specified by id into accumulator.
220 description: Load string specified by id into accumulator.
272 description: Load string specified by id into accumulator.
Dsta.yaml18 title: Store accumulator
19 description: Moves accumulator content into a register.
24 description: Check sta moves accumulator content into a register.
117 description: Check 'sta' with incorrect accumulator type. Register type is not checked.
133 ##- Accumulator initialization with incorrect types
203 … description: Check 'sta' with uninitialized accumulator. Destination register is not checked.
Disinstance.yaml29 …Resolve object type by specified id and if an object in accumulator is an instance of the resolved…
30 put 1 into accumulator, otherwise put 0.
133 …description: Check that verifier fails when accumulator contains wrong value - neither object, nor…
158 description: Check that the instruction sets accumulator to 1 when expected
161 …Resolve object type by specified id and if an object in accumulator is an instance of the resolved…
162 put 1 into accumulator, otherwise put 0.
281 description: Check that the instruction sets accumulator to 0 when expected
284 …Resolve object type by specified id and if an object in accumulator is an instance of the resolved…
285 put 1 into accumulator, otherwise put 0.
Dsta.64.yaml18 title: Store accumulator
19 description: Moves accumulator content into a register.
24 description: Check sta.64 moves accumulator content into a register.
144 description: Check 'sta.64' with incorrect accumulator type. Register type is not checked.
160 ##- Accumulator initialization with incorrect types
233 … description: Check 'sta.64' with uninitialized accumulator. Destination register is not checked.
/arkcompiler/runtime_core/static_core/tests/cts-assembly/
Darrays-02.pa19 # Store accumulator content into array slot pointed by index.
28 # Load an element from array using accumulator as an index and puts it into accumulator.
Darrays-04.pa19 # Load an element from array using accumulator as an index and puts it into accumulator.
29 # Store accumulator content into array slot pointed by index.
Darrays-03.pa19 # Load an element from array using accumulator as an index and puts it into accumulator.
29 # Store accumulator content into array slot pointed by index.
/arkcompiler/runtime_core/tests/cts-assembly/
Darrays-02.pa19 # Store accumulator content into array slot pointed by index.
28 # Load an element from array using accumulator as an index and puts it into accumulator.
Darrays-04.pa19 # Load an element from array using accumulator as an index and puts it into accumulator.
29 # Store accumulator content into array slot pointed by index.

12345678910>>...21