/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | lcr_lowering.cpp | 110 Environment env(gate, circuit_, &builder_); in LowerConvertHoleAsUndefined() 112 Label returnUndefined(&builder_); in LowerConvertHoleAsUndefined() 113 Label exit(&builder_); in LowerConvertHoleAsUndefined() 115 DEFVAlUE(result, (&builder_), VariableType::JS_ANY(), receiver); in LowerConvertHoleAsUndefined() 117 builder_.Branch(builder_.TaggedIsHole(*result), &returnUndefined, &exit); in LowerConvertHoleAsUndefined() 118 builder_.Bind(&returnUndefined); in LowerConvertHoleAsUndefined() 120 result = builder_.UndefineConstant(); in LowerConvertHoleAsUndefined() 121 builder_.Jump(&exit); in LowerConvertHoleAsUndefined() 123 builder_.Bind(&exit); in LowerConvertHoleAsUndefined() 124 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), *result); in LowerConvertHoleAsUndefined() [all …]
|
D | builtins_lowering.cpp | 21 Environment env(gate, circuit_, &builder_); in LowerTypedCallBuitin() 47 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), ret); in LowerTypedTrigonometric() 52 auto env = builder_.GetCurrentEnvironment(); in TypedTrigonometric() 53 Label entry(&builder_); in TypedTrigonometric() 56 Label numberBranch(&builder_); in TypedTrigonometric() 57 Label notNumberBranch(&builder_); in TypedTrigonometric() 58 Label exit(&builder_); in TypedTrigonometric() 61 DEFVAlUE(result, (&builder_), VariableType::JS_ANY(), builder_.HoleConstant()); in TypedTrigonometric() 63 builder_.Branch(builder_.TaggedIsNumber(para1), &numberBranch, ¬NumberBranch); in TypedTrigonometric() 64 builder_.Bind(&numberBranch); in TypedTrigonometric() [all …]
|
D | type_mcr_lowering.cpp | 174 Environment env(gate, circuit_, &builder_); in LowerPrimitiveTypeCheck() 195 GateRef typeCheck = builder_.TaggedIsInt(value); in LowerIntCheck() 196 builder_.DeoptCheck(typeCheck, frameState, DeoptType::NOTINT); in LowerIntCheck() 198 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), Circuit::NullGate()); in LowerIntCheck() 206 GateRef typeCheck = builder_.TaggedIsDouble(value); in LowerDoubleCheck() 207 builder_.DeoptCheck(typeCheck, frameState, DeoptType::NOTDOUBLE); in LowerDoubleCheck() 209 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), Circuit::NullGate()); in LowerDoubleCheck() 217 GateRef typeCheck = builder_.TaggedIsNumber(value); in LowerNumberCheck() 218 builder_.DeoptCheck(typeCheck, frameState, DeoptType::NOTNUMBER); in LowerNumberCheck() 220 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), Circuit::NullGate()); in LowerNumberCheck() [all …]
|
D | slowpath_lowering.cpp | 29 builder_.Bind(&SuccessLabel); \ 31 successControl.SetState(builder_.GetState()); \ 32 successControl.SetDepend(builder_.GetDepend()); \ 34 builder_.Bind(&FailLabel); \ 36 failControl.SetState(builder_.GetState()); \ 37 failControl.SetDepend(builder_.GetDepend()); \ 53 Environment env(gate, circuit_, &builder_); in CallRuntimeLowering() 97 GateRef envOffset = builder_.IntPtr(JSFunction::LEXICAL_ENV_OFFSET); in LowerGetEnv() 98 GateRef env = builder_.Load(VariableType::JS_ANY(), jsFunc, envOffset, acc_.GetDependRoot()); in LowerGetEnv() 119 Label exit(&builder_); in LowerToJSCall() [all …]
|
D | ntype_mcr_lowering.cpp | 59 Environment env(gate, circuit_, &builder_); in LowerCreateArray() 69 GateRef length = builder_.Int32(0); in LowerCreateEmptyArray() 70 GateRef elements = builder_.GetGlobalConstantValue(ConstantIndex::EMPTY_ARRAY_OBJECT_INDEX); in LowerCreateEmptyArray() 73 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), array); in LowerCreateEmptyArray() 79 GateRef length = builder_.IntPtr(elementsLength); in LowerCreateArrayWithOwn() 84 …elements = LowerCallRuntime(glue, gate, RTSTUB_ID(NewTaggedArray), { builder_.Int32ToTaggedInt(len… in LowerCreateArrayWithOwn() 88 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), array); in LowerCreateArrayWithOwn() 93 Environment env(gate, circuit_, &builder_); in LowerCreateArrayWithBuffer() 113 GateRef length = builder_.IntPtr(arrayLength); in LowerCreateArrayWithBuffer() 116 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), array); in LowerCreateArrayWithBuffer() [all …]
|
D | number_speculative_lowering.cpp | 103 Environment env(gate, circuit_, &builder_); in VisitTypedBinaryOp() 198 Environment env(gate, circuit_, &builder_); in VisitTypedUnaryOp() 232 Environment env(gate, circuit_, &builder_); in VisitTypedConditionJump() 265 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in VisitNumberCalculate() 293 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in VisitNumberCompare() 305 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in VisitNumberShift() 317 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in VisitNumberLogical() 335 result = builder_.Int32DivWithCheck(left, right); in VisitNumberDiv() 338 result = builder_.BinaryArithmetic(circuit_->Fdiv(), in VisitNumberDiv() 343 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in VisitNumberDiv() [all …]
|
D | ntype_hcr_lowering.cpp | 49 Environment env(gate, circuit_, &builder_); in Lower() 85 builder_.LexVarIsHoleCheck(value); in LowerThrowUndefinedIfHoleWithName() 86 acc_.ReplaceHirAndDeleteIfException(gate, builder_.GetStateDepend(), Circuit::NullGate()); in LowerThrowUndefinedIfHoleWithName() 101 result = builder_.LoadFromTaggedArray(currentEnv, indexValue); in LowerLdLexVar() 103 auto parentEnv = builder_.LoadFromTaggedArray(currentEnv, LexicalEnv::PARENT_ENV_INDEX); in LowerLdLexVar() 104 result = builder_.LoadFromTaggedArray(parentEnv, indexValue); in LowerLdLexVar() 109 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), result); in LowerLdLexVar() 125 result = builder_.StoreToTaggedArray(currentEnv, indexValue, value); in LowerStLexVar() 127 auto parentEnv = builder_.LoadFromTaggedArray(currentEnv, LexicalEnv::PARENT_ENV_INDEX); in LowerStLexVar() 128 result = builder_.StoreToTaggedArray(parentEnv, indexValue, value); in LowerStLexVar() [all …]
|
D | ts_hcr_lowering.cpp | 130 Environment env(gate, circuit_, &builder_); in Lower() 337 GateRef result = builder_.TypedBinaryOp<TypedBinOp::TYPED_STRICTEQ>( in LowerTypedStrictEq() 339 acc_.ReplaceHirAndDeleteIfException(gate, builder_.GetStateDepend(), result); in LowerTypedStrictEq() 449 …GateRef result = builder_.TypedBinaryOp<Op>(left, right, leftType, rightType, gateType, sampleType… in SpeculateNumbers() 450 acc_.ReplaceHirAndDeleteIfException(gate, builder_.GetStateDepend(), result); in SpeculateNumbers() 474 GateRef result = builder_.TypedUnaryOp<Op>(value, valueType, gateType); in SpeculateNumber() 476 acc_.ReplaceHirAndDeleteIfException(gate, builder_.GetStateDepend(), result); in SpeculateNumber() 493 GateRef result = builder_.PrimitiveToNumber(src, VariableType(MachineType::I64, srcType)); in LowerPrimitiveTypeToNumber() 495 acc_.ReplaceHirAndDeleteIfException(gate, builder_.GetStateDepend(), result); in LowerPrimitiveTypeToNumber() 514 jump = builder_.TypedConditionJump<TypedJumpOp::TYPED_JNEZ>(value, valueType); in SpeculateConditionJump() [all …]
|
D | number_speculative_retype.cpp | 261 Environment env(state, depend, {}, circuit_, &builder_); in VisitPhi() 263 acc_.ReplaceStateIn(merge, builder_.GetState(), i); in VisitPhi() 264 acc_.ReplaceDependIn(dependSelector, builder_.GetDepend(), i); in VisitPhi() 328 Environment env(gate, circuit_, &builder_); in VisitTypedUnaryOp() 347 Environment env(gate, circuit_, &builder_); in VisitTypedConditionJump() 370 Environment env(gate, circuit_, &builder_); in VisitNumberCalculate() 382 Environment env(gate, circuit_, &builder_); in VisitNumberCompare() 394 Environment env(gate, circuit_, &builder_); in VisitNumberShiftAndLogical() 433 acc_.ReplaceStateIn(gate, builder_.GetState()); in VisitIntMonocular() 434 acc_.ReplaceDependIn(gate, builder_.GetDepend()); in VisitIntMonocular() [all …]
|
D | frame_states.cpp | 22 : builder_(builder), in FrameStateBuilder() 38 builder_ = nullptr; in ~FrameStateBuilder() 60 GateRef frameArgs = builder_->GetFrameArgs(); in BuildFrameStateGate() 61 GateRef preFrameState = builder_->GetPreFrameState(); in BuildFrameStateGate() 78 if (builder_->IsLogEnabled()) { in BindStateSplit() 92 if (builder_->IsLogEnabled()) { in BindStateSplit() 121 auto &bb = builder_->GetBasicBlockById(curBlockId); in BuildPostOrderList() 264 auto &bb = builder_->GetBasicBlockById(bbId); in ComputeLiveOut() 331 bcEndStateInfos_.resize(builder_->GetLastBcIndex() + 1, nullptr); // 1: +1 pcOffsets size in BuildFrameState() 332 auto size = builder_->GetBasicBlockCount(); in BuildFrameState() [all …]
|
D | llvm_ir_builder.cpp | 68 builder_ = LLVMCreateBuilderInContext(context_); in LLVMIRBuilder() 97 if (builder_ != nullptr) { in ~LLVMIRBuilder() 98 LLVMDisposeBuilder(builder_); in ~LLVMIRBuilder() 99 builder_ = nullptr; in ~LLVMIRBuilder() 289 LLVMPositionBuilderAtEnd(builder_, impl->lBB_); in SetToCfg() 355 SaveFrameTypeOnFrame(frameType, builder_); in GenPrologue() 374 SaveFrameTypeOnFrame(frameType, builder_); in GenPrologue() 425 LLVMValueRef fAddrRet = LLVMBuildCall(builder_, fn, args.data(), 1, ""); in ReadRegister() 521 …LLVMValueRef rtbaseAddr = LLVMBuildIntToPtr(builder_, rtbaseoffset, LLVMPointerType(glueType, 0), … in GetFunction() 525 LLVMValueRef llvmAddr = LLVMBuildLoad(builder_, rtbaseAddr, name.c_str()); in GetFunction() [all …]
|
D | async_function_lowering.cpp | 39 GateRef isEqual = builder_.Equal(newTarget, builder_.Undefined()); in ProcessJumpTable() 41 GateRef ifBranchCondition = builder_.Branch(stateEntry_, isEqual); in ProcessJumpTable() 42 GateRef ifTrueCondition = builder_.IfTrue(ifBranchCondition); in ProcessJumpTable() 43 GateRef ifFalseCondition = builder_.IfFalse(ifBranchCondition); in ProcessJumpTable() 49 GateRef contextOffset = builder_.IntPtr(JSGeneratorObject::GENERATOR_CONTEXT_OFFSET); in ProcessJumpTable() 50 GateRef val = builder_.PtrAdd(newTarget, contextOffset); in ProcessJumpTable() 51 GateRef dependStart = builder_.DependRelay(ifFalseCondition, dependEntry_); in ProcessJumpTable() 54 GateRef bcOffset = builder_.IntPtr(GeneratorContext::GENERATOR_BC_OFFSET_OFFSET); in ProcessJumpTable() 55 val = builder_.PtrAdd(contextGate, bcOffset); in ProcessJumpTable() 77 offsetConstantGate = builder_.TruncInt64ToInt32(offsetConstantGate); in RebuildGeneratorCfg() [all …]
|
D | builtins_lowering.h | 27 … explicit BuiltinLowering(Circuit *circuit): circuit_(circuit), builder_(circuit), acc_(circuit) {} in BuiltinLowering() 46 CircuitBuilder builder_; variable
|
D | stub.cpp | 22 builder_(circuit), in Stub() 24 env_(callSignature->GetParametersCount(), &builder_) in Stub()
|
D | ntype_hcr_lowering.h | 32 builder_(circuit, ctx->GetCompilerConfig()), in NTypeHCRLowering() 77 CircuitBuilder builder_; variable
|
D | async_function_lowering.h | 31 … : bcBuilder_(bcBuilder), circuit_(circuit), builder_(circuit, cmpCfg), enableLog_(enableLog), in AsyncFunctionLowering() 74 CircuitBuilder builder_; variable
|
D | range_guard.h | 33 builder_(circuit), dependChains_(chunk) {} in RangeGuard() 61 CircuitBuilder builder_; variable
|
D | range_analysis.h | 31 : GraphVisitor(circuit, chunk), acc_(circuit), builder_(circuit), in RangeAnalysis() 57 CircuitBuilder builder_; variable
|
D | range_guard.cpp | 95 Environment env(gate, circuit_, &builder_); in TryApplyRangeGuardForLength() 97 auto rangeGuardGate = builder_.RangeGuard(input, 1, length); in TryApplyRangeGuardForLength() 108 Environment env(gate, circuit_, &builder_); in TryApplyRangeGuardForIndex() 110 auto rangeGuardGate = builder_.RangeGuard(input, 0, length); in TryApplyRangeGuardForIndex()
|
D | ntype_mcr_lowering.h | 31 builder_(circuit, ctx->GetCompilerConfig()), in NTypeMCRLowering() 77 CircuitBuilder builder_; variable
|
D | stub.h | 52 CircuitBuilder builder_; variable
|
D | number_speculative_lowering.h | 32 : circuit_(circuit), acc_(circuit), builder_(circuit), typeInfos_(typeInfos), in NumberSpeculativeLowering() 99 CircuitBuilder builder_; variable
|
/arkcompiler/runtime_core/compiler/tests/ |
D | unit_test.cpp | 68 builder_ = new IrConstructor(); in PandaRuntimeTest() 75 delete builder_; in ~PandaRuntimeTest() 149 delete builder_; in ~CommonTest()
|
/arkcompiler/ets_runtime/ecmascript/compiler/type_inference/ |
D | pgo_type_infer.cpp | 282 if (!builder_->ShouldPGOTypeInfer(gate)) { in InferLdObjByName() 295 if (!builder_->ShouldPGOTypeInfer(gate)) { in InferStObjByName() 317 if (!builder_->ShouldPGOTypeInfer(gate)) { in InferStOwnByName() 333 PGORWOpType pgoTypes = builder_->GetPGOType(gate); in UpdateTypeForRWOp() 356 if (!builder_->ShouldPGOTypeInfer(gate)) { in InferAccessObjByValue() 360 ElementsKind kind = builder_->GetElementsKind(gate); in InferAccessObjByValue()
|
D | pgo_type_infer.h | 30 … builder_(builder), methodName_(name), chunk_(chunk), enableLog_(enableLog), profiler_(chunk) {} in PGOTypeInfer() 88 BytecodeCircuitBuilder *builder_ {nullptr};
|