/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | instruction_combine.cpp | 199 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 D | gate.cpp | 21 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 D | gate.h | 46 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 D | gate_accessor.cpp | 28 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 D | circuit.cpp | 73 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 D | gate_matchers.h | 42 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 D | circuit_builder.cpp | 825 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 D | circuit.h | 44 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 D | builtins_lowering.cpp | 86 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 D | hcr_circuit_builder.cpp | 90 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 D | verifier.cpp | 38 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 D | typed_native_inline_lowering.cpp | 409 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 D | typed_bytecode_lowering.h | 253 GateRef dependEntry_ {Gate::InvalidGateRef};
|
H A D | typed_hcr_lowering.cpp | 723 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 D | stub_builder-inl.h | 226 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 D | lcr_circuit_builder.cpp | 175 return CallNGCRuntime(glue, RTSTUB_ID(FloatTrunc), Gate::InvalidGateRef, {value}, gate, comment); in DoubleTrunc()
|
H A D | ntype_hcr_lowering.cpp | 279 GateRef result = builder_.CallRuntime(glue, index, Gate::InvalidGateRef, args, hirGate, name.c_str()); in LowerCallRuntime()
|
H A D | share_gate_meta_data.h | 238 friend class Gate;
|
H A D | mcr_circuit_builder.cpp | 1300 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 D | circuit_builder.h | 514 GateRef ProtoChangeMarkerCheck(GateRef gate, GateRef frameState = Gate::InvalidGateRef); 532 GateRef frameState = Gate::InvalidGateRef);
|
H A D | stub_builder.h | 658 bool updateHandler = false, GateRef profileTypeInfo = Gate::InvalidGateRef, 659 GateRef slotId = Gate::InvalidGateRef);
|
H A D | number_speculative_lowering.cpp | 401 Gate::InvalidGateRef, {left, right}, Circuit::NullGate()); in VisitNumberMod()
|
H A D | typed_bytecode_lowering.cpp | 824 builder_.CallRuntime(glue_, RTSTUB_ID(UpdateAOTHClass), Gate::InvalidGateRef, in LowerTypedStObjByName() 850 Gate::InvalidGateRef, in LowerTypedStObjByName()
|
/arkcompiler/ets_runtime/ecmascript/compiler/tests/ |
H A D | instruction_combine_test.cpp | 105 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 D | builtins_stubs.h | 76 GateRef GetArgFromArgv(GateRef index, GateRef numArgs = Gate::InvalidGateRef, bool needCheck = false);
|