/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
D | containers_queue_stub_builder.h | 40 GateRef begin = Load(VariableType::INT32(), obj, IntPtr(JSAPIQueue::FRONT_OFFSET)); in GetArrayLength() 41 GateRef end = Load(VariableType::INT32(), obj, IntPtr(JSAPIQueue::TAIL_OFFSET)); in GetArrayLength() 50 GateRef elementsOffset = IntPtr(JSObject::ELEMENTS_OFFSET); in GetArrayLength() 52 … GateRef elementsSize = Load(VariableType::INT32(), elements, IntPtr(TaggedArray::LENGTH_OFFSET)); in GetArrayLength() 64 GateRef elementsOffset = IntPtr(JSObject::ELEMENTS_OFFSET); in Get() 66 … GateRef capacity = Load(VariableType::INT32(), elements, IntPtr(TaggedArray::LENGTH_OFFSET)); in Get() 67 GateRef front = Load(VariableType::INT32(), obj, IntPtr(JSAPIQueue::FRONT_OFFSET)); in Get() 74 GateRef elementsOffset = IntPtr(JSObject::ELEMENTS_OFFSET); in GetNextPosition() 76 … GateRef elementsSize = Load(VariableType::INT32(), elements, IntPtr(TaggedArray::LENGTH_OFFSET)); in GetNextPosition() 82 return Load(VariableType::INT32(), obj, IntPtr(JSAPIQueue::FRONT_OFFSET)); in GetCurrentFront()
|
D | containers_deque_stub_builder.h | 33 GateRef elementsOffset = IntPtr(JSObject::ELEMENTS_OFFSET); in GetSize() 35 … GateRef capacity = Load(VariableType::INT32(), elements, IntPtr(TaggedArray::LENGTH_OFFSET)); in GetSize() 43 GateRef elementsOffset = IntPtr(JSObject::ELEMENTS_OFFSET); in Get() 45 … GateRef capacity = Load(VariableType::INT32(), elements, IntPtr(TaggedArray::LENGTH_OFFSET)); in Get() 53 return Load(VariableType::INT32(), obj, IntPtr(JSAPIDeque::FIRST_OFFSET)); in GetFirst() 58 return Load(VariableType::INT32(), obj, IntPtr(JSAPIDeque::LAST_OFFSET)); in GetLast() 63 GateRef elementsOffset = IntPtr(JSObject::ELEMENTS_OFFSET); in GetElementsLength() 65 return Load(VariableType::INT32(), elements, IntPtr(TaggedArray::LENGTH_OFFSET)); in GetElementsLength()
|
D | containers_plainarray_stub_builder.h | 32 return Load(VariableType::INT32(), obj, IntPtr(JSAPIPlainArray::LENGTH_OFFSET)); in GetSize() 37 GateRef elementsOffset = IntPtr(JSAPIPlainArray::VALUES_OFFSET); in Get() 44 GateRef elementsOffset = IntPtr(JSAPIPlainArray::KEYS_OFFSET); in GetKey() 50 GateRef elementsOffset = IntPtr(JSObject::ELEMENTS_OFFSET); in Set()
|
D | containers_lightweightmap_stub_builder.h | 33 return Load(VariableType::INT32(), obj, IntPtr(JSAPILightWeightMap::LWP_LENGTH_OFFSET)); in GetSize() 38 GateRef keysOffset = IntPtr(JSAPILightWeightMap::LWP_KEYS_OFFSET); in GetKey() 45 GateRef valuesOffset = IntPtr(JSAPILightWeightMap::LWP_VALUES_OFFSET); in GetValue()
|
D | containers_vector_stub_builder.h | 32 return Load(VariableType::INT32(), obj, IntPtr(JSAPIVector::ELEMENT_COUNT_OFFSET)); in GetSize() 37 GateRef elementsOffset = IntPtr(JSObject::ELEMENTS_OFFSET); in Get() 43 GateRef elementsOffset = IntPtr(JSObject::ELEMENTS_OFFSET); in Set()
|
D | containers_arraylist_stub_builder.h | 32 GateRef len = Load(VariableType::JS_ANY(), obj, IntPtr(JSAPIArrayList::LENGTH_OFFSET)); in GetSize() 38 GateRef elementsOffset = IntPtr(JSObject::ELEMENTS_OFFSET); in Get() 45 GateRef elementsOffset = IntPtr(JSObject::ELEMENTS_OFFSET); in Set()
|
D | containers_stack_stub_builder.h | 32 GateRef top = Load(VariableType::INT32(), obj, IntPtr(JSAPIStack::TOP_OFFSET)); in GetSize() 38 GateRef elementsOffset = IntPtr(JSObject::ELEMENTS_OFFSET); in Get() 44 GateRef elementsOffset = IntPtr(JSObject::ELEMENTS_OFFSET); in Set()
|
D | builtins_stubs.h | 40 IntPtr(EcmaRuntimeCallInfo::GetThreadOffset(GetEnvironment()->IsArch32Bit()))); in GetGlue() 46 IntPtr(EcmaRuntimeCallInfo::GetNumArgsOffset(GetEnvironment()->IsArch32Bit()))); in GetNumArgs() 52 IntPtr(EcmaRuntimeCallInfo::GetStackArgsOffset(GetEnvironment()->IsArch32Bit()))); in GetFunction() 57 …GateRef newTargetOffset = IntPtr(EcmaRuntimeCallInfo::GetNewTargetOffset(GetEnvironment()->IsArch3… in GetNewTarget() 63 … GateRef thisOffset = IntPtr(EcmaRuntimeCallInfo::GetThisOffset(GetEnvironment()->IsArch32Bit())); in GetThis() 137 … return Load(VariableType::JS_ANY(), argv, PtrMul(index, IntPtr(JSTaggedValue::TaggedTypeSize()))); in GetArgNCheck()
|
D | builtins_string_stub_builder.cpp | 40 PtrMul(ZExtInt32ToPtr(index), IntPtr(sizeof(uint16_t)))))); in StringAt() 46 PtrMul(ZExtInt32ToPtr(index), IntPtr(sizeof(uint8_t)))))); in StringAt() 72 GateRef dataAddr = PtrAdd(dataUtf, PtrMul(ZExtInt32ToPtr(index), IntPtr(sizeof(uint16_t)))); in CreateFromEcmaString() 79 GateRef dataAddr = PtrAdd(dataUtf, PtrMul(ZExtInt32ToPtr(index), IntPtr(sizeof(uint8_t)))); in CreateFromEcmaString() 104 GateRef dst = PtrAdd(*result, IntPtr(LineEcmaString::DATA_OFFSET)); in CreateFromEcmaString() 108 Store(VariableType::INT8(), glue, dst, IntPtr(0), TruncInt16ToInt8(*data)); in CreateFromEcmaString() 113 Store(VariableType::INT16(), glue, dst, IntPtr(0), *data); in CreateFromEcmaString() 189 GateRef dst = PtrAdd(*result, IntPtr(LineEcmaString::DATA_OFFSET)); in FastSubUtf8String() 191 CopyChars(glue, dst, source, len, IntPtr(sizeof(uint8_t)), VariableType::INT8()); in FastSubUtf8String() 213 GateRef fromOffset = PtrMul(ZExtInt32ToPtr(from), IntPtr(sizeof(uint16_t) / sizeof(uint8_t))); in FastSubUtf16String() [all …]
|
D | containers_hashset_stub_builder.h | 33 GateRef tableOffset = IntPtr(JSAPIHashSet::HASHSET_TABLE_INDEX); in GetTableLength() 40 GateRef tableOffset = IntPtr(JSAPIHashSet::HASHSET_TABLE_INDEX); in GetNode()
|
D | containers_hashmap_stub_builder.h | 33 GateRef tableOffset = IntPtr(JSAPIHashMap::HASHMAP_TABLE_INDEX); in GetTableLength() 40 GateRef tableOffset = IntPtr(JSAPIHashMap::HASHMAP_TABLE_INDEX); in GetNode()
|
D | containers_lightweightset_stub_builder.h | 33 return Load(VariableType::INT32(), obj, IntPtr(JSAPILightWeightSet::LENGTH_OFFSET)); in GetSize() 43 GateRef valuesOffset = IntPtr(JSAPILightWeightSet::VALUES_OFFSET); in GetValue()
|
D | containers_linkedlist_stub_builder.h | 33 GateRef tableOffset = IntPtr(JSAPILinkedList::DOUBLE_LIST_OFFSET); in GetTableLength() 41 GateRef tableOffset = IntPtr(JSAPILinkedList::DOUBLE_LIST_OFFSET); in GetNode()
|
D | containers_list_stub_builder.h | 33 GateRef tableOffset = IntPtr(JSAPIList::SINGLY_LIST_OFFSET); in GetTableLength() 41 GateRef tableOffset = IntPtr(JSAPIList::SINGLY_LIST_OFFSET); in GetNode()
|
D | builtins_stubs.cpp | 75 … arg = Load(VariableType::JS_ANY(), argv, PtrMul(index, IntPtr(JSTaggedValue::TaggedTypeSize()))); in GetArg() 98 GateRef runtimeCallInfoArgs = PtrAdd(numArgs, IntPtr(NUM_MANDATORY_JSFUNC_ARGS)); in CallSlowPath() 99 Branch(Int64Equal(numArgs, IntPtr(0)), &callThis0, ¬callThis0); in CallSlowPath() 108 Branch(Int64Equal(numArgs, IntPtr(1)), &callThis1, ¬callThis1); in CallSlowPath() 118 Branch(Int64Equal(numArgs, IntPtr(2)), &callThis2, &callThis3); // 2: args2 in CallSlowPath() 177 Branch(Int64GreaterThanOrEqual(IntPtr(0), numArgs), &next, &posTagNotUndefined); in DECLARE_BUILTINS() 256 Branch(Int64GreaterThanOrEqual(IntPtr(1), numArgs), &next, &posTagNotUndefined); in DECLARE_BUILTINS() 372 Branch(Int64GreaterThanOrEqual(IntPtr(0), numArgs), &next, &startTagNotUndefined); in DECLARE_BUILTINS() 388 … Branch(Int64GreaterThanOrEqual(IntPtr(1), numArgs), &endTagIsUndefined, &endTagNotUndefined); in DECLARE_BUILTINS() 519 Branch(Int64GreaterThanOrEqual(IntPtr(0), numArgs), &next, &posTagNotUndefined); in DECLARE_BUILTINS() [all …]
|
D | containers_stub_builder.cpp | 65 … Branch(Int64GreaterThanOrEqual(IntPtr(0), numArgs), &callbackUndefined, &callbackNotUndefined); in ContainersCommonFuncCall() 81 … Branch(Int64GreaterThanOrEqual(IntPtr(1), numArgs), &thisArgUndefined, &thisArgNotUndefined); in ContainersCommonFuncCall() 183 … Branch(Int64GreaterThanOrEqual(IntPtr(0), numArgs), &callbackUndefined, &callbackNotUndefined); in QueueCommonFuncCall() 199 … Branch(Int64GreaterThanOrEqual(IntPtr(1), numArgs), &thisArgUndefined, &thisArgNotUndefined); in QueueCommonFuncCall() 289 … Branch(Int64GreaterThanOrEqual(IntPtr(0), numArgs), &callbackUndefined, &callbackNotUndefined); in DequeCommonFuncCall() 305 … Branch(Int64GreaterThanOrEqual(IntPtr(1), numArgs), &thisArgUndefined, &thisArgNotUndefined); in DequeCommonFuncCall() 397 … Branch(Int64GreaterThanOrEqual(IntPtr(0), numArgs), &callbackUndefined, &callbackNotUndefined); in ContainersLightWeightCall() 413 … Branch(Int64GreaterThanOrEqual(IntPtr(1), numArgs), &thisArgUndefined, &thisArgNotUndefined); in ContainersLightWeightCall() 509 … Branch(Int64GreaterThanOrEqual(IntPtr(0), numArgs), &callbackUndefined, &callbackNotUndefined); in ContainersHashCall() 525 … Branch(Int64GreaterThanOrEqual(IntPtr(1), numArgs), &thisArgUndefined, &thisArgNotUndefined); in ContainersHashCall() [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | interpreter_stub-inl.h | 29 Store(VariableType::INT64(), glue, sp, PtrMul(IntPtr(sizeof(JSTaggedType)), idx), val); in SetVregValue() 34 return Load(VariableType::JS_ANY(), sp, PtrMul(IntPtr(sizeof(JSTaggedType)), idx)); in GetVregValue() 39 return Load(VariableType::INT8(), pc, IntPtr(1)); // 1 : skip 1 byte of bytecode in ReadInst8_0() 44 return Load(VariableType::INT8(), pc, IntPtr(2)); // 2 : skip 1 byte of bytecode in ReadInst8_1() 49 return Load(VariableType::INT8(), pc, IntPtr(3)); // 3 : skip 1 byte of bytecode in ReadInst8_2() 54 return Load(VariableType::INT8(), pc, IntPtr(4)); // 4 : skip 1 byte of bytecode in ReadInst8_3() 59 return Load(VariableType::INT8(), pc, IntPtr(5)); // 5 : skip 1 byte of bytecode in ReadInst8_4() 64 return Load(VariableType::INT8(), pc, IntPtr(6)); // 6 : skip 1 byte of bytecode in ReadInst8_5() 69 return Load(VariableType::INT8(), pc, IntPtr(7)); // 7 : skip 1 byte of bytecode in ReadInst8_6() 74 return Load(VariableType::INT8(), pc, IntPtr(8)); // 8 : skip 1 byte of bytecode in ReadInst8_7() [all …]
|
D | typed_array_stub_builder.h | 39 GateRef offset = IntPtr(JSTypedArray::VIEWED_ARRAY_BUFFER_OFFSET); in GetViewedArrayBuffer() 45 GateRef offset = IntPtr(JSTypedArray::ARRAY_LENGTH_OFFSET); in GetArrayLength() 51 GateRef offset = IntPtr(JSTypedArray::BYTE_OFFSET_OFFSET); in GetByteOffset() 57 GateRef offset = IntPtr(JSArrayBuffer::DATA_OFFSET); in GetArrayBufferData() 63 GateRef offset = IntPtr(JSArrayBuffer::BYTE_LENGTH_OFFSET); in GetArrayBufferByteLength() 69 GateRef offset = IntPtr(JSNativePointer::POINTER_OFFSET); in GetExternalPointer()
|
D | stub_builder-inl.h | 71 inline GateRef StubBuilder::IntPtr(int64_t value) in IntPtr() function 269 IntPtr(AsmInterpretedFrame::GetSize(GetEnvironment()->IsArch32Bit()))); in SavePcIfNeeded() 271 IntPtr(AsmInterpretedFrame::GetPcOffset(GetEnvironment()->IsArch32Bit())), pc); in SavePcIfNeeded() 280 IntPtr(AsmInterpretedFrame::GetSize(GetEnvironment()->IsArch32Bit()))); in SaveJumpSizeIfNeeded() 282 … IntPtr(AsmInterpretedFrame::GetCallSizeOffset(GetEnvironment()->IsArch32Bit())), jumpSize); in SaveJumpSizeIfNeeded() 290 Store(VariableType::INT16(), glue, method, IntPtr(Method::LITERAL_INFO_OFFSET), newValue); in SetHotnessCounter() 297 GateRef frame = PtrSub(sp, IntPtr(AsmInterpretedFrame::GetSize(env_->IsArch32Bit()))); in SaveHotnessCounterIfNeeded() 299 IntPtr(AsmInterpretedFrame::GetFunctionOffset(env_->IsArch32Bit()))); in SaveHotnessCounterIfNeeded() 300 … GateRef method = Load(VariableType::JS_ANY(), function, IntPtr(JSFunctionBase::METHOD_OFFSET)); in SaveHotnessCounterIfNeeded() 316 return Load(type, base, IntPtr(0)); in Load() [all …]
|
D | profiler_stub_builder.cpp | 62 GateRef method = Load(VariableType::JS_ANY(), func, IntPtr(JSFunctionBase::METHOD_OFFSET)); in ProfileOpType() 64 IntPtr(Method::NATIVE_POINTER_OR_BYTECODE_ARRAY_OFFSET)); in ProfileOpType() 76 GateRef slotId = ZExtInt8ToInt32(Load(VariableType::INT8(), pc, IntPtr(1))); in ProfileOpType() 97 … GateRef method = Load(VariableType::JS_ANY(), func, IntPtr(JSFunctionBase::METHOD_OFFSET)); in ProfileOpType() 99 …Load(VariableType::NATIVE_POINTER(), method, IntPtr(Method::NATIVE_POINTER_OR_BYTECODE_ARRAY_OFFSE… in ProfileOpType() 115 GateRef method = Load(VariableType::JS_ANY(), func, IntPtr(JSFunctionBase::METHOD_OFFSET)); in ProfileDefineClass() 117 …Load(VariableType::NATIVE_POINTER(), method, IntPtr(Method::NATIVE_POINTER_OR_BYTECODE_ARRAY_OFFSE… in ProfileDefineClass() 138 GateRef traceIdOffset = IntPtr(JSArray::TRACE_INDEX_OFFSET); in ProfileCreateObject() 158 GateRef method = Load(VariableType::JS_ANY(), func, IntPtr(JSFunctionBase::METHOD_OFFSET)); in ProfileCreateObject() 160 …Load(VariableType::NATIVE_POINTER(), method, IntPtr(Method::NATIVE_POINTER_OR_BYTECODE_ARRAY_OFFSE… in ProfileCreateObject() [all …]
|
D | new_object_stub_builder.cpp | 220 …Store(VariableType::INT32(), glue_, result->ReadVariable(), IntPtr(TaggedArray::LENGTH_OFFSET), nu… in NewArgumentsList() 228 GateRef argument = Load(VariableType::JS_ANY(), sp, PtrMul(IntPtr(sizeof(JSTaggedType)), idx)); in NewArgumentsList() 243 … GateRef glueGlobalEnvOffset = IntPtr(JSThread::GlueData::GetGlueGlobalEnvOffset(env->Is32Bit())); in NewArgumentsObj() 279 Store(VariableType::JS_POINTER(), glue_, result->ReadVariable(), IntPtr(0), hclass); in NewJSArrayLiteral() 283 GateRef hashOffset = IntPtr(ECMAObject::HASH_OFFSET); in NewJSArrayLiteral() 286 GateRef propertiesOffset = IntPtr(JSObject::PROPERTIES_OFFSET); in NewJSArrayLiteral() 287 GateRef elementsOffset = IntPtr(JSObject::ELEMENTS_OFFSET); in NewJSArrayLiteral() 288 GateRef lengthOffset = IntPtr(JSArray::LENGTH_OFFSET); in NewJSArrayLiteral() 334 … auto isStartHeapSampling = Load(VariableType::JS_ANY(), glue_, IntPtr(isStartHeapSamplingOffset)); in AllocateInYoung() 340 auto topAddress = Load(VariableType::NATIVE_POINTER(), glue_, IntPtr(topOffset)); in AllocateInYoung() [all …]
|
D | ntype_mcr_lowering.cpp | 79 GateRef length = builder_.IntPtr(elementsLength); in LowerCreateArrayWithOwn() 113 GateRef length = builder_.IntPtr(arrayLength); in LowerCreateArrayWithBuffer() 137 GateRef size = builder_.IntPtr(arrayHC->GetObjectSize()); in NewJSArrayLiteral() 159 GateRef elementsSize = builder_.ComputeTaggedArraySize(builder_.IntPtr(length)); in NewTaggedArray() 165 builder_.Int32ToTaggedInt(builder_.IntPtr(length))); in NewTaggedArray() 184 GateRef target = builder_.IntPtr(index); in LowerCallRuntime()
|
D | circuit_builder-inl.h | 576 GateRef offset = IntPtr(TaggedArray::LENGTH_OFFSET); in GetLengthFromTaggedArray() 582 GateRef offset = PtrMul(ZExtInt32ToPtr(index), IntPtr(JSTaggedValue::TaggedTypeSize())); in GetValueFromTaggedArray() 583 GateRef dataOffset = PtrAdd(offset, IntPtr(TaggedArray::DATA_OFFSET)); in GetValueFromTaggedArray() 590 GateRef offset = PtrMul(ZExtInt32ToPtr(index), IntPtr(JSTaggedValue::TaggedTypeSize())); in SetValueToTaggedArray() 591 GateRef dataOffset = PtrAdd(offset, IntPtr(TaggedArray::DATA_OFFSET)); in SetValueToTaggedArray() 597 return PtrMul(IntPtr(sizeof(JSTaggedValue)), IntPtr(static_cast<int>(index))); in GetGlobalConstantString() 602 return PtrAdd(x, IntPtr(-JSTaggedValue::TAG_WEAK)); in LoadObjectFromWeakRef() 608 GateRef offset = IntPtr(TaggedObject::HCLASS_OFFSET); in LoadHClass() 614 Store(VariableType::JS_POINTER(), glue, object, IntPtr(TaggedObject::HCLASS_OFFSET), hClass); in StoreHClass() 684 GateRef bitfieldOffset = IntPtr(JSHClass::BIT_FIELD_OFFSET); in GetObjectType() [all …]
|
D | lcr_lowering.cpp | 131 GateRef offset = builder_.IntPtr(acc_.GetOffset(gate)); in LowerLoadConstOffset() 143 GateRef offset = builder_.IntPtr(acc_.GetOffset(gate)); in LowerStoreConstOffset() 186 …GateRef guardiansOffset = builder_.IntPtr(JSThread::GlueData::GetStableArrayElementsGuardiansOffse… in LowerArrayGuardianCheck() 533 … GateRef glueGlobalEnvOffset = builder_.IntPtr(JSThread::GlueData::GetGlueGlobalEnvOffset(false)); in LowerGetGlobalEnv() 543 …GateRef offset = builder_.IntPtr(GlobalEnv::HEADER_SIZE + JSTaggedValue::TaggedTypeSize() * index); in LowerGetGlobalEnvObjHClass() 546 builder_.IntPtr(JSFunction::PROTO_OR_DYNCLASS_OFFSET)); in LowerGetGlobalEnvObjHClass() 555 builder_.IntPtr(JSThread::GlueData::GetGlobalConstOffset(false))); in LowerGetGlobalConstantValue() 556 GateRef constantIndex = builder_.IntPtr(JSTaggedValue::TaggedTypeSize() * index); in LowerGetGlobalConstantValue() 583 …GateRef topAddress = builder_.Load(VariableType::NATIVE_POINTER(), glue_, builder_.IntPtr(topOffse… in HeapAllocateInYoung() 584 …GateRef endAddress = builder_.Load(VariableType::NATIVE_POINTER(), glue_, builder_.IntPtr(endOffse… in HeapAllocateInYoung() [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/tests/ |
D | lowering_relate_gate_test.cpp | 107 auto lenthOffset = builder.IntPtr(GlobalEnvConstants::GetOffsetOfLengthString()); in HWTEST_F_L0() 110 builder.Store(VariableType::JS_POINTER(), glue, array, builder.IntPtr(0), arg1); in HWTEST_F_L0() 111 …toreElement<ecmascript::kungfu::TypedStoreOp::FLOAT32ARRAY_STORE_ELEMENT>(array, builder.IntPtr(0), in HWTEST_F_L0() 113 …toreElement<ecmascript::kungfu::TypedStoreOp::FLOAT32ARRAY_STORE_ELEMENT>(array, builder.IntPtr(1), in HWTEST_F_L0() 124 …r.LoadElement<ecmascript::kungfu::TypedLoadOp::FLOAT32ARRAY_LOAD_ELEMENT>(array, builder.IntPtr(1), in HWTEST_F_L0()
|