!3980 Fix the code format problem

Merge pull request !3980 from hwx1163501/master
This commit is contained in:
openharmony_ci 2023-04-25 07:51:54 +00:00 committed by Gitee
commit 58e3ab5f2b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
10 changed files with 49 additions and 48 deletions

View File

@ -109,7 +109,8 @@ GateRef BuiltinLowering::TypedTrigonometric(GateRef gate, BuiltinsStubCSigns::ID
return ret;
}
void BuiltinLowering::LowerTypedSqrt(GateRef gate) {
void BuiltinLowering::LowerTypedSqrt(GateRef gate)
{
Environment env(gate, circuit_, &builder_);
GateRef param = acc_.GetValueIn(gate, 0);
// 20.2.2.32

View File

@ -469,7 +469,7 @@ void LLVMAssembler::Disassemble(const std::map<uintptr_t, std::string> *addr2nam
}
static void DecodeDebugInfo(uint64_t addr, uint64_t secIndex, char* outString, size_t outStringSize,
DWARFContext *ctx)
DWARFContext *ctx)
{
object::SectionedAddress secAddr = {addr, secIndex};
DILineInfoSpecifier spec;

View File

@ -473,8 +473,8 @@ void ContainersPrivate::InitializeLightWeightSetIterator(JSThread *thread)
JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv();
ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
auto globalConst = const_cast<GlobalEnvConstants *>(thread->GlobalConstants());
JSHandle<JSHClass> iteratorClass = JSHandle<JSHClass>(thread, globalConst->GetHandledJSAPIIteratorFuncHClass().
GetObject<JSHClass>());
JSHandle<JSHClass> iteratorClass =
JSHandle<JSHClass>(thread, globalConst->GetHandledJSAPIIteratorFuncHClass().GetObject<JSHClass>());
JSHandle<JSObject> lightWeightSetIteratorPrototype(factory->NewJSObject(iteratorClass));
SetFrozenFunction(
thread, lightWeightSetIteratorPrototype, "next", JSAPILightWeightSetIterator::Next, FuncLength::ONE);
@ -695,9 +695,8 @@ void ContainersPrivate::InitializePlainArrayIterator(JSThread *thread)
JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv();
ObjectFactory *factory = thread->GetEcmaVM()->GetFactory();
auto globalConst = const_cast<GlobalEnvConstants *>(thread->GlobalConstants());
JSHandle<JSHClass> iteratorClass = JSHandle<JSHClass>(thread, globalConst->
GetHandledJSAPIIteratorFuncHClass().
GetObject<JSHClass>());
JSHandle<JSHClass> iteratorClass =
JSHandle<JSHClass>(thread, globalConst->GetHandledJSAPIIteratorFuncHClass().GetObject<JSHClass>());
JSHandle<JSObject> plainarrayIteratorPrototype(factory->NewJSObject(iteratorClass));
SetFrozenFunction(thread, plainarrayIteratorPrototype, "next", JSAPIPlainArrayIterator::Next, FuncLength::ONE);
SetStringTagSymbol(thread, env, plainarrayIteratorPrototype, "PlainArray Iterator");

View File

@ -12,31 +12,31 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { nop } from './module.js'
import { nop } from './module.js';
function foo() {
print("base foo()")
print('base foo()');
}
class A {
constructor(a) {
this.a = a;
}
constructor(a) {
this.a = a;
}
onCreate() {
print(this.a);
print("base A onCreate");
}
onCreate() {
print(this.a);
print('base A onCreate');
}
get message() {
return "base helloworld";
}
get message() {
return 'base helloworld';
}
set message(newValue) {
this.a = "base helloworld!"
}
set message(newValue) {
this.a = 'base helloworld!';
}
render() {
print("base A render ")
}
render() {
print('base A render ');
}
}

View File

@ -13,4 +13,4 @@
* limitations under the License.
*/
export var nop = undefined
export let nop = undefined;

View File

@ -13,31 +13,31 @@
* limitations under the License.
*/
import { nop } from './module.js'
import { nop } from './module.js';
function foo() {
print("patch foo()")
print('patch foo()');
}
class A {
constructor(a) {
this.a = a;
}
constructor(a) {
this.a = a;
}
onCreate() {
print(this.a);
print("patch A onCreate");
}
onCreate() {
print(this.a);
print('patch A onCreate');
}
get message() {
return "patch helloworld";
}
get message() {
return 'patch helloworld';
}
set message(newValue) {
this.a = "patch helloworld!"
}
set message(newValue) {
this.a = 'patch helloworld!';
}
render() {
print("patch A render")
}
render() {
print('patch A render');
}
}

View File

@ -13,4 +13,4 @@
* limitations under the License.
*/
export var nop = undefined
export let nop = undefined;

View File

@ -302,7 +302,8 @@ void ArkStackMapBuilder::GenArkCallsiteAOTFileInfo(std::vector<LLVMStackMapType:
ASSERT(loc >= 0 && loc < static_cast<int>(callsiteNum));
LLVMStackMapType::DeoptInfoType deopt = x.second;
result.callsites[static_cast<uint32_t>(loc)].head.calliteOffset = x.first;
ASSERT(std::numeric_limits<uint16_t>::min() <= deopt.size() && deopt.size() <= std::numeric_limits<uint16_t>::max());
ASSERT(std::numeric_limits<uint16_t>::min() <= deopt.size()
&& deopt.size() <= std::numeric_limits<uint16_t>::max());
result.callsites[static_cast<uint32_t>(loc)].head.deoptNum = deopt.size();
result.callsites[static_cast<uint32_t>(loc)].head.deoptOffset = secSize;
std::pair<uint32_t, std::vector<ARKDeopt>> sizeAndArkDeopt;

View File

@ -180,7 +180,7 @@ public:
EXPECT_EQ(length1, 4U); // 4 : test case
JSHandle<JSTaggedValue> key1(factory->NewFromASCII("abc"));
JSHandle<JSTaggedValue> key2(factory->NewFromASCII("8"));
JSHandle<JSTaggedValue> value1(thread, JSTaggedValue(6));
JSHandle<JSTaggedValue> value1(thread, JSTaggedValue(6)); // 6 : test case
JSHandle<JSTaggedValue> value2 = JSHandle<JSTaggedValue>::Cast(factory->GetEmptyString());
OperationResult res1 = JSObject::GetProperty(thread, objValue1, key1);
JSHandle<JSTaggedValue> resValue1 = res1.GetRawValue();

View File

@ -27,7 +27,7 @@ const module = {
};
const unboundGetX = module.getX;
const boundGetX = unboundGetX.bind(module);
print(boundGetX()); // expected output: 42