| /ark/js_runtime/ecmascript/ |
| D | runtime_call_id.h | 232 V(Array, Constructor) \ 263 V(ArrayBuffer, Constructor) \ 269 V(AsyncFunction, Constructor) \ 270 V(Boolean, Constructor) \ 272 V(DataView, Constructor) \ 278 V(Date, Constructor) \ 288 V(Function, Constructor) \ 294 V(Generator, Constructor) \ 308 V(Iterator, Constructor) \ 315 V(Map, Constructor) \ [all …]
|
| D | js_function.cpp | 85 // set "constructor" in prototype in NewJSFunctionPrototype() 163 bool JSFunction::OrdinaryHasInstance(JSThread *thread, const JSHandle<JSTaggedValue> &constructor, in OrdinaryHasInstance() argument 167 if (!constructor->IsCallable()) { in OrdinaryHasInstance() 174 if (constructor->IsBoundFunction()) { in OrdinaryHasInstance() 175 …JSHandle<JSBoundFunction> boundFunction(thread, JSBoundFunction::Cast(constructor->GetTaggedObject… in OrdinaryHasInstance() 187 …JSTaggedValue::GetProperty(thread, constructor, globalConst->GetHandledPrototypeString()).GetValue… in OrdinaryHasInstance() 218 ASSERT_PRINT(func->IsConstructor(), "func must be Constructor type"); in MakeConstructor() 226 "function must have constructor"); in MakeConstructor() 228 // proto.constructor = func in MakeConstructor() 283 THROW_TYPE_ERROR_AND_RETURN(thread, "Constructor is false", JSTaggedValue::Exception()); in Construct() [all …]
|
| D | js_array.cpp | 108 JSHandle<JSTaggedValue> constructor(thread, JSTaggedValue::Undefined()); in ArraySpeciesCreate() local 110 // Let C be Get(originalArray, "constructor"). in ArraySpeciesCreate() 116 constructor = JSTaggedValue::GetProperty(thread, originalValue, constructorKey).GetValue(); in ArraySpeciesCreate() 120 if (constructor->IsConstructor()) { in ArraySpeciesCreate() 123 JSHandle<GlobalEnv> realmC = JSObject::GetFunctionRealm(thread, constructor); in ArraySpeciesCreate() 130 if (JSTaggedValue::SameValue(constructor.GetTaggedValue(), realmArrayConstructor)) { in ArraySpeciesCreate() 137 if (constructor->IsECMAObject()) { in ArraySpeciesCreate() 140 constructor = JSTaggedValue::GetProperty(thread, constructor, speciesSymbol).GetValue(); in ArraySpeciesCreate() 144 if (constructor->IsNull()) { in ArraySpeciesCreate() 151 if (constructor->IsUndefined()) { in ArraySpeciesCreate() [all …]
|
| /ark/ts2abc/ts2panda/src/ |
| D | pandasm.ts | 22 constructor( method in Metadata 33 constructor(params: number = 0, retType?: string | undefined) { method in Signature 47 constructor( method in Ins 79 constructor( method in Function 118 constructor( method in Record 146 constructor() { method in Program 169 constructor( method in CatchTable 186 constructor(vregNum: number, typeIndex: number) { method in TypeOfVreg 198 constructor(symbol: string, type: number) { method in ExportedSymbol2Type 210 constructor(symbol: string, type: number) { method in DeclaredSymbol2Type
|
| D | scope.ts | 32 constructor(name: string, node: ts.Node) { method in Decl 39 constructor(varName: string, node: ts.Node) { method in VarDecl 45 constructor(letName: string, node: ts.Node) { method in LetDecl 51 constructor(constName: string, node: ts.Node) { method in ConstDecl 57 constructor(funcName: string, node: ts.Node) { method in FuncDecl 63 constructor(className: string, node: ts.Node) { method in ClassDecl 69 constructor(CpName: string, node: ts.Node) { method in CatchParameter 75 constructor(FpName: string, node: ts.Node) { method in FunctionParameter 93 constructor() { } method in Scope 386 constructor(node?: ts.SourceFile) { method in GlobalScope [all …]
|
| D | variable.ts | 39 constructor( method in Variable 119 constructor(declKind: VarDeclarationKind, name: string, status?: InitStatus) { method in LocalVariable 156 constructor(declKind: VarDeclarationKind, name: string) { method in GlobalVariable
|
| /ark/ts2abc/testTs/expect/declarationEmit/ |
| D | declarationEmitWorkWithInlineComments.txt | 1 …, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v'… 2 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'constructor'}, {'t': 2… 3 …, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v'… 4 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'constructor'}, {'t': 2… 5 …, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v'… 6 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'constructor'}, {'t': 2…
|
| /ark/ts2abc/testTs/expect/classes/constructorDeclarations/ |
| D | quotedConstructors.txt | 1 …, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v'… 2 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'constructor'}, {'t': 2… 4 …, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v'… 5 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'constructor'}, {'t': 2… 10 …, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v'… 11 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'constructor'}, {'t': 2…
|
| D | classConstructorParametersAccessibility3.txt | 1 …, {'tag': 2, 'value': 0}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'constructor'}, {'tag': 2, '… 2 …, {'tag': 2, 'value': 0}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'constructor'}, {'tag': 2, '… 3 …, {'tag': 2, 'value': 0}, {'tag': 2, 'value': 0}, {'tag': 5, 'value': 'constructor'}, {'tag': 2, '… 4 …, {'tag': 2, 'value': 0}, {'tag': 2, 'value': 0}, {'tag': 5, 'value': 'constructor'}, {'tag': 2, '…
|
| /ark/runtime_core/tests/verifier-tests/ |
| D | bug_1926.pa | 17 .function void A.constructor(A a0) <ctor> { 22 .function void B.constructor(B a0) <ctor> { 31 initobj.short B.constructor
|
| D | bug_2374.pa | 16 .function void A.constructor(A a0) <ctor> { 24 initobj.short A.constructor
|
| D | bug_1863.pa | 16 .function void A.constructor(A a0) <ctor> { 26 initobj.short A.constructor
|
| D | issue_1981.pa | 16 .function void A.constructor(A a0) <ctor> { 28 initobj.short A.constructor
|
| /ark/runtime_core/tests/cts-generator/cts-template/ |
| D | call.virt.short.negative.yaml | 22 .function void A.constructor(A a0) <ctor> { 29 .function void B.constructor(B a0) <ctor> { 262 initobj.short B.constructor 332 initobj A.constructor 465 initobj A.constructor 496 initobj A.constructor 541 initobj A.constructor 578 initobj A.constructor 607 initobj A.constructor 637 initobj A.constructor [all …]
|
| D | call.virt.negative.yaml | 22 .function void A.constructor(A a0) <ctor> { 29 .function void B.constructor(B a0) <ctor> { 285 initobj.short B.constructor 384 initobj A.constructor 518 initobj A.constructor 647 initobj A.constructor 794 initobj A.constructor 825 initobj A.constructor 870 initobj A.constructor 906 initobj A.constructor [all …]
|
| D | call.virt.range.negative.yaml | 22 .function void A.constructor(A a0) <ctor> { 29 .function void B.constructor(B a0) <ctor> { 290 initobj.short B.constructor 376 initobj A.constructor 510 initobj A.constructor 636 initobj A.constructor 787 initobj A.constructor 818 initobj A.constructor 863 initobj A.constructor 899 initobj A.constructor [all …]
|
| D | call.virt.range_base.yaml | 22 .function void A.constructor(A a0) <ctor> { 89 initobj.short A.constructor 156 initobj.short A.constructor 173 initobj.short A.constructor 228 initobj.short A.constructor 290 .function void R.constructor(R a0) <ctor> { 301 initobj.short R.constructor 575 initobj.short A.constructor 763 .function void B.constructor(B a0) <ctor> { 811 initobj B.constructor [all …]
|
| D | call.virt.short.yaml | 22 .function void A.constructor(A a0) <ctor> { 115 initobj.short A.constructor 206 initobj.short A.constructor 285 .function void R.constructor(R a0) <ctor> { 297 initobj.short R.constructor 512 initobj.short A.constructor 712 .function void B.constructor(B a0) <ctor> { 764 initobj B.constructor 801 .function void B.constructor(B a0) <ctor> { 808 initobj.short B.constructor [all …]
|
| /ark/ts2abc/testTs/expect/classes/members/instanceAndStaticMembers/ |
| D | typeOfThisInStaticMembers.txt | 1 …, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v'… 2 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'constructor'}, {'t': 2… 5 …, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v'… 6 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'constructor'}, {'t': 2…
|
| /ark/ts2abc/ts2panda/templates/ |
| D | irnodes.ts.erb | 290 constructor( 335 constructor( 356 constructor() { 379 constructor(value: number) { 393 constructor() { 406 constructor(scope: Scope) { 419 constructor(scope: Scope) { 446 constructor(<%= ctor_arg_list.join(", ")%>[]) { 459 constructor(<%= ctor_arg_list[0] %>, <%= ctor_arg_list[1] %>, <%= ctor_arg_list[2] %>[]) { 462 constructor(<%= ctor_args %>) {
|
| /ark/ts2abc/test262/ |
| D | es2015_tests.txt | 12 built-ins/Array/constructor.js 40 built-ins/Array/prototype/findIndex/not-a-constructor.js 97 built-ins/Array/prototype/slice/not-a-constructor.js 130 built-ins/Array/prototype/push/not-a-constructor.js 151 built-ins/Array/prototype/pop/not-a-constructor.js 349 built-ins/Array/prototype/reduce/not-a-constructor.js 441 built-ins/Array/prototype/copyWithin/not-a-constructor.js 466 built-ins/Array/prototype/reverse/not-a-constructor.js 476 built-ins/Array/prototype/entries/not-a-constructor.js 485 built-ins/Array/prototype/keys/not-a-constructor.js [all …]
|
| /ark/ts2abc/testTs/expect/parser/ecmascript5/ConstructorDeclarations/ |
| D | parserConstructorDeclaration1.txt | 1 …, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v'… 2 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'constructor'}, {'t': 2…
|
| /ark/ts2abc/testTs/expect/classes/constructorDeclarations/constructorParameters/ |
| D | declarationEmitReadonly.txt | 1 …, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'constructor'}, {'t': 2, 'v'… 2 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'constructor'}, {'t': 2…
|
| /ark/js_runtime/ecmascript/tests/ |
| D | js_function_test.cpp | 98 thread->GetEcmaVM()->GetFactory()->NewFromCanBeCompressString("constructor")); in HWTEST_F_L0() 102 JSTaggedValue constructor = in HWTEST_F_L0() local 104 EXPECT_EQ(constructor, funcHandle.GetTaggedValue()); in HWTEST_F_L0() 120 JSHandle<JSTaggedValue> constructor = globalEnv->GetObjectFunction(); in HWTEST_F_L0() local 121 EXPECT_TRUE(ecmascript::JSFunction::OrdinaryHasInstance(thread, constructor, obj)); in HWTEST_F_L0()
|
| /ark/js_runtime/test/moduletest/class/ |
| D | class.js | 17 constructor(x) { method in Parent 27 constructor(x, y) { method in Child
|