Home
last modified time | relevance | path

Searched refs:insert (Results 1 – 25 of 155) sorted by relevance

1234567

/arkcompiler/ets_frontend/es2panda/scripts/
Dgenerate_js_bytecode.py81 cmd.insert(src_index, '--debug-info')
84 cmd.insert(src_index, '--module')
87 cmd.insert(src_index, '--commonjs')
90 cmd.insert(src_index, '--merge-abc')
93 cmd.insert(src_index, '--generate-patch')
97 cmd.insert(src_index, '--type-extractor')
100 cmd.insert(src_index, '--type-dts-builtin')
/arkcompiler/ets_frontend/merge_abc/src/
DassemblyProgramProto.cpp63 program.record_table.insert({name, std::move(record)}); in Deserialize()
72 program.function_table.insert({name, std::move(*function)}); in Deserialize()
80 program.literalarray_table.insert({name, std::move(literalArray)}); in Deserialize()
84 program.strings.insert(protoString); in Deserialize()
89 program.array_types.insert(std::move(arrayType)); in Deserialize()
/arkcompiler/ets_frontend/es2panda/util/
DsymbolTable.cpp56 originRecordHashFunctionNames_.insert({recordName, functionIndexNameMap}); in ReadRecordHashFunctionNames()
60 recordHashFunctionNames->second.insert({specialFuncIndex, funcInternalName}); in ReadRecordHashFunctionNames()
63 originRecordHashFunctionNames_.insert({recordName, functionIndexNameMap}); in ReadRecordHashFunctionNames()
94 … info.classHash.insert(std::pair<std::string, std::string>(classItems[i], classItems[i + 1])); in ReadSymbolTable()
100 info.lexenv.insert({slot, std::pair<std::string, int>(name, type)}); in ReadSymbolTable()
103 …originFunctionInfo_.insert(std::pair<std::string, OriginFunctionInfo>(info.funcInternalName, info)… in ReadSymbolTable()
108 … originModuleInfo_.insert(std::pair<std::string, std::string>(moduleItems[0], moduleItems[1])); in ReadSymbolTable()
DmoduleHelpers.cpp41 progsInfo.insert({entriesInfo, cache}); in CompileNpmModuleEntryList()
66 progsInfo.insert({entriesInfo, cache}); in CompileNpmModuleEntryList()
DpatchFix.cpp147 funcDefinedClasses_.insert({funcName, funcDefinedClasses}); in CollectFunctionsWithDefinedClasses()
256 classMemberFunctions_.insert({className, classMemberFunctions}); in CollectClassMemberFunctions()
332 modifiedClassNames_.insert(cls.first); in HandleModifiedClasses()
376 ins.insert(ins.begin(), newLexenv); in AddHeadAndTailInsForPatchFuncMain0()
498 modifiedClassNames_.insert(className); in CompareClassHash()
547 newFuncNames_.insert(funcName); in HandleFunction()
572 patchFuncNames_.insert(funcName); in HandleFunction()
578 patchFuncNames_.insert(funcName); in HandleFunction()
/arkcompiler/runtime_core/compiler/optimizer/analysis/
Drpo.h61 rpo_vector_.insert(it + 1, new_block); in AddBasicBlockAfter()
68 rpo_vector_.insert(it, new_block); in AddBasicBlockBefore()
75 rpo_vector_.insert(it + 1, new_vector.begin(), new_vector.end()); in AddVectorAfter()
/arkcompiler/toolchain/tooling/test/testcases/js/
Dcontainer.js21 arrayList.insert(4, 0);
23 arrayList.insert(18, 2);
175 linkedList.insert(1,588);
177 linkedList.insert(3,388);
200 list.insert(2, 2);
334 vector.insert(4, 0);
335 vector.insert('change', 5);
336 vector.insert('change', 8);
/arkcompiler/ets_runtime/ecmascript/compiler/type_inference/
Dpgo_type_infer.cpp52 inferTypes.insert(type); in Merge()
57 inferTypes.insert(GateType(instanceGT)); in Merge()
60 inferTypes.insert(type); in Merge()
115 types.classTypes.insert(type); in CheckAndInsert()
125 types.classInstanceTypes.insert(type); in CheckAndInsert()
128 types.otherTypes.insert(type); in CheckAndInsert()
197 deletedGates.insert(curType); in EliminateSubclassTypes()
228 types.insert(item.second); in ComputeCommonSuperClassTypes()
/arkcompiler/ets_frontend/es2panda/parser/module/
DsourceTextModuleRecord.cpp27 auto insertedRes = moduleRequestsMap_.insert(std::make_pair(source, moduleRequestsSize)); in AddModuleRequest()
28 moduleRequestsIdxMap_.insert(std::make_pair(insertedRes.first->second, source)); in AddModuleRequest()
41 regularImportEntries_.insert(std::make_pair(entry->localName_, entry)); in AddImportEntry()
76 localExportEntries_.insert(std::make_pair(entry->localName_, entry)); in AddLocalExportEntry()
/arkcompiler/runtime_core/compiler/optimizer/optimizations/
Dcleanup.cpp49 empty_blocks->insert(bb); in RunImpl()
189 new_empty_blocks->insert(pred); in RemoveDeadPhi()
294 new_empty_blocks->insert(pred); in Dce()
299 new_empty_blocks->insert(bb); in Dce()
407 new_empty_blocks->insert(pred); in Removal()
413 new_empty_blocks->insert(bb); in Removal()
438 map_.insert({fake_root_, amount}); in BuildDominators()
442 map_.insert({inst, amount}); in BuildDominators()
447 map_.insert({pred, amount}); in BuildDominators()
/arkcompiler/ets_frontend/es2panda/ir/statements/
DvariableDeclarator.cpp128 checker->NodeCache().insert({this, nullptr}); in Check()
138 checker->NodeCache().insert({this, nullptr}); in Check()
148 checker->NodeCache().insert({this, nullptr}); in Check()
/arkcompiler/ets_frontend/es2panda/typescript/types/
DtypeRelation.cpp88 …checker_->IdenticalResults().cached.insert({{source->Id(), target->Id()}, {result_, RelationType::… in IsIdenticalTo()
134 checker_->AssignableResults().cached.insert( in IsAssignableTo()
151 checker_->ComparableResults().cached.insert( in IsComparableTo()
/arkcompiler/ets_frontend/es2panda/binder/
Dscope.cpp207 … scope->Bindings().insert({newDecl->Name(), allocator->New<GlobalVariable>(newDecl, varFlags)}); in AddLocal()
219 …bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, VariableFlags::INTERFACE… in AddLocal()
235 bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, flags)}); in AddLocal()
252 bindings_.insert({newDecl->Name(), param}); in AddParam()
283 bindings_.insert({varDecl->Name(), paramVar}); in AddParamDecl()
292 functionScope_->Bindings().insert({name, nameVar_}); in BindName()
337 …return enumMemberBindings_->insert({newDecl->Name(), allocator->New<EnumVariable>(newDecl, false)}… in AddBinding()
Dscope.h57 return tsBindings_[index]->insert({name, variable}).second; in AddTSVariable()
114 return exportBindings_.insert({name, var}).second; in AddExportVariable()
569 this->bindings_.insert(paramScope_->Bindings().begin(), paramScope_->Bindings().end()); in AddBindsFromParam()
767 variableNames_.insert(name); in AddDeclarationName()
806 variableNames_.insert(name); in AddDeclarationName()
840 bindings_.insert({newDecl->Name(), allocator->New<T>(newDecl, flags)}); in AddVar()
869 bindings_.insert({newDecl->Name(), allocator->New<T>(newDecl, flags)}); in AddFunction()
906 bindings_.insert({newDecl->Name(), allocator->New<T>(newDecl, flags)}); in AddClass()
925 bindings_.insert({newDecl->Name(), allocator->New<T>(newDecl, flags)}); in AddTSBinding()
965 bindings_.insert({newDecl->Name(), allocator->New<T>(newDecl, flags)}); in AddLexical()
[all …]
/arkcompiler/runtime_core/libpandabase/mem/
Dalloc_tracker.cpp98 cur_allocs_.insert({addr, info}); in TrackAlloc()
248 auto res = alloc_stacks.insert({akey, deduplicated_id}); in WriteStacks()
253 id_map->insert({stacktrace_id, deduplicated_id}); in WriteStacks()
257 id_map->insert({stacktrace_id, id}); in WriteStacks()
/arkcompiler/ets_frontend/es2panda/typescript/core/
DtypeCreation.cpp29 numberLiteralMap_.insert({value, newNumLiteralType}); in CreateNumberLiteralType()
41 bigintLiteralMap_.insert({str, newBigiLiteralType}); in CreateBigintLiteralType()
53 stringLiteralMap_.insert({str, newStrLiteralType}); in CreateStringLiteralType()
/arkcompiler/runtime_core/libpandafile/
Dbytecode_emitter.cpp126 targets_.insert(label); in Bind()
180 new_branches.insert(std::make_pair(new_target, label)); in ReserveSpaceForOffsets()
201 bytecode_.insert(bytecode_.begin() + insn_pc + INSN_SIZE, *extra_bytes_ptr, 0); in DoReserveSpaceForOffset()
204 bytecode_.insert(bytecode_.begin() + insn_pc + INSN_SIZE, *extra_bytes_ptr, 0); in DoReserveSpaceForOffset()
246 targets_.insert(updated_labels.begin(), updated_labels.end()); in UpdateLabelTargets()
Dfile_item_container.cpp33 items_.insert(item_data); in Deduplicate()
68 buf_->insert(buf_->end(), bytes.cbegin(), bytes.cend()); in WriteBytes()
159 auto ii = items.insert(pos, std::make_unique<T>(std::forward<Args>(args)...)); in GetOrInsert()
162 [[maybe_unused]] auto res = map.insert({key, item}); in GetOrInsert()
169 items_end_ = items_.insert(items_.end(), std::make_unique<EndItem>()); in ItemContainer()
170 code_items_end_ = items_.insert(items_.end(), std::make_unique<EndItem>()); in ItemContainer()
171 debug_items_end_ = items_.insert(items_.end(), std::make_unique<EndItem>()); in ItemContainer()
243 auto it = items_.insert(debug_items_end_, std::make_unique<LineNumberProgramItem>(this)); in CreateLineNumberProgramItem()
913 auto res = index_.insert(item); in Add()
/arkcompiler/ets_runtime/ecmascript/intl/
Dglobal_intl_helper.cpp82 optionMaps.insert(make_pair(GlobalFormatterType::Collator, collatorMap)); in InitCollatorData()
107 optionMaps.insert(make_pair(GlobalFormatterType::DateFormatter, collatorMap)); in InitDateData()
130 optionMaps.insert(make_pair(GlobalFormatterType::NumberFormatter, collatorMap)); in InitNumberData()
165 inputOptions.insert(make_pair(opt.first, valueStr)); in OptionsToMap()
/arkcompiler/runtime_core/libpandabase/os/
Ddebug_info.cpp258 ranges->insert(Range(low_pc, high_pc, cu)); in GetSrcLocation()
357 … ranges_.insert(Range(enclosing.GetLowPc(), low_pc, enclosing.GetCu(), enclosing.GetFunction())); in AddFunction()
359 ranges_.insert(range); in AddFunction()
361 … ranges_.insert(Range(high_pc, enclosing.GetHighPc(), enclosing.GetCu(), enclosing.GetFunction())); in AddFunction()
364 ranges_.insert(Range(range.GetLowPc(), it->GetLowPc(), cu, function)); in AddFunction()
365 ranges_.insert(Range(it->GetHighPc(), range.GetHighPc(), cu, function)); in AddFunction()
367 ranges_.insert(range); in AddFunction()
/arkcompiler/runtime_core/assembler/
Dassembly-emitter.cpp66 res.insert({Type::TypeId::VOID, container->GetOrCreatePrimitiveTypeItem(Type::TypeId::VOID)}); in CreatePrimitiveTypes()
67 res.insert({Type::TypeId::U1, container->GetOrCreatePrimitiveTypeItem(Type::TypeId::U1)}); in CreatePrimitiveTypes()
68 res.insert({Type::TypeId::I8, container->GetOrCreatePrimitiveTypeItem(Type::TypeId::I8)}); in CreatePrimitiveTypes()
69 res.insert({Type::TypeId::U8, container->GetOrCreatePrimitiveTypeItem(Type::TypeId::U8)}); in CreatePrimitiveTypes()
70 res.insert({Type::TypeId::I16, container->GetOrCreatePrimitiveTypeItem(Type::TypeId::I16)}); in CreatePrimitiveTypes()
71 res.insert({Type::TypeId::U16, container->GetOrCreatePrimitiveTypeItem(Type::TypeId::U16)}); in CreatePrimitiveTypes()
72 res.insert({Type::TypeId::I32, container->GetOrCreatePrimitiveTypeItem(Type::TypeId::I32)}); in CreatePrimitiveTypes()
73 res.insert({Type::TypeId::U32, container->GetOrCreatePrimitiveTypeItem(Type::TypeId::U32)}); in CreatePrimitiveTypes()
74 res.insert({Type::TypeId::I64, container->GetOrCreatePrimitiveTypeItem(Type::TypeId::I64)}); in CreatePrimitiveTypes()
75 res.insert({Type::TypeId::U64, container->GetOrCreatePrimitiveTypeItem(Type::TypeId::U64)}); in CreatePrimitiveTypes()
[all …]
/arkcompiler/ets_frontend/es2panda/ir/ts/
DtsModuleBlock.cpp49 statements_.insert(statements_.begin(), statement); in AddStatementInFront()
/arkcompiler/ets_frontend/es2panda/ir/
Dstatement.cpp37 iter = originStatements.insert(iter, it->AsStatement()); in UpdateForMultipleTransformedStatements()
/arkcompiler/ets_frontend/es2panda/ir/expressions/literals/
DstringLiteral.cpp46 checker->StringLiteralMap().insert({str_, newStrLiteralType}); in Check()
DbigIntLiteral.cpp45 checker->BigintLiteralMap().insert({src_, newBigintLiteralType}); in Check()

1234567