mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-10-07 08:03:29 +00:00
!3980 Fix the code format problem
Merge pull request !3980 from hwx1163501/master
This commit is contained in:
commit
58e3ab5f2b
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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");
|
||||
|
@ -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 ');
|
||||
}
|
||||
}
|
@ -13,4 +13,4 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export var nop = undefined
|
||||
export let nop = undefined;
|
@ -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');
|
||||
}
|
||||
}
|
@ -13,4 +13,4 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export var nop = undefined
|
||||
export let nop = undefined;
|
@ -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;
|
||||
|
@ -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();
|
||||
|
@ -27,7 +27,7 @@ const module = {
|
||||
};
|
||||
|
||||
const unboundGetX = module.getX;
|
||||
|
||||
|
||||
const boundGetX = unboundGetX.bind(module);
|
||||
print(boundGetX()); // expected output: 42
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user