mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-11-23 10:09:54 +00:00
Fix UT of AOT for method name
Signed-off-by: shixiaowei4 <shixiaowei4@huawei.com> Change-Id: I41b3b78a6cd3e7ca51dcbb72d67e29fd56b5ccca
This commit is contained in:
parent
c9c64a8f3c
commit
45b0854102
@ -89,10 +89,10 @@ print(BigInt.asIntN(16, 100n, -20000, "abc")); //: 100
|
||||
print(BigInt.asIntN(0, 10000n)); //: 0
|
||||
//aot: [trace] aot inline builtin: BigInt.asIntN, caller function name:func_main_0@builtinBigIntAsIntN
|
||||
print(BigInt.asIntN(32, 0n)); //: 0
|
||||
//aot: [trace] aot inline builtin: BigInt.asIntN, caller function name:doAsIntN@builtinBigIntAsIntN
|
||||
//aot: [trace] aot inline builtin: BigInt.asIntN, caller function name:#*#doAsIntN@builtinBigIntAsIntN
|
||||
//aot: [trace] Check Type: RangeError
|
||||
tryDoAsIntN(-2, 10000n); //: RangeError: integerIndex < 0 or integerIndex > SAFE_NUMBER
|
||||
//aot: [trace] aot inline builtin: BigInt.asIntN, caller function name:doAsIntN@builtinBigIntAsIntN
|
||||
//aot: [trace] aot inline builtin: BigInt.asIntN, caller function name:#*#doAsIntN@builtinBigIntAsIntN
|
||||
//aot: [trace] Check Type: RangeError
|
||||
tryDoAsIntN(2 ** 53, 100000n); //: RangeError: integerIndex < 0 or integerIndex > SAFE_NUMBER
|
||||
|
||||
@ -146,16 +146,16 @@ let true_asintn = BigInt.asIntN
|
||||
BigInt.asIntN = replace
|
||||
print(BigInt.asIntN(-1.001, 26n)); //: -1.001
|
||||
BigInt.asIntN = true_asintn
|
||||
//aot: [trace] aot inline builtin: BigInt.asIntN, caller function name:doAsIntN@builtinBigIntAsIntN
|
||||
//aot: [trace] aot inline builtin: BigInt.asIntN, caller function name:#*#doAsIntN@builtinBigIntAsIntN
|
||||
printAsIntN(3, 25n); //: 1
|
||||
//aot: [trace] aot inline builtin: BigInt.asIntN, caller function name:func_main_0@builtinBigIntAsIntN
|
||||
print(true_asintn(3, 25n)); //: 1
|
||||
|
||||
// Call standard builtin with non-number param
|
||||
//aot: [trace] aot inline builtin: BigInt.asIntN, caller function name:doAsIntN@builtinBigIntAsIntN
|
||||
//aot: [trace] aot inline builtin: BigInt.asIntN, caller function name:#*#doAsIntN@builtinBigIntAsIntN
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
tryDoAsIntN("abc", "abc"); //: SyntaxError: Cannot convert string to a BigInt,because not allow Infinity, decimal points, or exponents
|
||||
//aot: [trace] aot inline builtin: BigInt.asIntN, caller function name:doAsIntN@builtinBigIntAsIntN
|
||||
//aot: [trace] aot inline builtin: BigInt.asIntN, caller function name:#*#doAsIntN@builtinBigIntAsIntN
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printAsIntN("3", 25n); //: 1
|
||||
|
||||
@ -176,9 +176,9 @@ BigInt.asIntN = true_asintn
|
||||
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
//aot: [trace] aot inline builtin: BigInt.asIntN, caller function name:doAsIntN@builtinBigIntAsIntN
|
||||
//aot: [trace] aot inline builtin: BigInt.asIntN, caller function name:#*#doAsIntN@builtinBigIntAsIntN
|
||||
printAsIntN(3, 25n); //: 1
|
||||
//aot: [trace] aot inline builtin: BigInt.asIntN, caller function name:doAsIntN@builtinBigIntAsIntN
|
||||
//aot: [trace] aot inline builtin: BigInt.asIntN, caller function name:#*#doAsIntN@builtinBigIntAsIntN
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printAsIntN("abc", "abc");
|
||||
} catch (e) {
|
||||
|
@ -89,10 +89,10 @@ print(BigInt.asUintN(16, 100n, -20000, "abc")); //: 100
|
||||
print(BigInt.asUintN(0, 10000n)); //: 0
|
||||
//aot: [trace] aot inline builtin: BigInt.asUintN, caller function name:func_main_0@builtinBigIntAsUintN
|
||||
print(BigInt.asUintN(32, 0n)); //: 0
|
||||
//aot: [trace] aot inline builtin: BigInt.asUintN, caller function name:doAsUintN@builtinBigIntAsUintN
|
||||
//aot: [trace] aot inline builtin: BigInt.asUintN, caller function name:#*#doAsUintN@builtinBigIntAsUintN
|
||||
//aot: [trace] Check Type: RangeError
|
||||
tryDoAsUintN(-2, 10000n); //: RangeError: integerIndex < 0 or integerIndex > SAFE_NUMBER
|
||||
//aot: [trace] aot inline builtin: BigInt.asUintN, caller function name:doAsUintN@builtinBigIntAsUintN
|
||||
//aot: [trace] aot inline builtin: BigInt.asUintN, caller function name:#*#doAsUintN@builtinBigIntAsUintN
|
||||
//aot: [trace] Check Type: RangeError
|
||||
tryDoAsUintN(2 ** 53, 100000n); //: RangeError: integerIndex < 0 or integerIndex > SAFE_NUMBER
|
||||
|
||||
@ -132,16 +132,16 @@ let true_asUintN = BigInt.asUintN
|
||||
BigInt.asUintN = replace
|
||||
print(BigInt.asUintN(-1.001, 26n)); //: -1.001
|
||||
BigInt.asUintN = true_asUintN
|
||||
//aot: [trace] aot inline builtin: BigInt.asUintN, caller function name:doAsUintN@builtinBigIntAsUintN
|
||||
//aot: [trace] aot inline builtin: BigInt.asUintN, caller function name:#*#doAsUintN@builtinBigIntAsUintN
|
||||
printAsUintN(3, 25n); //: 1
|
||||
//aot: [trace] aot inline builtin: BigInt.asUintN, caller function name:func_main_0@builtinBigIntAsUintN
|
||||
print(true_asUintN(3, 25n)); //: 1
|
||||
|
||||
// Call standard builtin with non-number param
|
||||
//aot: [trace] aot inline builtin: BigInt.asUintN, caller function name:doAsUintN@builtinBigIntAsUintN
|
||||
//aot: [trace] aot inline builtin: BigInt.asUintN, caller function name:#*#doAsUintN@builtinBigIntAsUintN
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
tryDoAsUintN("abc", "abc"); //: SyntaxError: Cannot convert string to a BigInt,because not allow Infinity, decimal points, or exponents
|
||||
//aot: [trace] aot inline builtin: BigInt.asUintN, caller function name:doAsUintN@builtinBigIntAsUintN
|
||||
//aot: [trace] aot inline builtin: BigInt.asUintN, caller function name:#*#doAsUintN@builtinBigIntAsUintN
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printAsUintN("3", 25n); //: 1
|
||||
|
||||
@ -162,9 +162,9 @@ BigInt.asUintN = true_asUintN
|
||||
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
//aot: [trace] aot inline builtin: BigInt.asUintN, caller function name:doAsUintN@builtinBigIntAsUintN
|
||||
//aot: [trace] aot inline builtin: BigInt.asUintN, caller function name:#*#doAsUintN@builtinBigIntAsUintN
|
||||
printAsUintN(3, 25n); //: 1
|
||||
//aot: [trace] aot inline builtin: BigInt.asUintN, caller function name:doAsUintN@builtinBigIntAsUintN
|
||||
//aot: [trace] aot inline builtin: BigInt.asUintN, caller function name:#*#doAsUintN@builtinBigIntAsUintN
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printAsUintN("abc", "abc");
|
||||
} catch (e) {
|
||||
|
@ -53,90 +53,90 @@ print(n); //: 1
|
||||
n = BigInt(1, 2)
|
||||
print(typeof n); //: bigint
|
||||
print(n); //: 1
|
||||
//aot: [trace] aot inline function name: checkBigInt@builtinBigIntConstructor caller function name: func_main_0@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline function name: #*#checkBigInt@builtinBigIntConstructor caller function name: func_main_0@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkBigInt@builtinBigIntConstructor
|
||||
checkBigInt(-1); //: -1
|
||||
//aot: [trace] aot inline function name: checkBigInt@builtinBigIntConstructor caller function name: func_main_0@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline function name: #*#checkBigInt@builtinBigIntConstructor caller function name: func_main_0@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkBigInt@builtinBigIntConstructor
|
||||
checkBigInt(-12345); //: -12345
|
||||
//aot: [trace] aot inline function name: checkBigInt@builtinBigIntConstructor caller function name: func_main_0@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline function name: #*#checkBigInt@builtinBigIntConstructor caller function name: func_main_0@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkBigInt@builtinBigIntConstructor
|
||||
checkBigInt(1n); //: 1
|
||||
//aot: [trace] aot inline function name: checkBigInt@builtinBigIntConstructor caller function name: func_main_0@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline function name: #*#checkBigInt@builtinBigIntConstructor caller function name: func_main_0@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkBigInt@builtinBigIntConstructor
|
||||
checkBigInt(-1n); //: -1
|
||||
//aot: [trace] aot inline function name: checkBigInt@builtinBigIntConstructor caller function name: func_main_0@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline function name: #*#checkBigInt@builtinBigIntConstructor caller function name: func_main_0@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkBigInt@builtinBigIntConstructor
|
||||
checkBigInt(0.0); //: 0
|
||||
//aot: [trace] aot inline function name: checkBigInt@builtinBigIntConstructor caller function name: func_main_0@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline function name: #*#checkBigInt@builtinBigIntConstructor caller function name: func_main_0@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkBigInt@builtinBigIntConstructor
|
||||
checkBigInt(-0.0); //: 0
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:func_main_0@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkBigInt@builtinBigIntConstructor
|
||||
checkBigInt(BigInt(-1)); //: -1
|
||||
|
||||
// test large ints
|
||||
// 2^31-1
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkBigInt@builtinBigIntConstructor
|
||||
checkBigInt(2147483647); //: 2147483647
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkBigInt@builtinBigIntConstructor
|
||||
checkBigInt(2147483647 << 1); //: -2
|
||||
//-(2^32)
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkBigInt@builtinBigIntConstructor
|
||||
checkBigInt(-2147483648); //: -2147483648
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkBigInt@builtinBigIntConstructor
|
||||
checkBigInt(Number.MIN_SAFE_INTEGER); //: -9007199254740991
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkBigInt@builtinBigIntConstructor
|
||||
checkBigInt(Number.MAX_SAFE_INTEGER); //: 9007199254740991
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkBigInt@builtinBigIntConstructor
|
||||
checkBigInt(Number.MAX_SAFE_INTEGER - 0.5); //: 9007199254740990
|
||||
// 1e22
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkBigInt@builtinBigIntConstructor
|
||||
checkBigInt(10000000000000000000000) //: 10000000000000000000000
|
||||
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkBigInt@builtinBigIntConstructor
|
||||
checkBigInt(1e23) //: 99999999999999991611392
|
||||
// also 1e23
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkBigInt@builtinBigIntConstructor
|
||||
checkBigInt(100000000000000000000000) //: 99999999999999991611392
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkBigInt@builtinBigIntConstructor
|
||||
checkBigInt("100000000000000000000000") //: 100000000000000000000000
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkBigInt@builtinBigIntConstructor
|
||||
checkBigInt("-100000000000000000000000") //: -100000000000000000000000
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkBigInt@builtinBigIntConstructor
|
||||
checkBigInt(100000000000000000000000n) //: 100000000000000000000000
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:func_main_0@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkBigInt@builtinBigIntConstructor
|
||||
checkBigInt(BigInt(100000000000000000000000n)) //: 100000000000000000000000
|
||||
|
||||
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkBigInt@builtinBigIntConstructor
|
||||
checkBigInt("0xf") //: 15
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkBigInt@builtinBigIntConstructor
|
||||
checkBigInt({ valueOf: () => 1 }); //: 1
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkBigInt@builtinBigIntConstructor
|
||||
checkBigInt({ valueOf: () => "-11" }); //: -11
|
||||
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkNotBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkNotBigInt@builtinBigIntConstructor
|
||||
checkNotBigInt(1.5); //: RangeError
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkNotBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkNotBigInt@builtinBigIntConstructor
|
||||
checkNotBigInt(-20.000001); //: RangeError
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkNotBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkNotBigInt@builtinBigIntConstructor
|
||||
checkNotBigInt(Number.EPSILON); //: RangeError
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkNotBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkNotBigInt@builtinBigIntConstructor
|
||||
checkNotBigInt(Number.POSITIVE_INFINITY); //: RangeError
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkNotBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkNotBigInt@builtinBigIntConstructor
|
||||
checkNotBigInt(Number.NEGATIVE_INFINITY); //: RangeError
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkNotBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkNotBigInt@builtinBigIntConstructor
|
||||
checkNotBigInt(NaN); //: RangeError
|
||||
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkNotBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkNotBigInt@builtinBigIntConstructor
|
||||
checkNotBigInt(null); //: TypeError
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkNotBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkNotBigInt@builtinBigIntConstructor
|
||||
checkNotBigInt(undefined); //: TypeError
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkNotBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkNotBigInt@builtinBigIntConstructor
|
||||
checkNotBigInt("f"); //: SyntaxError
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:checkNotBigInt@builtinBigIntConstructor
|
||||
//aot: [trace] aot inline builtin: BigInt, caller function name:#*#checkNotBigInt@builtinBigIntConstructor
|
||||
checkNotBigInt({}); //: SyntaxError
|
||||
|
||||
try {
|
||||
|
@ -73,9 +73,9 @@ print(Date.now({a:10, b:20})); //: __INT__
|
||||
//aot: [trace] aot inline builtin: Date.now, caller function name:func_main_0@builtinDateNow
|
||||
print(Date.now("abc")); //: __INT__
|
||||
|
||||
//aot: [trace] aot inline builtin: Date.now, caller function name:doDateWithoutParam@builtinDateNow
|
||||
//aot: [trace] aot inline builtin: Date.now, caller function name:#*#doDateWithoutParam@builtinDateNow
|
||||
printDateNowWithoutParam(); //: __INT__
|
||||
//aot: [trace] aot inline builtin: Date.now, caller function name:doDateNowOneParam@builtinDateNow
|
||||
//aot: [trace] aot inline builtin: Date.now, caller function name:#*#doDateNowOneParam@builtinDateNow
|
||||
printDateNowOneParam(2); //: __INT__
|
||||
|
||||
let true_now = Date.now;
|
||||
|
@ -73,22 +73,22 @@ print(isFinite(NaN)); //: NaN
|
||||
isFinite = true_is_finite
|
||||
|
||||
|
||||
//aot: [trace] aot inline builtin: isFinite, caller function name:doIsFinite@builtinGlobalIsFinite
|
||||
//aot: [trace] aot inline builtin: isFinite, caller function name:#*#doIsFinite@builtinGlobalIsFinite
|
||||
printIsFinite(-3); //: true
|
||||
//aot: [trace] aot inline builtin: isFinite, caller function name:doIsFinite@builtinGlobalIsFinite
|
||||
//aot: [trace] aot inline builtin: isFinite, caller function name:#*#doIsFinite@builtinGlobalIsFinite
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printIsFinite("abc"); //: false
|
||||
//aot: [trace] aot inline builtin: isFinite, caller function name:doIsFinite@builtinGlobalIsFinite
|
||||
//aot: [trace] aot inline builtin: isFinite, caller function name:#*#doIsFinite@builtinGlobalIsFinite
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printIsFinite("abc"); //: false
|
||||
|
||||
//aot: [trace] aot inline builtin: isFinite, caller function name:doIsFinite@builtinGlobalIsFinite
|
||||
//aot: [trace] aot inline builtin: isFinite, caller function name:#*#doIsFinite@builtinGlobalIsFinite
|
||||
printIsFinite(-12); //: true
|
||||
// Call standard builtin with non-number param
|
||||
//aot: [trace] aot inline builtin: isFinite, caller function name:doIsFinite@builtinGlobalIsFinite
|
||||
//aot: [trace] aot inline builtin: isFinite, caller function name:#*#doIsFinite@builtinGlobalIsFinite
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printIsFinite("abc"); //: false
|
||||
//aot: [trace] aot inline builtin: isFinite, caller function name:doIsFinite@builtinGlobalIsFinite
|
||||
//aot: [trace] aot inline builtin: isFinite, caller function name:#*#doIsFinite@builtinGlobalIsFinite
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printIsFinite("-12"); //: true
|
||||
|
||||
@ -107,9 +107,9 @@ isFinite = true_is_finite
|
||||
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
//aot: [trace] aot inline builtin: isFinite, caller function name:doIsFinite@builtinGlobalIsFinite
|
||||
//aot: [trace] aot inline builtin: isFinite, caller function name:#*#doIsFinite@builtinGlobalIsFinite
|
||||
printIsFinite(-12); //: true
|
||||
//aot: [trace] aot inline builtin: isFinite, caller function name:doIsFinite@builtinGlobalIsFinite
|
||||
//aot: [trace] aot inline builtin: isFinite, caller function name:#*#doIsFinite@builtinGlobalIsFinite
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printIsFinite("abc"); //: false
|
||||
} catch (e) {
|
||||
|
@ -78,22 +78,22 @@ isNaN = replace
|
||||
print(isNaN(NaN)); //: NaN
|
||||
isNaN = true_is_nan
|
||||
|
||||
//aot: [trace] aot inline builtin: isNan, caller function name:doIsNaN@builtinGlobalIsNan
|
||||
//aot: [trace] aot inline builtin: isNan, caller function name:#*#doIsNaN@builtinGlobalIsNan
|
||||
printIsNaN(-3); //: false
|
||||
//aot: [trace] aot inline builtin: isNan, caller function name:doIsNaN@builtinGlobalIsNan
|
||||
//aot: [trace] aot inline builtin: isNan, caller function name:#*#doIsNaN@builtinGlobalIsNan
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printIsNaN("abc"); //: true
|
||||
//aot: [trace] aot inline builtin: isNan, caller function name:doIsNaN@builtinGlobalIsNan
|
||||
//aot: [trace] aot inline builtin: isNan, caller function name:#*#doIsNaN@builtinGlobalIsNan
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printIsNaN("abc"); //: true
|
||||
//aot: [trace] aot inline builtin: isNan, caller function name:doIsNaN@builtinGlobalIsNan
|
||||
//aot: [trace] aot inline builtin: isNan, caller function name:#*#doIsNaN@builtinGlobalIsNan
|
||||
printIsNaN(-12); //: false
|
||||
|
||||
// Call standard builtin with non-number param
|
||||
//aot: [trace] aot inline builtin: isNan, caller function name:doIsNaN@builtinGlobalIsNan
|
||||
//aot: [trace] aot inline builtin: isNan, caller function name:#*#doIsNaN@builtinGlobalIsNan
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printIsNaN("abc"); //: true
|
||||
//aot: [trace] aot inline builtin: isNan, caller function name:doIsNaN@builtinGlobalIsNan
|
||||
//aot: [trace] aot inline builtin: isNan, caller function name:#*#doIsNaN@builtinGlobalIsNan
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printIsNaN("-12"); //: false
|
||||
|
||||
@ -111,11 +111,11 @@ isNaN = true_is_nan
|
||||
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
//aot: [trace] aot inline builtin: isNan, caller function name:doIsNaN@builtinGlobalIsNan
|
||||
//aot: [trace] aot inline builtin: isNan, caller function name:#*#doIsNaN@builtinGlobalIsNan
|
||||
printIsNaN(-12); //: false
|
||||
//aot: [trace] aot inline builtin: isNan, caller function name:doIsNaN@builtinGlobalIsNan
|
||||
//aot: [trace] aot inline builtin: isNan, caller function name:#*#doIsNaN@builtinGlobalIsNan
|
||||
printIsNaN(NaN); //: true
|
||||
//aot: [trace] aot inline builtin: isNan, caller function name:doIsNaN@builtinGlobalIsNan
|
||||
//aot: [trace] aot inline builtin: isNan, caller function name:#*#doIsNaN@builtinGlobalIsNan
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printIsNaN("abc"); //: true
|
||||
} catch (e) {
|
||||
|
@ -75,7 +75,7 @@ print(myMap.clear()); //: replaced
|
||||
|
||||
myMap.clear = true_clear
|
||||
printClear(); //: 2
|
||||
//aot: [trace] aot inline builtin: Map.clear, caller function name:doClear@builtinMapClear
|
||||
//aot: [trace] aot inline builtin: Map.clear, caller function name:#*#doClear@builtinMapClear
|
||||
//: undefined
|
||||
//: 0
|
||||
|
||||
@ -110,7 +110,7 @@ try {
|
||||
myMap.set(0, 0);
|
||||
myMap.set(12, 3);
|
||||
printClear(); //: 2
|
||||
//aot: [trace] aot inline builtin: Map.clear, caller function name:doClear@builtinMapClear
|
||||
//aot: [trace] aot inline builtin: Map.clear, caller function name:#*#doClear@builtinMapClear
|
||||
//: undefined
|
||||
//: 0
|
||||
} catch (e) {
|
||||
@ -176,22 +176,22 @@ let m3 = new Map([[1, 2]]);
|
||||
let m4 = new Map([[1, 2]]);
|
||||
|
||||
print(m.size); //: 1
|
||||
//aot: [trace] aot inline builtin: Map.clear, caller function name:printClear1@builtinMapClear
|
||||
//aot: [trace] aot inline builtin: Map.clear, caller function name:#*#printClear1@builtinMapClear
|
||||
printClear1(m) //: undefined
|
||||
print(m.size); //: 0
|
||||
|
||||
print(m2.size); //: 1
|
||||
//aot: [trace] aot inline builtin: Map.clear, caller function name:printClear1@builtinMapClear
|
||||
//aot: [trace] aot inline builtin: Map.clear, caller function name:#*#printClear1@builtinMapClear
|
||||
printClear1(m2) //: undefined
|
||||
print(m2.size); //: 0
|
||||
|
||||
print(m3.size); //: 1
|
||||
//aot: [trace] aot inline builtin: Map.clear, caller function name:printClear1@builtinMapClear
|
||||
//aot: [trace] aot inline builtin: Map.clear, caller function name:#*#printClear1@builtinMapClear
|
||||
printClear1(m3) //: undefined
|
||||
print(m3.size); //: 0
|
||||
|
||||
print(m4.size); //: 1
|
||||
//aot: [trace] aot inline builtin: Map.clear, caller function name:printClear1@builtinMapClear
|
||||
//aot: [trace] aot inline builtin: Map.clear, caller function name:#*#printClear1@builtinMapClear
|
||||
printClear1(m4) //: undefined
|
||||
print(m4.size); //: 0
|
||||
|
||||
@ -209,17 +209,17 @@ m3.set(10, 20);
|
||||
m4.set(10, 20); //aot: [trace] Check Type: BuiltinInstanceHClassMismatch
|
||||
|
||||
print(m.size); //: 1
|
||||
//aot: [trace] aot inline builtin: Map.clear, caller function name:printClear1@builtinMapClear
|
||||
//aot: [trace] aot inline builtin: Map.clear, caller function name:#*#printClear1@builtinMapClear
|
||||
printClear1(m) //: undefined
|
||||
print(m.size); //: 0
|
||||
|
||||
print(m2.size); //: 1
|
||||
//aot: [trace] aot inline builtin: Map.clear, caller function name:printClear1@builtinMapClear
|
||||
//aot: [trace] aot inline builtin: Map.clear, caller function name:#*#printClear1@builtinMapClear
|
||||
printClear1(m2) //: undefined
|
||||
print(m2.size); //: 0
|
||||
|
||||
print(m3.size); //: 1
|
||||
//aot: [trace] aot inline builtin: Map.clear, caller function name:printClear1@builtinMapClear
|
||||
//aot: [trace] aot inline builtin: Map.clear, caller function name:#*#printClear1@builtinMapClear
|
||||
printClear1(m3) //: undefined
|
||||
print(m3.size); //: 0
|
||||
|
||||
@ -240,7 +240,7 @@ m2.set(10, 20);
|
||||
m3.set(10, 20);
|
||||
|
||||
print(m.size); //: 1
|
||||
//aot: [trace] aot inline builtin: Map.clear, caller function name:printClear1@builtinMapClear
|
||||
//aot: [trace] aot inline builtin: Map.clear, caller function name:#*#printClear1@builtinMapClear
|
||||
printClear1(m) //: undefined
|
||||
print(m.size); //: 0
|
||||
|
||||
@ -258,7 +258,7 @@ let mimicMap = {
|
||||
let mm = new Map([[1, 2]]);
|
||||
|
||||
print(mm.size); //: 1
|
||||
//aot: [trace] aot inline builtin: Map.clear, caller function name:printClear1@builtinMapClear
|
||||
//aot: [trace] aot inline builtin: Map.clear, caller function name:#*#printClear1@builtinMapClear
|
||||
printClear1(mm) //: undefined
|
||||
print(m.size); //: 0
|
||||
|
||||
|
@ -79,7 +79,7 @@ myMap.delete = replace
|
||||
print(myMap.delete(2.5)); //: 2.5
|
||||
|
||||
myMap.delete = true_delete
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:doDelete@builtinMapDelete
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:#*#doDelete@builtinMapDelete
|
||||
printDelete(-1); //: true
|
||||
|
||||
// Call standard builtin with non-number param
|
||||
@ -108,9 +108,9 @@ myMap.delete = true_delete
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
print("try-block"); //: try-block
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:doDelete@builtinMapDelete
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:#*#doDelete@builtinMapDelete
|
||||
printDelete(0); //: false
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:doDelete@builtinMapDelete
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:#*#doDelete@builtinMapDelete
|
||||
printDelete("xyz"); //: false
|
||||
} catch (e) {
|
||||
}
|
||||
@ -192,13 +192,13 @@ let m2 = new Map([[1, 2]]);
|
||||
let m3 = new Map([[1, 2]]);
|
||||
let m4 = new Map([[1, 2]]);
|
||||
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:printDelete2@builtinMapDelete
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:#*#printDelete2@builtinMapDelete
|
||||
printDelete2(m, 10); //: true
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:printDelete2@builtinMapDelete
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:#*#printDelete2@builtinMapDelete
|
||||
printDelete2(m2, 1); //: true
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:printDelete2@builtinMapDelete
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:#*#printDelete2@builtinMapDelete
|
||||
printDelete2(m3, 1); //: true
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:printDelete2@builtinMapDelete
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:#*#printDelete2@builtinMapDelete
|
||||
printDelete2(m4, 1); //: true
|
||||
|
||||
print("case 0"); //: case 0
|
||||
@ -214,11 +214,11 @@ m2.set(10, 20);
|
||||
m3.set(10, 20);
|
||||
m4.set(10, 20); //aot: [trace] Check Type: BuiltinInstanceHClassMismatch
|
||||
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:printDelete2@builtinMapDelete
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:#*#printDelete2@builtinMapDelete
|
||||
printDelete2(m, 10); //: true
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:printDelete2@builtinMapDelete
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:#*#printDelete2@builtinMapDelete
|
||||
printDelete2(m2, 10); //: true
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:printDelete2@builtinMapDelete
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:#*#printDelete2@builtinMapDelete
|
||||
printDelete2(m3, 10); //: true
|
||||
printDelete2(m4, 10); //aot: [trace] Check Type: BuiltinInstanceHClassMismatch
|
||||
//: true
|
||||
@ -234,9 +234,9 @@ m.set(10, 20);
|
||||
m2.set(10, 20);
|
||||
m3.set(10, 20);
|
||||
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:printDelete2@builtinMapDelete
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:#*#printDelete2@builtinMapDelete
|
||||
printDelete2(m, 10); //: true
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:printDelete2@builtinMapDelete
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:#*#printDelete2@builtinMapDelete
|
||||
printDelete2(m2, 10); //: true
|
||||
printDelete2(m3, 10); //pgo: true
|
||||
//aot: [trace] Check Type: BuiltinInstanceHClassMismatch
|
||||
@ -248,7 +248,7 @@ let mimicMap = {
|
||||
}
|
||||
let mm = new Map([[1, 2]]);
|
||||
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:printDelete2@builtinMapDelete
|
||||
//aot: [trace] aot inline builtin: Map.delete, caller function name:#*#printDelete2@builtinMapDelete
|
||||
printDelete2(mm, 1); //: true
|
||||
if (ArkTools.isAOTCompiled(printDelete2)) {
|
||||
Object.setPrototypeOf(mm, mimicMap);
|
||||
|
@ -92,9 +92,9 @@ myMap.entries = true_entries
|
||||
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
//aot: [trace] aot inline builtin: Map.entries, caller function name:doEntries@builtinMapEntries
|
||||
//aot: [trace] aot inline builtin: Map.entries, caller function name:#*#doEntries@builtinMapEntries
|
||||
printEntries(2.5); //: [object Map Iterator]
|
||||
//aot: [trace] aot inline builtin: Map.entries, caller function name:doEntries@builtinMapEntries
|
||||
//aot: [trace] aot inline builtin: Map.entries, caller function name:#*#doEntries@builtinMapEntries
|
||||
printEntries("abc"); //: [object Map Iterator]
|
||||
} catch (e) {
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ myMap.get = replace
|
||||
print(myMap.get(2.5)); //: 2.5
|
||||
myMap.get = true_get
|
||||
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:doGet@builtinMapGet
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:#*#doGet@builtinMapGet
|
||||
printGet(-1); //: 1
|
||||
// Call standard builtin with non-number param
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:func_main_0@builtinMapGet
|
||||
@ -119,9 +119,9 @@ myMap.get = true_get
|
||||
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:doGet@builtinMapGet
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:#*#doGet@builtinMapGet
|
||||
printGet(2.5); //: -2.5
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:doGet@builtinMapGet
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:#*#doGet@builtinMapGet
|
||||
printGet("abc"); //: undefined
|
||||
} catch (e) {
|
||||
}
|
||||
@ -215,13 +215,13 @@ m[10] = 20
|
||||
let m2 = new Map([[1, 2]])
|
||||
let m3 = new Map([[1, 2]])
|
||||
let m4 = new Map([[1, 2]])
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:printGet2@builtinMapGet
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:#*#printGet2@builtinMapGet
|
||||
printGet2(m, 10) //: undefined
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:printGet2@builtinMapGet
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:#*#printGet2@builtinMapGet
|
||||
printGet2(m2, 1) //: 2
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:printGet2@builtinMapGet
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:#*#printGet2@builtinMapGet
|
||||
printGet2(m3, 1) //: 2
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:printGet2@builtinMapGet
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:#*#printGet2@builtinMapGet
|
||||
printGet2(m4, 1) //: 2
|
||||
|
||||
print("case 0") //: case 0
|
||||
@ -231,11 +231,11 @@ if (ArkTools.isAOTCompiled(printGet2)) {
|
||||
}
|
||||
}
|
||||
// Nothing changed
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:printGet2@builtinMapGet
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:#*#printGet2@builtinMapGet
|
||||
printGet2(m, 10) //: undefined
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:printGet2@builtinMapGet
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:#*#printGet2@builtinMapGet
|
||||
printGet2(m2, 1) //: 2
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:printGet2@builtinMapGet
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:#*#printGet2@builtinMapGet
|
||||
printGet2(m3, 1) //: 2
|
||||
printGet2(m4, 1) //aot: [trace] Check Type: BuiltinInstanceHClassMismatch
|
||||
//: 2
|
||||
@ -250,9 +250,9 @@ if (ArkTools.isAOTCompiled(printGet2)) {
|
||||
//aot: [trace] aot inline builtin: Object.getPrototypeOf, caller function name:func_main_0@builtinMapGet
|
||||
print(Object.getPrototypeOf(m3) === Map.prototype) //: true
|
||||
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:printGet2@builtinMapGet
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:#*#printGet2@builtinMapGet
|
||||
printGet2(m, 10) //: undefined
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:printGet2@builtinMapGet
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:#*#printGet2@builtinMapGet
|
||||
printGet2(m2, 1) //: 2
|
||||
printGet2(m3, 1) //pgo: 2
|
||||
//aot: [trace] Check Type: BuiltinInstanceHClassMismatch
|
||||
@ -263,7 +263,7 @@ let mimicMap = {
|
||||
get: trueGet
|
||||
}
|
||||
let mm = new Map([[1, 2]])
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:printGet2@builtinMapGet
|
||||
//aot: [trace] aot inline builtin: Map.get, caller function name:#*#printGet2@builtinMapGet
|
||||
printGet2(mm, 1) //: 2
|
||||
if (ArkTools.isAOTCompiled(printGet2)) {
|
||||
Object.setPrototypeOf(mm, mimicMap)
|
||||
|
@ -82,16 +82,16 @@ myMap.has = replace
|
||||
print(myMap.has(2.5)); //: 2.5
|
||||
myMap.has = true_has
|
||||
|
||||
//aot: [trace] aot inline builtin: Map.has, caller function name:doHas@builtinMapHas
|
||||
//aot: [trace] aot inline builtin: Map.has, caller function name:#*#doHas@builtinMapHas
|
||||
printHas(-1); //: true
|
||||
// Call standard builtin with non-number param
|
||||
//aot: [trace] aot inline builtin: Map.has, caller function name:doHas@builtinMapHas
|
||||
//aot: [trace] aot inline builtin: Map.has, caller function name:#*#doHas@builtinMapHas
|
||||
printHas("abc"); //: false
|
||||
//aot: [trace] aot inline builtin: Map.has, caller function name:doHas@builtinMapHas
|
||||
//aot: [trace] aot inline builtin: Map.has, caller function name:#*#doHas@builtinMapHas
|
||||
printHas("-1"); //: false
|
||||
//aot: [trace] aot inline builtin: Map.has, caller function name:doHas@builtinMapHas
|
||||
//aot: [trace] aot inline builtin: Map.has, caller function name:#*#doHas@builtinMapHas
|
||||
printHas(56); //: true
|
||||
//aot: [trace] aot inline builtin: Map.has, caller function name:doHas@builtinMapHas
|
||||
//aot: [trace] aot inline builtin: Map.has, caller function name:#*#doHas@builtinMapHas
|
||||
printHas("xyz"); //: true
|
||||
|
||||
if (ArkTools.isAOTCompiled(printHas)) {
|
||||
@ -110,9 +110,9 @@ myMap.has = true_has
|
||||
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
//aot: [trace] aot inline builtin: Map.has, caller function name:doHas@builtinMapHas
|
||||
//aot: [trace] aot inline builtin: Map.has, caller function name:#*#doHas@builtinMapHas
|
||||
printHas(2000); //: true
|
||||
//aot: [trace] aot inline builtin: Map.has, caller function name:doHas@builtinMapHas
|
||||
//aot: [trace] aot inline builtin: Map.has, caller function name:#*#doHas@builtinMapHas
|
||||
printHas("abc"); //: false
|
||||
} catch (e) {
|
||||
}
|
||||
|
@ -94,9 +94,9 @@ myMap.keys = true_keys
|
||||
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
//aot: [trace] aot inline builtin: Map.keys, caller function name:doKeys@builtinMapKeys
|
||||
//aot: [trace] aot inline builtin: Map.keys, caller function name:#*#doKeys@builtinMapKeys
|
||||
printKeys(2.5); //: [object Map Iterator]
|
||||
//aot: [trace] aot inline builtin: Map.keys, caller function name:doKeys@builtinMapKeys
|
||||
//aot: [trace] aot inline builtin: Map.keys, caller function name:#*#doKeys@builtinMapKeys
|
||||
printKeys("abc"); //: [object Map Iterator]
|
||||
} catch (e) {
|
||||
}
|
||||
|
@ -94,9 +94,9 @@ myMap.values = true_values
|
||||
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
//aot: [trace] aot inline builtin: Map.values, caller function name:doValues@builtinMapValues
|
||||
//aot: [trace] aot inline builtin: Map.values, caller function name:#*#doValues@builtinMapValues
|
||||
printValues(2.5); //: [object Map Iterator]
|
||||
//aot: [trace] aot inline builtin: Map.values, caller function name:doValues@builtinMapValues
|
||||
//aot: [trace] aot inline builtin: Map.values, caller function name:#*#doValues@builtinMapValues
|
||||
printValues("abc"); //: [object Map Iterator]
|
||||
} catch (e) {
|
||||
}
|
||||
|
@ -109,25 +109,25 @@ Math.abs = true_abs
|
||||
// Check edge cases
|
||||
const INT_MAX: number = 2147483647;
|
||||
const INT_MIN: number = -INT_MAX - 1;
|
||||
//aot: [trace] aot inline builtin: Math.abs, caller function name:doAbs@builtinMathAbs
|
||||
//aot: [trace] aot inline builtin: Math.abs, caller function name:#*#doAbs@builtinMathAbs
|
||||
printAbs(INT_MAX); //: 2147483647
|
||||
//aot: [trace] aot inline builtin: Math.abs, caller function name:doAbs@builtinMathAbs
|
||||
//aot: [trace] aot inline builtin: Math.abs, caller function name:#*#doAbs@builtinMathAbs
|
||||
printAbs(2147483648); //: 2147483648
|
||||
//aot: [trace] aot inline builtin: Math.abs, caller function name:doAbs@builtinMathAbs
|
||||
//aot: [trace] aot inline builtin: Math.abs, caller function name:#*#doAbs@builtinMathAbs
|
||||
printAbs(-INT_MAX); //: 2147483647
|
||||
//aot: [trace] aot inline builtin: Math.abs, caller function name:printAbs2@builtinMathAbs
|
||||
//aot: [trace] aot inline builtin: Math.abs, caller function name:#*#printAbs2@builtinMathAbs
|
||||
//aot: [trace] Check Type: NotInt3
|
||||
printAbs2(); //: 2147483648
|
||||
//aot: [trace] aot inline builtin: Math.abs, caller function name:doAbs@builtinMathAbs
|
||||
//aot: [trace] aot inline builtin: Math.abs, caller function name:#*#doAbs@builtinMathAbs
|
||||
printAbs(INT_MIN - 1); //: 2147483649
|
||||
|
||||
//aot: [trace] aot inline builtin: Math.abs, caller function name:doAbs@builtinMathAbs
|
||||
//aot: [trace] aot inline builtin: Math.abs, caller function name:#*#doAbs@builtinMathAbs
|
||||
printAbs(-12); //: 12
|
||||
// Call standard builtin with non-number param
|
||||
//aot: [trace] aot inline builtin: Math.abs, caller function name:doAbs@builtinMathAbs
|
||||
//aot: [trace] aot inline builtin: Math.abs, caller function name:#*#doAbs@builtinMathAbs
|
||||
//aot: [trace] Check Type: NotNumber2
|
||||
printAbs("abc"); //: NaN
|
||||
//aot: [trace] aot inline builtin: Math.abs, caller function name:doAbs@builtinMathAbs
|
||||
//aot: [trace] aot inline builtin: Math.abs, caller function name:#*#doAbs@builtinMathAbs
|
||||
//aot: [trace] Check Type: NotNumber2
|
||||
printAbs("-12"); //: 12
|
||||
|
||||
@ -147,9 +147,9 @@ Math.abs = true_abs
|
||||
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
//aot: [trace] aot inline builtin: Math.abs, caller function name:doAbs@builtinMathAbs
|
||||
//aot: [trace] aot inline builtin: Math.abs, caller function name:#*#doAbs@builtinMathAbs
|
||||
printAbs(-12); //: 12
|
||||
//aot: [trace] aot inline builtin: Math.abs, caller function name:doAbs@builtinMathAbs
|
||||
//aot: [trace] aot inline builtin: Math.abs, caller function name:#*#doAbs@builtinMathAbs
|
||||
//aot: [trace] Check Type: NotNumber2
|
||||
printAbs("abc"); //: NaN
|
||||
} catch (e) {
|
||||
|
@ -83,15 +83,15 @@ Math.cbrt = replace;
|
||||
print(Math.cbrt(0.001)); //: 0.001
|
||||
Math.cbrt = true_cbrt;
|
||||
|
||||
//aot: [trace] aot inline builtin: Math.cbrt, caller function name:doCbrt@builtinMathCbrt
|
||||
//aot: [trace] aot inline builtin: Math.cbrt, caller function name:#*#doCbrt@builtinMathCbrt
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printCbrt("abcd"); //: NaN
|
||||
|
||||
//aot: [trace] aot inline builtin: Math.cbrt, caller function name:doCbrt@builtinMathCbrt
|
||||
//aot: [trace] aot inline builtin: Math.cbrt, caller function name:#*#doCbrt@builtinMathCbrt
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printCbrt("-125"); //: -5
|
||||
|
||||
//aot: [trace] aot inline builtin: Math.cbrt, caller function name:doCbrt@builtinMathCbrt
|
||||
//aot: [trace] aot inline builtin: Math.cbrt, caller function name:#*#doCbrt@builtinMathCbrt
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printCbrt("abcdef"); //: NaN
|
||||
|
||||
@ -112,9 +112,9 @@ Math.cbrt = true_cbrt;
|
||||
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
//aot: [trace] aot inline builtin: Math.cbrt, caller function name:doCbrt@builtinMathCbrt
|
||||
//aot: [trace] aot inline builtin: Math.cbrt, caller function name:#*#doCbrt@builtinMathCbrt
|
||||
printCbrt(10); //: 2.1544346900318834
|
||||
//aot: [trace] aot inline builtin: Math.cbrt, caller function name:doCbrt@builtinMathCbrt
|
||||
//aot: [trace] aot inline builtin: Math.cbrt, caller function name:#*#doCbrt@builtinMathCbrt
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printCbrt("abc"); //: NaN
|
||||
} catch (e) {
|
||||
|
@ -46,44 +46,44 @@ printCeil(111); //: 111
|
||||
Math.ceil = backup
|
||||
|
||||
// Check with NaN param
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil(NaN); //: NaN
|
||||
|
||||
// Check with infinity param
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil(-Infinity); //: -Infinity
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil(+Infinity); //: Infinity
|
||||
|
||||
// Check with zero param
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil(-0.0); //: 0
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil(0.0); //: 0
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil(+0.0); //: 0
|
||||
|
||||
// Check with integer param
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil(-1.0); //: -1
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil(+1.0); //: 1
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil(-12.0); //: -12
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil(+12.0); //: 12
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil(-123.0); //: -123
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil(+123.0); //: 123
|
||||
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil(1.5); //: 2
|
||||
// Call standard builtin with non-number param
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil("abc"); //aot: [trace] Check Type: NotNumber1
|
||||
//: NaN
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil("1.5"); //aot: [trace] Check Type: NotNumber1
|
||||
//: 2
|
||||
|
||||
@ -101,36 +101,36 @@ printCeil("abc"); //aot: [trace] Check Type: NotCallTarget1
|
||||
Math.ceil = backup
|
||||
|
||||
// Check with fractional param
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil(-1.25); //: -1
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil(+1.25); //: 2
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil(-1.50); //: -1
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil(+1.50); //: 2
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil(-1.75); //: -1
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil(+1.75); //: 2
|
||||
|
||||
// Check with non-number param
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil("string"); //aot: [trace] Check Type: NotNumber1
|
||||
//: NaN
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil(null); //aot: [trace] Check Type: NotNumber1
|
||||
//: 0
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil(undefined); //aot: [trace] Check Type: NotNumber1
|
||||
//: NaN
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil(false); //aot: [trace] Check Type: NotNumber1
|
||||
//: 0
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil(true); //aot: [trace] Check Type: NotNumber1
|
||||
//: 1
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:doCeil@builtinMathCeil
|
||||
//aot: [trace] aot inline builtin: Math.ceil, caller function name:#*#doCeil@builtinMathCeil
|
||||
printCeil(new Object); //aot: [trace] Check Type: NotNumber1
|
||||
//: NaN
|
||||
printCeil("1.3333");
|
||||
|
@ -87,12 +87,12 @@ print(Math.clz32(Infinity)); //: 32
|
||||
//aot: [trace] aot inline builtin: Math.clz32, caller function name:func_main_0@builtinMathClz32
|
||||
print(Math.clz32(-Infinity)); //: 32
|
||||
|
||||
//aot: [trace] aot inline builtin: Math.clz32, caller function name:doclz32@builtinMathClz32
|
||||
//aot: [trace] aot inline builtin: Math.clz32, caller function name:#*#doclz32@builtinMathClz32
|
||||
printclz32(4); //: 29
|
||||
//aot: [trace] aot inline builtin: Math.clz32, caller function name:doclz32@builtinMathClz32
|
||||
//aot: [trace] aot inline builtin: Math.clz32, caller function name:#*#doclz32@builtinMathClz32
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printclz32("abc"); //: 32
|
||||
//aot: [trace] aot inline builtin: Math.clz32, caller function name:doclz32@builtinMathClz32
|
||||
//aot: [trace] aot inline builtin: Math.clz32, caller function name:#*#doclz32@builtinMathClz32
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printclz32("abcd"); //: 32
|
||||
|
||||
@ -113,9 +113,9 @@ Math.clz32 = true_clz32
|
||||
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
//aot: [trace] aot inline builtin: Math.clz32, caller function name:doclz32@builtinMathClz32
|
||||
//aot: [trace] aot inline builtin: Math.clz32, caller function name:#*#doclz32@builtinMathClz32
|
||||
printclz32(16); //: 27
|
||||
//aot: [trace] aot inline builtin: Math.clz32, caller function name:doclz32@builtinMathClz32
|
||||
//aot: [trace] aot inline builtin: Math.clz32, caller function name:#*#doclz32@builtinMathClz32
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printclz32("abc"); //: 32
|
||||
} catch (e) {
|
||||
|
@ -74,8 +74,8 @@ print(Math.exp(10e-10)); //: 1.000000001
|
||||
|
||||
// Check with special float params
|
||||
//aot: [trace] aot inline builtin: Math.exp, caller function name:func_main_0@builtinMathExp
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathExp caller function name: func_main_0@builtinMathExp
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathExp
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathExp caller function name: func_main_0@builtinMathExp
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathExp
|
||||
printZero(Math.exp(-Infinity)); //: 0
|
||||
//aot: [trace] aot inline builtin: Math.exp, caller function name:func_main_0@builtinMathExp
|
||||
print(Math.exp(Infinity)); //: Infinity
|
||||
@ -109,17 +109,17 @@ Math.exp = replace
|
||||
print(Math.exp(111)); //: 111
|
||||
Math.exp = trueExp
|
||||
|
||||
//aot: [trace] aot inline builtin: Math.exp, caller function name:printExp@builtinMathExp
|
||||
//aot: [trace] aot inline builtin: Math.exp, caller function name:#*#printExp@builtinMathExp
|
||||
printExp(1); //: 2.718281828459045
|
||||
|
||||
// Call standart builtin with non-number param
|
||||
//aot: [trace] aot inline builtin: Math.exp, caller function name:printExp@builtinMathExp
|
||||
//aot: [trace] aot inline builtin: Math.exp, caller function name:#*#printExp@builtinMathExp
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printExp("1"); //: 2.718281828459045
|
||||
//aot: [trace] aot inline builtin: Math.exp, caller function name:printExp@builtinMathExp
|
||||
//aot: [trace] aot inline builtin: Math.exp, caller function name:#*#printExp@builtinMathExp
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printExp("NaN"); //: NaN
|
||||
//aot: [trace] aot inline builtin: Math.exp, caller function name:printExp@builtinMathExp
|
||||
//aot: [trace] aot inline builtin: Math.exp, caller function name:#*#printExp@builtinMathExp
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printExp("abc"); //: NaN
|
||||
|
||||
@ -148,25 +148,25 @@ Math.exp = trueExp
|
||||
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
//aot: [trace] aot inline builtin: Math.exp, caller function name:printExp@builtinMathExp
|
||||
//aot: [trace] aot inline builtin: Math.exp, caller function name:#*#printExp@builtinMathExp
|
||||
printExp(1); //: 2.718281828459045
|
||||
//aot: [trace] aot inline builtin: Math.exp, caller function name:printExp@builtinMathExp
|
||||
//aot: [trace] aot inline builtin: Math.exp, caller function name:#*#printExp@builtinMathExp
|
||||
printExp(1, 2); //: 2.718281828459045
|
||||
//aot: [trace] aot inline builtin: Math.exp, caller function name:printExp@builtinMathExp
|
||||
//aot: [trace] aot inline builtin: Math.exp, caller function name:#*#printExp@builtinMathExp
|
||||
printExp(1, 2); //: 2.718281828459045
|
||||
//aot: [trace] aot inline builtin: Math.exp, caller function name:printExp@builtinMathExp
|
||||
//aot: [trace] aot inline builtin: Math.exp, caller function name:#*#printExp@builtinMathExp
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printExp("abc", 3e3); //: NaN
|
||||
} catch (e) {
|
||||
}
|
||||
|
||||
//aot: [trace] aot inline builtin: Math.exp, caller function name:printExp@builtinMathExp
|
||||
//aot: [trace] aot inline builtin: Math.exp, caller function name:#*#printExp@builtinMathExp
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
//: obj.valueOf
|
||||
printExp(obj); //: 1.026187963170189e-10
|
||||
//aot: [trace] aot inline builtin: Math.exp, caller function name:printExp@builtinMathExp
|
||||
//aot: [trace] aot inline builtin: Math.exp, caller function name:#*#printExp@builtinMathExp
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printExp(doubleObj); //: 14.879731724872837
|
||||
//aot: [trace] aot inline builtin: Math.exp, caller function name:printExp@builtinMathExp
|
||||
//aot: [trace] aot inline builtin: Math.exp, caller function name:#*#printExp@builtinMathExp
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printExp(nanObj); //: NaN
|
||||
|
@ -60,12 +60,12 @@ print(Math.expm1()); //: NaN
|
||||
|
||||
// Check with single param
|
||||
//aot: [trace] aot inline builtin: Math.expm1, caller function name:func_main_0@builtinMathExpm1
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathExpm1 caller function name: func_main_0@builtinMathExpm1
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathExpm1
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathExpm1 caller function name: func_main_0@builtinMathExpm1
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathExpm1
|
||||
printZero(Math.expm1(0)); //: 0
|
||||
//aot: [trace] aot inline builtin: Math.expm1, caller function name:func_main_0@builtinMathExpm1
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathExpm1 caller function name: func_main_0@builtinMathExpm1
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathExpm1
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathExpm1 caller function name: func_main_0@builtinMathExpm1
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathExpm1
|
||||
printZero("1/x: " + 1 / Math.expm1(-0)); //: 1/x: -Infinity
|
||||
//aot: [trace] aot inline builtin: Math.expm1, caller function name:func_main_0@builtinMathExpm1
|
||||
print(Math.expm1(1)); //: 1.718281828459045
|
||||
@ -111,17 +111,17 @@ Math.expm1 = replace
|
||||
print(Math.expm1(111)); //: 111
|
||||
Math.expm1 = trueExpm1
|
||||
|
||||
//aot: [trace] aot inline builtin: Math.expm1, caller function name:printExpm1@builtinMathExpm1
|
||||
//aot: [trace] aot inline builtin: Math.expm1, caller function name:#*#printExpm1@builtinMathExpm1
|
||||
printExpm1(1); //: 1.718281828459045
|
||||
|
||||
// Call standart builtin with non-number param
|
||||
//aot: [trace] aot inline builtin: Math.expm1, caller function name:printExpm1@builtinMathExpm1
|
||||
//aot: [trace] aot inline builtin: Math.expm1, caller function name:#*#printExpm1@builtinMathExpm1
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printExpm1("1"); //: 1.718281828459045
|
||||
//aot: [trace] aot inline builtin: Math.expm1, caller function name:printExpm1@builtinMathExpm1
|
||||
//aot: [trace] aot inline builtin: Math.expm1, caller function name:#*#printExpm1@builtinMathExpm1
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printExpm1("NaN"); //: NaN
|
||||
//aot: [trace] aot inline builtin: Math.expm1, caller function name:printExpm1@builtinMathExpm1
|
||||
//aot: [trace] aot inline builtin: Math.expm1, caller function name:#*#printExpm1@builtinMathExpm1
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printExpm1("abc"); //: NaN
|
||||
|
||||
@ -150,25 +150,25 @@ Math.expm1 = trueExpm1
|
||||
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
//aot: [trace] aot inline builtin: Math.expm1, caller function name:printExpm1@builtinMathExpm1
|
||||
//aot: [trace] aot inline builtin: Math.expm1, caller function name:#*#printExpm1@builtinMathExpm1
|
||||
printExpm1(1); //: 1.718281828459045
|
||||
//aot: [trace] aot inline builtin: Math.expm1, caller function name:printExpm1@builtinMathExpm1
|
||||
//aot: [trace] aot inline builtin: Math.expm1, caller function name:#*#printExpm1@builtinMathExpm1
|
||||
printExpm1(1, 2); //: 1.718281828459045
|
||||
//aot: [trace] aot inline builtin: Math.expm1, caller function name:printExpm1@builtinMathExpm1
|
||||
//aot: [trace] aot inline builtin: Math.expm1, caller function name:#*#printExpm1@builtinMathExpm1
|
||||
printExpm1(1, 2); //: 1.718281828459045
|
||||
//aot: [trace] aot inline builtin: Math.expm1, caller function name:printExpm1@builtinMathExpm1
|
||||
//aot: [trace] aot inline builtin: Math.expm1, caller function name:#*#printExpm1@builtinMathExpm1
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printExpm1("abc", 3e3); //: NaN
|
||||
} catch (e) {
|
||||
}
|
||||
|
||||
//aot: [trace] aot inline builtin: Math.expm1, caller function name:printExpm1@builtinMathExpm1
|
||||
//aot: [trace] aot inline builtin: Math.expm1, caller function name:#*#printExpm1@builtinMathExpm1
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
//: obj.valueOf
|
||||
printExpm1(obj); //: -0.9999999998973812
|
||||
//aot: [trace] aot inline builtin: Math.expm1, caller function name:printExpm1@builtinMathExpm1
|
||||
//aot: [trace] aot inline builtin: Math.expm1, caller function name:#*#printExpm1@builtinMathExpm1
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printExpm1(doubleObj); //: 13.879731724872837
|
||||
//aot: [trace] aot inline builtin: Math.expm1, caller function name:printExpm1@builtinMathExpm1
|
||||
//aot: [trace] aot inline builtin: Math.expm1, caller function name:#*#printExpm1@builtinMathExpm1
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printExpm1(nanObj); //: NaN
|
||||
|
@ -46,44 +46,44 @@ printFloor(111); //: 111
|
||||
Math.floor = backup
|
||||
|
||||
// Check with NaN param
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor(NaN); //: NaN
|
||||
|
||||
// Check with infinity param
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor(-Infinity); //: -Infinity
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor(+Infinity); //: Infinity
|
||||
|
||||
// Check with zero param
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor(-0.0); //: 0
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor(0.0); //: 0
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor(+0.0); //: 0
|
||||
|
||||
// Check with integer param
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor(-1.0); //: -1
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor(+1.0); //: 1
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor(-12.0); //: -12
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor(+12.0); //: 12
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor(-123.0); //: -123
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor(+123.0); //: 123
|
||||
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor(1.5); //: 1
|
||||
// Call standard builtin with non-number param
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor("abc"); //aot: [trace] Check Type: NotNumber1
|
||||
//: NaN
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor("1.5"); //aot: [trace] Check Type: NotNumber1
|
||||
//: 1
|
||||
|
||||
@ -101,36 +101,36 @@ printFloor("abc"); //aot: [trace] Check Type: NotCallTarget1
|
||||
Math.floor = backup
|
||||
|
||||
// Check with fractional param
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor(-1.25); //: -2
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor(+1.25); //: 1
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor(-1.50); //: -2
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor(+1.50); //: 1
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor(-1.75); //: -2
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor(+1.75); //: 1
|
||||
|
||||
// Check with non-number param
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor("string"); //aot: [trace] Check Type: NotNumber1
|
||||
//: NaN
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor(null); //aot: [trace] Check Type: NotNumber1
|
||||
//: 0
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor(undefined); //aot: [trace] Check Type: NotNumber1
|
||||
//: NaN
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor(false); //aot: [trace] Check Type: NotNumber1
|
||||
//: 0
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor(true); //aot: [trace] Check Type: NotNumber1
|
||||
//: 1
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:doFloor@builtinMathFloor
|
||||
//aot: [trace] aot inline builtin: Math.floor, caller function name:#*#doFloor@builtinMathFloor
|
||||
printFloor(new Object); //aot: [trace] Check Type: NotNumber1
|
||||
//: NaN
|
||||
printFloor("1.3333");
|
||||
|
@ -67,28 +67,28 @@ print(Math.fround(-1073741804)) //: -1073741824
|
||||
//aot: [trace] aot inline builtin: Math.fround, caller function name:func_main_0@builtinMathFround
|
||||
print(Math.fround(1.9e80)); //: Infinity
|
||||
//aot: [trace] aot inline builtin: Math.fround, caller function name:func_main_0@builtinMathFround
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathFround caller function name: func_main_0@builtinMathFround
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathFround
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathFround caller function name: func_main_0@builtinMathFround
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathFround
|
||||
printZero(Math.fround(2.5)); //: 2.5
|
||||
//aot: [trace] aot inline builtin: Math.fround, caller function name:func_main_0@builtinMathFround
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathFround caller function name: func_main_0@builtinMathFround
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathFround
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathFround caller function name: func_main_0@builtinMathFround
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathFround
|
||||
printZero(Math.fround(1.5)); //: 1.5
|
||||
//aot: [trace] aot inline builtin: Math.fround, caller function name:func_main_0@builtinMathFround
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathFround caller function name: func_main_0@builtinMathFround
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathFround
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathFround caller function name: func_main_0@builtinMathFround
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathFround
|
||||
printZero(Math.fround(0.5)); //: 0.5
|
||||
//aot: [trace] aot inline builtin: Math.fround, caller function name:func_main_0@builtinMathFround
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathFround caller function name: func_main_0@builtinMathFround
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathFround
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathFround caller function name: func_main_0@builtinMathFround
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathFround
|
||||
printZero(Math.fround(0.2)); //: 0.20000000298023224
|
||||
//aot: [trace] aot inline builtin: Math.fround, caller function name:func_main_0@builtinMathFround
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathFround caller function name: func_main_0@builtinMathFround
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathFround
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathFround caller function name: func_main_0@builtinMathFround
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathFround
|
||||
printZero(Math.fround(-0)); //: -0
|
||||
//aot: [trace] aot inline builtin: Math.fround, caller function name:func_main_0@builtinMathFround
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathFround caller function name: func_main_0@builtinMathFround
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathFround
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathFround caller function name: func_main_0@builtinMathFround
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathFround
|
||||
printZero(Math.fround(-1.9e-80)); //: -0
|
||||
//aot: [trace] aot inline builtin: Math.fround, caller function name:func_main_0@builtinMathFround
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathFround
|
||||
@ -142,13 +142,13 @@ Math.fround = replace
|
||||
print(Math.fround(-1.001)); //: -1.001
|
||||
Math.fround = true_fround
|
||||
|
||||
//aot: [trace] aot inline builtin: Math.fround, caller function name:doFround@builtinMathFround
|
||||
//aot: [trace] aot inline builtin: Math.fround, caller function name:#*#doFround@builtinMathFround
|
||||
printFround(12.3); //: 12.300000190734863
|
||||
// Call standard builtin with non-number param
|
||||
//aot: [trace] aot inline builtin: Math.fround, caller function name:doFround@builtinMathFround
|
||||
//aot: [trace] aot inline builtin: Math.fround, caller function name:#*#doFround@builtinMathFround
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printFround("abc"); //: NaN
|
||||
//aot: [trace] aot inline builtin: Math.fround, caller function name:doFround@builtinMathFround
|
||||
//aot: [trace] aot inline builtin: Math.fround, caller function name:#*#doFround@builtinMathFround
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printFround("-12.9"); //: -12.899999618530273
|
||||
|
||||
@ -168,11 +168,11 @@ Math.fround = true_fround
|
||||
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
//aot: [trace] aot inline builtin: Math.fround, caller function name:doFround@builtinMathFround
|
||||
//aot: [trace] aot inline builtin: Math.fround, caller function name:#*#doFround@builtinMathFround
|
||||
printFround(0.3) //: 0.30000001192092896
|
||||
//aot: [trace] aot inline builtin: Math.fround, caller function name:doFround@builtinMathFround
|
||||
//aot: [trace] aot inline builtin: Math.fround, caller function name:#*#doFround@builtinMathFround
|
||||
printFround(-12); //: -12
|
||||
//aot: [trace] aot inline builtin: Math.fround, caller function name:doFround@builtinMathFround
|
||||
//aot: [trace] aot inline builtin: Math.fround, caller function name:#*#doFround@builtinMathFround
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printFround("abc"); //: NaN
|
||||
} catch (e) {
|
||||
|
@ -143,13 +143,13 @@ Math.imul = true_imul
|
||||
|
||||
len = Math.imul(3, 3)
|
||||
print(len) //: 9
|
||||
//aot: [trace] aot inline builtin: Math.imul, caller function name:doImul@builtinMathImul
|
||||
//aot: [trace] aot inline builtin: Math.imul, caller function name:#*#doImul@builtinMathImul
|
||||
printImul(-12, 2); //: -24
|
||||
// Call standard builtin with non-number param
|
||||
//aot: [trace] aot inline builtin: Math.imul, caller function name:doImul@builtinMathImul
|
||||
//aot: [trace] aot inline builtin: Math.imul, caller function name:#*#doImul@builtinMathImul
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printImul("abc", 2); //: 0
|
||||
//aot: [trace] aot inline builtin: Math.imul, caller function name:doImul@builtinMathImul
|
||||
//aot: [trace] aot inline builtin: Math.imul, caller function name:#*#doImul@builtinMathImul
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printImul("-12", 2); //: -24
|
||||
|
||||
@ -168,9 +168,9 @@ Math.imul = true_imul
|
||||
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
//aot: [trace] aot inline builtin: Math.imul, caller function name:doImul@builtinMathImul
|
||||
//aot: [trace] aot inline builtin: Math.imul, caller function name:#*#doImul@builtinMathImul
|
||||
printImul(-12, 2); //: -24
|
||||
//aot: [trace] aot inline builtin: Math.imul, caller function name:doImul@builtinMathImul
|
||||
//aot: [trace] aot inline builtin: Math.imul, caller function name:#*#doImul@builtinMathImul
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printImul("abc", 2); //: 0
|
||||
} catch (e) {
|
||||
@ -178,7 +178,7 @@ try {
|
||||
|
||||
let obj = {};
|
||||
obj.valueOf = (() => { return -23; })
|
||||
//aot: [trace] aot inline builtin: Math.imul, caller function name:doImul@builtinMathImul
|
||||
//aot: [trace] aot inline builtin: Math.imul, caller function name:#*#doImul@builtinMathImul
|
||||
//aot: [trace] Check Type: NotNumber1
|
||||
printImul(obj, -2); //: 46
|
||||
|
||||
|
@ -129,28 +129,28 @@ print(Math.max(Infinity, NaN)); //: NaN
|
||||
|
||||
// Check 0 and -0
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:func_main_0@builtinMathMax
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathMax caller function name: func_main_0@builtinMathMax
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathMax
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathMax caller function name: func_main_0@builtinMathMax
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathMax
|
||||
printZero(Math.max(0, -0)); //: 0
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:func_main_0@builtinMathMax
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathMax caller function name: func_main_0@builtinMathMax
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathMax
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathMax caller function name: func_main_0@builtinMathMax
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathMax
|
||||
printZero(Math.max(-0, 0)); //: 0
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:func_main_0@builtinMathMax
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathMax caller function name: func_main_0@builtinMathMax
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathMax
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathMax caller function name: func_main_0@builtinMathMax
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathMax
|
||||
printZero(Math.max(0, 0)); //: 0
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:func_main_0@builtinMathMax
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathMax caller function name: func_main_0@builtinMathMax
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathMax
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathMax caller function name: func_main_0@builtinMathMax
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathMax
|
||||
printZero(Math.max(-0, -0)); //: -0
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:func_main_0@builtinMathMax
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathMax caller function name: func_main_0@builtinMathMax
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathMax
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathMax caller function name: func_main_0@builtinMathMax
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathMax
|
||||
printZero(Math.max(-5, -0)); //: -0
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:func_main_0@builtinMathMax
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathMax caller function name: func_main_0@builtinMathMax
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathMax
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathMax caller function name: func_main_0@builtinMathMax
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathMax
|
||||
printZero(Math.max(-5, 0)); //: 0
|
||||
|
||||
// Check with int and float param
|
||||
@ -194,13 +194,13 @@ Math.max = replace
|
||||
print(Math.max(-1.001, -90)); //: -1.001
|
||||
Math.max = trueMax
|
||||
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:printMax@builtinMathMax
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:#*#printMax@builtinMathMax
|
||||
printMax(-12, -100); //: -12
|
||||
// Call standard builtin with non-number param
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:printMax@builtinMathMax
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:#*#printMax@builtinMathMax
|
||||
//aot: [trace] Check Type: NotNumber2
|
||||
printMax("abc", -100); //: NaN
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:printMax@builtinMathMax
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:#*#printMax@builtinMathMax
|
||||
//aot: [trace] Check Type: NotNumber2
|
||||
printMax("-12", -100); //: -12
|
||||
|
||||
@ -218,41 +218,41 @@ Math.max = trueMax
|
||||
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:printMax@builtinMathMax
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:#*#printMax@builtinMathMax
|
||||
printMax(19, 20); //: 20
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:printMax@builtinMathMax
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:#*#printMax@builtinMathMax
|
||||
printMax(19, 12); //: 19
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:printMax@builtinMathMax
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:#*#printMax@builtinMathMax
|
||||
//aot: [trace] Check Type: NotNumber2
|
||||
printMax("abc", 5); //: NaN
|
||||
} catch (e) {
|
||||
}
|
||||
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:printMax1@builtinMathMax
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:#*#printMax1@builtinMathMax
|
||||
//aot: [trace] Check Type: BuiltinInliningTypeGuard
|
||||
//: obj.valueOf
|
||||
printMax1(obj); //: -23
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:printMax1@builtinMathMax
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:#*#printMax1@builtinMathMax
|
||||
//aot: [trace] Check Type: BuiltinInliningTypeGuard
|
||||
printMax1(doubleObj); //: 2.7
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:printMax@builtinMathMax
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:#*#printMax@builtinMathMax
|
||||
//aot: [trace] Check Type: NotNumber2
|
||||
printMax(doubleObj, doubleObj); //: 2.7
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:printMax@builtinMathMax
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:#*#printMax@builtinMathMax
|
||||
//aot: [trace] Check Type: NotNumber2
|
||||
//: obj.valueOf
|
||||
printMax(nanObj, obj); //: NaN
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:printMax@builtinMathMax
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:#*#printMax@builtinMathMax
|
||||
//aot: [trace] Check Type: NotNumber2
|
||||
//: obj.valueOf
|
||||
printMax(2, obj); //: 2
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:printMax@builtinMathMax
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:#*#printMax@builtinMathMax
|
||||
//aot: [trace] Check Type: NotNumber2
|
||||
//: obj.valueOf
|
||||
printMax(-100, obj); //: -23
|
||||
|
||||
// call obj.valueOf twice
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:printMax3@builtinMathMax
|
||||
//aot: [trace] aot inline builtin: Math.max, caller function name:#*#printMax3@builtinMathMax
|
||||
//aot: [trace] Check Type: NotNumber2
|
||||
//: obj.valueOf
|
||||
//: obj.valueOf
|
||||
|
@ -124,28 +124,28 @@ print(Math.min(Infinity, NaN)); //: NaN
|
||||
|
||||
// Check 0 and -0
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:func_main_0@builtinMathMin
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathMin caller function name: func_main_0@builtinMathMin
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathMin
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathMin caller function name: func_main_0@builtinMathMin
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathMin
|
||||
printZero(Math.min(0, -0)); //: -0
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:func_main_0@builtinMathMin
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathMin caller function name: func_main_0@builtinMathMin
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathMin
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathMin caller function name: func_main_0@builtinMathMin
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathMin
|
||||
printZero(Math.min(-0, 0)); //: -0
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:func_main_0@builtinMathMin
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathMin caller function name: func_main_0@builtinMathMin
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathMin
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathMin caller function name: func_main_0@builtinMathMin
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathMin
|
||||
printZero(Math.min(0, 0)); //: 0
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:func_main_0@builtinMathMin
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathMin caller function name: func_main_0@builtinMathMin
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathMin
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathMin caller function name: func_main_0@builtinMathMin
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathMin
|
||||
printZero(Math.min(-0, -0)); //: -0
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:func_main_0@builtinMathMin
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathMin caller function name: func_main_0@builtinMathMin
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathMin
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathMin caller function name: func_main_0@builtinMathMin
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathMin
|
||||
printZero(Math.min(5, -0)); //: -0
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:func_main_0@builtinMathMin
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathMin caller function name: func_main_0@builtinMathMin
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathMin
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathMin caller function name: func_main_0@builtinMathMin
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathMin
|
||||
printZero(Math.min(5, 0)); //: 0
|
||||
|
||||
// Check with int and float param
|
||||
@ -188,13 +188,13 @@ Math.min = replace
|
||||
print(Math.min(-1.001, -90)); //: -1.001
|
||||
Math.min = trueMin
|
||||
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:printMin@builtinMathMin
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:#*#printMin@builtinMathMin
|
||||
printMin(-12, 1); //: -12
|
||||
// Call standard builtin with non-number param
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:printMin@builtinMathMin
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:#*#printMin@builtinMathMin
|
||||
//aot: [trace] Check Type: NotNumber2
|
||||
printMin("abc", 1); //: NaN
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:printMin@builtinMathMin
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:#*#printMin@builtinMathMin
|
||||
//aot: [trace] Check Type: NotNumber2
|
||||
printMin("-12", 1); //: -12
|
||||
|
||||
@ -212,29 +212,29 @@ Math.min = trueMin
|
||||
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:printMin@builtinMathMin
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:#*#printMin@builtinMathMin
|
||||
printMin(19, 12); //: 12
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:printMin@builtinMathMin
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:#*#printMin@builtinMathMin
|
||||
//aot: [trace] Check Type: NotNumber2
|
||||
printMin("abc", 5); //: NaN
|
||||
} catch (e) {
|
||||
}
|
||||
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:printMin1@builtinMathMin
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:#*#printMin1@builtinMathMin
|
||||
//aot: [trace] Check Type: BuiltinInliningTypeGuard
|
||||
//: obj.valueOf
|
||||
printMin1(obj); //: -23
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:printMin1@builtinMathMin
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:#*#printMin1@builtinMathMin
|
||||
//aot: [trace] Check Type: BuiltinInliningTypeGuard
|
||||
printMin1(doubleObj); //: 2.7
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:printMin@builtinMathMin
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:#*#printMin@builtinMathMin
|
||||
//aot: [trace] Check Type: NotNumber2
|
||||
printMin(doubleObj, doubleObj); //: 2.7
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:printMin@builtinMathMin
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:#*#printMin@builtinMathMin
|
||||
//aot: [trace] Check Type: NotNumber2
|
||||
//: obj.valueOf
|
||||
printMin(nanObj, obj); //: NaN
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:printMin@builtinMathMin
|
||||
//aot: [trace] aot inline builtin: Math.min, caller function name:#*#printMin@builtinMathMin
|
||||
//aot: [trace] Check Type: NotNumber2
|
||||
//: obj.valueOf
|
||||
printMin(24, obj); //: -23
|
||||
|
@ -67,28 +67,28 @@ print(Math.round(-1073741804)) //: -1073741804
|
||||
//aot: [trace] aot inline builtin: Math.round, caller function name:func_main_0@builtinMathRound
|
||||
print(Math.round(1.9e80)); //: 1.9e+80
|
||||
//aot: [trace] aot inline builtin: Math.round, caller function name:func_main_0@builtinMathRound
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathRound caller function name: func_main_0@builtinMathRound
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathRound
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathRound caller function name: func_main_0@builtinMathRound
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathRound
|
||||
printZero(Math.round(2.5)); //: 3
|
||||
//aot: [trace] aot inline builtin: Math.round, caller function name:func_main_0@builtinMathRound
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathRound caller function name: func_main_0@builtinMathRound
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathRound
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathRound caller function name: func_main_0@builtinMathRound
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathRound
|
||||
printZero(Math.round(1.5)); //: 2
|
||||
//aot: [trace] aot inline builtin: Math.round, caller function name:func_main_0@builtinMathRound
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathRound caller function name: func_main_0@builtinMathRound
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathRound
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathRound caller function name: func_main_0@builtinMathRound
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathRound
|
||||
printZero(Math.round(0.5)); //: 1
|
||||
//aot: [trace] aot inline builtin: Math.round, caller function name:func_main_0@builtinMathRound
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathRound caller function name: func_main_0@builtinMathRound
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathRound
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathRound caller function name: func_main_0@builtinMathRound
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathRound
|
||||
printZero(Math.round(0.2)); //: 0
|
||||
//aot: [trace] aot inline builtin: Math.round, caller function name:func_main_0@builtinMathRound
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathRound caller function name: func_main_0@builtinMathRound
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathRound
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathRound caller function name: func_main_0@builtinMathRound
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathRound
|
||||
printZero(Math.round(-0)); //: -0
|
||||
//aot: [trace] aot inline builtin: Math.round, caller function name:func_main_0@builtinMathRound
|
||||
//aot: [trace] aot inline function name: printZero@builtinMathRound caller function name: func_main_0@builtinMathRound
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathRound
|
||||
//aot: [trace] aot inline function name: #*#printZero@builtinMathRound caller function name: func_main_0@builtinMathRound
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:#*#printZero@builtinMathRound
|
||||
printZero(Math.round(-1.9e-80)); //: -0
|
||||
//aot: [trace] aot inline builtin: Math.round, caller function name:func_main_0@builtinMathRound
|
||||
//aot: [trace] aot inline builtin: Object.is, caller function name:printZero@builtinMathRound
|
||||
@ -150,13 +150,13 @@ Math.round = replace
|
||||
print(Math.round(-1.001)); //: -1.001
|
||||
Math.round = true_round
|
||||
|
||||
//aot: [trace] aot inline builtin: Math.round, caller function name:doRound@builtinMathRound
|
||||
//aot: [trace] aot inline builtin: Math.round, caller function name:#*#doRound@builtinMathRound
|
||||
printRound(12.3); //: 12
|
||||
// Call standard builtin with non-number param
|
||||
//aot: [trace] aot inline builtin: Math.round, caller function name:doRound@builtinMathRound
|
||||
//aot: [trace] aot inline builtin: Math.round, caller function name:#*#doRound@builtinMathRound
|
||||
//aot: [trace] Check Type: NotNumber2
|
||||
printRound("abc"); //: NaN
|
||||
//aot: [trace] aot inline builtin: Math.round, caller function name:doRound@builtinMathRound
|
||||
//aot: [trace] aot inline builtin: Math.round, caller function name:#*#doRound@builtinMathRound
|
||||
//aot: [trace] Check Type: NotNumber2
|
||||
printRound("-12.9"); //: -13
|
||||
|
||||
@ -176,11 +176,11 @@ Math.round = true_round
|
||||
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
//aot: [trace] aot inline builtin: Math.round, caller function name:doRound@builtinMathRound
|
||||
//aot: [trace] aot inline builtin: Math.round, caller function name:#*#doRound@builtinMathRound
|
||||
printRound(0.3) //: 0
|
||||
//aot: [trace] aot inline builtin: Math.round, caller function name:doRound@builtinMathRound
|
||||
//aot: [trace] aot inline builtin: Math.round, caller function name:#*#doRound@builtinMathRound
|
||||
printRound(-12); //: -12
|
||||
//aot: [trace] aot inline builtin: Math.round, caller function name:doRound@builtinMathRound
|
||||
//aot: [trace] aot inline builtin: Math.round, caller function name:#*#doRound@builtinMathRound
|
||||
//aot: [trace] Check Type: NotNumber2
|
||||
printRound("abc"); //: NaN
|
||||
} catch (e) {
|
||||
|
@ -71,17 +71,17 @@ function printSign(a: any)
|
||||
}
|
||||
|
||||
// Check:
|
||||
//aot: [trace] aot inline builtin: Math.sign, caller function name:doSign@builtinMathSign
|
||||
//aot: [trace] aot inline builtin: Math.sign, caller function name:#*#doSign@builtinMathSign
|
||||
printSign(1) //: 1
|
||||
//aot: [trace] aot inline builtin: Math.sign, caller function name:doSign@builtinMathSign
|
||||
//aot: [trace] aot inline builtin: Math.sign, caller function name:#*#doSign@builtinMathSign
|
||||
printSign(Math.PI) //: 1
|
||||
//aot: [trace] aot inline builtin: Math.sign, caller function name:doSign@builtinMathSign
|
||||
//aot: [trace] aot inline builtin: Math.sign, caller function name:#*#doSign@builtinMathSign
|
||||
printSign(-Math.PI) //: -1
|
||||
//aot: [trace] aot inline builtin: Math.sign, caller function name:doSign@builtinMathSign
|
||||
//aot: [trace] aot inline builtin: Math.sign, caller function name:#*#doSign@builtinMathSign
|
||||
printSign(NaN) //: NaN
|
||||
//aot: [trace] aot inline builtin: Math.sign, caller function name:doSign@builtinMathSign
|
||||
//aot: [trace] aot inline builtin: Math.sign, caller function name:#*#doSign@builtinMathSign
|
||||
printSign(-1.5) //: -1
|
||||
//aot: [trace] aot inline builtin: Math.sign, caller function name:doSign@builtinMathSign
|
||||
//aot: [trace] aot inline builtin: Math.sign, caller function name:#*#doSign@builtinMathSign
|
||||
printSign(Infinity) //: 1
|
||||
|
||||
if (ArkTools.isAOTCompiled(printSign)) {
|
||||
@ -101,19 +101,19 @@ printSign(-Math.PI) //pgo: -1
|
||||
Math.sign = trueSign
|
||||
let obj = {};
|
||||
obj.valueOf = (() => { return -23; })
|
||||
//aot: [trace] aot inline builtin: Math.sign, caller function name:doSign@builtinMathSign
|
||||
//aot: [trace] aot inline builtin: Math.sign, caller function name:#*#doSign@builtinMathSign
|
||||
//aot: [trace] Check Type: NotNumber2
|
||||
printSign(obj); //: -1
|
||||
//aot: [trace] aot inline builtin: Math.sign, caller function name:doSign@builtinMathSign
|
||||
//aot: [trace] aot inline builtin: Math.sign, caller function name:#*#doSign@builtinMathSign
|
||||
printSign(-1.5) //: -1
|
||||
//aot: [trace] aot inline builtin: Math.sign, caller function name:doSign@builtinMathSign
|
||||
//aot: [trace] aot inline builtin: Math.sign, caller function name:#*#doSign@builtinMathSign
|
||||
printSign(Infinity) //: 1
|
||||
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
//aot: [trace] aot inline builtin: Math.sign, caller function name:doSign@builtinMathSign
|
||||
//aot: [trace] aot inline builtin: Math.sign, caller function name:#*#doSign@builtinMathSign
|
||||
printSign(-12) //: -1
|
||||
//aot: [trace] aot inline builtin: Math.sign, caller function name:doSign@builtinMathSign
|
||||
//aot: [trace] aot inline builtin: Math.sign, caller function name:#*#doSign@builtinMathSign
|
||||
//aot: [trace] Check Type: NotNumber2
|
||||
printSign("-12") //: -1
|
||||
} catch (e) {
|
||||
|
@ -89,10 +89,10 @@ print(Math.trunc(111.09)); //: 111.09
|
||||
Math.trunc = true_trunc
|
||||
|
||||
// Call standart builtin with non-number param
|
||||
//aot: [trace] aot inline builtin: Math.trunc, caller function name:doTrunc@builtinMathTrunc
|
||||
//aot: [trace] aot inline builtin: Math.trunc, caller function name:#*#doTrunc@builtinMathTrunc
|
||||
//aot: [trace] Check Type: NotNumber2
|
||||
printTrunc("abc"); //: NaN
|
||||
//aot: [trace] aot inline builtin: Math.trunc, caller function name:doTrunc@builtinMathTrunc
|
||||
//aot: [trace] aot inline builtin: Math.trunc, caller function name:#*#doTrunc@builtinMathTrunc
|
||||
//aot: [trace] Check Type: NotNumber2
|
||||
printTrunc("2.45"); //: 2
|
||||
|
||||
@ -112,9 +112,9 @@ Math.trunc = true_trunc
|
||||
|
||||
// Checl IR correctness inside try-block
|
||||
try {
|
||||
//aot: [trace] aot inline builtin: Math.trunc, caller function name:doTrunc@builtinMathTrunc
|
||||
//aot: [trace] aot inline builtin: Math.trunc, caller function name:#*#doTrunc@builtinMathTrunc
|
||||
printTrunc(-48.12); //: -48
|
||||
//aot: [trace] aot inline builtin: Math.trunc, caller function name:doTrunc@builtinMathTrunc
|
||||
//aot: [trace] aot inline builtin: Math.trunc, caller function name:#*#doTrunc@builtinMathTrunc
|
||||
//aot: [trace] Check Type: NotNumber2
|
||||
printTrunc("abc"); //: NaN
|
||||
} catch (e) {
|
||||
|
@ -47,27 +47,27 @@ function test(a : any)
|
||||
|
||||
test(newNumber(12));
|
||||
//: exit newNumber
|
||||
//aot: [trace] aot inline function name: test@builtinNumberConstructor caller function name: func_main_0@builtinNumberConstructor
|
||||
//aot: [trace] aot inline function name: #*#test@builtinNumberConstructor caller function name: func_main_0@builtinNumberConstructor
|
||||
//: object,true,Number,12,-12
|
||||
|
||||
test(newNumber("12"));
|
||||
//: exit newNumber
|
||||
//aot: [trace] aot inline function name: test@builtinNumberConstructor caller function name: func_main_0@builtinNumberConstructor
|
||||
//aot: [trace] aot inline function name: #*#test@builtinNumberConstructor caller function name: func_main_0@builtinNumberConstructor
|
||||
//: object,true,Number,12,-12
|
||||
|
||||
//aot: [trace] Check Type: NotInt1
|
||||
test(newNumber("1.2")); // Only compressed strings are supported
|
||||
//: exit newNumber
|
||||
//aot: [trace] aot inline function name: test@builtinNumberConstructor caller function name: func_main_0@builtinNumberConstructor
|
||||
//aot: [trace] aot inline function name: #*#test@builtinNumberConstructor caller function name: func_main_0@builtinNumberConstructor
|
||||
//: object,true,Number,1.2,-1.2
|
||||
|
||||
test(newNumber(1.2));
|
||||
//: exit newNumber
|
||||
//aot: [trace] aot inline function name: test@builtinNumberConstructor caller function name: func_main_0@builtinNumberConstructor
|
||||
//aot: [trace] aot inline function name: #*#test@builtinNumberConstructor caller function name: func_main_0@builtinNumberConstructor
|
||||
//: object,true,Number,1.2,-1.2
|
||||
|
||||
//aot: [trace] aot inline function name: newNumberZero@builtinNumberConstructor caller function name: func_main_0@builtinNumberConstructor
|
||||
//aot: [trace] aot inline function name: test@builtinNumberConstructor caller function name: func_main_0@builtinNumberConstructor
|
||||
//aot: [trace] aot inline function name: #*#newNumberZero@builtinNumberConstructor caller function name: func_main_0@builtinNumberConstructor
|
||||
//aot: [trace] aot inline function name: #*#test@builtinNumberConstructor caller function name: func_main_0@builtinNumberConstructor
|
||||
test(newNumberZero());
|
||||
//: object,true,Number,0,0
|
||||
|
||||
|
@ -82,114 +82,114 @@ function valueTest(testFunc : any) {
|
||||
}
|
||||
|
||||
valueTest(testParseFloat)
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testParseFloat@builtinNumberParseFloat
|
||||
//: exit testParseFloat
|
||||
//aot: [trace] aot inline function name: test@builtinNumberParseFloat caller function name: valueTest@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline function name: #*#test@builtinNumberParseFloat caller function name: #*#valueTest@builtinNumberParseFloat
|
||||
//: number,12
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testParseFloat@builtinNumberParseFloat
|
||||
//: exit testParseFloat
|
||||
//aot: [trace] aot inline function name: test@builtinNumberParseFloat caller function name: valueTest@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline function name: #*#test@builtinNumberParseFloat caller function name: #*#valueTest@builtinNumberParseFloat
|
||||
//: number,1.2
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testParseFloat@builtinNumberParseFloat
|
||||
//: exit testParseFloat
|
||||
//aot: [trace] aot inline function name: test@builtinNumberParseFloat caller function name: valueTest@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline function name: #*#test@builtinNumberParseFloat caller function name: #*#valueTest@builtinNumberParseFloat
|
||||
//: number,0.2
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testParseFloat@builtinNumberParseFloat
|
||||
//: exit testParseFloat
|
||||
//aot: [trace] aot inline function name: test@builtinNumberParseFloat caller function name: valueTest@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline function name: #*#test@builtinNumberParseFloat caller function name: #*#valueTest@builtinNumberParseFloat
|
||||
//: number,-0.2
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testParseFloat@builtinNumberParseFloat
|
||||
//: exit testParseFloat
|
||||
//aot: [trace] aot inline function name: test@builtinNumberParseFloat caller function name: valueTest@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline function name: #*#test@builtinNumberParseFloat caller function name: #*#valueTest@builtinNumberParseFloat
|
||||
//: number,2
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testParseFloat@builtinNumberParseFloat
|
||||
//: exit testParseFloat
|
||||
//aot: [trace] aot inline function name: test@builtinNumberParseFloat caller function name: valueTest@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline function name: #*#test@builtinNumberParseFloat caller function name: #*#valueTest@builtinNumberParseFloat
|
||||
//: number,-2
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testParseFloat@builtinNumberParseFloat
|
||||
//: exit testParseFloat
|
||||
//: number,-0.2
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testParseFloat@builtinNumberParseFloat
|
||||
//: exit testParseFloat
|
||||
//: number,-0.2
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testParseFloat@builtinNumberParseFloat
|
||||
//: exit testParseFloat
|
||||
//: number,0.12
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testParseFloat@builtinNumberParseFloat
|
||||
//: exit testParseFloat
|
||||
//: number,1.2
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testParseFloat@builtinNumberParseFloat
|
||||
//: exit testParseFloat
|
||||
//: number,NaN
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testParseFloat@builtinNumberParseFloat
|
||||
//: exit testParseFloat
|
||||
//: number,Infinity
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testParseFloat@builtinNumberParseFloat
|
||||
//: exit testParseFloat
|
||||
//: number,Infinity
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testParseFloat@builtinNumberParseFloat
|
||||
//: exit testParseFloat
|
||||
//: number,-Infinity
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testParseFloat@builtinNumberParseFloat
|
||||
//: exit testParseFloat
|
||||
//: number,-Infinity
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testParseFloat@builtinNumberParseFloat
|
||||
//: exit testParseFloat
|
||||
//: number,900719925474099300
|
||||
|
||||
valueTest(testNumberParseFloat)
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testNumberParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testNumberParseFloat@builtinNumberParseFloat
|
||||
//: exit testNumberParseFloat
|
||||
//aot: [trace] aot inline function name: test@builtinNumberParseFloat caller function name: valueTest@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline function name: #*#test@builtinNumberParseFloat caller function name: #*#valueTest@builtinNumberParseFloat
|
||||
//: number,12
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testNumberParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testNumberParseFloat@builtinNumberParseFloat
|
||||
//: exit testNumberParseFloat
|
||||
//aot: [trace] aot inline function name: test@builtinNumberParseFloat caller function name: valueTest@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline function name: #*#test@builtinNumberParseFloat caller function name: #*#valueTest@builtinNumberParseFloat
|
||||
//: number,1.2
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testNumberParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testNumberParseFloat@builtinNumberParseFloat
|
||||
//: exit testNumberParseFloat
|
||||
//aot: [trace] aot inline function name: test@builtinNumberParseFloat caller function name: valueTest@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline function name: #*#test@builtinNumberParseFloat caller function name: #*#valueTest@builtinNumberParseFloat
|
||||
//: number,0.2
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testNumberParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testNumberParseFloat@builtinNumberParseFloat
|
||||
//: exit testNumberParseFloat
|
||||
//aot: [trace] aot inline function name: test@builtinNumberParseFloat caller function name: valueTest@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline function name: #*#test@builtinNumberParseFloat caller function name: #*#valueTest@builtinNumberParseFloat
|
||||
//: number,-0.2
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testNumberParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testNumberParseFloat@builtinNumberParseFloat
|
||||
//: exit testNumberParseFloat
|
||||
//aot: [trace] aot inline function name: test@builtinNumberParseFloat caller function name: valueTest@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline function name: #*#test@builtinNumberParseFloat caller function name: #*#valueTest@builtinNumberParseFloat
|
||||
//: number,2
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testNumberParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testNumberParseFloat@builtinNumberParseFloat
|
||||
//: exit testNumberParseFloat
|
||||
//aot: [trace] aot inline function name: test@builtinNumberParseFloat caller function name: valueTest@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline function name: #*#test@builtinNumberParseFloat caller function name: #*#valueTest@builtinNumberParseFloat
|
||||
//: number,-2
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testNumberParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testNumberParseFloat@builtinNumberParseFloat
|
||||
//: exit testNumberParseFloat
|
||||
//: number,-0.2
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testNumberParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testNumberParseFloat@builtinNumberParseFloat
|
||||
//: exit testNumberParseFloat
|
||||
//: number,-0.2
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testNumberParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testNumberParseFloat@builtinNumberParseFloat
|
||||
//: exit testNumberParseFloat
|
||||
//: number,0.12
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testNumberParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testNumberParseFloat@builtinNumberParseFloat
|
||||
//: exit testNumberParseFloat
|
||||
//: number,1.2
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testNumberParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testNumberParseFloat@builtinNumberParseFloat
|
||||
//: exit testNumberParseFloat
|
||||
//: number,NaN
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testNumberParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testNumberParseFloat@builtinNumberParseFloat
|
||||
//: exit testNumberParseFloat
|
||||
//: number,Infinity
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testNumberParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testNumberParseFloat@builtinNumberParseFloat
|
||||
//: exit testNumberParseFloat
|
||||
//: number,Infinity
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testNumberParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testNumberParseFloat@builtinNumberParseFloat
|
||||
//: exit testNumberParseFloat
|
||||
//: number,-Infinity
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testNumberParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testNumberParseFloat@builtinNumberParseFloat
|
||||
//: exit testNumberParseFloat
|
||||
//: number,-Infinity
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testNumberParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testNumberParseFloat@builtinNumberParseFloat
|
||||
//: exit testNumberParseFloat
|
||||
//: number,900719925474099300
|
||||
|
||||
@ -199,30 +199,30 @@ obj.toString = function () : string {
|
||||
return "22";
|
||||
}
|
||||
test(testParseFloat(obj));
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] Check Type: NotString1
|
||||
//: exit testParseFloat
|
||||
//aot: [trace] aot inline function name: test@builtinNumberParseFloat caller function name: func_main_0@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline function name: #*#test@builtinNumberParseFloat caller function name: func_main_0@builtinNumberParseFloat
|
||||
//: number,22
|
||||
test(testNumberParseFloat(obj));
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testNumberParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testNumberParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] Check Type: NotString1
|
||||
//: exit testNumberParseFloat
|
||||
//aot: [trace] aot inline function name: test@builtinNumberParseFloat caller function name: func_main_0@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline function name: #*#test@builtinNumberParseFloat caller function name: func_main_0@builtinNumberParseFloat
|
||||
//: number,22
|
||||
|
||||
obj = new Number(22);
|
||||
test(testParseFloat(obj));
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] Check Type: NotString1
|
||||
//: exit testParseFloat
|
||||
//aot: [trace] aot inline function name: test@builtinNumberParseFloat caller function name: func_main_0@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline function name: #*#test@builtinNumberParseFloat caller function name: func_main_0@builtinNumberParseFloat
|
||||
//: number,22
|
||||
test(testNumberParseFloat(obj));
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testNumberParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testNumberParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] Check Type: NotString1
|
||||
//: exit testNumberParseFloat
|
||||
//aot: [trace] aot inline function name: test@builtinNumberParseFloat caller function name: func_main_0@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline function name: #*#test@builtinNumberParseFloat caller function name: func_main_0@builtinNumberParseFloat
|
||||
//: number,22
|
||||
|
||||
// Check deopt with throw:
|
||||
@ -240,14 +240,14 @@ try {
|
||||
try {
|
||||
test(testParseFloat(obj, 2));
|
||||
} catch (e) {}
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] Check Type: NotString1
|
||||
//: catch 'Error: thr 2' in testParseFloat
|
||||
//: exit testParseFloat
|
||||
try {
|
||||
test(testNumberParseFloat(obj, 2));
|
||||
} catch (e) {}
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testNumberParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testNumberParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] Check Type: NotString1
|
||||
//: catch 'Error: thr 2' in testNumberParseFloat
|
||||
//: exit testNumberParseFloat
|
||||
@ -257,9 +257,9 @@ Number.parseFloat = () => { throw "CheckReplace" }
|
||||
|
||||
test(testParseFloat("1"));
|
||||
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:testParseFloat@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline builtin: Number.parseFloat, caller function name:#*#testParseFloat@builtinNumberParseFloat
|
||||
//: exit testParseFloat
|
||||
//aot: [trace] aot inline function name: test@builtinNumberParseFloat caller function name: func_main_0@builtinNumberParseFloat
|
||||
//aot: [trace] aot inline function name: #*#test@builtinNumberParseFloat caller function name: func_main_0@builtinNumberParseFloat
|
||||
//: number,1
|
||||
|
||||
try {
|
||||
|
@ -89,7 +89,7 @@ for (let key of mySet.values()) {
|
||||
let true_add = mySet.add
|
||||
|
||||
printAdd(15);
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:doAdd@builtinSetAdd
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:#*#doAdd@builtinSetAdd
|
||||
//: [object Set]
|
||||
print(mySet.has(15));
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
|
||||
@ -128,10 +128,10 @@ print(mySet.has("xyz"));
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
printAdd(2.5);
|
||||
//aot: [[trace] aot inline builtin: Set.add, caller function name:doAdd@builtinSetAdd
|
||||
//aot: [[trace] aot inline builtin: Set.add, caller function name:#*#doAdd@builtinSetAdd
|
||||
//: [object Set]
|
||||
printAdd("oops");
|
||||
//aot: [[trace] aot inline builtin: Set.add, caller function name:doAdd@builtinSetAdd
|
||||
//aot: [[trace] aot inline builtin: Set.add, caller function name:#*#doAdd@builtinSetAdd
|
||||
//: [object Set]
|
||||
print(mySet.has(2.5));
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
|
||||
@ -205,21 +205,21 @@ print(m.has(13));
|
||||
//: true
|
||||
|
||||
tryAdd(m2, 13);
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:doAdd@builtinSetAdd
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:#*#doAdd@builtinSetAdd
|
||||
//: [object Set]
|
||||
print(m2.has(13));
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
|
||||
//: true
|
||||
|
||||
tryAdd(m3, 13);
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:doAdd@builtinSetAdd
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:#*#doAdd@builtinSetAdd
|
||||
//: [object Set]
|
||||
print(m3.has(13));
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
|
||||
//: true
|
||||
|
||||
tryAdd(m4, 13);
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:doAdd@builtinSetAdd
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:#*#doAdd@builtinSetAdd
|
||||
//: [object Set]
|
||||
print(m4.has(13));
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
|
||||
@ -234,21 +234,21 @@ if (ArkTools.isAOTCompiled(tryAdd)) {
|
||||
|
||||
// Nothing changed
|
||||
tryAdd(m, 25);
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:doAdd@builtinSetAdd
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:#*#doAdd@builtinSetAdd
|
||||
//: [object Set]
|
||||
print(m.has(25));
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
|
||||
//: true
|
||||
|
||||
tryAdd(m2, 25);
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:doAdd@builtinSetAdd
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:#*#doAdd@builtinSetAdd
|
||||
//: [object Set]
|
||||
print(m2.has(25));
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
|
||||
//: true
|
||||
|
||||
tryAdd(m3, 25);
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:doAdd@builtinSetAdd
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:#*#doAdd@builtinSetAdd
|
||||
//: [object Set]
|
||||
print(m3.has(25));
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
|
||||
@ -256,7 +256,7 @@ print(m3.has(25));
|
||||
|
||||
tryAdd(m4);
|
||||
//aot: [trace] Check Type: BuiltinInstanceHClassMismatch
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:doAdd@builtinSetAdd
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:#*#doAdd@builtinSetAdd
|
||||
//: [object Set]
|
||||
print(m3.has(25));
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
|
||||
@ -270,7 +270,7 @@ let mimicSet = {
|
||||
let mm = new Set([1]);
|
||||
|
||||
tryAdd(mm, -200);
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:doAdd@builtinSetAdd
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:#*#doAdd@builtinSetAdd
|
||||
//: [object Set]
|
||||
print(mm.has(-200));
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
|
||||
@ -293,7 +293,7 @@ if (ArkTools.isAOTCompiled(tryAdd)) {
|
||||
}
|
||||
|
||||
tryAdd(m, -1);
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:doAdd@builtinSetAdd
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:#*#doAdd@builtinSetAdd
|
||||
//pgo: [object Set]
|
||||
//aot: prototype
|
||||
print(m.has(-1));
|
||||
|
@ -130,10 +130,10 @@ print(mySet.has("xyz"));
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
printAdd(2.5);
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:doAdd@builtinSetAdd
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:#*#doAdd@builtinSetAdd
|
||||
//: [object Set]
|
||||
printAdd("oops");
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:doAdd@builtinSetAdd
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:#*#doAdd@builtinSetAdd
|
||||
//: [object Set]
|
||||
print(mySet.has(2.5));
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
|
||||
@ -214,28 +214,28 @@ let m3 = new Set([1]);
|
||||
let m4 = new Set([1]);
|
||||
|
||||
tryAdd(m, 13);
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:tryAdd@builtinSetAdd
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:#*#tryAdd@builtinSetAdd
|
||||
//: [object Set]
|
||||
print(m.has(13));
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
|
||||
//: true
|
||||
|
||||
tryAdd(m2, 13);
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:tryAdd@builtinSetAdd
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:#*#tryAdd@builtinSetAdd
|
||||
//: [object Set]
|
||||
print(m2.has(13));
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
|
||||
//: true
|
||||
|
||||
tryAdd(m3, 13);
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:tryAdd@builtinSetAdd
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:#*#tryAdd@builtinSetAdd
|
||||
//: [object Set]
|
||||
print(m3.has(13));
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
|
||||
//: true
|
||||
|
||||
tryAdd(m4, 13);
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:tryAdd@builtinSetAdd
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:#*#tryAdd@builtinSetAdd
|
||||
//: [object Set]
|
||||
print(m4.has(13));
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
|
||||
@ -250,21 +250,21 @@ if (ArkTools.isAOTCompiled(tryAdd)) {
|
||||
|
||||
// Nothing changed
|
||||
tryAdd(m, 25);
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:tryAdd@builtinSetAdd
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:#*#tryAdd@builtinSetAdd
|
||||
//: [object Set]
|
||||
print(m.has(25));
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
|
||||
//: true
|
||||
|
||||
tryAdd(m2, 25);
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:tryAdd@builtinSetAdd
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:#*#tryAdd@builtinSetAdd
|
||||
//: [object Set]
|
||||
print(m2.has(25));
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
|
||||
//: true
|
||||
|
||||
tryAdd(m3, 25);
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:tryAdd@builtinSetAdd
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:#*#tryAdd@builtinSetAdd
|
||||
//: [object Set]
|
||||
print(m3.has(25));
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
|
||||
|
@ -77,7 +77,7 @@ print(mySet.clear()); //: replaced
|
||||
|
||||
mySet.clear = true_clear
|
||||
printClear(); //: 2
|
||||
//aot: [trace] aot inline builtin: Set.clear, caller function name:doClear@builtinSetClear
|
||||
//aot: [trace] aot inline builtin: Set.clear, caller function name:#*#doClear@builtinSetClear
|
||||
//: undefined
|
||||
//: 0
|
||||
|
||||
@ -118,7 +118,7 @@ try {
|
||||
mySet.add(12);
|
||||
//aot: [trace] aot inline builtin: Set.add, caller function name:func_main_0@builtinSetClear
|
||||
printClear(); //: 2
|
||||
//aot: [trace] aot inline builtin: Set.clear, caller function name:doClear@builtinSetClear
|
||||
//aot: [trace] aot inline builtin: Set.clear, caller function name:#*#doClear@builtinSetClear
|
||||
//: undefined
|
||||
//: 0
|
||||
} catch (e) {
|
||||
@ -197,22 +197,22 @@ let m3 = new Set([1]);
|
||||
let m4 = new Set([1]);
|
||||
|
||||
print(m.size); //: 1
|
||||
//aot: [trace] aot inline builtin: Set.clear, caller function name:printClear2@builtinSetClear
|
||||
//aot: [trace] aot inline builtin: Set.clear, caller function name:#*#printClear2@builtinSetClear
|
||||
printClear2(m) //: undefined
|
||||
print(m.size); //: 0
|
||||
|
||||
print(m2.size); //: 1
|
||||
//aot: [trace] aot inline builtin: Set.clear, caller function name:printClear2@builtinSetClear
|
||||
//aot: [trace] aot inline builtin: Set.clear, caller function name:#*#printClear2@builtinSetClear
|
||||
printClear2(m2) //: undefined
|
||||
print(m2.size); //: 0
|
||||
|
||||
print(m3.size); //: 1
|
||||
//aot: [trace] aot inline builtin: Set.clear, caller function name:printClear2@builtinSetClear
|
||||
//aot: [trace] aot inline builtin: Set.clear, caller function name:#*#printClear2@builtinSetClear
|
||||
printClear2(m3) //: undefined
|
||||
print(m3.size); //: 0
|
||||
|
||||
print(m4.size); //: 1
|
||||
//aot: [trace] aot inline builtin: Set.clear, caller function name:printClear2@builtinSetClear
|
||||
//aot: [trace] aot inline builtin: Set.clear, caller function name:#*#printClear2@builtinSetClear
|
||||
printClear2(m4) //: undefined
|
||||
print(m4.size); //: 0
|
||||
|
||||
@ -233,17 +233,17 @@ m3.add(20);
|
||||
m4.add(20); //aot: [trace] Check Type: BuiltinInstanceHClassMismatch
|
||||
|
||||
print(m.size); //: 1
|
||||
//aot: [trace] aot inline builtin: Set.clear, caller function name:printClear2@builtinSetClear
|
||||
//aot: [trace] aot inline builtin: Set.clear, caller function name:#*#printClear2@builtinSetClear
|
||||
printClear2(m) //: undefined
|
||||
print(m.size); //: 0
|
||||
|
||||
print(m2.size); //: 1
|
||||
//aot: [trace] aot inline builtin: Set.clear, caller function name:printClear2@builtinSetClear
|
||||
//aot: [trace] aot inline builtin: Set.clear, caller function name:#*#printClear2@builtinSetClear
|
||||
printClear2(m2) //: undefined
|
||||
print(m2.size); //: 0
|
||||
|
||||
print(m3.size); //: 1
|
||||
//aot: [trace] aot inline builtin: Set.clear, caller function name:printClear2@builtinSetClear
|
||||
//aot: [trace] aot inline builtin: Set.clear, caller function name:#*#printClear2@builtinSetClear
|
||||
printClear2(m3) //: undefined
|
||||
print(m3.size); //: 0
|
||||
|
||||
@ -264,7 +264,7 @@ m2.add(20);
|
||||
m3.add(20);
|
||||
|
||||
print(m.size); //: 1
|
||||
//aot: [trace] aot inline builtin: Set.clear, caller function name:printClear2@builtinSetClear
|
||||
//aot: [trace] aot inline builtin: Set.clear, caller function name:#*#printClear2@builtinSetClear
|
||||
printClear2(m) //: undefined
|
||||
print(m.size); //: 0
|
||||
|
||||
@ -282,7 +282,7 @@ let mimicSet = {
|
||||
let mm = new Set([1]);
|
||||
|
||||
print(mm.size); //: 1
|
||||
//aot: [trace] aot inline builtin: Set.clear, caller function name:printClear2@builtinSetClear
|
||||
//aot: [trace] aot inline builtin: Set.clear, caller function name:#*#printClear2@builtinSetClear
|
||||
printClear2(mm) //: undefined
|
||||
print(m.size); //: 0
|
||||
|
||||
|
@ -81,7 +81,7 @@ mySet.delete = replace
|
||||
print(mySet.delete(2.5)); //: 2.5
|
||||
|
||||
mySet.delete = true_delete
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:doDelete@builtinSetDelete
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:#*#doDelete@builtinSetDelete
|
||||
printDelete(1e-78); //: true
|
||||
|
||||
// Call standard builtin with non-number param
|
||||
@ -110,9 +110,9 @@ mySet.delete = true_delete
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
print("try-block"); //: try-block
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:doDelete@builtinSetDelete
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:#*#doDelete@builtinSetDelete
|
||||
printDelete(0); //: false
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:doDelete@builtinSetDelete
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:#*#doDelete@builtinSetDelete
|
||||
printDelete("xyz"); //: false
|
||||
} catch (e) {
|
||||
}
|
||||
@ -203,13 +203,13 @@ let m2 = new Set([1]);
|
||||
let m3 = new Set([1]);
|
||||
let m4 = new Set([1]);
|
||||
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:printDelete2@builtinSetDelete
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:#*#printDelete2@builtinSetDelete
|
||||
printDelete2(m, 10); //: true
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:printDelete2@builtinSetDelete
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:#*#printDelete2@builtinSetDelete
|
||||
printDelete2(m2, 1); //: true
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:printDelete2@builtinSetDelete
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:#*#printDelete2@builtinSetDelete
|
||||
printDelete2(m3, 1); //: true
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:printDelete2@builtinSetDelete
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:#*#printDelete2@builtinSetDelete
|
||||
printDelete2(m4, 1); //: true
|
||||
|
||||
print("case 0") //: case 0
|
||||
@ -229,11 +229,11 @@ m3.add(10);
|
||||
//aot: [trace] Check Type: BuiltinInstanceHClassMismatch
|
||||
m4.add(10);
|
||||
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:printDelete2@builtinSetDelete
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:#*#printDelete2@builtinSetDelete
|
||||
printDelete2(m, 10); //: true
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:printDelete2@builtinSetDelete
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:#*#printDelete2@builtinSetDelete
|
||||
printDelete2(m2, 10); //: true
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:printDelete2@builtinSetDelete
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:#*#printDelete2@builtinSetDelete
|
||||
printDelete2(m3, 10); //: true
|
||||
printDelete2(m4, 10); //aot: [trace] Check Type: BuiltinInstanceHClassMismatch
|
||||
//: true
|
||||
@ -249,9 +249,9 @@ m.add(10);
|
||||
m2.add(10);
|
||||
m3.add(10);
|
||||
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:printDelete2@builtinSetDelete
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:#*#printDelete2@builtinSetDelete
|
||||
printDelete2(m, 10); //: true
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:printDelete2@builtinSetDelete
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:#*#printDelete2@builtinSetDelete
|
||||
printDelete2(m2, 10); //: true
|
||||
printDelete2(m3, 10); //pgo: true
|
||||
//aot: [trace] Check Type: BuiltinInstanceHClassMismatch
|
||||
@ -263,7 +263,7 @@ let mimicset = {
|
||||
}
|
||||
let mm = new Set([1]);
|
||||
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:printDelete2@builtinSetDelete
|
||||
//aot: [trace] aot inline builtin: Set.delete, caller function name:#*#printDelete2@builtinSetDelete
|
||||
printDelete2(mm, 1) //: true
|
||||
if (ArkTools.isAOTCompiled(printDelete2)) {
|
||||
Object.setPrototypeOf(mm, mimicset)
|
||||
|
@ -94,9 +94,9 @@ mySet.entries = true_entries
|
||||
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
//aot: [trace] aot inline builtin: Set.entries, caller function name:doEntries@builtinSetEntries
|
||||
//aot: [trace] aot inline builtin: Set.entries, caller function name:#*#doEntries@builtinSetEntries
|
||||
printEntries(2.5); //: [object Set Iterator]
|
||||
//aot: [trace] aot inline builtin: Set.entries, caller function name:doEntries@builtinSetEntries
|
||||
//aot: [trace] aot inline builtin: Set.entries, caller function name:#*#doEntries@builtinSetEntries
|
||||
printEntries("abc"); //: [object Set Iterator]
|
||||
} catch (e) {
|
||||
}
|
||||
|
@ -99,14 +99,14 @@ function checkObjWithSetProto() {
|
||||
//: TypeError: obj is not JSSet
|
||||
checkObjWithSetProto();
|
||||
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:doHas@builtinSetHas
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:#*#doHas@builtinSetHas
|
||||
printHas(-5); //: true
|
||||
// Call standard builtin with non-number param
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:doHas@builtinSetHas
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:#*#doHas@builtinSetHas
|
||||
printHas("abc"); //: false
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:doHas@builtinSetHas
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:#*#doHas@builtinSetHas
|
||||
printHas("-5"); //: false
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:doHas@builtinSetHas
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:#*#doHas@builtinSetHas
|
||||
printHas("xyz"); //: true
|
||||
|
||||
if (ArkTools.isAOTCompiled(printHas)) {
|
||||
@ -125,9 +125,9 @@ mySet.has = true_has
|
||||
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:doHas@builtinSetHas
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:#*#doHas@builtinSetHas
|
||||
printHas(NaN); //: true
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:doHas@builtinSetHas
|
||||
//aot: [trace] aot inline builtin: Set.has, caller function name:#*#doHas@builtinSetHas
|
||||
printHas("abc"); //: false
|
||||
} catch (e) {
|
||||
}
|
||||
|
@ -94,9 +94,9 @@ mySet.values = true_values
|
||||
|
||||
// Check IR correctness inside try-block
|
||||
try {
|
||||
//aot: [trace] aot inline builtin: Set.values, caller function name:doValues@builtinSetValues
|
||||
//aot: [trace] aot inline builtin: Set.values, caller function name:#*#doValues@builtinSetValues
|
||||
printValues(2.5); //: [object Set Iterator]
|
||||
//aot: [trace] aot inline builtin: Set.values, caller function name:doValues@builtinSetValues
|
||||
//aot: [trace] aot inline builtin: Set.values, caller function name:#*#doValues@builtinSetValues
|
||||
printValues("abc"); //: [object Set Iterator]
|
||||
} catch (e) {
|
||||
}
|
||||
|
@ -11,6 +11,6 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
[trace] aot inline function name: f@lexenv_specialization caller function name: func_main_0@lexenv_specialization
|
||||
[trace] aot inline function name: #*#f@lexenv_specialization caller function name: func_main_0@lexenv_specialization
|
||||
2
|
||||
0
|
||||
|
@ -11,7 +11,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
[trace] aot inline function name: foo@lexenv_specialization_multi_inline caller function name: func_main_0@lexenv_specialization_multi_inline
|
||||
[trace] aot inline function name: bar@lexenv_specialization_multi_inline caller function name: foo@lexenv_specialization_multi_inline
|
||||
[trace] aot inline function name: #*#foo@lexenv_specialization_multi_inline caller function name: func_main_0@lexenv_specialization_multi_inline
|
||||
[trace] aot inline function name: #*#bar@lexenv_specialization_multi_inline caller function name: #*#foo@lexenv_specialization_multi_inline
|
||||
2
|
||||
0
|
||||
|
@ -11,6 +11,6 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
[trace] aot inline function name: f@lexenv_specialization_noopt caller function name: func_main_0@lexenv_specialization_noopt
|
||||
[trace] aot inline function name: #*#f@lexenv_specialization_noopt caller function name: func_main_0@lexenv_specialization_noopt
|
||||
3
|
||||
0
|
||||
|
@ -11,21 +11,21 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
[trace] aot inline function name: foo@pgo_call caller function name: callFoo1@pgo_call
|
||||
[trace] aot inline function name: foo@pgo_call caller function name: callFoo1@pgo_call
|
||||
[trace] aot inline function name: #*#foo@pgo_call caller function name: #*#callFoo1@pgo_call
|
||||
[trace] aot inline function name: #*#foo@pgo_call caller function name: #*#callFoo1@pgo_call
|
||||
|
||||
[trace] aot inline function name: callFoo2@pgo_call caller function name: func_main_0@pgo_call
|
||||
[trace] aot inline function name: callFoo2@pgo_call caller function name: func_main_0@pgo_call
|
||||
[trace] aot inline function name: #*#callFoo2@pgo_call caller function name: func_main_0@pgo_call
|
||||
[trace] aot inline function name: #*#callFoo2@pgo_call caller function name: func_main_0@pgo_call
|
||||
|
||||
[trace] aot inline function name: callFoo2@pgo_call caller function name: func_main_0@pgo_call
|
||||
[trace] aot inline function name: callFoo2@pgo_call caller function name: func_main_0@pgo_call
|
||||
[trace] aot inline function name: #*#callFoo2@pgo_call caller function name: func_main_0@pgo_call
|
||||
[trace] aot inline function name: #*#callFoo2@pgo_call caller function name: func_main_0@pgo_call
|
||||
|
||||
[trace] aot inline function name: callFoo3@pgo_call caller function name: func_main_0@pgo_call
|
||||
[trace] aot inline function name: callFoo2@pgo_call caller function name: func_main_0@pgo_call
|
||||
[trace] aot inline function name: #*#callFoo3@pgo_call caller function name: func_main_0@pgo_call
|
||||
[trace] aot inline function name: #*#callFoo2@pgo_call caller function name: func_main_0@pgo_call
|
||||
|
||||
[trace] aot inline function name: callFoo2@pgo_call caller function name: func_main_0@pgo_call
|
||||
[trace] aot inline function name: #*#callFoo2@pgo_call caller function name: func_main_0@pgo_call
|
||||
|
||||
[trace] aot inline function name: callFoo1@pgo_call caller function name: func_main_0@pgo_call
|
||||
[trace] aot inline function name: foo@pgo_call caller function name: callFoo1@pgo_call
|
||||
[trace] aot inline function name: #*#callFoo1@pgo_call caller function name: func_main_0@pgo_call
|
||||
[trace] aot inline function name: #*#foo@pgo_call caller function name: #*#callFoo1@pgo_call
|
||||
|
||||
a
|
||||
|
@ -11,5 +11,5 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
[trace] aot inline function name: callFoo@pgo_call_deopt caller function name: func_main_0@pgo_call_deopt
|
||||
[trace] aot inline function name: #*#callFoo@pgo_call_deopt caller function name: func_main_0@pgo_call_deopt
|
||||
a1
|
||||
|
@ -11,5 +11,5 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
[trace] aot inline function name: callFoo@pgo_call_deopt_js caller function name: func_main_0@pgo_call_deopt_js
|
||||
[trace] aot inline function name: #*#callFoo@pgo_call_deopt_js caller function name: func_main_0@pgo_call_deopt_js
|
||||
a
|
||||
|
@ -11,15 +11,15 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
[trace] aot inline function name: foo@pgo_call_js caller function name: callFoo1@pgo_call_js
|
||||
[trace] aot inline function name: foo@pgo_call_js caller function name: callFoo1@pgo_call_js
|
||||
[trace] aot inline function name: callFoo2@pgo_call_js caller function name: func_main_0@pgo_call_js
|
||||
[trace] aot inline function name: callFoo2@pgo_call_js caller function name: func_main_0@pgo_call_js
|
||||
[trace] aot inline function name: callFoo2@pgo_call_js caller function name: func_main_0@pgo_call_js
|
||||
[trace] aot inline function name: callFoo2@pgo_call_js caller function name: func_main_0@pgo_call_js
|
||||
[trace] aot inline function name: callFoo3@pgo_call_js caller function name: func_main_0@pgo_call_js
|
||||
[trace] aot inline function name: callFoo2@pgo_call_js caller function name: func_main_0@pgo_call_js
|
||||
[trace] aot inline function name: callFoo2@pgo_call_js caller function name: func_main_0@pgo_call_js
|
||||
[trace] aot inline function name: callFoo1@pgo_call_js caller function name: func_main_0@pgo_call_js
|
||||
[trace] aot inline function name: foo@pgo_call_js caller function name: callFoo1@pgo_call_js
|
||||
[trace] aot inline function name: #*#foo@pgo_call_js caller function name: #*#callFoo1@pgo_call_js
|
||||
[trace] aot inline function name: #*#foo@pgo_call_js caller function name: #*#callFoo1@pgo_call_js
|
||||
[trace] aot inline function name: #*#callFoo2@pgo_call_js caller function name: func_main_0@pgo_call_js
|
||||
[trace] aot inline function name: #*#callFoo2@pgo_call_js caller function name: func_main_0@pgo_call_js
|
||||
[trace] aot inline function name: #*#callFoo2@pgo_call_js caller function name: func_main_0@pgo_call_js
|
||||
[trace] aot inline function name: #*#callFoo2@pgo_call_js caller function name: func_main_0@pgo_call_js
|
||||
[trace] aot inline function name: #*#callFoo3@pgo_call_js caller function name: func_main_0@pgo_call_js
|
||||
[trace] aot inline function name: #*#callFoo2@pgo_call_js caller function name: func_main_0@pgo_call_js
|
||||
[trace] aot inline function name: #*#callFoo2@pgo_call_js caller function name: func_main_0@pgo_call_js
|
||||
[trace] aot inline function name: #*#callFoo1@pgo_call_js caller function name: func_main_0@pgo_call_js
|
||||
[trace] aot inline function name: #*#foo@pgo_call_js caller function name: #*#callFoo1@pgo_call_js
|
||||
a
|
||||
|
@ -11,17 +11,17 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
[trace] aot inline function name: foo@pgo_call_recursive_js caller function name: func_main_0@pgo_call_recursive_js
|
||||
[trace] aot inline function name: foo1@pgo_call_recursive_js caller function name: foo@pgo_call_recursive_js
|
||||
[trace] aot inline function name: foo2@pgo_call_recursive_js caller function name: foo1@pgo_call_recursive_js
|
||||
[trace] aot inline function name: foo1@pgo_call_recursive_js caller function name: foo@pgo_call_recursive_js
|
||||
[trace] aot inline function name: foo2@pgo_call_recursive_js caller function name: foo1@pgo_call_recursive_js
|
||||
[trace] aot inline function name: foo2@pgo_call_recursive_js caller function name: foo@pgo_call_recursive_js
|
||||
[trace] aot inline function name: foo2@pgo_call_recursive_js caller function name: foo@pgo_call_recursive_js
|
||||
[trace] aot inline function name: foo1@pgo_call_recursive_js caller function name: foo@pgo_call_recursive_js
|
||||
[trace] aot inline function name: foo2@pgo_call_recursive_js caller function name: foo1@pgo_call_recursive_js
|
||||
[trace] aot inline function name: foo2@pgo_call_recursive_js caller function name: foo@pgo_call_recursive_js
|
||||
[trace] aot inline function name: foo1@pgo_call_recursive_js caller function name: foo@pgo_call_recursive_js
|
||||
[trace] aot inline function name: foo2@pgo_call_recursive_js caller function name: foo1@pgo_call_recursive_js
|
||||
[trace] aot inline function name: foo2@pgo_call_recursive_js caller function name: foo@pgo_call_recursive_js
|
||||
[trace] aot inline function name: #*#foo@pgo_call_recursive_js caller function name: func_main_0@pgo_call_recursive_js
|
||||
[trace] aot inline function name: #*#foo1@pgo_call_recursive_js caller function name: #*#foo@pgo_call_recursive_js
|
||||
[trace] aot inline function name: #*#foo2@pgo_call_recursive_js caller function name: #*#foo1@pgo_call_recursive_js
|
||||
[trace] aot inline function name: #*#foo1@pgo_call_recursive_js caller function name: #*#foo@pgo_call_recursive_js
|
||||
[trace] aot inline function name: #*#foo2@pgo_call_recursive_js caller function name: #*#foo1@pgo_call_recursive_js
|
||||
[trace] aot inline function name: #*#foo2@pgo_call_recursive_js caller function name: #*#foo@pgo_call_recursive_js
|
||||
[trace] aot inline function name: #*#foo2@pgo_call_recursive_js caller function name: #*#foo@pgo_call_recursive_js
|
||||
[trace] aot inline function name: #*#foo1@pgo_call_recursive_js caller function name: #*#foo@pgo_call_recursive_js
|
||||
[trace] aot inline function name: #*#foo2@pgo_call_recursive_js caller function name: #*#foo1@pgo_call_recursive_js
|
||||
[trace] aot inline function name: #*#foo2@pgo_call_recursive_js caller function name: #*#foo@pgo_call_recursive_js
|
||||
[trace] aot inline function name: #*#foo1@pgo_call_recursive_js caller function name: #*#foo@pgo_call_recursive_js
|
||||
[trace] aot inline function name: #*#foo2@pgo_call_recursive_js caller function name: #*#foo1@pgo_call_recursive_js
|
||||
[trace] aot inline function name: #*#foo2@pgo_call_recursive_js caller function name: #*#foo@pgo_call_recursive_js
|
||||
13
|
||||
|
@ -11,12 +11,12 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
[trace] aot inline function name: foo@ts_inline caller function name: func_main_0@ts_inline
|
||||
[trace] aot inline function name: #*#foo@ts_inline caller function name: func_main_0@ts_inline
|
||||
3
|
||||
[trace] aot inline function name: foo@ts_inline caller function name: func_main_0@ts_inline
|
||||
[trace] aot inline function name: #*#foo@ts_inline caller function name: func_main_0@ts_inline
|
||||
0
|
||||
[trace] aot inline function name: bar@ts_inline caller function name: func_main_0@ts_inline
|
||||
[trace] aot inline function name: #*#bar@ts_inline caller function name: func_main_0@ts_inline
|
||||
56
|
||||
56
|
||||
[trace] aot inline function name: calculate@ts_inline caller function name: func_main_0@ts_inline
|
||||
[trace] aot inline function name: #*#calculate@ts_inline caller function name: func_main_0@ts_inline
|
||||
16
|
||||
|
@ -14,5 +14,5 @@
|
||||
xiaoming
|
||||
xiaohong
|
||||
foo
|
||||
[trace] aot inline function name: bar@ts_inline_accessor_deopt caller function name: func_main_0@ts_inline_accessor_deopt
|
||||
[trace] aot inline function name: #*#bar@ts_inline_accessor_deopt caller function name: func_main_0@ts_inline_accessor_deopt
|
||||
bar
|
||||
|
@ -11,6 +11,6 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
[trace] aot inline function name: foo@ts_inline_accessor_extends caller function name: func_main_0@ts_inline_accessor_extends
|
||||
[trace] aot inline function name: #8508560153581708279#Getter@ts_inline_accessor_extends caller function name: foo@ts_inline_accessor_extends
|
||||
[trace] aot inline function name: #*#foo@ts_inline_accessor_extends caller function name: func_main_0@ts_inline_accessor_extends
|
||||
[trace] aot inline function name: #*##8508560153581708279#Getter@ts_inline_accessor_extends caller function name: #*#foo@ts_inline_accessor_extends
|
||||
B.Getter
|
||||
|
@ -11,7 +11,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
[trace] aot inline function name: foo@ts_inline_change_target caller function name: func_main_0@ts_inline_change_target
|
||||
[trace] aot inline function name: #*#foo@ts_inline_change_target caller function name: func_main_0@ts_inline_change_target
|
||||
foo
|
||||
[trace] aot inline function name: bar@ts_inline_change_target caller function name: func_main_0@ts_inline_change_target
|
||||
[trace] aot inline function name: #*#bar@ts_inline_change_target caller function name: func_main_0@ts_inline_change_target
|
||||
bar
|
||||
|
@ -11,7 +11,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
[trace] aot inline function name: foo@ts_inline_deopt caller function name: func_main_0@ts_inline_deopt
|
||||
[trace] aot inline function name: #*#foo@ts_inline_deopt caller function name: func_main_0@ts_inline_deopt
|
||||
2
|
||||
2
|
||||
1
|
||||
|
@ -11,6 +11,6 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
[trace] aot inline function name: RunNormalCall@ts_inline_deopt_loop caller function name: func_main_0@ts_inline_deopt_loop
|
||||
[trace] aot inline function name: GenerateArray@ts_inline_deopt_loop caller function name: RunNormalCall@ts_inline_deopt_loop
|
||||
[trace] aot inline function name: #*#RunNormalCall@ts_inline_deopt_loop caller function name: func_main_0@ts_inline_deopt_loop
|
||||
[trace] aot inline function name: #*#GenerateArray@ts_inline_deopt_loop caller function name: #*#RunNormalCall@ts_inline_deopt_loop
|
||||
844
|
||||
|
@ -11,6 +11,6 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
[trace] aot inline function name: foo@ts_inline_extends caller function name: func_main_0@ts_inline_extends
|
||||
[trace] aot inline function name: #17593704525790474017#run@ts_inline_extends caller function name: foo@ts_inline_extends
|
||||
[trace] aot inline function name: #*#foo@ts_inline_extends caller function name: func_main_0@ts_inline_extends
|
||||
[trace] aot inline function name: #*##17593704525790474017#run@ts_inline_extends caller function name: #*#foo@ts_inline_extends
|
||||
B.run
|
||||
|
@ -11,5 +11,5 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
[trace] aot inline function name: loop@ts_inline_loop caller function name: func_main_0@ts_inline_loop
|
||||
[trace] aot inline function name: #*#loop@ts_inline_loop caller function name: func_main_0@ts_inline_loop
|
||||
128
|
||||
|
@ -11,16 +11,16 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
[trace] aot inline function name: foo1@ts_inline_max_call caller function name: func_main_0@ts_inline_max_call
|
||||
[trace] aot inline function name: #*#foo1@ts_inline_max_call caller function name: func_main_0@ts_inline_max_call
|
||||
foo1
|
||||
[trace] aot inline function name: foo2@ts_inline_max_call caller function name: func_main_0@ts_inline_max_call
|
||||
[trace] aot inline function name: #*#foo2@ts_inline_max_call caller function name: func_main_0@ts_inline_max_call
|
||||
foo2
|
||||
[trace] aot inline function name: foo3@ts_inline_max_call caller function name: func_main_0@ts_inline_max_call
|
||||
[trace] aot inline function name: #*#foo3@ts_inline_max_call caller function name: func_main_0@ts_inline_max_call
|
||||
foo3
|
||||
[trace] aot inline function name: foo4@ts_inline_max_call caller function name: func_main_0@ts_inline_max_call
|
||||
[trace] aot inline function name: #*#foo4@ts_inline_max_call caller function name: func_main_0@ts_inline_max_call
|
||||
foo4
|
||||
[trace] aot inline function name: foo5@ts_inline_max_call caller function name: func_main_0@ts_inline_max_call
|
||||
[trace] aot inline function name: #*#foo5@ts_inline_max_call caller function name: func_main_0@ts_inline_max_call
|
||||
foo5
|
||||
[trace] aot inline function name: foo6@ts_inline_max_call caller function name: func_main_0@ts_inline_max_call
|
||||
[trace] aot inline function name: #*#foo6@ts_inline_max_call caller function name: func_main_0@ts_inline_max_call
|
||||
foo6
|
||||
foo7
|
||||
|
@ -11,15 +11,15 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
[trace] aot inline function name: foo1@ts_multi_inline caller function name: func_main_0@ts_multi_inline
|
||||
[trace] aot inline function name: #*#foo1@ts_multi_inline caller function name: func_main_0@ts_multi_inline
|
||||
foo1
|
||||
[trace] aot inline function name: foo2@ts_multi_inline caller function name: foo1@ts_multi_inline
|
||||
[trace] aot inline function name: #*#foo2@ts_multi_inline caller function name: #*#foo1@ts_multi_inline
|
||||
foo2
|
||||
[trace] aot inline function name: foo3@ts_multi_inline caller function name: foo2@ts_multi_inline
|
||||
[trace] aot inline function name: #*#foo3@ts_multi_inline caller function name: #*#foo2@ts_multi_inline
|
||||
foo3
|
||||
[trace] aot inline function name: foo4@ts_multi_inline caller function name: foo3@ts_multi_inline
|
||||
[trace] aot inline function name: #*#foo4@ts_multi_inline caller function name: #*#foo3@ts_multi_inline
|
||||
foo4
|
||||
[trace] aot inline function name: foo5@ts_multi_inline caller function name: foo4@ts_multi_inline
|
||||
[trace] aot inline function name: #*#foo5@ts_multi_inline caller function name: #*#foo4@ts_multi_inline
|
||||
foo5
|
||||
[trace] aot inline function name: foo6@ts_multi_inline caller function name: foo5@ts_multi_inline
|
||||
[trace] aot inline function name: #*#foo6@ts_multi_inline caller function name: #*#foo5@ts_multi_inline
|
||||
foo6
|
||||
|
@ -11,9 +11,9 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
[trace] aot inline function name: PreCall@ts_multi_inline_deopt caller function name: func_main_0@ts_multi_inline_deopt
|
||||
[trace] aot inline function name: GenerateArray@ts_multi_inline_deopt caller function name: PreCall@ts_multi_inline_deopt
|
||||
[trace] aot inline function name: RunNormalCall@ts_multi_inline_deopt caller function name: PreCall@ts_multi_inline_deopt
|
||||
[trace] aot inline function name: #*#PreCall@ts_multi_inline_deopt caller function name: func_main_0@ts_multi_inline_deopt
|
||||
[trace] aot inline function name: #*#GenerateArray@ts_multi_inline_deopt caller function name: #*#PreCall@ts_multi_inline_deopt
|
||||
[trace] aot inline function name: #*#RunNormalCall@ts_multi_inline_deopt caller function name: #*#PreCall@ts_multi_inline_deopt
|
||||
0
|
||||
1
|
||||
2
|
||||
|
@ -11,24 +11,24 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
[trace] aot inline function name: foo@ts_multi_inline_max_call caller function name: func_main_0@ts_multi_inline_max_call
|
||||
[trace] aot inline function name: foo1@ts_multi_inline_max_call caller function name: foo@ts_multi_inline_max_call
|
||||
[trace] aot inline function name: bar@ts_multi_inline_max_call caller function name: foo1@ts_multi_inline_max_call
|
||||
[trace] aot inline function name: #*#foo@ts_multi_inline_max_call caller function name: func_main_0@ts_multi_inline_max_call
|
||||
[trace] aot inline function name: #*#foo1@ts_multi_inline_max_call caller function name: #*#foo@ts_multi_inline_max_call
|
||||
[trace] aot inline function name: #*#bar@ts_multi_inline_max_call caller function name: #*#foo1@ts_multi_inline_max_call
|
||||
bar
|
||||
[trace] aot inline function name: foo2@ts_multi_inline_max_call caller function name: foo@ts_multi_inline_max_call
|
||||
[trace] aot inline function name: bar@ts_multi_inline_max_call caller function name: foo2@ts_multi_inline_max_call
|
||||
[trace] aot inline function name: #*#foo2@ts_multi_inline_max_call caller function name: #*#foo@ts_multi_inline_max_call
|
||||
[trace] aot inline function name: #*#bar@ts_multi_inline_max_call caller function name: #*#foo2@ts_multi_inline_max_call
|
||||
bar
|
||||
[trace] aot inline function name: foo3@ts_multi_inline_max_call caller function name: foo@ts_multi_inline_max_call
|
||||
[trace] aot inline function name: bar@ts_multi_inline_max_call caller function name: foo3@ts_multi_inline_max_call
|
||||
[trace] aot inline function name: #*#foo3@ts_multi_inline_max_call caller function name: #*#foo@ts_multi_inline_max_call
|
||||
[trace] aot inline function name: #*#bar@ts_multi_inline_max_call caller function name: #*#foo3@ts_multi_inline_max_call
|
||||
bar
|
||||
[trace] aot inline function name: foo4@ts_multi_inline_max_call caller function name: foo@ts_multi_inline_max_call
|
||||
[trace] aot inline function name: bar@ts_multi_inline_max_call caller function name: foo4@ts_multi_inline_max_call
|
||||
[trace] aot inline function name: #*#foo4@ts_multi_inline_max_call caller function name: #*#foo@ts_multi_inline_max_call
|
||||
[trace] aot inline function name: #*#bar@ts_multi_inline_max_call caller function name: #*#foo4@ts_multi_inline_max_call
|
||||
bar
|
||||
[trace] aot inline function name: foo5@ts_multi_inline_max_call caller function name: foo@ts_multi_inline_max_call
|
||||
[trace] aot inline function name: bar@ts_multi_inline_max_call caller function name: foo5@ts_multi_inline_max_call
|
||||
[trace] aot inline function name: #*#foo5@ts_multi_inline_max_call caller function name: #*#foo@ts_multi_inline_max_call
|
||||
[trace] aot inline function name: #*#bar@ts_multi_inline_max_call caller function name: #*#foo5@ts_multi_inline_max_call
|
||||
bar
|
||||
[trace] aot inline function name: foo6@ts_multi_inline_max_call caller function name: foo@ts_multi_inline_max_call
|
||||
[trace] aot inline function name: bar@ts_multi_inline_max_call caller function name: foo6@ts_multi_inline_max_call
|
||||
[trace] aot inline function name: #*#foo6@ts_multi_inline_max_call caller function name: #*#foo@ts_multi_inline_max_call
|
||||
[trace] aot inline function name: #*#bar@ts_multi_inline_max_call caller function name: #*#foo6@ts_multi_inline_max_call
|
||||
bar
|
||||
[trace] aot inline function name: bar@ts_multi_inline_max_call caller function name: foo7@ts_multi_inline_max_call
|
||||
[trace] aot inline function name: #*#bar@ts_multi_inline_max_call caller function name: #*#foo7@ts_multi_inline_max_call
|
||||
bar
|
||||
|
@ -11,7 +11,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
[trace] aot inline function name: foo@ts_multi_inline_recursive caller function name: func_main_0@ts_multi_inline_recursive
|
||||
[trace] aot inline function name: #*#foo@ts_multi_inline_recursive caller function name: func_main_0@ts_multi_inline_recursive
|
||||
foo
|
||||
[trace] aot inline function name: bar@ts_multi_inline_recursive caller function name: foo@ts_multi_inline_recursive
|
||||
[trace] aot inline function name: #*#bar@ts_multi_inline_recursive caller function name: #*#foo@ts_multi_inline_recursive
|
||||
bar
|
||||
|
Loading…
Reference in New Issue
Block a user