Home
last modified time | relevance | path

Searched refs:iterator (Results 1 – 25 of 214) sorted by relevance

123456789

/arkcompiler/toolchain/tooling/test/testcases/js/
Dvariable_second.js46 var iterator0 = string0[Symbol.iterator];
86 var iterator1 = array0[Symbol.iterator];
87 var iterator2 = map0[Symbol.iterator];
88 var iterator3 = set0[Symbol.iterator];
89 var iterator4 = uint8array0[Symbol.iterator];
91 var iterator6 = typedarray0[Symbol.iterator];
92 var iterator7 = typedarray1[Symbol.iterator];
93 var iterator8 = typedarray2[Symbol.iterator];
94 var iterator9 = typedarray3[Symbol.iterator];
95 var iterator10 = typedarray4[Symbol.iterator];
[all …]
/arkcompiler/ets_frontend/ts2panda/src/base/
Diterator.ts29 private iterRecord: { iterator: VReg, nextMethod: VReg };
37 constructor(iterRecord: {iterator: VReg, nextMethod: VReg}, iterDone: VReg, iterValue: VReg,
55 let iterator = this.iterRecord.iterator;
59 pandaGen.storeAccumulator(this.node, iterator);
62 pandaGen.loadObjProperty(this.node, iterator, "next");
71 this.pandaGen.loadObjProperty(this.node, this.iterRecord.iterator, id);
82 this.pandaGen.call(this.node, [this.iterRecord.nextMethod, this.iterRecord.iterator], true);
87 …this.pandaGen.call(this.node, [this.iterRecord.nextMethod, this.iterRecord.iterator, value], true);
103 pg.closeIterator(this.node, this.iterRecord.iterator);
/arkcompiler/ets_runtime/ecmascript/
Djs_string_iterator.cpp34 JSHandle<JSStringIterator> iterator(factory->NewJSObjectByConstructor(strIterCtor)); in CreateStringIterator() local
37 iterator->SetIteratedString(thread, string); in CreateStringIterator()
38 iterator->SetStringIteratorNextIndex(0); in CreateStringIterator()
39 return iterator; in CreateStringIterator()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_me/include/
Dme_function.h54 explicit FilterIterator(Iterator it) : iterator(it) {} in FilterIterator()
56 FilterIterator(Iterator it, FilterFunc func) : iterator(it), func(func) in FilterIterator()
58 while (!func(iterator)) { in FilterIterator()
59 ++iterator; in FilterIterator()
67 return iterator; in base()
72 return *iterator;
77 return iterator.operator->();
82 ++iterator;
83 return func(iterator) ? *this : ++(*this);
88 --iterator;
[all …]
/arkcompiler/ets_frontend/ets2panda/compiler/base/
Ddestructuring.cpp40 DestructuringRestIterator iterator(destIterator); in GenRestElement() local
55 iterator.Step(done); in GenRestElement()
73 DestructuringIterator iterator(pg, array); in GenArray() local
76 iterator.Close(false); in GenArray()
88 GenRestElement(pg, element->AsRestElement(), iterator, array->IsDeclaration()); in GenArray()
94 iterator.Step(); in GenArray()
107 iterator.Step(); in GenArray()
113 pg->LoadAccumulator(element, iterator.Result()); in GenArray()
127 pg->LoadAccumulator(array, iterator.Done()); in GenArray()
129 iterator.Close(false); in GenArray()
[all …]
/arkcompiler/ets_frontend/ts2panda/src/statement/
DtryStatement.ts259 private iterator: IteratorRecord;
263 …ompiler, pandaGen: PandaGen, forOfStmt: ts.ForOfStatement, doneReg: VReg, iterator: IteratorRecord,
269 this.iterator = iterator;
293 this.compileIteratorNext(stmt, pandaGen, this.iterator, resultReg);
328 pandaGen.loadObjProperty(this.stmt, this.iterator.getObject(), "return");
329 pandaGen.storeAccumulator(this.stmt, this.iterator.getNextMethod());
331 pandaGen.call(this.stmt, [this.iterator.getNextMethod(), this.iterator.getObject()], true);
332 if (this.iterator.getType() === IteratorType.Async) {
347 this.pandaGen.loadObjProperty(this.stmt, this.iterator.getObject(), "return");
348 this.pandaGen.storeAccumulator(this.stmt, this.iterator.getNextMethod());
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/
Dbytecode_circuit_builder.cpp40 BytecodeIterator iterator(this, 0, end); in BuildRegionInfo() local
45 iterator.GotoStart(); in BuildRegionInfo()
46 while (!iterator.Done()) { in BuildRegionInfo()
47 auto index = iterator.Index(); in BuildRegionInfo()
54 ++iterator; in BuildRegionInfo()
555 auto &iterator = bb.GetBytecodeIterator(); in NewJSGate() local
556 const BytecodeInfo& bytecodeInfo = iterator.GetBytecodeInfo(); in NewJSGate()
563 size_t pcOffset = GetPcOffset(iterator.Index()); in NewJSGate()
566 …numValueInputs, methodOffset, bytecodeInfo.GetOpcode(), pcOffset, iterator.Index(), writable, hasF… in NewJSGate()
575 byteCodeToJSGates_[iterator.Index()].emplace_back(gate); in NewJSGate()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/utils/
Dref_vector.h68 using iterator = mpl_iterator<typename base_vector::pointer, ref_vector_tag>;
70 using reverse_iterator = std::reverse_iterator<iterator>;
124 iterator begin() noexcept
126 return iterator(base.begin());
134 iterator end() noexcept
136 return iterator(base.end());
280 iterator insert(const_iterator pos, value_type &value)
285 iterator insert(const_iterator pos, value_type &&value) = delete;
288 iterator insert(const_iterator pos, Iter first, Iter last) = delete;
290 iterator insert(const_iterator pos, std::initializer_list<value_type> init) = delete;
[all …]
/arkcompiler/ets_frontend/ets2panda/compiler/function/
DfunctionBuilder.cpp156 Iterator iterator(pg_, node, GeneratorKind()); in YieldStar() local
159 VReg receivedValue = iterator.NextResult(); in YieldStar()
167 pg_->MoveVreg(node, nextMethod, iterator.Method()); in YieldStar()
176 pg_->MoveVreg(node, iterator.Method(), nextMethod); in YieldStar()
185 iterator.GetMethod("throw"); in YieldStar()
196 iterator.Close(false); in YieldStar()
207 iterator.GetMethod("return"); in YieldStar()
227 iterator.CallMethodWithValue(); in YieldStar()
246 iterator.Complete(); in YieldStar()
253 iterator.Value(); in YieldStar()
[all …]
/arkcompiler/ets_frontend/ts2panda/src/
DcompilerUtils.ts66 …let iterator = new Iterator({iterator: iter, nextMethod: nextMethod}, iterDone, iterValue, pandaGe…
67 iterator.getIterator();
70 iterator.close();
93 iterator.callNext(nextResult);
97 iterator.iteratorComplete(nextResult);
105 iterator, nextResult, pandaGen, compiler, isDeclaration);
133 iterator.iteratorComplete(nextResult);
142 iterator.iteratorValue(nextResult);
152 pandaGen.loadAccumulator(element, iterator.getCurrentValue());
172 pandaGen.loadAccumulator(arr, iterator.getCurrrentDone());
[all …]
/arkcompiler/ets_runtime/test/moduletest/arktoolshavesamemap/
Darktoolshavesamemap.js18 const arrayResult = (new Array())[Symbol.iterator]().next();
22 const mapResult = (new Map())[Symbol.iterator]().next();
26 const setResult = (new Set())[Symbol.iterator]().next();
/arkcompiler/ets_frontend/es2panda/compiler/function/
DfunctionBuilder.cpp189 Iterator iterator(pg_, node, GeneratorKind()); in YieldStar() local
192 VReg receivedValue = iterator.NextResult(); in YieldStar()
201 pg_->MoveVreg(node, nextMethod, iterator.Method()); in YieldStar()
210 pg_->MoveVreg(node, iterator.Method(), nextMethod); in YieldStar()
219 iterator.GetMethod("throw"); in YieldStar()
230 iterator.Close(false); in YieldStar()
241 iterator.GetMethod("return"); in YieldStar()
261 iterator.CallMethodWithValue(); in YieldStar()
280 iterator.Complete(); in YieldStar()
288 iterator.Value(); in YieldStar()
[all …]
/arkcompiler/ets_runtime/test/moduletest/arrayValuesCase/
DarrayValuesCase.js43 const iterator = arr.values(); constant
44 print(iterator.next().value); // "a"
46 print(iterator.next().value); // "n"
/arkcompiler/ets_frontend/es2panda/ir/statements/
DforOfStatement.cpp76 compiler::Iterator iterator(pg, this, iterator_type); in Compile() local
80 iterator.Next(); in Compile()
81 iterator.Complete(); in Compile()
85 iterator.Value(); in Compile()
90 compiler::IteratorContext forOfCtx(pg, iterator, labelTarget); in Compile()
/arkcompiler/ets_frontend/es2panda/compiler/base/
Ddestructuring.cpp41 DestructuringRestIterator iterator(destIterator); in GenRestElement() local
56 iterator.Step(done); in GenRestElement()
74 DestructuringIterator iterator(pg, array); in GenArray() local
77 iterator.Close(false); in GenArray()
81 DestructuringIteratorContext dstrCtx(pg, iterator); in GenArray()
87 GenRestElement(pg, element->AsRestElement(), iterator, array->IsDeclaration()); in GenArray()
93 iterator.Step(); in GenArray()
108 iterator.Step(); in GenArray()
114 pg->LoadAccumulator(element, iterator.Result()); in GenArray()
/arkcompiler/ets_frontend/ts2panda/src/function/
DgeneratorFunctionBuilder.ts103 let iterator: IteratorRecord = getIteratorRecord(pandaGen, expr, method, object, type);
118 pandaGen.call(expr, [iterator.getNextMethod(), iterator.getObject(), receivedValue], true);
126 pandaGen.loadObjProperty(expr, iterator.getObject(), "return");
131 pandaGen.call(expr, [method, iterator.getObject(), receivedValue], true);
150 pandaGen.loadObjProperty(expr, iterator.getObject(), "throw");
155 pandaGen.call(expr, [method, iterator.getObject(), receivedValue], true);
162 pandaGen.loadObjProperty(expr, iterator.getObject(), "return");
169 pandaGen.call(expr, [method, iterator.getObject()], true);
/arkcompiler/ets_runtime/test/aottest/generatorcontinuefinally/
Dgeneratorcontinuefinally.ts21 var iterator = values(); variable
23 for (var x of iterator) {
/arkcompiler/ets_runtime/test/aottest/continue_from_finally/
Dcontinue_from_finally.ts22 var iterator = values(); variable
25 for (var x of iterator) {
/arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/
Dcollection_set.h98 return Range<PandaVector<Region *>::iterator>(begin(), begin() + tenuredBegin_); in Young()
108 … return Range<PandaVector<Region *>::iterator>(begin() + tenuredBegin_, begin() + humongousBegin_); in Tenured()
118 return Range<PandaVector<Region *>::iterator>(begin() + humongousBegin_, end()); in Humongous()
128 return Range<PandaVector<Region *>::iterator>(begin(), begin() + humongousBegin_); in Movable()
/arkcompiler/ets_runtime/test/moduletest/spreadoperator/
Dspreadoperator.js68 Map.prototype[Symbol.iterator] = iterFunc;
76 Set.prototype[Symbol.iterator] = iterFunc;
81 Uint8Array.prototype[Symbol.iterator] = iterFunc;
107 Array.prototype[Symbol.iterator] = function* () {
/arkcompiler/runtime_core/static_core/runtime/mem/
Dmalloc-proxy-allocator-inl.h76 auto iterator = allocatedMemory_.find(mem); in Free() local
77 ASSERT(iterator != allocatedMemory_.end()); in Free()
78 size_t size = iterator->second; in Free()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/
Dptr_list_ref.h226 using iterator = PtrListRefIterator<T>; variable
228 using reverse_iterator = ReversePtrListRefIterator<iterator>;
238 iterator begin() in begin()
240 return iterator(this->first); in begin()
253 iterator end() in end()
255 return iterator(this->last == nullptr ? nullptr : this->last->GetNext()); in end()
270 return reverse_iterator(iterator(this->last)); in rbegin()
285 … return reverse_iterator(iterator(this->first == nullptr ? nullptr : this->first->GetPrev())); in rend()
472 iterator erase(const_iterator where) in erase()
492 return iterator(nullptr); in erase()
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/
Dgenerators.ts55 const iterator = func2(); constant
56 console.log(iterator.next().value); // Expected output: 42
/arkcompiler/ets_frontend/ets2panda/linter-4.2/test/
Dgenerators.ts55 const iterator = func2(); constant
56 console.log(iterator.next().value); // Expected output: 42
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/
Dcgbb.h406 void InsertPred(const MapleList<BB *>::iterator &it, BB &bb) in InsertPred()
410 void InsertSucc(const MapleList<BB *>::iterator &it, BB &bb) in InsertSucc()
442 MapleList<BB *>::iterator GetPredsBegin() in GetPredsBegin()
446 MapleList<BB *>::iterator GetSuccsBegin() in GetSuccsBegin()
450 MapleList<BB *>::iterator GetEhPredsBegin() in GetEhPredsBegin()
454 MapleList<BB *>::iterator GetLoopSuccsBegin() in GetLoopSuccsBegin()
458 MapleList<BB *>::iterator GetPredsEnd() in GetPredsEnd()
462 MapleList<BB *>::iterator GetSuccsEnd() in GetSuccsEnd()
466 MapleList<BB *>::iterator GetEhPredsEnd() in GetEhPredsEnd()
470 MapleList<BB *>::iterator GetLoopSuccsEnd() in GetLoopSuccsEnd()
[all …]

123456789