mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-11-30 05:31:10 +00:00
!3144 Modifying Code Alarms
Merge pull request !3144 from jing_han/master
This commit is contained in:
commit
7f56f31591
@ -279,7 +279,7 @@ bool Scheduler::CalculateSchedulingUpperBound(const Circuit *circuit,
|
||||
while (!dfsStack.empty()) {
|
||||
auto &curState = dfsStack.top();
|
||||
auto &curGate = curState.curGate;
|
||||
auto &predGates = curState.predGates;
|
||||
const auto &predGates = curState.predGates;
|
||||
auto &idx = curState.idx;
|
||||
auto &curUpperBound = curState.curUpperBound;
|
||||
if (idx == predGates.size()) {
|
||||
|
@ -405,7 +405,7 @@ bool QuickFixLoader::UnloadPatch(JSThread *thread, const CString &patchFileName)
|
||||
LOG_ECMA(INFO) << "Replace normal method: " << method->GetMethodName();
|
||||
}
|
||||
|
||||
for (auto &item : reservedBaseClassMethodInfo_) {
|
||||
for (const auto &item : reservedBaseClassMethodInfo_) {
|
||||
ClassMethodIndex classMethodIndex = item.first;
|
||||
ConstantPool *baseConstpool = ConstantPool::Cast(
|
||||
(baseConstpoolValues.value().get()[classMethodIndex.constpoolNum]).GetTaggedObject());
|
||||
|
@ -272,7 +272,7 @@ void ArkStackMapBuilder::GenARKDeopt(const DeoptInfoType& deopt, std::pair<uint3
|
||||
ARKDeopt v;
|
||||
for (size_t i = 0; i < deopt.size(); i += 2) { // 2:<id, value>
|
||||
ASSERT(std::holds_alternative<OffsetType>(deopt[i]));
|
||||
auto &id = std::get<OffsetType>(deopt[i]);
|
||||
const auto &id = std::get<OffsetType>(deopt[i]);
|
||||
total += sizeof(OffsetType);
|
||||
v.Id = id;
|
||||
total += sizeof(LocationTy::Kind); // derive
|
||||
|
Loading…
Reference in New Issue
Block a user