Home
last modified time | relevance | path

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

12

/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dinstruction_combine.cpp199 Int64BinopMatcher cmpLeft(m.Left().Gate(), circuit_); in VisitICMP()
214 Int64BinopMatcher andOp(m.Left().Gate(), circuit_); in VisitICMP()
217 Int64BinopMatcher orOp(andOp.Left().Gate(), circuit_); in VisitICMP()
416 Int32BinopMatcher m(n.Left().Gate(), circuit_); in VisitExtractValue()
422 return (index == 0 ? m.Left().Gate() : builder_.Boolean(false)); in VisitExtractValue()
428 Int32BinopMatcher m(n.Left().Gate(), circuit_); in VisitExtractValue()
434 return (index == 0 ? m.Left().Gate() : builder_.Boolean(false)); in VisitExtractValue()
440 Int32BinopMatcher m(n.Left().Gate(), circuit_); in VisitExtractValue()
449 return (index == 0 ? m.Left().Gate() : builder_.Boolean(false)); in VisitExtractValue()
464 return m.Left().Gate(); in ReduceInt64Add()
[all...]
H A Dgate.cpp21 void Gate::CheckNullInput() const in CheckNullInput()
31 void Gate::CheckFailed(std::string errorString, size_t highlightIdx) const in CheckFailed()
33 LOG_COMPILER(ERROR) << "[Verifier][Error] Gate level input list schema verify failed"; in CheckFailed()
38 void Gate::CheckInputOpcode(size_t idx, OpCode expected) const in CheckInputOpcode()
47 void Gate::CheckInputMachineType(size_t idx, MachineType expected, bool isArch64) const in CheckInputMachineType()
65 void Gate::CheckNotInputMachineType(size_t idx, MachineType notExpected) const in CheckNotInputMachineType()
74 void Gate::CheckGeneralState(size_t idx) const in CheckGeneralState()
84 void Gate::CheckState(size_t idx) const in CheckState()
94 void Gate::CheckStateInput() const in CheckStateInput()
122 void Gate
553 Gate::Gate(const GateMetaData* meta, GateId id, Gate *inList[], MachineType machineType, GateType type) Gate() function in panda::ecmascript::kungfu::Gate
[all...]
H A Dgate.h46 class Gate;
67 [[nodiscard]] Gate *GetGate();
68 [[nodiscard]] const Gate *GetGateConst() const;
85 void SetGate(const Gate *ptr);
86 [[nodiscard]] Gate *GetGate();
87 [[nodiscard]] const Gate *GetGateConst() const;
96 // Gate structure
136 class Gate { class
139 Gate(const GateMetaData* meta, GateId id, Gate *inLis
[all...]
H A Dgate_accessor.cpp28 Gate *gatePtr = circuit_->LoadGatePtr(gate); in GetNumIns()
79 Gate *gatePtr = circuit_->LoadGatePtr(gate); in GetOpCode()
85 Gate *gatePtr = circuit_->LoadGatePtr(gate); in TryGetValue()
92 Gate *gatePtr = circuit_->LoadGatePtr(gate); in GetICmpCondition()
99 Gate *gatePtr = circuit_->LoadGatePtr(gate); in GetFCmpCondition()
107 Gate *gatePtr = circuit_->LoadGatePtr(gate); in GetOffset()
115 Gate *gatePtr = circuit_->LoadGatePtr(gate); in GetInitOffset()
122 Gate *gatePtr = circuit_->LoadGatePtr(gate); in GetTrueWeight()
130 Gate *gatePtr = circuit_->LoadGatePtr(gate); in GetFalseWeight()
138 Gate *gatePt in GetMemoryAttribute()
[all...]
H A Dcircuit.cpp73 Gate *Circuit::AllocateGateSpace(size_t numIns) in AllocateGateSpace()
76 return reinterpret_cast<Gate *>(AllocateSpace(Gate::GetGateSize(numIns)) + Gate::GetOutListSize(numIns)); in AllocateGateSpace()
132 std::vector<Gate *> inPtrList(numIns); in NewGate()
138 auto newGate = new (gateSpace) Gate(meta, gateCount_++, inPtrList.data(), machineType, type); in NewGate()
198 out += Gate::GetGateSize(reinterpret_cast<const Out *>(LoadGatePtrConst(GateRef(out)))->GetIndex() + 1)) { in GetAllGates()
206 GateRef Circuit::GetGateRef(const Gate *gate) const in GetGateRef()
212 Gate *Circuit::LoadGatePtr(GateRef shift) in LoadGatePtr()
216 return reinterpret_cast<Gate *>(GetDataPt in LoadGatePtr()
[all...]
H A Dgate_matchers.h42 GateRef Gate() const in Gate() function in panda::ecmascript::kungfu::GateMatcher
99 return gate == Gate(); in Equals()
107 return acc_.TryGetValue(Gate()); in ConditionValue()
116 // resolved value may not be a parameter of the input gate. The Gate() method
334 return Left().Gate() == Right().Gate(); in LeftEqualsRight()
341 if (*it != Gate()) { in OwnsInput()
352 acc_.ReplaceValueIn(Gate(), Left().Gate(), 0); in SwapInputs()
353 acc_.ReplaceValueIn(Gate(), Righ in SwapInputs()
[all...]
H A Dcircuit_builder.cpp825 result = CallRuntime(glue, RTSTUB_ID(GetStringFromCache), Gate::InvalidGateRef, in GetObjectFromConstPool()
828 result = CallRuntime(glue, RTSTUB_ID(GetArrayLiteralFromCache), Gate::InvalidGateRef, in GetObjectFromConstPool()
831 result = CallRuntime(glue, RTSTUB_ID(GetObjectLiteralFromCache), Gate::InvalidGateRef, in GetObjectFromConstPool()
834 result = CallRuntime(glue, RTSTUB_ID(GetMethodFromCache), Gate::InvalidGateRef, in GetObjectFromConstPool()
851 result = CallRuntime(glue, RTSTUB_ID(GetMethodFromCache), Gate::InvalidGateRef, in GetObjectFromConstPool()
862 result = CallRuntime(glue, RTSTUB_ID(GetMethodFromCache), Gate::InvalidGateRef, in GetObjectFromConstPool()
876 result = CallRuntime(glue, RTSTUB_ID(GetArrayLiteralFromCache), Gate::InvalidGateRef, in GetObjectFromConstPool()
890 result = CallRuntime(glue, RTSTUB_ID(GetObjectLiteralFromCache), Gate::InvalidGateRef, in GetObjectFromConstPool()
982 GateRef same = Gate::InvalidGateRef; in TryRemoveTrivialPhi()
989 if (same != Gate in TryRemoveTrivialPhi()
[all...]
H A Dcircuit.h44 class Circuit { // note: calling NewGate could make all saved Gate* invalid
276 GateRef GetGateRef(const Gate *gate) const;
300 Gate *AllocateGateSpace(size_t numIns);
306 Gate *LoadGatePtr(GateRef shift);
307 const Gate *LoadGatePtrConst(GateRef shift) const;
H A Dbuiltins_lowering.cpp86 result = builder_.CallRuntime(glue, RTSTUB_ID(LocaleCompareCacheable), Gate::InvalidGateRef, in TypedLocaleCompare()
93 result = builder_.CallRuntime(glue, RTSTUB_ID(LocaleCompareWithGc), Gate::InvalidGateRef, in TypedLocaleCompare()
135 GateRef floor = builder_.CallNGCRuntime(glue, index, Gate::InvalidGateRef, {value}, gate); in TypedFloor()
167 GateRef result = builder_.CallRuntime(glue, index, Gate::InvalidGateRef, args, gate, name.c_str()); in LowerCallRuntime()
H A Dhcr_circuit_builder.cpp90 if (depend == Gate::InvalidGateRef) { in CallBuiltinRuntime()
108 if (depend == Gate::InvalidGateRef) { in CallBuiltinRuntimeWithNewTarget()
224 if (depend == Gate::InvalidGateRef) { in CallRuntime()
255 if (depend == Gate::InvalidGateRef) { in CallNGCRuntime()
272 GateRef result = CallNGCRuntime(glue, index, Gate::InvalidGateRef, args, gate, name.c_str()); in CallNGCRuntime()
310 if (depend == Gate::InvalidGateRef) { in FastCallOptimized()
328 if (depend == Gate::InvalidGateRef) { in CallOptimized()
H A Dverifier.cpp38 size_t out = Gate::GetGateSize(0); in RunDataIntegrityCheck()
43 if (gate < prevGate + static_cast<int64_t>(sizeof(Gate)) || in RunDataIntegrityCheck()
52 out += Gate::GetGateSize( in RunDataIntegrityCheck()
79 const Gate *curGate = circuit->LoadGatePtrConst(gate); in RunDataIntegrityCheck()
H A Dtyped_native_inline_lowering.cpp409 result = builder_.CallNGCRuntime(glue, RTSTUB_ID(FloatCeil), Gate::InvalidGateRef, {arg}, gate); in LowerMathCeilFloorWithRuntimeCall()
411 result = builder_.CallNGCRuntime(glue, RTSTUB_ID(FloatFloor), Gate::InvalidGateRef, {arg}, gate); in LowerMathCeilFloorWithRuntimeCall()
601 result = builder_.CallNGCRuntime(glue, RTSTUB_ID(FloatPow), Gate::InvalidGateRef, {base, exp}, gate); in LowerMathPow()
640 GateRef result = builder_.CallNGCRuntime(glue, stubId, Gate::InvalidGateRef, {value}, gate); in LowerGeneralUnaryMath()
650 GateRef result = builder_.CallNGCRuntime(glue, RTSTUB_ID(FloatAtan2), Gate::InvalidGateRef, {y, x}, gate); in LowerMathAtan2()
757 rounded = builder_.CallNGCRuntime(glue, RTSTUB_ID(FloatCeil), Gate::InvalidGateRef, {value}, gate); in BuildRounding()
1303 result = builder_.CallRuntime(glue, RTSTUB_ID(CallBigIntAsUintN), Gate::InvalidGateRef, in LowerBigIntAsIntN()
1306 result = builder_.CallRuntime(glue, RTSTUB_ID(CallBigIntAsIntN), Gate::InvalidGateRef, in LowerBigIntAsIntN()
1987 result = builder_.CallNGCRuntime(glue, RTSTUB_ID(StringToNumber), Gate::InvalidGateRef, in LowerNumberParseInt()
1995 result = builder_.CallRuntime(glue, RTSTUB_ID(ParseInt), Gate in LowerNumberParseInt()
[all...]
H A Dtyped_bytecode_lowering.h253 GateRef dependEntry_ {Gate::InvalidGateRef};
H A Dtyped_hcr_lowering.cpp723 GateRef result = builder_.CallRuntime(glue, index, Gate::InvalidGateRef, args, hirGate, name.c_str()); in LowerCallRuntime()
850 Gate::InvalidGateRef, { accessor, holder }, gate); in LowerCallGetter()
940 Gate::InvalidGateRef, { receiver, accessor, value }, gate); in LowerCallSetter()
2810 result = builder_.CallRuntime(glue, RTSTUB_ID(InstanceOf), Gate::InvalidGateRef, in LowerOrdinaryHasInstance()
2867 constructorPrototype = builder_.CallRuntime(glue, RTSTUB_ID(GetPropertyByName), Gate::InvalidGateRef, in LowerOrdinaryHasInstance()
2880 builder_.CallRuntime(glue, RTSTUB_ID(ThrowTypeError), Gate::InvalidGateRef, in LowerOrdinaryHasInstance()
2923 builder_.CallRuntime(glue, RTSTUB_ID(ThrowTypeError), Gate::InvalidGateRef, in LowerOrdinaryHasInstance()
2935 object = builder_.CallRuntime(glue, RTSTUB_ID(CallGetPrototype), Gate::InvalidGateRef, in LowerOrdinaryHasInstance()
3066 Gate::InvalidGateRef, { accessor, holder }, gate); in LowerMonoCallGetterOnProto()
3156 Gate in LowerMonoStorePropertyLookUpProto()
[all...]
H A Dstub_builder-inl.h226 GateRef result = env_->GetBuilder()->CallRuntime(glue, index, Gate::InvalidGateRef, args, in CallRuntime()
245 result = env_->GetBuilder()->CallNGCRuntime(glue, index, Gate::InvalidGateRef, args, in CallNGCRuntime()
248 result = env_->GetBuilder()->CallNGCRuntime(glue, index, Gate::InvalidGateRef, args, in CallNGCRuntime()
258 result = env_->GetBuilder()->FastCallOptimized(glue, code, Gate::InvalidGateRef, args, hir); in FastCallOptimized()
260 result = env_->GetBuilder()->FastCallOptimized(glue, code, Gate::InvalidGateRef, args, Circuit::NullGate()); in FastCallOptimized()
269 result = env_->GetBuilder()->CallOptimized(glue, code, Gate::InvalidGateRef, args, hir); in CallOptimized()
271 result = env_->GetBuilder()->CallOptimized(glue, code, Gate::InvalidGateRef, args, Circuit::NullGate()); in CallOptimized()
296 return env_->GetBuilder()->CallBuiltinRuntime(glue, Gate::InvalidGateRef, args, isNew); in CallBuiltinRuntime()
301 return env_->GetBuilder()->CallBuiltinRuntimeWithNewTarget(glue, Gate::InvalidGateRef, args); in CallBuiltinRuntimeWithNewTarget()
H A Dlcr_circuit_builder.cpp175 return CallNGCRuntime(glue, RTSTUB_ID(FloatTrunc), Gate::InvalidGateRef, {value}, gate, comment); in DoubleTrunc()
H A Dntype_hcr_lowering.cpp279 GateRef result = builder_.CallRuntime(glue, index, Gate::InvalidGateRef, args, hirGate, name.c_str()); in LowerCallRuntime()
H A Dshare_gate_meta_data.h238 friend class Gate;
H A Dmcr_circuit_builder.cpp1300 CallRuntime(glue, RTSTUB_ID(ComputeHashcode), Gate::InvalidGateRef, { value }, hir)); in GetHashcodeFromString()
1711 result = CallRuntime(glue, RTSTUB_ID(ToNumber), Gate::InvalidGateRef, { value }, gate); in ToNumber()
1722 return CallNGCRuntime(glue, RTSTUB_ID(StringToNumber), Gate::InvalidGateRef, { value, radix }, gate); in StringToNumber()
H A Dcircuit_builder.h514 GateRef ProtoChangeMarkerCheck(GateRef gate, GateRef frameState = Gate::InvalidGateRef);
532 GateRef frameState = Gate::InvalidGateRef);
H A Dstub_builder.h658 bool updateHandler = false, GateRef profileTypeInfo = Gate::InvalidGateRef,
659 GateRef slotId = Gate::InvalidGateRef);
H A Dnumber_speculative_lowering.cpp401 Gate::InvalidGateRef, {left, right}, Circuit::NullGate()); in VisitNumberMod()
H A Dtyped_bytecode_lowering.cpp824 builder_.CallRuntime(glue_, RTSTUB_ID(UpdateAOTHClass), Gate::InvalidGateRef, in LowerTypedStObjByName()
850 Gate::InvalidGateRef, in LowerTypedStObjByName()
/arkcompiler/ets_runtime/ecmascript/compiler/tests/
H A Dinstruction_combine_test.cpp105 EXPECT_EQ(result_m.Left().Gate(), y); in HWTEST_F_L0()
168 EXPECT_EQ(m.Left().Gate(), y); in HWTEST_F_L0()
169 EXPECT_EQ(m.Right().Gate(), x); in HWTEST_F_L0()
179 EXPECT_EQ(m.Left().Gate(), y); in HWTEST_F_L0()
180 EXPECT_EQ(m.Right().Gate(), x); in HWTEST_F_L0()
191 EXPECT_EQ(result_m.Left().Gate(), y); in HWTEST_F_L0()
202 EXPECT_EQ(result_m.Left().Gate(), y); in HWTEST_F_L0()
261 EXPECT_EQ(m.Left().Gate(), x); in HWTEST_F_L0()
274 EXPECT_EQ(m.Left().Gate(), x); in HWTEST_F_L0()
332 EXPECT_EQ(m.Left().Gate(), in HWTEST_F_L0()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
H A Dbuiltins_stubs.h76 GateRef GetArgFromArgv(GateRef index, GateRef numArgs = Gate::InvalidGateRef, bool needCheck = false);

Completed in 51 milliseconds

12