Modifying Code Alarms

Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7IGYI
This commit is contained in:
hwx1163501 2023-07-05 09:38:27 +08:00
parent 1c7eddb1af
commit be5542b51d
2 changed files with 4 additions and 2 deletions

View File

@ -308,7 +308,8 @@ public:
}
TimeScope timescope("NTypeHCRLoweringPass", data->GetMethodName(), data->GetMethodOffset(), data->GetLog());
bool enableLog = data->GetLog()->EnableMethodCIRLog();
NTypeHCRLowering lowering(data->GetCircuit(), data->GetPassContext(), data->GetTSManager(), enableLog, data->GetMethodName());
NTypeHCRLowering lowering(data->GetCircuit(), data->GetPassContext(),
data->GetTSManager(), enableLog, data->GetMethodName());
lowering.RunNTypeHCRLowering();
return true;
}

View File

@ -696,7 +696,8 @@ JSTaggedValue JSTypedArray::FastSetPropertyByIndex(JSThread *thread, const JSTag
// Let elementType be the String value of the Element Type value in Table 49 for arrayTypeName.
DataViewType elementType = TypedArrayHelper::GetType(jsType);
// Perform SetValueInBuffer(buffer, indexedPosition, elementType, numValue).
return BuiltinsArrayBuffer::FastSetValueInBuffer(thread, buffer, byteIndex, elementType, numValue.GetNumber(), true);
return BuiltinsArrayBuffer::FastSetValueInBuffer(thread,
buffer, byteIndex, elementType, numValue.GetNumber(), true);
}
JSTaggedValue JSTypedArray::GetOffHeapBuffer(JSThread *thread, JSHandle<JSTypedArray> &typedArray)