/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | variable_type.h | 25 : machineType_(MachineType::NOVALUE), gateType_(GateType::Empty()) in VariableType() 29 VariableType(MachineType machine_type, GateType gate_type) in VariableType() 34 [[nodiscard]] MachineType GetMachineType() const in GetMachineType() 46 return VariableType(MachineType::NOVALUE, GateType::Empty()); in VOID() 51 return VariableType(MachineType::I1, GateType::NJSValue()); in BOOL() 56 return VariableType(MachineType::I8, GateType::NJSValue()); in INT8() 61 return VariableType(MachineType::I16, GateType::NJSValue()); in INT16() 66 return VariableType(MachineType::I32, GateType::NJSValue()); in INT32() 71 return VariableType(MachineType::I64, GateType::NJSValue()); in INT64() 76 return VariableType(MachineType::F32, GateType::NJSValue()); in FLOAT32() [all …]
|
D | circuit_builder.h | 48 V(Int16Add, Add, MachineType::I16) \ 49 V(Int32Add, Add, MachineType::I32) \ 50 V(Int64Add, Add, MachineType::I64) \ 51 V(DoubleAdd, Add, MachineType::F64) \ 52 V(PtrAdd, Add, MachineType::ARCH) \ 53 V(Int16Sub, Sub, MachineType::I16) \ 54 V(Int32Sub, Sub, MachineType::I32) \ 55 V(Int64Sub, Sub, MachineType::I64) \ 56 V(DoubleSub, Sub, MachineType::F64) \ 57 V(PtrSub, Sub, MachineType::ARCH) \ [all …]
|
D | circuit_builder.cpp | 33 GateRef CircuitBuilder::Selector(OpCode opcode, MachineType machineType, GateRef control, in Selector() 56 MachineType machineType = (opcode == OpCode::DEPEND_SELECTOR) ? in Selector() 57 MachineType::NOVALUE : MachineType::FLEX; in Selector() 64 return circuit_->GetConstantGate(MachineType::I64, JSTaggedValue::VALUE_UNDEFINED, type); in UndefineConstant() 132 return circuit_->NewGate(circuit_->ReadSp(), MachineType::I64, GateType::NJSValue()); in ReadSp() 138 return GetCircuit()->NewArg(MachineType::I64, index, GateType::NJSValue(), argListOfCircuit); in Arguments() 148 …GateRef ret = GetCircuit()->NewGate(circuit_->ObjectTypeCheck(accessor.ToValue()), MachineType::I1, in ObjectTypeCheck() 162 …teRef ret = GetCircuit()->NewGate(circuit_->ObjectTypeCompare(accessor.ToValue()), MachineType::I1, in ObjectTypeCompare() 175 MachineType::I1, {currentControl, currentDepend, gate, frameState}, GateType::NJSValue()); in HeapObjectCheck() 189 MachineType::I1, {currentControl, currentDepend, gate, frameState}, GateType::NJSValue()); in StableArrayCheck() [all …]
|
D | circuit.h | 50 …GateRef NewGate(const GateMetaData *meta, MachineType machineType, GateType type, const char* comm… 51 GateRef NewGate(const GateMetaData *meta, MachineType machineType, 53 GateRef NewGate(const GateMetaData *meta, MachineType machineType, size_t numIns, 62 GateRef GetConstantGate(MachineType machineType, uint64_t value, GateType type); 63 void ClearConstantCache(MachineType machineType, uint64_t value, GateType type); 64 GateRef GetConstantStringGate(MachineType machineType, const std::string &str, GateType type); 65 GateRef NewArg(MachineType machineType, size_t index, GateType type, GateRef argRoot); 194 dead_ = NewGate(Dead(), MachineType::NOVALUE, GateType::Empty()); in DeadGate() 219 MachineType GetMachineType(GateRef gate) const; 222 void SetMachineType(GateRef gate, MachineType machineType); [all …]
|
D | gate.h | 136 … Gate(const GateMetaData* meta, GateId id, Gate *inList[], MachineType machineType, GateType type); 199 MachineType GetMachineType() const in GetMachineType() 203 void SetMachineType(MachineType machineType) in SetMachineType() 256 std::string MachineTypeStr(MachineType machineType) const; 264 void CheckInputMachineType(size_t idx, MachineType expected, bool isArch64) const; 265 void CheckNotInputMachineType(size_t idx, MachineType notExpected) const; 286 MachineType machineType_ { MachineType::NOVALUE }; // uint8_t
|
D | gate.cpp | 47 void Gate::CheckInputMachineType(size_t idx, MachineType expected, bool isArch64) const in CheckInputMachineType() 49 MachineType actual = GetInGateConst(idx)->GetMachineType(); in CheckInputMachineType() 50 if (expected == MachineType::FLEX) { in CheckInputMachineType() 53 if (expected == MachineType::ARCH) { in CheckInputMachineType() 54 expected = isArch64 ? MachineType::I64 : MachineType::I32; in CheckInputMachineType() 56 if (actual == MachineType::ARCH) { in CheckInputMachineType() 57 actual = isArch64 ? MachineType::I64 : MachineType::I32; in CheckInputMachineType() 65 void Gate::CheckNotInputMachineType(size_t idx, MachineType notExpected) const in CheckNotInputMachineType() 67 MachineType actual = GetInGateConst(idx)->GetMachineType(); in CheckNotInputMachineType() 126 CheckInputMachineType(idx, MachineType::I1, isArch64); in CheckValueInput() [all …]
|
D | circuit.cpp | 54 root_ = NewGate(metaBuilder_.CircuitRoot(), MachineType::NOVALUE, {}, GateType::Empty()); in InitRoot() 55 NewGate(metaBuilder_.StateEntry(), MachineType::NOVALUE, { root_ }, GateType::Empty()); in InitRoot() 56 NewGate(metaBuilder_.DependEntry(), MachineType::NOVALUE, { root_ }, GateType::Empty()); in InitRoot() 57 NewGate(metaBuilder_.ReturnList(), MachineType::NOVALUE, { root_ }, GateType::Empty()); in InitRoot() 58 NewGate(metaBuilder_.ArgList(), MachineType::NOVALUE, { root_ }, GateType::Empty()); in InitRoot() 105 GateRef Circuit::NewGate(const GateMetaData *meta, MachineType machineType, size_t numIns, in NewGate() 135 …return NewGate(meta, MachineType::NOVALUE, inList.size(), inList.data(), GateType::Empty(), commen… in NewGate() 138 GateRef Circuit::NewGate(const GateMetaData *meta, MachineType machineType, in NewGate() 144 GateRef Circuit::NewGate(const GateMetaData *meta, MachineType machineType, GateType type, const ch… in NewGate() 377 void Circuit::SetMachineType(GateRef gate, MachineType machineType) in SetMachineType() [all …]
|
D | number_speculative_lowering.cpp | 259 acc_.SetMachineType(gate, MachineType::I32); in VisitNumberCalculate() 262 acc_.SetMachineType(gate, MachineType::F64); in VisitNumberCalculate() 291 acc_.SetMachineType(gate, MachineType::I1); in VisitNumberCompare() 303 acc_.SetMachineType(gate, MachineType::I32); in VisitNumberShift() 315 acc_.SetMachineType(gate, MachineType::I32); in VisitNumberLogical() 336 acc_.SetMachineType(gate, MachineType::I32); in VisitNumberDiv() 339 MachineType::F64, left, right, GateType::NJSValue()); in VisitNumberDiv() 340 acc_.SetMachineType(gate, MachineType::F64); in VisitNumberDiv() 365 acc_.SetMachineType(gate, MachineType::I32); in VisitNumberMod() 370 acc_.SetMachineType(gate, MachineType::F64); in VisitNumberMod() [all …]
|
D | async_function_lowering.cpp | 52 GateRef contextGate = circuit_->NewGate(circuit_->Load(), MachineType::I64, {dependStart, val}, in ProcessJumpTable() 56 …GateRef restoreOffsetGate = circuit_->NewGate(circuit_->Load(), MachineType::I32, {contextGate, va… in ProcessJumpTable() 95 circuit_->NewGate(circuit_->Return(), MachineType::NOVALUE, in RebuildGeneratorCfg() 106 circuit_->NewGate(circuit_->Return(), MachineType::NOVALUE, in RebuildGeneratorCfg() 120 MachineType::I32, GateType::NJSValue()); in RebuildGeneratorCfg() 122 … GateRef bcOffsetPhiGate = circuit_->NewGate(circuit_->ValueSelector(2), MachineType::I32, in RebuildGeneratorCfg() 136 circuit_->NewGate(circuit_->Return(), MachineType::NOVALUE, in RebuildGeneratorCfg() 180 MachineType::I32, GateType::NJSValue()); in UpdateValueSelector() 183 …GateRef valueSelector = circuit_->NewGate(circuit_->ValueSelector(2), MachineType::I32, // 2: num … in UpdateValueSelector()
|
D | llvm_ir_builder.cpp | 1156 if (machineType == MachineType::ARCH) { in VisitConstant() 1158 machineType = MachineType::I64; in VisitConstant() 1160 if (machineType == MachineType::I32) { in VisitConstant() 1162 } else if (machineType == MachineType::I64) { in VisitConstant() 1173 } else if (machineType == MachineType::F64) { in VisitConstant() 1176 } else if (machineType == MachineType::I8) { in VisitConstant() 1178 } else if (machineType == MachineType::I16) { in VisitConstant() 1180 } else if (machineType == MachineType::I1) { in VisitConstant() 1197 ASSERT(acc_.GetMachineType(gate) == MachineType::ARCH); in VisitConstString() 1288 if (machineType == MachineType::I32) { in VisitMod() [all …]
|
D | stub.cpp | 37 auto type = env_.IsArch64Bit() ? MachineType::I64 : MachineType::I32; in InitializeArguments()
|
D | argument_accessor.cpp | 19 void ArgumentAccessor::NewCommonArg(const CommonArgIdx argIndex, MachineType machineType, GateType … in NewCommonArg() 26 circuit_->NewArg(MachineType::I64, argIndex, GateType::TaggedValue(), argRoot_); in NewArg() 144 … GateRef actualArgcGate = circuit_->GetConstantGate(MachineType::I64, 0, GateType::NJSValue()); in CollectArgs() 145 …GateRef newTargetGate = circuit_->GetConstantGate(MachineType::I64, JSTaggedValue::VALUE_UNDEFINED, in CollectArgs()
|
D | circuit_builder-inl.h | 221 template<OpCode Op, MachineType Type> 235 template<OpCode Op, MachineType Type> 251 auto ptrSize = env_->Is32Bit() ? MachineType::I32 : MachineType::I64; in IntPtrLSR() 257 auto ptrSize = env_->Is32Bit() ? MachineType::I32 : MachineType::I64; in IntPtrLSL() 263 auto ptrsize = env_->Is32Bit() ? MachineType::I32 : MachineType::I64; in IntPtrOr() 275 MachineType::I64, { x }, GateType::TaggedValue()); in Int64ToTaggedPtr() 294 MachineType::I64, type, GateType::TaggedValue()); in IsSpecial() 566 …return GetCircuit()->GetConstantGate(MachineType::I64, JSTaggedValue::VALUE_TRUE, GateType::Tagged… in TaggedTrue() 571 …return GetCircuit()->GetConstantGate(MachineType::I64, JSTaggedValue::VALUE_FALSE, GateType::Tagge… in TaggedFalse() 903 MachineType::I64, {currentControl, currentDepend, x, y}, gateType); in TypedBinaryOp() [all …]
|
D | loop_peeling.cpp | 79 ASSERT(acc_.GetMachineType(value) == MachineType::I64); in Peel() 80 ASSERT(acc_.GetMachineType(copyValue) == MachineType::I64); in Peel() 81 … GateRef selector = circuit_->NewGate(circuit_->ValueSelector(numIns), MachineType::I64, in Peel()
|
D | bytecode_circuit_builder.cpp | 515 argAcc_.NewCommonArg(CommonArgIdx::GLUE, MachineType::I64, GateType::NJSValue()); in BuildCircuitArgs() 517 argAcc_.NewCommonArg(CommonArgIdx::ACTUAL_ARGC, MachineType::I64, GateType::NJSValue()); in BuildCircuitArgs() 708 inList[i + length] = circuit_->GetConstantGate(MachineType::I64, in CreateGateInList() 712 inList[i + length] = circuit_->GetConstantGate(MachineType::I64, in CreateGateInList() 716 inList[i + length] = circuit_->GetConstantGate(MachineType::I16, in CreateGateInList() 819 gate = circuit_->GetConstantGate(MachineType::I64, in NewConst() 824 gate = circuit_->GetConstantGate(MachineType::I64, in NewConst() 829 gate = circuit_->GetConstantGate(MachineType::I64, in NewConst() 834 gate = circuit_->GetConstantGate(MachineType::I64, in NewConst() 839 gate = circuit_->GetConstantGate(MachineType::I64, in NewConst() [all …]
|
D | argument_accessor.h | 64 void NewCommonArg(const CommonArgIdx argIndex, MachineType machineType, GateType gateType);
|
D | ts_inline_lowering.cpp | 308 accessor = circuit_->NewGate(circuit_->LoadGetter(), MachineType::I64, in BuildAccessor() 311 accessor = circuit_->NewGate(circuit_->LoadSetter(), MachineType::I64, in BuildAccessor() 360 return circuit_->NewGate(circuit_->ValueSelector(numOfIns), MachineType::I64, numOfIns + 1, in MergeAllReturn() 483 … MachineType::I1, {callState, callDepend, inlineFunc, builder_.IntPtr(methodOffset), frameState}, in InlineFuncCheck() 499 …MachineType::I1, {callState, callDepend, receiver, hclassIndexGate, frameState}, GateType::NJSValu… in InlineAccessorCheck()
|
D | number_speculative_retype.cpp | 176 case MachineType::I1: in VisitConstant() 179 case MachineType::I32: in VisitConstant() 182 case MachineType::F64: in VisitConstant() 732 MachineType mType = acc_.GetMachineType(gate); in TryConvertConstant() 733 if (mType == MachineType::I32) { in TryConvertConstant() 737 } else if (mType == MachineType::F64 && !needInt32) { in TryConvertConstant()
|
D | gate_accessor.h | 444 MachineType GetMachineType(GateRef gate) const; 445 void SetMachineType(GateRef gate, MachineType type); 446 GateRef GetConstantGate(MachineType bitValue, BitField bitfield, GateType type) const;
|
D | gate_accessor.cpp | 721 ASSERT(gatePtr->GetMachineType() == MachineType::I64); in GetImmediateId() 989 MachineType GateAccessor::GetMachineType(GateRef gate) const in GetMachineType() 994 void GateAccessor::SetMachineType(GateRef gate, MachineType type) in SetMachineType() 999 GateRef GateAccessor::GetConstantGate(MachineType bitValue, BitField bitfield, GateType type) const in GetConstantGate() 1026 ASSERT(GetMachineType(gate) == MachineType::F64); in GetFloat64FromConstant() 1039 ASSERT(GetMachineType(gate) == MachineType::I32); in GetInt32FromConstant()
|
D | llvm_ir_builder.h | 274 LLVMTypeRef NewLType(MachineType machineType, GateType gateType); 405 int64_t GetBitWidthFromMachineType(MachineType machineType) const;
|
D | range_analysis.cpp | 41 return acc_.GetMachineType(gate) == MachineType::I32; in IsInt32Type()
|
D | lcr_lowering.cpp | 653 …GateRef condition = builder_.BoolNot(builder_.ExtractValue(MachineType::I1, result, builder_.Int32… in LowerOverflowCheck() 681 …result = builder_.BinaryArithmetic(circuit_->Sdiv(), MachineType::I32, left, right, GateType::NJSV… in LowerInt32DivWithCheck() 683 MachineType::I32, result, right, GateType::NJSValue()); in LowerInt32DivWithCheck()
|
D | gate_meta_data.cpp | 21 std::string MachineTypeToStr(MachineType machineType) in MachineTypeToStr()
|
/arkcompiler/ets_runtime/ecmascript/compiler/tests/ |
D | lowering_relate_gate_test.cpp | 33 using ecmascript::kungfu::MachineType; 57 auto pcGate = circuit.GetConstantGate(MachineType::I64, 0, GateType::NJSValue()); in HWTEST_F_L0() 82 … auto convert = builder.TypeConvert(MachineType::I64, GateType::NJSValue(), GateType::NumberType(), in HWTEST_F_L0()
|