Home
last modified time | relevance | path

Searched full:initializer (Results 1 – 25 of 30) sorted by relevance

12

/ark/runtime_core/libpandabase/trace/
Dtrace.cpp18 class Initializer { class
20 Initializer() in Initializer() function in Initializer
25 virtual ~Initializer() = default;
27 NO_COPY_SEMANTIC(Initializer);
28 NO_MOVE_SEMANTIC(Initializer);
31 static Initializer s_initializer; // NOLINT(fuchsia-statically-constructed-objects)
/ark/runtime_core/verification/util/
Dobj_pool.h124 …ObjPool(InitializerType initializer, CleanerType cleaner) : Initializer {initializer}, Cleaner {cl… in ObjPool() argument
125 … ObjPool(InitializerType initializer) : Initializer {initializer}, Cleaner {[](T &) { return; }} {} in ObjPool() argument
126 ObjPool() : Initializer {[](T &, std::size_t) { return; }}, Cleaner {[](T &) { return; }} {} in ObjPool()
142 Initializer(Storage[idx], idx); in New()
183 InitializerType Initializer; variable
/ark/ts2abc/ts2panda/src/
DtypeChecker.ts105 public getDeclNodeForInitializer(initializer: ts.Node) {
106 switch (initializer.kind) {
108 return this.getTypeDeclForIdentifier(initializer);
110 let initializerExpression = <ts.NewExpression>initializer;
117 return initializer;
119 return initializer;
227 public getOrCreateRecordForDeclNode(initializer: ts.Node | undefined, variableNode?: ts.Node) {
228 if (!initializer) {
232 let declNode = this.getDeclNodeForInitializer(initializer);
233 typeIndex = this.getTypeFromDecl(declNode, initializer.kind == ts.SyntaxKind.NewExpression);
[all …]
DcompilerUtils.ts115 } else if (isDeclaration && (<ts.BindingElement>element).initializer) {
116 init = (<ts.BindingElement>element).initializer;
309 if (bindingElement.initializer) {
311 init = bindingElement.initializer;
317 let targetExpr = element.initializer;
DsyntaxChecker.ts416 if (!node.initializer) {
427 … (node.parent.parent.kind !== ts.SyntaxKind.VariableStatement || !node.type || node.initializer)) {
428 if (node.initializer) {
699 let leftExpr = stmt.initializer;
716 if (declarations[0].initializer) {
741 let variableDeclarationList = <ts.VariableDeclarationList>iterationStatement.initializer;
753 if (ts.isVariableDeclarationList(node.initializer)) {
756 let varExpr = node.initializer;
823 if (ts.isVariableDeclarationList(node.initializer)) {
826 let varExpr = node.initializer;
[all …]
DsyntaxCheckerForStrcitMode.ts155 if (param.initializer || param.dotDotDotToken) {
Dcompiler.ts388 if (param.initializer) {
397 this.compileExpression(param.initializer);
565 if (decl.initializer) {
566 this.compileExpression(decl.initializer);
/ark/ts2abc/ts2panda/src/statement/
DloopStatement.ts130 if (stmt.initializer && ts.isVariableDeclarationList(stmt.initializer)) {
146 …if (stmt.initializer && ts.isVariableDeclarationList(stmt.initializer) && createEnvAtBegining && n…
150 let declList = <ts.VariableDeclarationList>stmt.initializer;
202 if (stmt.initializer) {
203 if (ts.isVariableDeclarationList(stmt.initializer)) {
204 let declList = <ts.VariableDeclarationList>stmt.initializer;
207 compiler.compileExpression(stmt.initializer);
287 let lref = LReference.generateLReference(compiler, stmt.initializer, false);
DclassStatement.ts249 if (!decl.initializer) {
257 compiler.compileExpression(decl.initializer);
316 if (decl.initializer) {
317 compiler.compileExpression(decl.initializer);
549 let initializer = (<ts.PropertyDeclaration>member).initializer;
550 if (initializer) {
551 if (isConstantExpr(initializer)) {
552 …if (defineClassMember(memberName, initializer, PropertyKind.Constant, properties, namedPropertyMap…
556 …if (defineClassMember(memberName, initializer, PropertyKind.Variable, properties, namedPropertyMap…
561 initializer = ts.createIdentifier("undefined");
[all …]
DtryStatement.ts291 let lref = LReference.generateLReference(this.compiler, stmt.initializer, isDeclaration);
/ark/runtime_core/tests/cts-generator/cts-template/
Dinitobj.short.yaml22 title: Create new object and call initializer
24 …Resolve class type from initializer method_id, allocate memory for an object, initialize its field…
25 …default values (i.e. 0 for primitives and null for objects), call specified initializer and put a …
26 the newly created object into accumulator. method_id should resolve to an initializer.
28 …ister slot values will be discarded and corresponding registers will not be passed to initializer).
335 … description: Check 'initobj.short' instruction with invalid initializer in PandaAssembly context.
469 …description: Check 'initobj.short' instruction with initializer called with incompatible arguments…
680 …description: Check 'initobj.short' instruction with initializer called with compatible primitive a…
733 …description: Check 'initobj.short' instruction with initializer called with compatible primitive a…
820 …description: Check 'initobj.short' instruction with initializer called with compatible object argu…
[all …]
Dinitobj.yaml22 title: Create new object and call initializer
24 …Resolve class type from initializer method_id, allocate memory for an object, initialize its field…
25 …default values (i.e. 0 for primitives and null for objects), call specified initializer and put a …
26 the newly created object into accumulator. method_id should resolve to an initializer.
28 …ister slot values will be discarded and corresponding registers will not be passed to initializer).
361 description: Check 'initobj' instruction with invalid initializer in PandaAssembly context.
495 …description: Check 'initobj' instruction with initializer called with incompatible arguments in Pa…
706 …description: Check 'initobj' instruction with initializer called with compatible primitive argumen…
759 …description: Check 'initobj' instruction with initializer called with compatible primitive array a…
846 …description: Check 'initobj' instruction with initializer called with compatible object arguments …
[all …]
Dinitobj.range.yaml22 title: Create new object and call initializer
24 …Resolve class type from initializer method_id, allocate memory for an object, initialize its field…
25 …default values (i.e. 0 for primitives and null for objects), call specified initializer and put a …
26 the newly created object into accumulator. method_id should resolve to an initializer.
351 … description: Check 'initobj.range' instruction with invalid initializer in PandaAssembly context.
593 …description: Check 'initobj.range' instruction with initializer called with incompatible arguments…
804 …description: Check 'initobj.range' instruction with initializer called with compatible primitive a…
857 …description: Check 'initobj.range' instruction with initializer called with compatible primitive a…
944 …description: Check 'initobj.range' instruction with initializer called with compatible object argu…
1051 …description: Check 'initobj.range' instruction with initializer called with compatible object arra…
[all …]
Dldstatic.64.yaml283 …that ExceptionInInitializerError is thrown if an unexpected exception occurs in static initializer.
Dldstatic.obj.yaml307 …that ExceptionInInitializerError is thrown if an unexpected exception occurs in static initializer.
Dldstatic.yaml292 …that ExceptionInInitializerError is thrown if an unexpected exception occurs in static initializer.
Dststatic.obj.yaml372 …that ExceptionInInitializerError is thrown if an unexpected exception occurs in static initializer.
Dststatic.64.yaml418 …that ExceptionInInitializerError is thrown if an unexpected exception occurs in static initializer.
/ark/ts2abc/ts2panda/src/base/
Dproperties.ts133 …defineProperty(propName, property.initializer, PropertyKind.Prototype, properties, namedPropertyMa…
141 if (isConstantExpr(property.initializer)) {
142 …defineProperty(propName, property.initializer, PropertyKind.Constant, properties, namedPropertyMap…
144 …defineProperty(propName, property.initializer, PropertyKind.Variable, properties, namedPropertyMap…
Dutil.ts264 if (parameter.initializer || isRestParameter(parameter)) {
/ark/ts2abc/ts2panda/tests/statements/
Dfor.test.ts113 // initializer
153 // initializer
203 // initializer
274 // initializer
DfunctionDeclaration.test.ts113 it("Parameters with initializer", function () {
/ark/ts2abc/ts2panda/scripts/
DdiagnosticMessages.json14 "Parameter cannot have question mark and initializer.": {
62 "A rest parameter cannot have an initializer.": {
206 "A destructuring declaration must have an initializer.": {
222 "The variable declaration of a 'for...in' statement cannot have an initializer.": {
226 "The variable declaration of a 'for...of' statement cannot have an initializer.": {
/ark/ts2abc/ts2panda/src/expression/
DobjectLiteralExpression.ts208 compiler.compileExpression((<ts.PropertyAssignment>prop.getValue()).initializer);
209 … let nameSetting: boolean = needSettingName((<ts.PropertyAssignment>prop.getValue()).initializer);
/ark/runtime_core/isa/
Disa.yaml169 …tecode throws ExceptionInInitializerError if unexpected exception occurred in a static initializer.
222 description: Method_id must resolve into initializer for a type other than array.
2433 - title: Create new object and call initializer
2435 …Resolve class type from initializer method_id, allocate memory for an object, initialize its field…
2436 …default values (i.e. 0 for primitives and null for objects), call specified initializer and put a …
2437 the newly created object into accumulator. method_id should resolve to an initializer.
2439 …gister slot values will be discarded and corresponding registers will not be passed to initializer.

12