Home
last modified time | relevance | path

Searched full:this (Results 1 – 25 of 4825) sorted by relevance

12345678910>>...193

/arkcompiler/ets_frontend/ts2panda/src/base/
Diterator.ts4 * you may not use this file except in compliance with the License.
39 this.iterRecord = iterRecord;
40 this.iterDone = iterDone;
41 this.iterValue = iterValue;
42 this.pandaGen = pandaGen;
43 this.node = node;
45 this.kind = kind;
49 this.funcBuilder = funcBuilder;
54 let pandaGen = this.pandaGen;
55 let iterator = this.iterRecord.iterator;
[all …]
DtypeSystem.ts4 * you may not use this file except in compliance with the License.
174 this.typeRecorder.addType2Index(node, index);
178 this.typeRecorder.setVariable2Type(variableNode, index);
182 return this.typeRecorder.tryGetTypeIndex(typeNode);
186 return this.typeChecker.getOrCreateRecordForDeclNode(typeNode, variableNode);
190 return this.typeChecker.getOrCreateRecordForTypeNode(typeNode, variableNode);
212 typeIndex = this.getIndexFromTypeArrayBuffer(new PlaceHolderType());
232 this.preservedIndex = this.getIndexFromTypeArrayBuffer(new PlaceHolderType());
236 this.getIndexFromTypeArrayBuffer(new PlaceHolderType());
243 this.userDefinedClassNum = userDefinedClassNum;
[all …]
Dlreference.ts4 * you may not use this file except in compliance with the License.
47 this.node = node;
48 this.compiler = compiler;
49 this.isDeclaration = isDeclaration;
50 this.refKind = refKind;
53 this.destructuringTarget = <ts.BindingOrAssignmentPattern>node;
55 this.variable = variable!;
57 this.obj = compiler.getPandaGen().getTemp();
58 this.prop = compiler.getPandaGen().getTemp();
63 let pandaGen = this.compiler.getPandaGen();
[all …]
/arkcompiler/ets_frontend/ts2panda/src/statement/
DtryStatement.ts4 * you may not use this file except in compliance with the License.
58 this.beginLabel = beginLabel;
59 this.endLabel = endLabel;
63 return this.beginLabel;
67 return this.endLabel;
77 this.catchBeginLabel = catchBeginLabel;
78 this.labelPairs.push(labelPair);
79 this.depth = TryStatement.getcurrentTryStatementDepth();
81 pandaGen.getCatchMap().set(catchBeginLabel, this);
85 return this.labelPairs;
[all …]
DswitchStatement.ts4 * you may not use this file except in compliance with the License.
35 this.stmt = stmt;
36 this.compiler = compiler;
37 this.pandaGen = compiler.getPandaGen();
38 this.switchEndLabel = switchEndLabel;
42 this.caseLabels.push(caseLabel);
50 let caseTarget = this.stmt.caseBlock.clauses[index];
51 this.pandaGen.label(caseTarget, this.caseLabels[index]);
55 this.compiler.compileExpression(this.stmt.expression);
56 this.pandaGen.storeAccumulator(this.stmt.expression, tagReg);
[all …]
/arkcompiler/ets_frontend/ts2panda/src/
Dpandagen.ts4 * you may not use this file except in compliance with the License.
21 * This file should not contain imports of TypeScipt's AST nodes.
237 this.internalName = internalName;
238 this.node = node;
239 this.parametersCount = parametersCount;
240 this.scope = scope;
241 this.vregisterCache = new VregisterCache();
242 this.setFunctionKind(node);
265 this.funcKind = FunctionKind.FUNCTION;
277 this.funcKind = FunctionKind.ASYNC_GENERATOR_FUNCTION;
[all …]
Dvariable.ts4 * you may not use this file except in compliance with the License.
42 this.name = name;
43 this.vreg = undefined;
44 this.typeIndex = 0;
48 this.vreg = vreg;
49 this.vreg.setTypeIndex(this.typeIndex);
50 this.vreg.setVariableName(this.name);
54 return this.vreg !== undefined;
58 if (!this.vreg) {
61 return this.vreg;
[all …]
DcmdOptions.ts4 * you may not use this file except in compliance with the License.
54 …', type: String, defaultValue: "", description: "specify the record name, this option can only be …
58 …n: "A file containing a list of source files to be compiled. Each line of this file should be cons…
69 if (!this.options) {
72 return this.options["display-typeinfo"];
76 if (!this.options) {
79 return this.options["debug-log"];
83 if (!this.options) {
86 return this.options["dump-assembly"];
90 if (!this.options) {
[all …]
Dcompiler.ts4 * you may not use this file except in compliance with the License.
21 * This file should not contain import from irnodes.ts.
141 this.rootNode = node;
142 this.pandaGen = pandaGen;
143 this.compilerDriver = compilerDriver;
144 this.recorder = recorder;
145 this.funcBuilder = new FunctionBuilder(pandaGen);
147 …// At the beginning of function compile, alloc pandagen.local for 4funcObj/newTarget/this/paramete…
148 // maybe no one used this parameter, will get undefined for RA
149 this.scope = this.pandaGen.getScope()!;
[all …]
Dpandasm.ts4 * you may not use this file except in compliance with the License.
25 this.attribute = attribute;
34 this.p = params;
35 this.rt = retType;
55 this.o = op;
56 this.r = regs;
57 this.id = ids;
58 this.im = imms;
59 this.l = label;
60 this.d = dbg_pos;
[all …]
DtypeRecorder.ts4 * you may not use this file except in compliance with the License.
37 // In PropertyAccessExpression we'll need this to map the symbol to filepath
54 this.typeSummary.setInfo(this.countUserDefinedTypeSet(), this.anonymousReExport);
58 return this.typeSummary.getPreservedIndex();
63 this.userDefinedTypeSet.add(index);
68 return this.userDefinedTypeSet.size;
72 this.type2Index.set(typeNode, index);
73 this.addUserDefinedTypeSet(index);
77 this.variable2Type.set(variableNode, index);
78 this.addUserDefinedTypeSet(index);
[all …]
DassemblyDumper.ts4 * you may not use this file except in compliance with the License.
37 this.intrinsicName = intrinsicName;
38 this.argsNum = argsNum;
39 this.returnType = returnType;
52 this.pg = pg;
53 this.labels = new Map<number, string>();
54 this.labelId = 0;
55 this.output = "";
64 let parametersCount = this.pg.getParametersCount();
65 this.output += ".function any " + this.pg.internalName + "("
[all …]
Dscope.ts4 * you may not use this file except in compliance with the License.
43 this.name = name;
44 this.node = node;
45 this.isModule = isModule;
106 return this.name2variable;
110 return this.startInsIdx;
114 this.startInsIdx = startInsIdx;
118 this.endInsIdx = endInsIdx;
122 return this.endInsIdx;
126 this.parent = parentScope;
[all …]
DcompilerStatistics.ts4 * you may not use this file except in compliance with the License.
34 this.instSize = instSize;
36 this.relatedInsns.push(relatedInsns);
41 this.count += num;
42 this.relatedInsns.forEach(relatedInsn => { relatedInsn.num += num });
46 this.count = num;
47 this.relatedInsns.forEach(relatedInsn => { relatedInsn.num = num });
51 return this.count;
55 return this.instSize;
59 return this.count * this.instSize;
[all …]
DcompilerDriver.ts4 * you may not use this file except in compliance with the License.
84 this.fileName = fileName;
85 this.recordName = recordName;
87 this.passes = [
91 this.compilationUnits = [];
92 this.pendingCompilationUnits = [];
94 this.statistics = new CompilerStatistics();
99 this.ts2abcProcess = initiateTs2abc(args);
100 listenChildExit(this.getTs2abcProcess());
101 listenErrorEvent(this.getTs2abcProcess());
[all …]
DecmaModule.ts4 * you may not use this file except in compliance with the License.
33 this.node = node;
34 this.exportName = exportName;
35 this.localName = localName;
36 this.importName = importName;
38 this.moduleRequest = moduleRequest;
56 this.moduleName = moduleName;
60 if (this.moduleRequestIdxMap.has(moduleRequest)) {
61 return this.moduleRequestIdxMap.get(moduleRequest)!;
63 let index = this.moduleRequests.length;
[all …]
/arkcompiler/ets_frontend/ts2panda/src/function/
DasyncGeneratorFunctionBuilder.ts4 * you may not use this file except in compliance with the License.
50 this.funcObj = pandaGen.getTemp();
51 this.resumeVal = pandaGen.getTemp();
52 this.resumeType = pandaGen.getTemp();
53 this.beginLabel = new Label();
54 this.endLabel = new Label();
55 this.compiler = compiler;
59 let pg = this.pg;
63 pg.storeAccumulator(node, this.funcObj);
65 pg.label(node, this.beginLabel);
[all …]
DasyncFunctionBuilder.ts4 * you may not use this file except in compliance with the License.
41 this.funcObj = pandaGen.getTemp();
42 this.resumeVal = pandaGen.getTemp();
43 this.beginLabel = new Label();
44 this.endLabel = new Label();
48 let pandaGen = this.pg;
51 pandaGen.storeAccumulator(NodeKind.Invalid, this.funcObj);
53 pandaGen.label(node, this.beginLabel);
58 this.functionAwait(node);
59 this.handleMode(node);
[all …]
/arkcompiler/runtime_core/runtime/mem/gc/gen-gc/
Dgen-gc.cpp4 * you may not use this file except in compliance with the License.
40 : GenerationalGC<LanguageConfig>(object_allocator, settings), marker_(this) in GenGC()
42 this->SetType(GCType::GEN_GC); in GenGC()
43 this->SetTLABsSupported(); in GenGC()
50 InternalAllocatorPtr allocator = this->GetInternalAllocator(); in InitializeImpl()
51 this->CreateCardTable(allocator, PoolManager::GetMmapMemPool()->GetMinObjectAddress(), in InitializeImpl()
55this->GetCardTable(), CardTable::GetCardBits(), CardTable::GetCardDirtyValue()); in InitializeImpl()
57 this->SetGCBarrierSet(barrier_set); in InitializeImpl()
71 task.reason_ == GCTaskCause::EXPLICIT_CAUSE || this->IsOnPygoteFork() || in ShouldRunFullGC()
79 uint64_t footprint_before = this->GetPandaVm()->GetMemStats()->GetFootprintHeap(); in RunPhasesImpl()
[all …]
/arkcompiler/runtime_core/runtime/interpreter/
Dinterpreter-inl.h4 * you may not use this file except in compliance with the License.
82 return this->template GetAs<int32_t>(param_idx); in Get()
124 this->template MoveToNextInst<format, false>(); in HandleNop()
130 auto imm = bit_cast<double>(this->GetInst().template GetImm<format>()); in HandleFldaiDyn()
132 this->GetAcc().SetValue(coretypes::TaggedValue(imm).GetRawData()); in HandleFldaiDyn()
133 this->template MoveToNextInst<format, false>(); in HandleFldaiDyn()
139 int32_t imm = this->GetInst().template GetImm<format>(); in HandleLdaiDyn()
141 this->GetAcc().SetValue(coretypes::TaggedValue(imm).GetRawData()); in HandleLdaiDyn()
142 this->template MoveToNextInst<format, false>(); in HandleLdaiDyn()
148 uint16_t vd = this->GetInst().template GetVReg<format, 0>(); in HandleMov()
[all …]
Dacc_vregister-inl.h4 * you may not use this file except in compliance with the License.
79 this->payload_->SetValue(other.GetValue()); in Move()
80 this->payload_->SetTag(other.GetTag()); in Move()
85 this->payload_->SetValue(other.GetValue()); in Move()
90 return std::pair<int64_t, int64_t>(this->payload_->GetValue(), this->payload_->GetTag());
96 this->payload_->SetValue(other.GetValue());
97 this->payload_->SetTag(other.GetTag());
98 return *this;
104 this->payload_->SetValue(other.GetValue());
105 this->payload_->SetTag(other.GetTag());
[all …]
/arkcompiler/runtime_core/runtime/mem/
Dfreelist.h4 * you may not use this file except in compliance with the License.
33 ASAN_UNPOISON_MEMORY_REGION(this, sizeof(MemoryBlockHeader)); in Initialize()
36 ASAN_POISON_MEMORY_REGION(this, sizeof(MemoryBlockHeader)); in Initialize()
39 // Is this memory block used somewhere or not (i.e. it is free)
43 ASAN_UNPOISON_MEMORY_REGION(this, sizeof(MemoryBlockHeader)); in IsUsed()
45 ASAN_POISON_MEMORY_REGION(this, sizeof(MemoryBlockHeader)); in IsUsed()
53 ASAN_UNPOISON_MEMORY_REGION(this, sizeof(MemoryBlockHeader)); in SetUsed()
55 ASAN_POISON_MEMORY_REGION(this, sizeof(MemoryBlockHeader)); in SetUsed()
62 ASAN_UNPOISON_MEMORY_REGION(this, sizeof(MemoryBlockHeader)); in SetUnused()
64 ASAN_POISON_MEMORY_REGION(this, sizeof(MemoryBlockHeader)); in SetUnused()
[all …]
/arkcompiler/ets_frontend/es2panda/ir/statements/
DtryStatement.cpp4 * you may not use this file except in compliance with the License.
53 pg->StoreConst(this, exception, compiler::Constant::JS_HOLE); in CompileFinally()
54 pg->Branch(this, labelSet.CatchEnd()); in CompileFinally()
56 pg->SetLabel(this, labelSet.CatchBegin()); in CompileFinally()
57 pg->StoreAccumulator(this, exception); in CompileFinally()
59 pg->SetLabel(this, labelSet.CatchEnd()); in CompileFinally()
62 pg->LoadAccumulator(this, tryCtx->FinalizerRun()); in CompileFinally()
64 pg->BranchIfNotUndefined(this, label); in CompileFinally()
65 pg->StoreAccumulator(this, tryCtx->FinalizerRun()); in CompileFinally()
67 pg->SetLabel(this, label); in CompileFinally()
[all …]
/arkcompiler/runtime_core/runtime/mem/gc/stw-gc/
Dstw-gc.cpp4 * you may not use this file except in compliance with the License.
40 : GCLang<LanguageConfig>(object_allocator, settings), marker_(this) in StwGC()
42 this->SetType(GCType::STW_GC); in StwGC()
49 InternalAllocatorPtr allocator = this->GetInternalAllocator(); in InitializeImpl()
52 this->SetGCBarrierSet(barrier_set); in InitializeImpl()
53 if (this->IsWorkerThreadsExist()) { in InitializeImpl()
54 …auto thread_pool = allocator->New<GCWorkersThreadPool>(allocator, this, this->GetSettings()->GCWor… in InitializeImpl()
56 this->SetWorkersPool(thread_pool); in InitializeImpl()
65 GCScopedPauseStats scoped_pause_stats(this->GetPandaVm()->GetGCStats(), this->GetStats()); in RunPhasesImpl()
66 …[[maybe_unused]] size_t bytes_in_heap_before_gc = this->GetPandaVm()->GetMemStats()->GetFootprintH… in RunPhasesImpl()
[all …]
/arkcompiler/ets_runtime/test/aottest/aot_compatibility_test/builtins_api/
Dbuiltins_api.ts4 * you may not use this file except in compliance with the License.
22 print("this.hasOwnProperty:", this.hasOwnProperty("b"));
23 print("Object.getOwnPropertyNames:", Object.getOwnPropertyNames(this));
24 print("Object.getOwnPropertyDescriptor:", Object.getOwnPropertyDescriptor(this,"b"));
25 print("Object.keys():", Object.keys(this));
26 print("Reflect.has:", Reflect.has(this, "b"));
27 print("Reflect.ownKeys():", Reflect.ownKeys(this));
28 print("Reflect.get:", Reflect.get(this, "b"));
29 … print("Reflect.getOwnPropertyDescriptor():", Reflect.getOwnPropertyDescriptor(this, "b"));
30 this.b = "abc";
[all …]

12345678910>>...193