Home
last modified time | relevance | path

Searched refs:newObj (Results 1 - 25 of 29) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/tests/
H A Dhuge_object_test.cpp50 JSHandle<JSObject> newObj(thread, EcmaContainerCommon::JSObjectTestCreate(thread)); in HWTEST_F_L0()
51 arrayHandle->Set(thread, 0, newObj.GetTaggedValue()); in HWTEST_F_L0()
56 EXPECT_EQ(*newObj, array->Get(0).GetTaggedObject()); in HWTEST_F_L0()
H A Dobject_factory_test.cpp50 JSHandle<JSObject> newObj = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), objFun); in HWTEST_F_L0() local
51 JSHandle<JSHClass> newObjCls(thread, newObj->GetJSHClass()); in HWTEST_F_L0()
52 EXPECT_TRUE(*newObj != nullptr); in HWTEST_F_L0()
56 EXPECT_EQ(newObj->GetProperties(), thread->GlobalConstants()->GetEmptyArray()); in HWTEST_F_L0()
57 EXPECT_EQ(newObj->GetElements(), thread->GlobalConstants()->GetEmptyArray()); in HWTEST_F_L0()
58 EXPECT_TRUE(JSTaggedValue(*newObj).IsECMAObject()); in HWTEST_F_L0()
H A Dweak_ref_old_gc_test.cpp36 JSHandle<JSObject> newObj = in JSObjectTestCreate() local
38 return *newObj; in JSObjectTestCreate()
H A Decma_container_common.h64 JSHandle<JSObject> newObj = in JSObjectTestCreate() local
66 return *newObj; in JSObjectTestCreate()
/arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/
H A Dg1-evacuate-regions-worker-state-inl.h83 auto *newObj = static_cast<ObjectHeader *>(dst); in Evacuate() local
87 auto *forwardAddr = SetForwardAddress(obj, newObj, markWord); in Evacuate()
92 GetGC(), newObj, &evacuationObjectPointerHandler_); in Evacuate() local
106 return newObj; in Evacuate()
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
H A Dtry_catch_resolving.cpp151 Inst *newObj, Inst *thr0w) in ConnectThrowCatchImpl()
160 phiInst = GetGraph()->CreateInstPhi(newObj->GetType(), catchPc); in ConnectThrowCatchImpl()
166 phiInst->AppendInput(newObj); in ConnectThrowCatchImpl()
188 auto newObj = thr0w->GetInput(0).GetInst(); in ConnectThrowCatch() local
190 if (newObj->GetOpcode() != Opcode::NewObject) { in ConnectThrowCatch()
193 auto initClass = newObj->GetInput(0).GetInst(); in ConnectThrowCatch()
211 ConnectThrowCatchImpl(cit->second, throwBlock, catchPc, newObj, thr0w); in ConnectThrowCatch()
150 ConnectThrowCatchImpl(BasicBlock *catchBlock, BasicBlock *throwBlock, uint32_t catchPc, Inst *newObj, Inst *thr0w) ConnectThrowCatchImpl() argument
H A Dtry_catch_resolving.h53 void ConnectThrowCatchImpl(BasicBlock *catchBlock, BasicBlock *throwBlock, uint32_t catchPc, Inst *newObj,
/arkcompiler/runtime_core/static_core/plugins/ets/compiler/optimizer/ir_builder/
H A Dets_inst_builder.cpp40 auto newObj = CreateNewObjectInst(pc, TypeIdMixin::MEM_PROMISE_CLASS_ID, saveState, inst); in BuildLaunch() local
41 AddInstruction(saveState, inst, newObj); in BuildLaunch()
42 BuildCallHelper<OPCODE, IS_RANGE, ACC_READ>(bcInst, this, newObj); in BuildLaunch()
43 UpdateDefinitionAcc(newObj); in BuildLaunch()
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dprofiler_operation.h107 inline void ProfileCreateObject(GateRef newObj) const in ProfileCreateObject()
110 callback_({ newObj }, OperationType::CREATE_OBJECT); in ProfileCreateObject()
H A Dcircuit_builder.cpp1125 GateRef newObj = newBuilder.NewJSObject(glue, protoOrHclass); in NewJSPrimitiveRef() local
1127 Store(VariableType::JS_ANY(), glue, newObj, valueOffset, obj); in NewJSPrimitiveRef() local
1128 return newObj; in NewJSPrimitiveRef()
1338 GateRef newObj = newBuilder.NewJSObject(glue, newClass); in OrdinaryNewJSObjectCreate() local
1341 BRANCH_CIR2(TaggedIsException(newObj), &exceptionNewObj, &noexceptionNewObj); in OrdinaryNewJSObjectCreate()
1349 SetExtensibleToBitfield(glue, newObj, True()); in OrdinaryNewJSObjectCreate()
1350 result = newObj; in OrdinaryNewJSObjectCreate()
H A Dprofiler_stub_builder.h109 GateRef glue, SlotIDInfo slotInfo, GateRef func, GateRef newObj, GateRef profileTypeInfo);
H A Dtyped_hcr_lowering.cpp3333 GateRef newObj = builder_.HeapAlloc(glue, objSize, GateType::TaggedValue(), RegionSpaceFlag::IN_YOUNG_SPACE); in LowerTypedCreateObjWithBuffer() local
3334 builder_.StoreConstOffset(VariableType::JS_POINTER(), newObj, JSObject::HCLASS_OFFSET, hclass, in LowerTypedCreateObjWithBuffer() local
3336 builder_.StoreConstOffset(VariableType::INT64(), newObj, in LowerTypedCreateObjWithBuffer() local
3338 builder_.StoreConstOffset(VariableType::INT64(), newObj, JSObject::PROPERTIES_OFFSET, emptyArray); in LowerTypedCreateObjWithBuffer() local
3339 builder_.StoreConstOffset(VariableType::INT64(), newObj, JSObject::ELEMENTS_OFFSET, emptyArray); in LowerTypedCreateObjWithBuffer() local
3342 builder_.StoreConstOffset(VariableType::INT64(), newObj, in LowerTypedCreateObjWithBuffer() local
3346 ret = builder_.FinishAllocate(newObj); in LowerTypedCreateObjWithBuffer()
3369 Label newObj(&builder_); in LowerStringFromSingleCharCode()
3386 builder_.Jump(&newObj); in LowerStringFromSingleCharCode()
3392 builder_.Jump(&newObj); in LowerStringFromSingleCharCode()
[all...]
H A Dprofiler_stub_builder.cpp177 GateRef glue, SlotIDInfo slotInfo, GateRef func, GateRef newObj, GateRef profileTypeInfo) in ProfileCreateObject()
198 auto hclass = LoadHClass(newObj); in ProfileCreateObject()
176 ProfileCreateObject( GateRef glue, SlotIDInfo slotInfo, GateRef func, GateRef newObj, GateRef profileTypeInfo) ProfileCreateObject() argument
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/
H A Dsnapshot_processor.cpp1164 uintptr_t newObj = 0; in AllocateObjectToLocalSpace() local
1166 newObj = reinterpret_cast<HugeObjectSpace *>(space)->Allocate(objectSize, vm_->GetAssociatedJSThread()); in AllocateObjectToLocalSpace()
1168 newObj = reinterpret_cast<SnapshotSpace *>(space)->Allocate(objectSize); in AllocateObjectToLocalSpace()
1170 newObj = reinterpret_cast<LocalSpace *>(space)->Allocate(objectSize); in AllocateObjectToLocalSpace()
1173 if (newObj == current->GetBegin()) { in AllocateObjectToLocalSpace()
1183 return newObj; in AllocateObjectToLocalSpace()
1338 uintptr_t newObj = 0; in DeserializeString() local
1340 newObj = hugeSpace->Allocate(thread, strSize); in DeserializeString()
1342 newObj = sHeap_->GetOldSpace()->TryAllocateAndExpand(thread, strSize, true); in DeserializeString()
1344 if (newObj in DeserializeString()
1857 uintptr_t newObj = GetNewObj(objectSize, objectHeader); EncodeTaggedObject() local
[all...]
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/
H A Dcodegen.cpp1168 void Codegen::CreateNewObjCall(NewObjectInst *newObj) in CreateNewObjCall() argument
1170 auto dst = ConvertRegister(newObj->GetDstReg(), newObj->GetType()); in CreateNewObjCall()
1171 auto src = ConvertRegister(newObj->GetSrcReg(0), newObj->GetInputType(0)); in CreateNewObjCall()
1172 auto initClass = newObj->GetInput(0).GetInst(); in CreateNewObjCall()
1173 auto srcClass = ConvertRegister(newObj->GetSrcReg(0), DataType::POINTER); in CreateNewObjCall()
1179 CallRuntime(newObj, EntrypointId::CREATE_OBJECT_BY_CLASS, dst, RegMask::GetZeroMask(), src); in CreateNewObjCall()
1190 CallRuntime(newObj, EntrypointId::CREATE_OBJECT_BY_CLASS, dst, RegMask::GetZeroMask(), src); in CreateNewObjCall()
1198 CallRuntime(newObj, EntrypointI in CreateNewObjCall()
1205 CreateNewObjCallOld(NewObjectInst *newObj) CreateNewObjCallOld() argument
[all...]
H A Dcodegen.h285 void CreateNewObjCall(NewObjectInst *newObj);
286 void CreateNewObjCallOld(NewObjectInst *newObj);
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
H A Dbuiltins_weak_set_test.cpp48 JSHandle<JSObject> newObj = in JSObjectTestCreate() local
50 return *newObj; in JSObjectTestCreate()
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
H A Dbuiltins_number_stub_builder.cpp270 Label newObj(env); in GenNumberConstructor()
272 BRANCH(TaggedIsUndefined(newTarget), &exit, &newObj); in GenNumberConstructor() local
273 Bind(&newObj); in GenNumberConstructor()
H A Dbuiltins_string_stub_builder.cpp36 Label newObj(env); in FromCharCode()
64 Jump(&newObj); in FromCharCode()
69 Jump(&newObj); in FromCharCode()
71 Bind(&newObj); in FromCharCode()
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/
H A Dinst_builder.h237 auto newObj = graph_->CreateInstNewObject(DataType::REFERENCE, pc, initClass, saveState, in CreateNewObjectInst() local
239 return newObj; in CreateNewObjectInst()
H A Dir_builder.cpp810 auto newObj = throwInst->GetInput(0).GetInst(); in FindExceptionClass() local
812 if (newObj->GetOpcode() != Opcode::NewObject) { in FindExceptionClass()
815 auto initClass = newObj->GetInput(0).GetInst(); in FindExceptionClass()
H A Dinst_builder-inl.h1412 auto newObj = CreateNewObjectInst(pc, typeId, saveState, initClass); in BuildInitObject() local
1413 UpdateDefinitionAcc(newObj); in BuildInitObject()
1419 call->AppendInput(newObj, DataType::REFERENCE); in BuildInitObject()
1436 AddInstruction(saveState, initClass, newObj, saveStateForCall, resolver, call); in BuildInitObject()
1438 AddInstruction(saveState, initClass, newObj, saveStateForCall, call); in BuildInitObject()
/arkcompiler/ets_runtime/ecmascript/
H A Djs_proxy.cpp1040 JSTaggedValue newObj = JSFunction::Call(runtimeInfo); in ConstructInternal() local
1042 // 10.ReturnIfAbrupt(newObj). in ConstructInternal()
1044 // 11.If Type(newObj) is not Object, throw a TypeError exception. in ConstructInternal()
1045 if (!newObj.IsECMAObject()) { in ConstructInternal()
1048 // 12.Return newObj. in ConstructInternal()
1049 return newObj; in ConstructInternal()
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_shared_typedarray.cpp308 // 5. Let newObj be TypedArrayCreate(C, « len »). in Of()
310 JSHandle<JSObject> newObj = TypedArrayHelper::TypedArrayCreate(thread, thisHandle, 1, args); in Of() local
311 // 6. ReturnIfAbrupt(newObj). in Of()
317 // c. Perform ? Set(newObj, Pk, kValue, true). in Of()
327 JSTaggedValue::SetProperty(thread, JSHandle<JSTaggedValue>::Cast(newObj), kKey, kValue, true); in Of()
331 // 9. Return newObj. in Of()
332 return newObj.GetTaggedValue(); in Of()
H A Dbuiltins_typedarray.cpp335 // 5. Let newObj be TypedArrayCreate(C, « len »). in Of()
337 JSHandle<JSObject> newObj = TypedArrayHelper::TypedArrayCreate(thread, thisHandle, 1, args); in Of() local
338 // 6. ReturnIfAbrupt(newObj). in Of()
344 // c. Perform ? Set(newObj, Pk, kValue, true). in Of()
354 JSTaggedValue::SetProperty(thread, JSHandle<JSTaggedValue>::Cast(newObj), kKey, kValue, true); in Of()
358 // 9. Return newObj. in Of()
359 return newObj.GetTaggedValue(); in Of()
2074 // ReturnIfAbrupt(newObj). in ToReversed()

Completed in 44 milliseconds

12