/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | scheduler.cpp | 28 GateAccessor acc(const_cast<Circuit*>(circuit)); in CalculateDominatorTree() local 35 auto startGate = acc.GetStateRoot(); in CalculateDominatorTree() 36 acc.SetMark(startGate, MarkCode::VISITED); in CalculateDominatorTree() 43 if (acc.GetOpCode(curGate) != OpCode::LOOP_BACK) { in CalculateDominatorTree() 44 auto uses = acc.Uses(curGate); in CalculateDominatorTree() 46 if (useIt.GetIndex() < acc.GetStateCount(*useIt) && in CalculateDominatorTree() 47 acc.IsState(*useIt) && acc.GetMark(*useIt) == MarkCode::NO_MARK) { in CalculateDominatorTree() 48 acc.SetMark(*useIt, MarkCode::VISITED); in CalculateDominatorTree() 86 acc.GetInStates(bbGatesList[idx], preGates); in CalculateDominatorTree() 122 GateAccessor acc(const_cast<Circuit*>(circuit)); in Run() local [all …]
|
D | interpreter_stub.cpp | 49 GateRef acc = TaggedArgument(static_cast<size_t>(InterpreterHandlerInputs::ACC)); \ 54 GenerateCircuitImpl(glue, sp, pc, constpool, profileTypeInfo, acc, hotnessCounter, callback); \ 60 GateRef acc, GateRef hotnessCounter, \ 87 DISPATCH_BASE(profileTypeInfo, acc, hotnessCounter, offset) 95 DISPATCH_BASE(*varProfileTypeInfo, acc, *varHotnessCounter, offset) 112 DispatchLast(glue, sp, pc, constpool, profileTypeInfo, acc, hotnessCounter) \ 142 CheckException(glue, sp, pc, constpool, profileTypeInfo, acc, hotnessCounter, \ 150 CheckExceptionWithJump(glue, sp, pc, constpool, profileTypeInfo, acc, hotnessCounter, \ 154 CheckExceptionWithVar(glue, sp, pc, constpool, profileTypeInfo, acc, hotnessCounter, \ 162 CheckPendingException(glue, sp, pc, constpool, profileTypeInfo, acc, hotnessCounter, \ [all …]
|
D | interpreter_stub.h | 117 inline void SetFrameState(GateRef glue, GateRef sp, GateRef function, GateRef acc, 121 GateRef profileTypeInfo, GateRef acc, GateRef hotnessCounter, 124 GateRef profileTypeInfo, GateRef acc, GateRef hotnessCounter, 127 GateRef profileTypeInfo, GateRef acc, GateRef hotnessCounter, 130 GateRef profileTypeInfo, GateRef acc, GateRef hotnessCounter, 140 … GateRef profileTypeInfo, GateRef acc, GateRef hotnessCounter, GateRef format); 142 … GateRef profileTypeInfo, GateRef acc, GateRef hotnessCounter, GateRef index); 144 GateRef profileTypeInfo, GateRef acc, GateRef hotnessCounter); 146 GateRef profileTypeInfo, GateRef acc, GateRef hotnessCounter); 148 GateRef profileTypeInfo, GateRef acc, GateRef hotnessCounter); [all …]
|
D | graph_linearizer.h | 43 void SetVisited(GateAccessor& acc) in SetVisited() argument 45 acc.SetMark(state_, MarkCode::VISITED); in SetVisited() 48 void SetFinished(GateAccessor& acc) in SetFinished() argument 50 acc.SetMark(state_, MarkCode::FINISHED); in SetFinished() 53 bool IsUnvisited(GateAccessor& acc) const in IsUnvisited() argument 55 return acc.GetMark(state_) == MarkCode::NO_MARK; in IsUnvisited() 58 bool IsVisited(GateAccessor& acc) const in IsVisited() argument 60 return acc.GetMark(state_) == MarkCode::VISITED; in IsVisited() 63 bool IsFinished(GateAccessor& acc) const in IsFinished() argument 65 return acc.GetMark(state_) == MarkCode::FINISHED; in IsFinished() [all …]
|
D | interpreter_stub-inl.h | 322 void InterpreterStubBuilder::SetFrameState(GateRef glue, GateRef sp, GateRef function, GateRef acc, in SetFrameState() argument 327 SetAccToFrame(glue, state, acc); in SetFrameState() 550 GateRef acc, GateRef hotnessCounter, GateRef format) in Dispatch() argument 555 DispatchBase(target, glue, sp, newPc, constpool, profileTypeInfo, acc, hotnessCounter); in Dispatch() 560 GateRef profileTypeInfo, GateRef acc, GateRef hotnessCounter) in DispatchLast() argument 563 DispatchBase(target, glue, sp, pc, constpool, profileTypeInfo, acc, hotnessCounter); in DispatchLast() 568 GateRef profileTypeInfo, GateRef acc, GateRef hotnessCounter) in DispatchDebugger() argument 572 auto args = { glue, sp, pc, constpool, profileTypeInfo, acc, hotnessCounter }; in DispatchDebugger() 578 GateRef profileTypeInfo, GateRef acc, GateRef hotnessCounter) in DispatchDebuggerLast() argument 581 auto args = { glue, sp, pc, constpool, profileTypeInfo, acc, hotnessCounter }; in DispatchDebuggerLast() [all …]
|
D | bytecode_circuit_builder.h | 291 …GateRef ResolveDef(const size_t bbId, int32_t bcId, const uint16_t reg, const bool acc, bool needI… 292 GateRef ResolveDef(const BytecodeRegion &bb, int32_t bcId, const uint16_t reg, const bool acc); 564 void NewPhi(BytecodeRegion &bb, uint16_t reg, bool acc, GateRef ¤tPhi); 565 GateRef NewLoopBackPhi(BytecodeRegion &bb, uint16_t reg, bool acc); 566 GateRef NewLoopForwardPhi(BytecodeRegion &bb, uint16_t reg, bool acc); 567 bool IsLoopExitValueExists(GateRef loopExit, uint16_t reg, bool acc); 568 GateRef GetLoopExitValue(GateRef loopExit, uint16_t reg, bool acc); 569 GateRef CreateLoopExitValue(GateRef loopExit, uint16_t reg, bool acc, GateRef value); 570 GateRef NewLoopExitValue(GateRef loopExit, uint16_t reg, bool acc, GateRef value); 571 … GateRef NewValueFromPredBB(BytecodeRegion &bb, size_t idx, GateRef exit, uint16_t reg, bool acc);
|
D | circuit.cpp | 497 const GateAccessor acc(const_cast<Circuit*>(this)); in GetStateRoot() local 498 return acc.GetStateRoot(); in GetStateRoot() 503 const GateAccessor acc(const_cast<Circuit*>(this)); in GetDependRoot() local 504 return acc.GetDependRoot(); in GetDependRoot() 509 const GateAccessor acc(const_cast<Circuit*>(this)); in GetArgRoot() local 510 return acc.GetArgRoot(); in GetArgRoot() 515 const GateAccessor acc(const_cast<Circuit*>(this)); in GetReturnRoot() local 516 return acc.GetReturnRoot(); in GetReturnRoot()
|
D | bytecode_circuit_builder.cpp | 1089 GateRef BytecodeCircuitBuilder::NewLoopBackPhi(BytecodeRegion &bb, uint16_t reg, bool acc) in NewLoopBackPhi() argument 1095 return NewValueFromPredBB(bb, i, gateAcc_.GetState(bb.stateCurrent, 1), reg, acc); in NewLoopBackPhi() 1110 reg, acc); in NewLoopBackPhi() 1132 GateRef exit, uint16_t reg, bool acc) in NewValueFromPredBB() argument 1136 return ResolveDef(predId, predBcIdx, reg, acc); in NewValueFromPredBB() 1141 if (IsLoopExitValueExists(exit, reg, acc)) { in NewValueFromPredBB() 1142 return GetLoopExitValue(exit, reg, acc); in NewValueFromPredBB() 1144 GateRef res = ResolveDef(predId, predBcIdx, reg, acc); in NewValueFromPredBB() 1145 return NewLoopExitValue(exit, reg, acc, res); in NewValueFromPredBB() 1148 GateRef BytecodeCircuitBuilder::NewLoopForwardPhi(BytecodeRegion &bb, uint16_t reg, bool acc) in NewLoopForwardPhi() argument [all …]
|
/arkcompiler/runtime_core/tests/cts-assembly/ |
D | arrays-08.pa | 29 # if acc < 0 || acc >= len(vs) then 33 # acc = f32tof64(vs[acc]) 35 # acc = i8toi32(vs[acc]) 37 # acc = u8toi32(vs[acc]) 39 # acc = i16toi32(vs[acc]) 41 # acc = u16toi32(vs[acc]) 43 # acc = vs[acc]
|
D | arrays-07.pa | 29 # if acc < 0 || acc >= len(vs) then 33 # acc = f32tof64(vs[acc]) 35 # acc = i8toi32(vs[acc]) 37 # acc = u8toi32(vs[acc]) 39 # acc = i16toi32(vs[acc]) 41 # acc = u16toi32(vs[acc]) 43 # acc = vs[acc]
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | typeInferenceReturnTypeCallback.ts | 34 AssertType(this.foldRight(new Nil<U>(), (t, acc) => { return new Cons<U>(); }), "… 39 AssertType((t, acc) => { return new Cons<U>(); }, "(T, Nil<U>) => Cons<U>"); 41 AssertType(acc, "Nil<U>"); 42 return this.foldRight(new Nil<U>(), (t, acc) => { 51 foldRight<E>(z: E, f: (t: T, acc: E) => E): E {
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | accessor_data_test.cpp | 69 AccessorData *acc = AccessorData::Cast(accObject); in HWTEST_F_L0() local 70 EXPECT_TRUE(JSTaggedValue(acc).IsAccessorData()); in HWTEST_F_L0() 100 AccessorData *acc = AccessorData::Cast(accObject); in HWTEST_F_L0() local 101 acc->SetGetter(thread, JSTaggedValue::Undefined()); in HWTEST_F_L0() 102 acc->SetSetter(thread, JSTaggedValue::Undefined()); in HWTEST_F_L0() 103 EXPECT_EQ(acc->IsInternal(), false); in HWTEST_F_L0() 146 AccessorData *acc = AccessorData::Cast(accObject); in HWTEST_F_L0() local 147 acc->SetGetter(thread, JSTaggedValue::Undefined()); in HWTEST_F_L0() 148 EXPECT_EQ(acc->HasSetter(), true); in HWTEST_F_L0() 149 acc->SetSetter(thread, JSTaggedValue::Undefined()); in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/ecmascript/interpreter/ |
D | interpreter_assembly.cpp | 89 #define SAVE_ACC() (GET_ASM_FRAME(sp)->acc = acc) // NOLINT(cppcoreguidelines-pro-bounds-pointer-a… 91 #define RESTORE_ACC() (acc = GET_ASM_FRAME(sp)->acc) // NOLINT(cppcoreguidelines-pro-bounds-pointe… 97 …GET_ASM_FRAME(sp)->acc = JSTaggedValue::Exception(); … 195 #define GET_ACC() (acc) // NOLINT(cppcoreguidelines-macro-usage) 196 #define SET_ACC(val) (acc = val) // NOLINT(cppcoreguidelines-macro-usage) 259 auto acc = reinterpret_cast<InterpreterEntry>(entry)(thread->GetGlueAddr(), in Execute() local 266 return JSTaggedValue(acc); in Execute() 274 …auto acc = reinterpret_cast<GeneratorReEnterInterpEntry>(entry)(thread->GetGlueAddr(), context.Get… in GeneratorReEnterInterpreter() local 275 return JSTaggedValue(acc); in GeneratorReEnterInterpreter() 280 JSTaggedValue acc, int16_t hotnessCounter) in HandleMovV4V4() argument [all …]
|
/arkcompiler/runtime_core/tests/irtoc-interpreter-tests/ |
D | call.acc.pa | 47 call.acc.short foo, v0, 0x0 49 call.acc.short bar, v0, 0x1 51 call.acc first, v0, v0, v0, 0x0 53 call.acc second, v0, v0, v0, 0x1 55 call.acc third, v0, v0, v0, 0x2 57 call.acc fourth, v0, v0, v0, 0x3
|
D | call.virt.pa | 37 call.virt.acc.short A.get_a, v0, 0
|
/arkcompiler/ets_runtime/ecmascript/compiler/tests/ |
D | lowering_relate_gate_test.cpp | 51 GateAccessor acc(&circuit); in HWTEST_F_L0() local 54 auto depend = acc.GetDependRoot(); in HWTEST_F_L0() 55 auto state = acc.GetStateRoot(); in HWTEST_F_L0() 78 GateAccessor acc(&circuit); in HWTEST_F_L0() local 79 auto entry = acc.GetStateRoot(); in HWTEST_F_L0() 80 auto depend = acc.GetDependRoot(); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/tools/circuit_viewer/examples/ |
D | log_loop.txt | 16 [compiler] < 0: LDAI_IMM32, In=[], Out=[acc,] > 17 [compiler] < 1: STA_V8, In=[acc,], Out=[0,] > 18 [compiler] < 2: LDAI_IMM32, In=[], Out=[acc,] > 19 [compiler] < 3: STA_V8, In=[acc,], Out=[1,] > 29 [compiler] < 4: LDA_V8, In=[0,], Out=[acc,] > 30 [compiler] < 5: LESS_IMM8_V8, In=[acc,1,], Out=[acc,] > 31 [compiler] < 6: ISFALSE, In=[acc,], Out=[acc,] > 32 [compiler] < 7: JNEZ_IMM8, In=[acc,], Out=[] > 42 [compiler] < 8: TRYLDGLOBALBYNAME_IMM8_ID16, In=[], Out=[acc,] > 43 [compiler] < 9: CALLARG1_IMM8_V8, In=[acc,1,], Out=[acc,] > [all …]
|
/arkcompiler/runtime_core/tests/verifier-tests/ |
D | bug_2817.pa | 17 ldai.64 0 # incorrect type of acc
|
D | issue_964.pa | 16 f64toi32 # instruction is invalid because acc value does not match expected type.
|
D | bug_2787.pa | 15 # no acc init
|
D | wrong_accumulator_position.pa | 21 call.acc f4, v0, v0, v0, 4 # 4 is not allowed here
|
D | bug_3219.pa | 23 starr.obj v0, v1 # v0[v1] = acc
|
/arkcompiler/ets_runtime/ecmascript/ts_types/ |
D | ts_type_accessor.cpp | 129 EcmaStringAccessor acc(funcType->GetName()); in GetFunctionName() local 130 std::string nameStr = acc.ToStdString(); in GetFunctionName()
|
/arkcompiler/runtime_core/docs/ |
D | PBC2IR.md | 200 | call.acc.short | SaveState, i64 CallStatic | 201 | call.acc | SaveState, i64 CallStatic | 205 | call.virt.acc.short | SaveState, ref NullCheck, i32 CallVirtal | 206 | call.virt.acc | SaveState, ref NullCheck, i32 CallVirtal |
|
/arkcompiler/runtime_core/compiler/optimizer/templates/ |
D | generate_ecma.inl.erb | 42 % if inst.acc.include?("in") 94 % if inst.acc.include?("out")
|