| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/utils/ |
| D | test_core_typedarray_methods.j2 | 109 typedArray[0] = {{.item.create}}(1); 110 typedArray[1] = {{.item.create}}(2); 111 typedArray[2] = {{.item.create}}(3); 112 typedArray[3] = {{.item.create}}(4); 113 typedArray[4] = {{.item.create}}(5); 166 {{.item.create}}(1), 167 {{.item.create}}(2), 168 {{.item.create}}(3), 169 {{.item.create}}(4), 170 {{.item.create}}(5)]; [all …]
|
| D | test_core_typeduarray_methods.j2 | 80 {{.item.objectType}}.of({{.item.create}}(1), {{.item.create}}(2)), 96 const isPositive = array.every((x: {{.item.type}}) => x > {{.item.create}}(0)) 99 const isNegative = array.every((x: {{.item.type}}) => x < {{.item.create}}(0)) 103 (x: {{.item.type}}, index: number) => x == {{.item.create}}(index + 1) 111 (x: {{.item.type}}, index: number) => x == {{.item.create}}(index) 121 return x + {{.item.create}}(index) == rhs 139 arr[index] = {{.item.create}}(0) 167 {{.item.objectType}}.of({{.item.create}}(1), {{.item.create}}(2)), 171 {{.item.objectType}}.of({{.item.create}}(0), {{.item.create}}(1)), 180 const hasPositivesSome = array.some((x: {{.item.type}}) => x > {{.item.create}}(0)) [all …]
|
| D | test_core_typeduarray_ctors.j2 | 24 failures += check(createDefault(),"Create default empty {{.item.objectType}}"); 25 …failures += check(createEmptyWithLength(),"Create default empty {{.item.objectType}} from length"); 26 …failures += check(createEmptyWithNaNLength(),"Create default empty {{.item.objectType}} with NaN l… 27 …failures += check(createNonEmptyWithLength(),"Create default non empty {{.item.objectType}} from l… 28 …failures += check(createNonEmptyWithFloatingLength(),"Create default non empty {{.item.objectType}… 29 …failures += check(createtypedUArrayWithNegativeLength(),"Create default non empty {{.item.objectTy… 30 …failures += check(createtypedUArrayWithNegativeInfinityLength(),"Create default non empty {{.item.… 31 …failures += check(createtypedUArrayWithPositiveInfinityLength(),"Create default non empty {{.item.… 32 …failures += check(createtypedUArrayWithNegativeNaNLength(),"Create empty {{.item.objectType}} with… 33 …failures += check(createtypedUArrayWithPositiveNaNLength(),"Create empty {{.item.objectType}} with… [all …]
|
| D | test_core_typeduarray_function2.j2 | 86 {{.item.create}}(10), 87 {{.item.create}}(20), 88 {{.item.create}}(30), 89 {{.item.create}}(40), 90 {{.item.create}}(50), 91 {{.item.create}}(60) 150 {{.item.create}}(10), 151 {{.item.create}}(20), 152 {{.item.create}}(30), 153 {{.item.create}}(40), [all …]
|
| D | test_core_typeduarray_slicing.j2 | 59 {{.item.create}}(10), 60 {{.item.create}}(20), 61 {{.item.create}}(30), 62 {{.item.create}}(40), 63 {{.item.create}}(50), 64 {{.item.create}}(60), 124 {{.item.create}}(10), 125 {{.item.create}}(20), 126 {{.item.create}}(30), 127 {{.item.create}}(40), [all …]
|
| D | test_core_typedarray_ctors.j2 | 23 failures += check(createDefault(),"Create default empty {{.item.objectType}}"); 24 …failures += check(createEmptyWithLength(),"Create default empty {{.item.objectType}} from length"); 25 …failures += check(createEmptyWithNaNLength(),"Create default empty {{.item.objectType}} with NaN l… 26 …failures += check(createNonEmptyWithLength(),"Create default non empty {{.item.objectType}} from l… 27 …failures += check(createTypedArrayWithNegativeLength(),"Create default non empty {{.item.objectTyp… 28 …failures += check(createTypedArrayWithNegativeInfinityLength(),"Create default non empty {{.item.o… 29 …failures += check(createTypedArrayWithPositiveInfinityLength(),"Create default non empty {{.item.o… 30 …failures += check(createTypedArrayWithPositiveNaNLength(),"Create empty {{.item.objectType}} with … 31 …failures += check(createTypedArrayWithNegativeNaNLength(),"Create empty {{.item.objectType}} with … 32 …failures += check(createNonEmptyWithFloatingLength(),"Create default non empty {{.item.objectType}… [all …]
|
| D | test_core_typedarray_function2.j2 | 535 typedArray[0] = {{.item.create}}(1); 536 typedArray[1] = {{.item.create}}(2); 537 typedArray[2] = {{.item.create}}(minValue); 538 typedArray[3] = {{.item.create}}(maxValue); 539 typedArray[4] = {{.item.create}}(-1); 548 if (typedArray[i] != {{.item.create}}(expectedArray[i])) { 587 const firstResult = [0 as number, {{.item.create}}(1)] as [number, {{.item.type}}] 588 const secondResult = [1 as number, {{.item.create}}(2)] as [number, {{.item.type}}] 589 const numbers = [{{.item.create}}(1), {{.item.create}}(2)] 593 let entry1res: [number, {{.item.type}}] = [entry1[0] as number, {{.item.create}}(entry1[1])] [all …]
|
| /arkcompiler/runtime_core/static_core/tests/irtoc-interpreter-tests/irtoc-tag/templates/ |
| D | template.erb | 17 <%if @create["func"]%> 22 <%if @create["type"]%>.record R {}<%end%> 23 <%if @create["const_arr"]%><%array = @create["const_arr"]%>.array array <%="#{array["type"]}"%> 4 {… 24 <%if @create["obj"] || @create["ctor"]%> 26 <%if @create["static"]%>i64 field0 <static><%end%> 30 <%if @create["static"]%>i64[] field4 <static><%end%> 32 <%if @create["static"]%> 55 <%if @create["virt"]%> 66 <%if @create["obj"]%> 71 <%if @create["virt"]%> [all …]
|
| /arkcompiler/toolchain/tooling/dynamic/test/ |
| D | debugger_params_test.cpp | 76 objectData = ContinueToLocationParams::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() 81 objectData = ContinueToLocationParams::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() 86 objectData = ContinueToLocationParams::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() 91 objectData = ContinueToLocationParams::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() 96 objectData = ContinueToLocationParams::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() 112 objectData = SetBreakpointsActiveParams::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() 117 objectData = SetBreakpointsActiveParams::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() 122 objectData = SetBreakpointsActiveParams::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() 127 objectData = SetBreakpointsActiveParams::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() 139 objectData = SetSkipAllPausesParams::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() [all …]
|
| D | pt_params_test.cpp | 57 std::unique_ptr<EnableParams> result = EnableParams::Create(*ptJson); in HWTEST_F_L0() 71 std::unique_ptr<EvaluateOnCallFrameParams> result = EvaluateOnCallFrameParams::Create(*ptJson); in HWTEST_F_L0() 84 …std::unique_ptr<GetPossibleBreakpointsParams> result = GetPossibleBreakpointsParams::Create(*ptJso… in HWTEST_F_L0() 88 …std::unique_ptr<GetPossibleBreakpointsParams> result1 = GetPossibleBreakpointsParams::Create(*ptJs… in HWTEST_F_L0() 98 std::unique_ptr<ResumeParams> result = ResumeParams::Create(*ptJson); in HWTEST_F_L0() 100 std::unique_ptr<ResumeParams> result1 = ResumeParams::Create(*ptJson1); in HWTEST_F_L0() 113 std::unique_ptr<SetBlackboxPatternsParams> result = SetBlackboxPatternsParams::Create(*ptJson); in HWTEST_F_L0() 130 std::unique_ptr<StepIntoParams> result = StepIntoParams::Create(*ptJson); in HWTEST_F_L0() 132 std::unique_ptr<StepIntoParams> result1 = StepIntoParams::Create(*ptJson1); in HWTEST_F_L0() 149 std::unique_ptr<StepOverParams> result = StepOverParams::Create(*ptJson); in HWTEST_F_L0() [all …]
|
| D | debugger_types_test.cpp | 76 remoteObject = RemoteObject::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() 81 remoteObject = RemoteObject::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() 86 remoteObject = RemoteObject::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() 91 remoteObject = RemoteObject::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() 96 remoteObject = RemoteObject::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() 101 remoteObject = RemoteObject::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() 106 remoteObject = RemoteObject::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() 113 remoteObject = RemoteObject::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() 119 remoteObject = RemoteObject::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() 125 remoteObject = RemoteObject::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0() [all …]
|
| /arkcompiler/runtime_core/compiler/tests/ |
| D | constructor_test.cpp | 36 // For this - need create additional Free-method for each of them. in ~ConstructorTest() 37 // Or create and destroy main MasmHolder user - encoder. in ~ConstructorTest() 39 // Also it is possible to create id for allocators or some another in ~ConstructorTest() 44 encoder = Encoder::Create(GetAllocator(), Arch::AARCH32, false); in ~ConstructorTest() 49 encoder = Encoder::Create(GetAllocator(), Arch::AARCH64, false); in ~ConstructorTest() 54 encoder = Encoder::Create(GetAllocator(), Arch::X86, false); in ~ConstructorTest() 61 encoder = Encoder::Create(GetAllocator(), Arch::X86_64, false); in ~ConstructorTest() 107 encoder = Encoder::Create(GetAllocator(), Arch::AARCH32, false); in TEST_F() 117 encoder = Encoder::Create(GetAllocator(), Arch::AARCH64, false); in TEST_F() 127 encoder = Encoder::Create(GetAllocator(), Arch::X86, false); in TEST_F() [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/tests/ |
| D | constructor_test.cpp | 38 // For this - need create additional Free-method for each of them. in ~ConstructorTest() 39 // Or create and destroy main MasmHolder user - encoder. in ~ConstructorTest() 41 // Also it is possible to create id for allocators or some another in ~ConstructorTest() 46 encoder = Encoder::Create(GetAllocator(), Arch::AARCH32, false); in ~ConstructorTest() 51 encoder = Encoder::Create(GetAllocator(), Arch::AARCH64, false); in ~ConstructorTest() 56 encoder = Encoder::Create(GetAllocator(), Arch::X86, false); in ~ConstructorTest() 63 encoder = Encoder::Create(GetAllocator(), Arch::X86_64, false); in ~ConstructorTest() 112 encoder = Encoder::Create(GetAllocator(), Arch::AARCH32, false); in TEST_F() 122 encoder = Encoder::Create(GetAllocator(), Arch::AARCH64, false); in TEST_F() 132 encoder = Encoder::Create(GetAllocator(), Arch::X86, false); in TEST_F() [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/grammar/namecache_removecomments/ |
| D | namecacheTest6_expected_cache.txt | 15 "LazyForEach#create#id": "r1", 16 "LazyForEach#create#component": "s1", 17 "LazyForEach#create#source": "t1", 18 "LazyForEach#create#itemGenFunction": "u1", 19 "LazyForEach#create#itemIdFunc": "v1", 28 "create:29:29": "create",
|
| /arkcompiler/toolchain/tooling/dynamic/base/ |
| D | pt_params.cpp | 19 std::unique_ptr<EnableParams> EnableParams::Create(const PtJson ¶ms) in Create() function in panda::ecmascript::tooling::EnableParams 50 LOG_DEBUGGER(ERROR) << "EnableParams::Create " << error; in Create() 57 std::unique_ptr<EvaluateOnCallFrameParams> EvaluateOnCallFrameParams::Create(const PtJson ¶ms) in Create() function in panda::ecmascript::tooling::EvaluateOnCallFrameParams 123 LOG_DEBUGGER(ERROR) << "EvaluateOnCallFrameParams::Create " << error; in Create() 129 std::unique_ptr<ContinueToLocationParams> ContinueToLocationParams::Create(const PtJson ¶ms) in Create() function in panda::ecmascript::tooling::ContinueToLocationParams 138 std::unique_ptr<Location> location = Location::Create(*position); in Create() 157 LOG_DEBUGGER(ERROR) << "ContinueToLocationParams::Create " << error; in Create() 165 std::unique_ptr<GetPossibleBreakpointsParams> GetPossibleBreakpointsParams::Create(const PtJson &pa… in Create() function in panda::ecmascript::tooling::GetPossibleBreakpointsParams 174 std::unique_ptr<Location> location = Location::Create(*start); in Create() 186 std::unique_ptr<Location> location = Location::Create(*end); in Create() [all …]
|
| D | pt_params.h | 41 static std::unique_ptr<ContinueToLocationParams> Create(const PtJson ¶ms); 65 static std::unique_ptr<EnableParams> Create(const PtJson ¶ms); 101 static std::unique_ptr<EvaluateOnCallFrameParams> Create(const PtJson ¶ms); 132 static std::unique_ptr<GetPossibleBreakpointsParams> Create(const PtJson ¶ms); 176 static std::unique_ptr<GetScriptSourceParams> Create(const PtJson ¶ms); 195 static std::unique_ptr<RemoveBreakpointParams> Create(const PtJson ¶ms); 214 static std::unique_ptr<RemoveBreakpointsByUrlParams> Create(const PtJson ¶ms); 238 static std::unique_ptr<ResumeParams> Create(const PtJson ¶ms); 262 static std::unique_ptr<SetAsyncCallStackDepthParams> Create(const PtJson ¶ms); 280 static std::unique_ptr<SetBlackboxPatternsParams> Create(const PtJson ¶ms); [all …]
|
| /arkcompiler/ets_runtime/test/aottest/builtin_inlining/object/Object/ |
| D | builtinObjectObject.ts | 31 let proto = {name: "create"}; 32 //aot: [trace] aot inline builtin: Object.create, caller function name:func_main_0@builtinObjectObj… 33 print(Object.create(proto).name); //: create 34 //aot: [trace] aot call builtin: Object.create, caller function name:func_main_0@builtinObjectObject 35 print(Object.create(proto, { 37 value: "new create", 42 }).name); //: new create 44 …//aot: [trace] aot inline builtin: Object.create, caller function name:func_main_0@builtinObjectOb… 45 Object.create(undefined);
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/std/core/ |
| D | list.std_core_typedarrays_instance.yaml | 20 create: "", 31 create: "", 41 create: "", 52 create: "new BigInt", 63 create: "", 74 create: "", 85 create: "",
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/ |
| D | TextDecoderTest.ets | 43 let textDecoder = util.TextDecoder.create('utf-8', {ignoreBOM:true}); 52 let textDecoder = util.TextDecoder.create('utf-8', {ignoreBOM:false}); 62 let textDecoder = util.TextDecoder.create('utf-8', {ignoreBOM:false}); 72 let textDecoder = util.TextDecoder.create('utf-8', {ignoreBOM:true}); 82 let textDecoder = util.TextDecoder.create('utf-8', {ignoreBOM:false}); 95 let textDecoder = util.TextDecoder.create('utf-8', {ignoreBOM:false}); 104 let textDecode = util.TextDecoder.create('utf-8'); 117 let textDecode = util.TextDecoder.create('utf-8', textDecoderOptions); 128 let textDecode = util.TextDecoder.create(undefined, textDecoderOptions); 139 let textDecode = util.TextDecoder.create(undefined, textDecoderOptions); [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/02.fixed_array_types/ |
| D | fixed_array_types_ext.params.yaml | 34 - desc: Create a one-dimensional fixed array with the data type number. 40 - desc: Create a one-dimensional fixed array with the data type string. 46 - desc: Create a 2D fixed array with the data type number. 51 - desc: Create a 2D fixed array with the data type string. 80 - desc: Create a one-dimensional fixed array with the data type int. 86 - desc: Create a one-dimensional fixed array with the data type boolean. 92 - desc: Create a one-dimensional fixed array with the data type short. 98 - desc: Create a one-dimensional fixed array with the data type byte. 104 - desc: Create a one-dimensional fixed array with the data type long. 110 - desc: Create a one-dimensional fixed array with the data type float. [all …]
|
| /arkcompiler/runtime_core/static_core/assembler/ |
| D | annotation.cpp | 26 …copyVal = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U1>(scVal.GetValue<uint8_… in InitScalarValue() 30 …copyVal = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U8>(scVal.GetValue<uint8_… in InitScalarValue() 34 …copyVal = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U16>(scVal.GetValue<uint1… in InitScalarValue() 38 …copyVal = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U32>(scVal.GetValue<uint3… in InitScalarValue() 42 …copyVal = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U64>(scVal.GetValue<uint6… in InitScalarValue() 46 …copyVal = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::I8>(scVal.GetValue<int8_t… in InitScalarValue() 50 …copyVal = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::I16>(scVal.GetValue<int16… in InitScalarValue() 54 …copyVal = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::I32>(scVal.GetValue<int32… in InitScalarValue() 58 …copyVal = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::I64>(scVal.GetValue<int64… in InitScalarValue() 62 …copyVal = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::F32>(scVal.GetValue<float… in InitScalarValue() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | tagged_dictionary_test.cpp | 36 …* @tc.desc: Call "NameDictionary::Create" function Create a name dictionary.then, check whether th… 44 JSHandle<NameDictionary> nameDict = NameDictionary::Create(thread, numOfElement); in HWTEST_F_L0() 50 …* @tc.desc: Create a name dictionary, set a key value pair to the dictionary.The key is a string t… 61 JSHandle<NameDictionary> dictJShandle(NameDictionary::Create(thread, numOfElement)); in HWTEST_F_L0() 66 // create key and values in HWTEST_F_L0() 99 …* @tc.desc: Create a name dictionary, set a key value pair to the dictionary.The key is a string t… 108 JSHandle<NameDictionary> dictHandle(NameDictionary::Create(thread, numOfElement)); in HWTEST_F_L0() 110 // create key and values in HWTEST_F_L0() 130 …* @tc.desc: Create a name dictionary, set a key value pair to the dictionary.The key is a string t… 139 … JSMutableHandle<NameDictionary> dictHandle(thread, NameDictionary::Create(thread, numOfElement)); in HWTEST_F_L0() [all …]
|
| D | template_map_test.cpp | 29 …* @tc.desc: Create a TemplateMap through calling Create function with numberOfElements. Check whet… 43 JSHandle<TemplateMap> templateMap = TemplateMap::Create(thread, numElementsTempMap); in HWTEST_F_L0() 58 …* @tc.desc: Create a TemplateMap, call Insert function with the TemplateMap, a key(JSArray) and a … 68 JSHandle<TemplateMap> templateMap = TemplateMap::Create(thread); in HWTEST_F_L0() 96 …* @tc.desc: Create a TemplateMap, let it call IncreaseEntries function, check whether the value re… 105 JSHandle<TemplateMap> templateMap = TemplateMap::Create(thread); in HWTEST_F_L0() 114 …* @tc.desc: Create a TemplateMap, let it call IncreaseEntries function and IncreaseHoleEntriesCoun… 124 JSHandle<TemplateMap> templateMap = TemplateMap::Create(thread); in HWTEST_F_L0() 144 JSHandle<TemplateMap> templateMap = TemplateMap::Create(thread); in HWTEST_F_L0() 159 …* @tc.desc: Create a source TemplateMap, change it through calling IncreaseEntries/IncreaseHoleEnt… [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/types/ |
| D | ets_object_test.cpp | 48 Runtime::Create(options_); in EtsObjectTest() 150 obj = EtsObject::Create(klass); in TEST_F() 159 EtsObject *obj = EtsObject::Create(klass1); in TEST_F() 169 EtsObject *obj1 = EtsObject::Create(klass1); in TEST_F() 170 EtsObject *obj2 = EtsObject::Create(klass2); in TEST_F() 183 EtsObject *barObj = EtsObject::Create(barKlass); in TEST_F() 184 EtsObject *fooObj1 = EtsObject::Create(fooKlass); in TEST_F() 185 EtsObject *fooObj2 = EtsObject::Create(fooKlass); in TEST_F() 209 EtsObject *barObj = EtsObject::Create(barKlass); in TEST_F() 210 EtsObject *fooObj1 = EtsObject::Create(fooKlass); in TEST_F() [all …]
|
| /arkcompiler/runtime_core/assembler/ |
| D | annotation.cpp | 25 …copy_val = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U1>(sc_val.GetValue<uint… in InitScalarValue() 29 …copy_val = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U8>(sc_val.GetValue<uint… in InitScalarValue() 34 … std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U16>(sc_val.GetValue<uint16_t>())); in InitScalarValue() 39 … std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U32>(sc_val.GetValue<uint32_t>())); in InitScalarValue() 44 … std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U64>(sc_val.GetValue<uint64_t>())); in InitScalarValue() 48 …copy_val = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::I8>(sc_val.GetValue<int8… in InitScalarValue() 52 …copy_val = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::I16>(sc_val.GetValue<int… in InitScalarValue() 56 …copy_val = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::I32>(sc_val.GetValue<int… in InitScalarValue() 60 …copy_val = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::I64>(sc_val.GetValue<int… in InitScalarValue() 64 …copy_val = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::F32>(sc_val.GetValue<flo… in InitScalarValue() [all …]
|