Home
last modified time | relevance | path

Searched full:create (Results 1 – 25 of 403) sorted by relevance

12345678910>>...17

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DobjectCreate.ts27 let n = Object.create(null); // object
29 AssertType(Object.create(null), "any");
30 AssertType(Object.create, "{ (union): any; (union, PropertyDescriptorMap & ThisType<any>): any; }");
33 let t = Object.create({ a: 1, b: "" }); // {a: number, b: string
36 AssertType(Object.create({ a: 1, b: "" }), "any");
38 AssertType(Object.create, "{ (union): any; (union, PropertyDescriptorMap & ThisType<any>): any; }");
51 let u = Object.create(union); // object | {a: number, b: string
54 AssertType(Object.create(union), "any");
56 AssertType(Object.create, "{ (union): any; (union, PropertyDescriptorMap & ThisType<any>): any; }");
61 let e = Object.create({}); // {
[all …]
DobjectCreate2.ts27 let n = Object.create(null); // any
29 AssertType(Object.create(null), "any");
30 AssertType(Object.create, "{ (object): any; (object, PropertyDescriptorMap & ThisType<any>): any; }…
33 let t = Object.create({ a: 1, b: "" }); // {a: number, b: string
36 AssertType(Object.create({ a: 1, b: "" }), "any");
38 AssertType(Object.create, "{ (object): any; (object, PropertyDescriptorMap & ThisType<any>): any; }…
51 let u = Object.create(union); // {a: number, b: string
54 AssertType(Object.create(union), "any");
56 AssertType(Object.create, "{ (object): any; (object, PropertyDescriptorMap & ThisType<any>): any; }…
61 let e = Object.create({}); // {
[all …]
DjsDeclarationsExportDoubleAssignmentInClosure.ts25 AssertType(exports = function (o) { return (o == null) ? create(base) : defineProperties(Obj…
27 AssertType(function (o) { return (o == null) ? create(base) : defineProperties(Object(o), de…
29 AssertType(module.exports = exports = function (o) { return (o == null) ? create(base) : def…
31 AssertType((o == null) ? create(base) : defineProperties(Object(o), descriptors), "any");
36 AssertType(create(base), "error");
37 AssertType(create, "error");
45 return (o == null) ? create(base) : defineProperties(Object(o), descriptors);
DstaticFactory1.ts27 static create() {
40 let d = Derived.create();
42 AssertType(Derived.create(), "Base");
43 AssertType(Derived.create, "() => Base");
DtypeQueryWithReservedWords.ts23 create() {
32 create: typeof Controller.prototype.create; property
/arkcompiler/toolchain/tooling/test/
Ddebugger_params_test.cpp76 enableParams = EnableParams::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0()
82 enableParams = EnableParams::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0()
94 startSamplingData = StartSamplingParams::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0()
100 startSamplingData = StartSamplingParams::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0()
106 startSamplingData = StartSamplingParams::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0()
111 startSamplingData = StartSamplingParams::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0()
116 startSamplingData = StartSamplingParams::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0()
128 objectData = StartTrackingHeapObjectsParams::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0()
134 objectData = StartTrackingHeapObjectsParams::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0()
140 objectData = StartTrackingHeapObjectsParams::Create(DispatchRequest(msg).GetParams()); in HWTEST_F_L0()
[all …]
Dpt_params_test.cpp57 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 …]
Ddebugger_types_test.cpp76 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 …]
Dpt_types_test.cpp328 std::unique_ptr<TraceConfig> traceConfig = TraceConfig::Create(*ptJson); in HWTEST_F_L0()
337 std::unique_ptr<TraceConfig> traceConfig1 = TraceConfig::Create(*ptJson1); in HWTEST_F_L0()
340 std::unique_ptr<TraceConfig> traceConfig2 = TraceConfig::Create(*ptJson2); in HWTEST_F_L0()
345 std::unique_ptr<TraceConfig> traceConfig3 = TraceConfig::Create(*ptJson3); in HWTEST_F_L0()
357 std::unique_ptr<ScriptTypeProfile> profile = ScriptTypeProfile::Create(*ptJson); in HWTEST_F_L0()
369 std::unique_ptr<TypeProfileEntry> entry = TypeProfileEntry::Create(*ptJson); in HWTEST_F_L0()
381 std::unique_ptr<ScriptCoverage> coverage = ScriptCoverage::Create(*ptJson); in HWTEST_F_L0()
393 std::unique_ptr<FunctionCoverage> coverage = FunctionCoverage::Create(*ptJson); in HWTEST_F_L0()
426 std::unique_ptr<PrivatePropertyDescriptor> result = PrivatePropertyDescriptor::Create(*ptJson); in HWTEST_F_L0()
430 result = PrivatePropertyDescriptor::Create(*ptJson); in HWTEST_F_L0()
[all …]
/arkcompiler/runtime_core/compiler/tests/
Dconstructor_test.cpp36 // 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 …]
Dlife_intervals_test.cpp24 LifeIntervals *Create(std::initializer_list<std::pair<LifeNumber, LifeNumber>> lns) in Create() function in panda::compiler::LifeIntervalsTest
71 auto interval = Create({{0, 4}}); in TEST_F()
81 auto interval = Create({{0, 4}, {8, 10}}); in TEST_F()
91 auto interval = Create({{0, 10}}); in TEST_F()
101 auto interval = Create({{0, 4}, {6, 10}, {12, 20}}); in TEST_F()
111 auto interval = Create({{0, 100}}); in TEST_F()
125 auto interval = Create({{0, 20}, {22, 40}, {42, 100}}); in TEST_F()
140 auto interval = Create({{0, 20}, {22, 40}, {42, 100}}); in TEST_F()
153 auto interval = Create({{6, 10}}); in TEST_F()
238 auto interval = Create({{10, 100}}); in TEST_F()
/arkcompiler/toolchain/tooling/base/
Dpt_params.cpp19 std::unique_ptr<EnableParams> EnableParams::Create(const PtJson &params) in Create() function in panda::ecmascript::tooling::EnableParams
34 LOG_DEBUGGER(ERROR) << "EnableParams::Create " << error; in Create()
41 std::unique_ptr<EvaluateOnCallFrameParams> EvaluateOnCallFrameParams::Create(const PtJson &params) in Create() function in panda::ecmascript::tooling::EvaluateOnCallFrameParams
105 LOG_DEBUGGER(ERROR) << "EvaluateOnCallFrameParams::Create " << error; in Create()
111 std::unique_ptr<GetPossibleBreakpointsParams> GetPossibleBreakpointsParams::Create(const PtJson &pa… in Create() function in panda::ecmascript::tooling::GetPossibleBreakpointsParams
120 std::unique_ptr<Location> location = Location::Create(*start); in Create()
132 std::unique_ptr<Location> location = Location::Create(*end); in Create()
150 LOG_DEBUGGER(ERROR) << "GetPossibleBreakpointsParams::Create " << error; in Create()
157 std::unique_ptr<GetScriptSourceParams> GetScriptSourceParams::Create(const PtJson &params) in Create() function in panda::ecmascript::tooling::GetScriptSourceParams
172 LOG_DEBUGGER(ERROR) << "GetScriptSourceParams::Create " << error; in Create()
[all …]
Dpt_params.h41 static std::unique_ptr<EnableParams> Create(const PtJson &params);
65 static std::unique_ptr<EvaluateOnCallFrameParams> Create(const PtJson &params);
96 static std::unique_ptr<GetPossibleBreakpointsParams> Create(const PtJson &params);
140 static std::unique_ptr<GetScriptSourceParams> Create(const PtJson &params);
159 static std::unique_ptr<RemoveBreakpointParams> Create(const PtJson &params);
178 static std::unique_ptr<ResumeParams> Create(const PtJson &params);
202 static std::unique_ptr<SetAsyncCallStackDepthParams> Create(const PtJson &params);
220 static std::unique_ptr<SetBlackboxPatternsParams> Create(const PtJson &params);
239 static std::unique_ptr<SetBreakpointByUrlParams> Create(const PtJson &params);
316 static std::unique_ptr<GetPossibleAndSetBreakpointParams> Create(const PtJson &params);
[all …]
/arkcompiler/ets_runtime/ecmascript/tests/
Dtagged_dictionary_test.cpp60 …* @tc.desc: Call "NameDictionary::Create" function Create a name dictionary.then, check whether th…
68 JSHandle<NameDictionary> nameDict = NameDictionary::Create(thread, numOfElement); in HWTEST_F_L0()
74 …* @tc.desc: Create a name dictionary, set a key value pair to the dictionary.The key is a string t…
85 JSHandle<NameDictionary> dictJShandle(NameDictionary::Create(thread, numOfElement)); in HWTEST_F_L0()
90 // create key and values in HWTEST_F_L0()
123 …* @tc.desc: Create a name dictionary, set a key value pair to the dictionary.The key is a string t…
132 JSHandle<NameDictionary> dictHandle(NameDictionary::Create(thread, numOfElement)); in HWTEST_F_L0()
134 // create key and values in HWTEST_F_L0()
154 …* @tc.desc: Create a name dictionary, set a key value pair to the dictionary.The key is a string t…
163 … JSMutableHandle<NameDictionary> dictHandle(thread, NameDictionary::Create(thread, numOfElement)); in HWTEST_F_L0()
[all …]
Dtemplate_map_test.cpp53 …* @tc.desc: Create a TemplateMap through calling Create function with numberOfElements. Check whet…
67 JSHandle<TemplateMap> templateMap = TemplateMap::Create(thread, numElementsTempMap); in HWTEST_F_L0()
82 …* @tc.desc: Create a TemplateMap, call Insert function with the TemplateMap, a key(JSArray) and a …
92 JSHandle<TemplateMap> templateMap = TemplateMap::Create(thread); in HWTEST_F_L0()
120 …* @tc.desc: Create a TemplateMap, let it call IncreaseEntries function, check whether the value re…
129 JSHandle<TemplateMap> templateMap = TemplateMap::Create(thread); in HWTEST_F_L0()
138 …* @tc.desc: Create a TemplateMap, let it call IncreaseEntries function and IncreaseHoleEntriesCoun…
148 JSHandle<TemplateMap> templateMap = TemplateMap::Create(thread); in HWTEST_F_L0()
168 JSHandle<TemplateMap> templateMap = TemplateMap::Create(thread); in HWTEST_F_L0()
183 …* @tc.desc: Create a source TemplateMap, change it through calling IncreaseEntries/IncreaseHoleEnt…
[all …]
Dtagged_hash_array_test.cpp65 …* @tc.desc: Call "TaggedHashArray::Create" function Create TaggedHashArray object, check whether t…
73 … JSHandle<TaggedHashArray> taggedHashArray(thread, TaggedHashArray::Create(thread, numOfElement)); in HWTEST_F_L0()
84 …* @tc.desc: Call "NewLinkedNode" function Create LinkedNode object, check whether the object is cr…
105 …* @tc.desc: Call "NewTreeNode" function Create LinkedNode object, check whether the object is crea…
125 …* @tc.desc: Call "Create" function Create TaggedHashArray object and "SetVal" function to add a ke…
137 … JSHandle<TaggedHashArray> taggedHashArray(thread, TaggedHashArray::Create(thread, numOfElement)); in HWTEST_F_L0()
170 …* @tc.desc: Call "Create" function Create TaggedHashArray object and "SetVal" function to add a ke…
182 … JSHandle<TaggedHashArray> taggedHashArray(thread, TaggedHashArray::Create(thread, numOfElement)); in HWTEST_F_L0()
220 …* @tc.desc: Call "Create" function Create TaggedHashArray object and "SetVal" function to add a ke…
230 … JSHandle<TaggedHashArray> taggedHashArray(thread, TaggedHashArray::Create(thread, numOfElement)); in HWTEST_F_L0()
[all …]
Dweak_vector_test.cpp52 * @tc.name: Create
53 …* @tc.desc: Check whether the returned value through "Create" function is within expectations by "…
59 HWTEST_F_L0(WeakVectorTest, Create) in HWTEST_F_L0() argument
62 JSHandle<WeakVector> weakVector = WeakVector::Create(thread, weakVectorCapacity); in HWTEST_F_L0()
82 JSHandle<WeakVector> weakVector = WeakVector::Create(thread, weakVectorCapacity); in HWTEST_F_L0()
96 …* @tc.desc: Create a weak vector with a certain length through the "Create" function, and then exp…
114 JSHandle<WeakVector> oldWeakVector = WeakVector::Create(thread, oldWeakVectorCapacity); in HWTEST_F_L0()
147 JSHandle<WeakVector> weakVector = WeakVector::Create(thread, weakVectorCapacity); in HWTEST_F_L0()
183 JSHandle<WeakVector> weakVector = WeakVector::Create(thread, weakVectorCapacity); in HWTEST_F_L0()
Dglobal_dictionary_test.cpp112 // create GlobalDictionary in HWTEST_F_L0()
113 JSHandle<GlobalDictionary> handleDict = GlobalDictionary::Create(thread, 4); in HWTEST_F_L0()
137 // create GlobalDictionary in HWTEST_F_L0()
139 JSHandle<GlobalDictionary> handleDict = GlobalDictionary::Create(thread, numberofElements); in HWTEST_F_L0()
150 * @tc.desc: Create dictionary and set entry calling SetEntry function,Check whether Attributes is
157 // create GlobalDictionary in HWTEST_F_L0()
159 JSHandle<GlobalDictionary> handleDict = GlobalDictionary::Create(thread, numberofElements); in HWTEST_F_L0()
183 // create GlobalDictionary in HWTEST_F_L0()
185 JSHandle<GlobalDictionary> handleDict = GlobalDictionary::Create(thread, numberofElements); in HWTEST_F_L0()
219 // create GlobalDictionary in HWTEST_F_L0()
[all …]
/arkcompiler/runtime_core/assembler/
Dannotation.cpp25 …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 …]
/arkcompiler/ets_runtime/ecmascript/ic/tests/
Dproto_change_details_test.cpp100 JSHandle<WeakVector> weakVector = WeakVector::Create(thread, weakVectorCapacity); in HWTEST_F_L0()
127 …* @tc.desc: Create a weakvector object with a length of ten,Call the "pushback" function to set th…
129 … "add" function to add a jshclass object. The added jshclass object will create and get weakref and
143 JSHandle<WeakVector> weakVector = WeakVector::Create(thread, weakVectorCapacity); in HWTEST_F_L0()
158 …* @tc.desc: Create a weakvector object with a length of ten,Call the "pushback" function to set th…
160 …is case call the "add" function to add a jshclass object. The added jshclass object will create and
174 JSHandle<WeakVector> weakVector = WeakVector::Create(thread, weakVectorCapacity); in HWTEST_F_L0()
191 …* @tc.desc: Create a weakvector object with a length of ten,Call the "pushback" function to set th…
194 …* jshclass object will create and get weakref and return the location of the added objec…
207 JSHandle<WeakVector> weakVector = WeakVector::Create(thread, weakVectorCapacity); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_frontend/merge_abc/src/
DannotationProto.cpp178 … return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::U1>(static_cast<uint8_t>( in CreateScalarValue()
182 … return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::U8>(static_cast<uint8_t>( in CreateScalarValue()
186 …return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::U16>(static_cast<uint16_t>( in CreateScalarValue()
190 return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::STRING_NULLPTR>( in CreateScalarValue()
194 …return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::U32>(static_cast<uint32_t>( in CreateScalarValue()
198 …return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::U64>(static_cast<uint64_t>( in CreateScalarValue()
202 … return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::I8>(static_cast<int8_t>( in CreateScalarValue()
206 … return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::I16>(static_cast<int16_t>( in CreateScalarValue()
210 … return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::I32>(static_cast<int32_t>( in CreateScalarValue()
214 … return panda::pandasm::ScalarValue::Create<panda::pandasm::Value::Type::I64>(static_cast<int64_t>( in CreateScalarValue()
[all …]
/arkcompiler/runtime_core/compiler/docs/
Dir_builder.md22 … `0` and it is used in instruction that expects object(f.e. `mov.obj`), we need to create a special
45 2. Create try catch blocks.
51 2. If basic block is a loop header, create SafePoint and OsrSaveState instructions.
52 3. Create phi instructions for the live registers.
55 - create auxiliary instructions (SaveState, NullCheck, etc) if needed
129 // Create IR instruction.
133 …diate from the bytecode and try to find if it is already exists in the IR, if not - create new one.
/arkcompiler/runtime_core/libpandabase/utils/
Dhash_base.h31 * \brief Create 32 bits Hash from \param key via \param seed.
42 * \brief Create 32 bits Hash from \param key.
52 * \brief Create 32 bits Hash from MUTF8 \param string.
61 * \brief Create 32 bits Hash from MUTF8 \param string.
Dhash.h28 // NOTE: To create different seed for your purposes,
29 // one must define it here and create new alias hash class
36 * \brief Create 32 bits Hash from \param key via \param seed.
48 * \brief Create 32 bits Hash from \param key.
59 * \brief Create 32 bits Hash from MUTF8 \param string.
69 * \brief Create 32 bits Hash from MUTF8 \param string.
/arkcompiler/runtime_core/assembler/tests/
Dannotation_test.cpp40 ScalarValue insn_order(ScalarValue::Create<panda::pandasm::Value::Type::I32>(1));
57 ScalarValue insn_order1(ScalarValue::Create<panda::pandasm::Value::Type::U1>(1U));
449 ScalarValue insn_order(ScalarValue::Create<panda::pandasm::Value::Type::I32>(1));
453 ScalarValue insn_order_u8(ScalarValue::Create<panda::pandasm::Value::Type::U8>(1U));
457 ScalarValue insn_order_u16(ScalarValue::Create<panda::pandasm::Value::Type::U16>(1U));
461 ScalarValue insn_order_u32(ScalarValue::Create<panda::pandasm::Value::Type::U32>(1U));
465 ScalarValue insn_order_u64(ScalarValue::Create<panda::pandasm::Value::Type::U64>(1U));
469 ScalarValue insn_order_i8(ScalarValue::Create<panda::pandasm::Value::Type::I8>(1));
473 ScalarValue insn_order_i16(ScalarValue::Create<panda::pandasm::Value::Type::I16>(1));
477 ScalarValue insn_order_i64(ScalarValue::Create<panda::pandasm::Value::Type::I64>(1));
[all …]

12345678910>>...17