| Index: test/mjsunit/compiler/inline-exception-2.js
|
| diff --git a/test/mjsunit/compiler/inline-exception-2.js b/test/mjsunit/compiler/inline-exception-2.js
|
| index 7c40ab92905669cde484707fd20ea9194fef8bab..5e88616ac3c11779eed5d36b0ba7daf613d91902 100644
|
| --- a/test/mjsunit/compiler/inline-exception-2.js
|
| +++ b/test/mjsunit/compiler/inline-exception-2.js
|
| @@ -66,6 +66,24 @@ function increaseAndThrow42() {
|
| throw 42;
|
| }
|
|
|
| +function increaseAndReturn15_noopt_inner() {
|
| + if (deopt) %DeoptimizeFunction(f);
|
| + counter++;
|
| + return 15;
|
| +}
|
| +
|
| +%NeverOptimizeFunction(increaseAndReturn15_noopt_inner);
|
| +
|
| +function increaseAndThrow42_noopt_inner() {
|
| + if (deopt) %DeoptimizeFunction(f);
|
| + counter++;
|
| + throw 42;
|
| +}
|
| +
|
| +%NeverOptimizeFunction(increaseAndThrow42_noopt_inner);
|
| +
|
| +// Alternative 1
|
| +
|
| function returnOrThrow(doReturn) {
|
| if (doReturn) {
|
| return increaseAndReturn15();
|
| @@ -74,6 +92,17 @@ function returnOrThrow(doReturn) {
|
| }
|
| }
|
|
|
| +// Alternative 2
|
| +
|
| +function increaseAndReturn15_noopt_outer() {
|
| + return increaseAndReturn15_noopt_inner();
|
| +}
|
| +
|
| +function increaseAndThrow42_noopt_outer() {
|
| + return increaseAndThrow42_noopt_inner();
|
| +}
|
| +
|
| +// Alternative 3.
|
| // When passed either {increaseAndReturn15} or {increaseAndThrow42}, it acts
|
| // as the other one.
|
| function invertFunctionCall(f) {
|
| @@ -86,6 +115,7 @@ function invertFunctionCall(f) {
|
| throw result + 27;
|
| }
|
|
|
| +// Alternative 4: constructor
|
| function increaseAndStore15Constructor() {
|
| if (deopt) %DeoptimizeFunction(f);
|
| ++counter;
|
| @@ -99,6 +129,7 @@ function increaseAndThrow42Constructor() {
|
| throw this.x;
|
| }
|
|
|
| +// Alternative 5: property
|
| var magic = {};
|
| Object.defineProperty(magic, 'prop', {
|
| get: function () {
|
| @@ -116,6 +147,7 @@ Object.defineProperty(magic, 'prop', {
|
|
|
| // Generate type feedback.
|
|
|
| +assertEquals(15, increaseAndReturn15_noopt_outer());
|
| assertEquals(15, (new increaseAndStore15Constructor()).x);
|
| assertThrowsEquals(function() {
|
| return (new increaseAndThrow42Constructor()).x;
|
| @@ -124,15 +156,75 @@ assertThrowsEquals(function() {
|
|
|
| function runThisShard() {
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, doCatch,
|
| + // Variant flags: [alternativeFn3, tryReturns, doCatch,
|
| + // catchReturns, deopt]
|
| +
|
| + f = function f___3___r__cr______d () {
|
| + var local = 888;
|
| + deopt = true;
|
| + try {
|
| + counter++;
|
| + return 4 + invertFunctionCall(increaseAndThrow42);
|
| + counter++;
|
| + } catch (ex) {
|
| + counter++;
|
| + return 2 + ex;
|
| + counter++;
|
| + }
|
| + counter++;
|
| + }
|
| + resetOptAndAssertResultEquals(19, f);
|
| + assertEquals(2, counter);
|
| +
|
| + // Variant flags: [alternativeFn3, tryReturns, doCatch,
|
| + // catchReturns, catchWithLocal]
|
| +
|
| + f = function f___3___r__crl______ () {
|
| + var local = 888;
|
| + deopt = false;
|
| + try {
|
| + counter++;
|
| + return 4 + invertFunctionCall(increaseAndThrow42);
|
| + counter++;
|
| + } catch (ex) {
|
| + counter++;
|
| + return 2 + local;
|
| + counter++;
|
| + }
|
| + counter++;
|
| + }
|
| + resetOptAndAssertResultEquals(19, f);
|
| + assertEquals(2, counter);
|
| +
|
| + // Variant flags: [alternativeFn3, tryReturns, doCatch,
|
| + // catchReturns, catchWithLocal, deopt]
|
| +
|
| + f = function f___3___r__crl_____d () {
|
| + var local = 888;
|
| + deopt = true;
|
| + try {
|
| + counter++;
|
| + return 4 + invertFunctionCall(increaseAndThrow42);
|
| + counter++;
|
| + } catch (ex) {
|
| + counter++;
|
| + return 2 + local;
|
| + counter++;
|
| + }
|
| + counter++;
|
| + }
|
| + resetOptAndAssertResultEquals(19, f);
|
| + assertEquals(2, counter);
|
| +
|
| + // Variant flags: [alternativeFn3, tryReturns, doCatch,
|
| // catchReturns, catchWithLocal, endReturnLocal]
|
|
|
| - f = function f___2__r__crl____l_ () {
|
| - var local = 3;
|
| + f = function f___3___r__crl____l_ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - return invertFunctionCall(increaseAndThrow42);
|
| + return 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -142,18 +234,18 @@ function runThisShard() {
|
| counter++;
|
| return 5 + local;
|
| }
|
| - resetOptAndAssertResultEquals(15, f);
|
| + resetOptAndAssertResultEquals(19, f);
|
| assertEquals(2, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, doCatch,
|
| + // Variant flags: [alternativeFn3, tryReturns, doCatch,
|
| // catchReturns, catchWithLocal, endReturnLocal, deopt]
|
|
|
| - f = function f___2__r__crl____ld () {
|
| - var local = 3;
|
| + f = function f___3___r__crl____ld () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - return invertFunctionCall(increaseAndThrow42);
|
| + return 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -163,18 +255,18 @@ function runThisShard() {
|
| counter++;
|
| return 5 + local;
|
| }
|
| - resetOptAndAssertResultEquals(15, f);
|
| + resetOptAndAssertResultEquals(19, f);
|
| assertEquals(2, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryReturns, tryResultToLocal,
|
| // doCatch]
|
|
|
| - f = function f___2__r_lc________ () {
|
| - var local = 3;
|
| + f = function f___3___r_lc________ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndThrow42);
|
| + local += 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -185,15 +277,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(undefined, f);
|
| assertEquals(4, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryReturns, tryResultToLocal,
|
| // doCatch, deopt]
|
|
|
| - f = function f___2__r_lc_______d () {
|
| - var local = 3;
|
| + f = function f___3___r_lc_______d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndThrow42);
|
| + local += 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -204,15 +296,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(undefined, f);
|
| assertEquals(4, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryReturns, tryResultToLocal,
|
| // doCatch, endReturnLocal]
|
|
|
| - f = function f___2__r_lc______l_ () {
|
| - var local = 3;
|
| + f = function f___3___r_lc______l_ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndThrow42);
|
| + local += 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -221,18 +313,18 @@ function runThisShard() {
|
| counter++;
|
| return 5 + local;
|
| }
|
| - resetOptAndAssertResultEquals(23, f);
|
| + resetOptAndAssertResultEquals(912, f);
|
| assertEquals(4, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryReturns, tryResultToLocal,
|
| // doCatch, endReturnLocal, deopt]
|
|
|
| - f = function f___2__r_lc______ld () {
|
| - var local = 3;
|
| + f = function f___3___r_lc______ld () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndThrow42);
|
| + local += 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -241,18 +333,18 @@ function runThisShard() {
|
| counter++;
|
| return 5 + local;
|
| }
|
| - resetOptAndAssertResultEquals(23, f);
|
| + resetOptAndAssertResultEquals(912, f);
|
| assertEquals(4, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryReturns, tryResultToLocal,
|
| // doCatch, catchThrows]
|
|
|
| - f = function f___2__r_lc__t_____ () {
|
| - var local = 3;
|
| + f = function f___3___r_lc__t_____ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndThrow42);
|
| + local += 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -264,15 +356,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(undefined, f);
|
| assertEquals(4, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryReturns, tryResultToLocal,
|
| // doCatch, catchThrows, deopt]
|
|
|
| - f = function f___2__r_lc__t____d () {
|
| - var local = 3;
|
| + f = function f___3___r_lc__t____d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndThrow42);
|
| + local += 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -284,15 +376,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(undefined, f);
|
| assertEquals(4, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryReturns, tryResultToLocal,
|
| // doCatch, catchThrows, endReturnLocal]
|
|
|
| - f = function f___2__r_lc__t___l_ () {
|
| - var local = 3;
|
| + f = function f___3___r_lc__t___l_ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndThrow42);
|
| + local += 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -302,18 +394,18 @@ function runThisShard() {
|
| counter++;
|
| return 5 + local;
|
| }
|
| - resetOptAndAssertResultEquals(23, f);
|
| + resetOptAndAssertResultEquals(912, f);
|
| assertEquals(4, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryReturns, tryResultToLocal,
|
| // doCatch, catchThrows, endReturnLocal, deopt]
|
|
|
| - f = function f___2__r_lc__t___ld () {
|
| - var local = 3;
|
| + f = function f___3___r_lc__t___ld () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndThrow42);
|
| + local += 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -323,18 +415,18 @@ function runThisShard() {
|
| counter++;
|
| return 5 + local;
|
| }
|
| - resetOptAndAssertResultEquals(23, f);
|
| + resetOptAndAssertResultEquals(912, f);
|
| assertEquals(4, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryReturns, tryResultToLocal,
|
| // doCatch, catchWithLocal]
|
|
|
| - f = function f___2__r_lc_l______ () {
|
| - var local = 3;
|
| + f = function f___3___r_lc_l______ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndThrow42);
|
| + local += 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -346,15 +438,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(undefined, f);
|
| assertEquals(4, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryReturns, tryResultToLocal,
|
| // doCatch, catchWithLocal, deopt]
|
|
|
| - f = function f___2__r_lc_l_____d () {
|
| - var local = 3;
|
| + f = function f___3___r_lc_l_____d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndThrow42);
|
| + local += 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -366,15 +458,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(undefined, f);
|
| assertEquals(4, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryReturns, tryResultToLocal,
|
| // doCatch, catchWithLocal, endReturnLocal]
|
|
|
| - f = function f___2__r_lc_l____l_ () {
|
| - var local = 3;
|
| + f = function f___3___r_lc_l____l_ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndThrow42);
|
| + local += 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -384,18 +476,18 @@ function runThisShard() {
|
| counter++;
|
| return 5 + local;
|
| }
|
| - resetOptAndAssertResultEquals(23, f);
|
| + resetOptAndAssertResultEquals(912, f);
|
| assertEquals(4, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryReturns, tryResultToLocal,
|
| // doCatch, catchWithLocal, endReturnLocal, deopt]
|
|
|
| - f = function f___2__r_lc_l____ld () {
|
| - var local = 3;
|
| + f = function f___3___r_lc_l____ld () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndThrow42);
|
| + local += 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -405,18 +497,18 @@ function runThisShard() {
|
| counter++;
|
| return 5 + local;
|
| }
|
| - resetOptAndAssertResultEquals(23, f);
|
| + resetOptAndAssertResultEquals(912, f);
|
| assertEquals(4, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryReturns, tryResultToLocal,
|
| // doCatch, catchWithLocal, catchThrows]
|
|
|
| - f = function f___2__r_lc_lt_____ () {
|
| - var local = 3;
|
| + f = function f___3___r_lc_lt_____ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndThrow42);
|
| + local += 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -428,15 +520,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(undefined, f);
|
| assertEquals(4, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryReturns, tryResultToLocal,
|
| // doCatch, catchWithLocal, catchThrows, deopt]
|
|
|
| - f = function f___2__r_lc_lt____d () {
|
| - var local = 3;
|
| + f = function f___3___r_lc_lt____d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndThrow42);
|
| + local += 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -448,15 +540,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(undefined, f);
|
| assertEquals(4, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryReturns, tryResultToLocal,
|
| // doCatch, catchWithLocal, catchThrows, endReturnLocal]
|
|
|
| - f = function f___2__r_lc_lt___l_ () {
|
| - var local = 3;
|
| + f = function f___3___r_lc_lt___l_ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndThrow42);
|
| + local += 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -466,18 +558,18 @@ function runThisShard() {
|
| counter++;
|
| return 5 + local;
|
| }
|
| - resetOptAndAssertResultEquals(23, f);
|
| + resetOptAndAssertResultEquals(912, f);
|
| assertEquals(4, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryReturns, tryResultToLocal,
|
| // doCatch, catchWithLocal, catchThrows, endReturnLocal, deopt]
|
|
|
| - f = function f___2__r_lc_lt___ld () {
|
| - var local = 3;
|
| + f = function f___3___r_lc_lt___ld () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndThrow42);
|
| + local += 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -487,18 +579,18 @@ function runThisShard() {
|
| counter++;
|
| return 5 + local;
|
| }
|
| - resetOptAndAssertResultEquals(23, f);
|
| + resetOptAndAssertResultEquals(912, f);
|
| assertEquals(4, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryReturns, tryResultToLocal,
|
| // doCatch, catchReturns]
|
|
|
| - f = function f___2__r_lcr_______ () {
|
| - var local = 3;
|
| + f = function f___3___r_lcr_______ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndThrow42);
|
| + local += 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -510,15 +602,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(undefined, f);
|
| assertEquals(4, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryReturns, tryResultToLocal,
|
| // doCatch, catchReturns, deopt]
|
|
|
| - f = function f___2__r_lcr______d () {
|
| - var local = 3;
|
| + f = function f___3___r_lcr______d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndThrow42);
|
| + local += 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -530,15 +622,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(undefined, f);
|
| assertEquals(4, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryReturns, tryResultToLocal,
|
| // doCatch, catchReturns, endReturnLocal]
|
|
|
| - f = function f___2__r_lcr_____l_ () {
|
| - var local = 3;
|
| + f = function f___3___r_lcr_____l_ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndThrow42);
|
| + local += 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -548,18 +640,18 @@ function runThisShard() {
|
| counter++;
|
| return 5 + local;
|
| }
|
| - resetOptAndAssertResultEquals(23, f);
|
| + resetOptAndAssertResultEquals(912, f);
|
| assertEquals(4, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryReturns, tryResultToLocal,
|
| // doCatch, catchReturns, endReturnLocal, deopt]
|
|
|
| - f = function f___2__r_lcr_____ld () {
|
| - var local = 3;
|
| + f = function f___3___r_lcr_____ld () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndThrow42);
|
| + local += 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -569,18 +661,18 @@ function runThisShard() {
|
| counter++;
|
| return 5 + local;
|
| }
|
| - resetOptAndAssertResultEquals(23, f);
|
| + resetOptAndAssertResultEquals(912, f);
|
| assertEquals(4, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryReturns, tryResultToLocal,
|
| // doCatch, catchReturns, catchWithLocal]
|
|
|
| - f = function f___2__r_lcrl______ () {
|
| - var local = 3;
|
| + f = function f___3___r_lcrl______ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndThrow42);
|
| + local += 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -592,15 +684,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(undefined, f);
|
| assertEquals(4, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryReturns, tryResultToLocal,
|
| // doCatch, catchReturns, catchWithLocal, deopt]
|
|
|
| - f = function f___2__r_lcrl_____d () {
|
| - var local = 3;
|
| + f = function f___3___r_lcrl_____d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndThrow42);
|
| + local += 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -612,15 +704,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(undefined, f);
|
| assertEquals(4, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryReturns, tryResultToLocal,
|
| // doCatch, catchReturns, catchWithLocal, endReturnLocal]
|
|
|
| - f = function f___2__r_lcrl____l_ () {
|
| - var local = 3;
|
| + f = function f___3___r_lcrl____l_ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndThrow42);
|
| + local += 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -630,18 +722,18 @@ function runThisShard() {
|
| counter++;
|
| return 5 + local;
|
| }
|
| - resetOptAndAssertResultEquals(23, f);
|
| + resetOptAndAssertResultEquals(912, f);
|
| assertEquals(4, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryReturns, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryReturns, tryResultToLocal,
|
| // doCatch, catchReturns, catchWithLocal, endReturnLocal, deopt]
|
|
|
| - f = function f___2__r_lcrl____ld () {
|
| - var local = 3;
|
| + f = function f___3___r_lcrl____ld () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndThrow42);
|
| + local += 4 + invertFunctionCall(increaseAndThrow42);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -651,17 +743,17 @@ function runThisShard() {
|
| counter++;
|
| return 5 + local;
|
| }
|
| - resetOptAndAssertResultEquals(23, f);
|
| + resetOptAndAssertResultEquals(912, f);
|
| assertEquals(4, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, doCatch]
|
| + // Variant flags: [alternativeFn3, tryThrows, doCatch]
|
|
|
| - f = function f___2_t___c________ () {
|
| - var local = 3;
|
| + f = function f___3__t___c________ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - return invertFunctionCall(increaseAndReturn15);
|
| + return 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -672,14 +764,14 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(undefined, f);
|
| assertEquals(5, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, doCatch, deopt]
|
| + // Variant flags: [alternativeFn3, tryThrows, doCatch, deopt]
|
|
|
| - f = function f___2_t___c_______d () {
|
| - var local = 3;
|
| + f = function f___3__t___c_______d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - return invertFunctionCall(increaseAndReturn15);
|
| + return 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -690,14 +782,14 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(undefined, f);
|
| assertEquals(5, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, doCatch, catchThrows]
|
| + // Variant flags: [alternativeFn3, tryThrows, doCatch, catchThrows]
|
|
|
| - f = function f___2_t___c__t_____ () {
|
| - var local = 3;
|
| + f = function f___3__t___c__t_____ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - return invertFunctionCall(increaseAndReturn15);
|
| + return 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -709,15 +801,15 @@ function runThisShard() {
|
| resetOptAndAssertThrowsWith(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, doCatch, catchThrows,
|
| + // Variant flags: [alternativeFn3, tryThrows, doCatch, catchThrows,
|
| // deopt]
|
|
|
| - f = function f___2_t___c__t____d () {
|
| - var local = 3;
|
| + f = function f___3__t___c__t____d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - return invertFunctionCall(increaseAndReturn15);
|
| + return 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -729,15 +821,15 @@ function runThisShard() {
|
| resetOptAndAssertThrowsWith(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, doCatch,
|
| + // Variant flags: [alternativeFn3, tryThrows, doCatch,
|
| // catchWithLocal]
|
|
|
| - f = function f___2_t___c_l______ () {
|
| - var local = 3;
|
| + f = function f___3__t___c_l______ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - return invertFunctionCall(increaseAndReturn15);
|
| + return 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -749,15 +841,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(undefined, f);
|
| assertEquals(5, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, doCatch,
|
| + // Variant flags: [alternativeFn3, tryThrows, doCatch,
|
| // catchWithLocal, deopt]
|
|
|
| - f = function f___2_t___c_l_____d () {
|
| - var local = 3;
|
| + f = function f___3__t___c_l_____d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - return invertFunctionCall(increaseAndReturn15);
|
| + return 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -769,15 +861,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(undefined, f);
|
| assertEquals(5, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, doCatch,
|
| + // Variant flags: [alternativeFn3, tryThrows, doCatch,
|
| // catchWithLocal, endReturnLocal]
|
|
|
| - f = function f___2_t___c_l____l_ () {
|
| - var local = 3;
|
| + f = function f___3__t___c_l____l_ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - return invertFunctionCall(increaseAndReturn15);
|
| + return 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -787,18 +879,18 @@ function runThisShard() {
|
| counter++;
|
| return 5 + local;
|
| }
|
| - resetOptAndAssertResultEquals(50, f);
|
| + resetOptAndAssertResultEquals(935, f);
|
| assertEquals(5, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, doCatch,
|
| + // Variant flags: [alternativeFn3, tryThrows, doCatch,
|
| // catchWithLocal, endReturnLocal, deopt]
|
|
|
| - f = function f___2_t___c_l____ld () {
|
| - var local = 3;
|
| + f = function f___3__t___c_l____ld () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - return invertFunctionCall(increaseAndReturn15);
|
| + return 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -808,18 +900,18 @@ function runThisShard() {
|
| counter++;
|
| return 5 + local;
|
| }
|
| - resetOptAndAssertResultEquals(50, f);
|
| + resetOptAndAssertResultEquals(935, f);
|
| assertEquals(5, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, doCatch,
|
| + // Variant flags: [alternativeFn3, tryThrows, doCatch,
|
| // catchWithLocal, catchThrows]
|
|
|
| - f = function f___2_t___c_lt_____ () {
|
| - var local = 3;
|
| + f = function f___3__t___c_lt_____ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - return invertFunctionCall(increaseAndReturn15);
|
| + return 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -831,15 +923,15 @@ function runThisShard() {
|
| resetOptAndAssertThrowsWith(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, doCatch,
|
| + // Variant flags: [alternativeFn3, tryThrows, doCatch,
|
| // catchWithLocal, catchThrows, deopt]
|
|
|
| - f = function f___2_t___c_lt____d () {
|
| - var local = 3;
|
| + f = function f___3__t___c_lt____d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - return invertFunctionCall(increaseAndReturn15);
|
| + return 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -851,15 +943,15 @@ function runThisShard() {
|
| resetOptAndAssertThrowsWith(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, doCatch,
|
| + // Variant flags: [alternativeFn3, tryThrows, doCatch,
|
| // catchWithLocal, catchThrows, endReturnLocal]
|
|
|
| - f = function f___2_t___c_lt___l_ () {
|
| - var local = 3;
|
| + f = function f___3__t___c_lt___l_ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - return invertFunctionCall(increaseAndReturn15);
|
| + return 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -872,15 +964,15 @@ function runThisShard() {
|
| resetOptAndAssertThrowsWith(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, doCatch,
|
| + // Variant flags: [alternativeFn3, tryThrows, doCatch,
|
| // catchWithLocal, catchThrows, endReturnLocal, deopt]
|
|
|
| - f = function f___2_t___c_lt___ld () {
|
| - var local = 3;
|
| + f = function f___3__t___c_lt___ld () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - return invertFunctionCall(increaseAndReturn15);
|
| + return 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -893,14 +985,14 @@ function runThisShard() {
|
| resetOptAndAssertThrowsWith(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, doCatch, catchReturns]
|
| + // Variant flags: [alternativeFn3, tryThrows, doCatch, catchReturns]
|
|
|
| - f = function f___2_t___cr_______ () {
|
| - var local = 3;
|
| + f = function f___3__t___cr_______ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - return invertFunctionCall(increaseAndReturn15);
|
| + return 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -912,15 +1004,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, doCatch, catchReturns,
|
| + // Variant flags: [alternativeFn3, tryThrows, doCatch, catchReturns,
|
| // deopt]
|
|
|
| - f = function f___2_t___cr______d () {
|
| - var local = 3;
|
| + f = function f___3__t___cr______d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - return invertFunctionCall(increaseAndReturn15);
|
| + return 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -932,15 +1024,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, doCatch, catchReturns,
|
| + // Variant flags: [alternativeFn3, tryThrows, doCatch, catchReturns,
|
| // catchWithLocal]
|
|
|
| - f = function f___2_t___crl______ () {
|
| - var local = 3;
|
| + f = function f___3__t___crl______ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - return invertFunctionCall(increaseAndReturn15);
|
| + return 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -949,18 +1041,18 @@ function runThisShard() {
|
| }
|
| counter++;
|
| }
|
| - resetOptAndAssertResultEquals(5, f);
|
| + resetOptAndAssertResultEquals(890, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, doCatch, catchReturns,
|
| + // Variant flags: [alternativeFn3, tryThrows, doCatch, catchReturns,
|
| // catchWithLocal, deopt]
|
|
|
| - f = function f___2_t___crl_____d () {
|
| - var local = 3;
|
| + f = function f___3__t___crl_____d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - return invertFunctionCall(increaseAndReturn15);
|
| + return 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -969,18 +1061,18 @@ function runThisShard() {
|
| }
|
| counter++;
|
| }
|
| - resetOptAndAssertResultEquals(5, f);
|
| + resetOptAndAssertResultEquals(890, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, doCatch, catchReturns,
|
| + // Variant flags: [alternativeFn3, tryThrows, doCatch, catchReturns,
|
| // catchWithLocal, endReturnLocal]
|
|
|
| - f = function f___2_t___crl____l_ () {
|
| - var local = 3;
|
| + f = function f___3__t___crl____l_ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - return invertFunctionCall(increaseAndReturn15);
|
| + return 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -990,18 +1082,18 @@ function runThisShard() {
|
| counter++;
|
| return 5 + local;
|
| }
|
| - resetOptAndAssertResultEquals(5, f);
|
| + resetOptAndAssertResultEquals(890, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, doCatch, catchReturns,
|
| + // Variant flags: [alternativeFn3, tryThrows, doCatch, catchReturns,
|
| // catchWithLocal, endReturnLocal, deopt]
|
|
|
| - f = function f___2_t___crl____ld () {
|
| - var local = 3;
|
| + f = function f___3__t___crl____ld () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - return invertFunctionCall(increaseAndReturn15);
|
| + return 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1011,18 +1103,18 @@ function runThisShard() {
|
| counter++;
|
| return 5 + local;
|
| }
|
| - resetOptAndAssertResultEquals(5, f);
|
| + resetOptAndAssertResultEquals(890, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryThrows, tryResultToLocal,
|
| // doCatch]
|
|
|
| - f = function f___2_t__lc________ () {
|
| - var local = 3;
|
| + f = function f___3__t__lc________ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndReturn15);
|
| + local += 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1033,15 +1125,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(undefined, f);
|
| assertEquals(5, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryThrows, tryResultToLocal,
|
| // doCatch, deopt]
|
|
|
| - f = function f___2_t__lc_______d () {
|
| - var local = 3;
|
| + f = function f___3__t__lc_______d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndReturn15);
|
| + local += 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1052,15 +1144,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(undefined, f);
|
| assertEquals(5, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryThrows, tryResultToLocal,
|
| // doCatch, endReturnLocal]
|
|
|
| - f = function f___2_t__lc______l_ () {
|
| - var local = 3;
|
| + f = function f___3__t__lc______l_ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndReturn15);
|
| + local += 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1069,18 +1161,18 @@ function runThisShard() {
|
| counter++;
|
| return 5 + local;
|
| }
|
| - resetOptAndAssertResultEquals(8, f);
|
| + resetOptAndAssertResultEquals(893, f);
|
| assertEquals(5, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryThrows, tryResultToLocal,
|
| // doCatch, endReturnLocal, deopt]
|
|
|
| - f = function f___2_t__lc______ld () {
|
| - var local = 3;
|
| + f = function f___3__t__lc______ld () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndReturn15);
|
| + local += 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1089,18 +1181,18 @@ function runThisShard() {
|
| counter++;
|
| return 5 + local;
|
| }
|
| - resetOptAndAssertResultEquals(8, f);
|
| + resetOptAndAssertResultEquals(893, f);
|
| assertEquals(5, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryThrows, tryResultToLocal,
|
| // doCatch, catchThrows]
|
|
|
| - f = function f___2_t__lc__t_____ () {
|
| - var local = 3;
|
| + f = function f___3__t__lc__t_____ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndReturn15);
|
| + local += 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1112,15 +1204,15 @@ function runThisShard() {
|
| resetOptAndAssertThrowsWith(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryThrows, tryResultToLocal,
|
| // doCatch, catchThrows, deopt]
|
|
|
| - f = function f___2_t__lc__t____d () {
|
| - var local = 3;
|
| + f = function f___3__t__lc__t____d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndReturn15);
|
| + local += 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1132,15 +1224,15 @@ function runThisShard() {
|
| resetOptAndAssertThrowsWith(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryThrows, tryResultToLocal,
|
| // doCatch, catchThrows, endReturnLocal]
|
|
|
| - f = function f___2_t__lc__t___l_ () {
|
| - var local = 3;
|
| + f = function f___3__t__lc__t___l_ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndReturn15);
|
| + local += 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1153,15 +1245,15 @@ function runThisShard() {
|
| resetOptAndAssertThrowsWith(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryThrows, tryResultToLocal,
|
| // doCatch, catchThrows, endReturnLocal, deopt]
|
|
|
| - f = function f___2_t__lc__t___ld () {
|
| - var local = 3;
|
| + f = function f___3__t__lc__t___ld () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndReturn15);
|
| + local += 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1174,15 +1266,15 @@ function runThisShard() {
|
| resetOptAndAssertThrowsWith(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryThrows, tryResultToLocal,
|
| // doCatch, catchWithLocal]
|
|
|
| - f = function f___2_t__lc_l______ () {
|
| - var local = 3;
|
| + f = function f___3__t__lc_l______ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndReturn15);
|
| + local += 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1194,15 +1286,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(undefined, f);
|
| assertEquals(5, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryThrows, tryResultToLocal,
|
| // doCatch, catchWithLocal, deopt]
|
|
|
| - f = function f___2_t__lc_l_____d () {
|
| - var local = 3;
|
| + f = function f___3__t__lc_l_____d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndReturn15);
|
| + local += 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1214,15 +1306,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(undefined, f);
|
| assertEquals(5, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryThrows, tryResultToLocal,
|
| // doCatch, catchWithLocal, endReturnLocal]
|
|
|
| - f = function f___2_t__lc_l____l_ () {
|
| - var local = 3;
|
| + f = function f___3__t__lc_l____l_ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndReturn15);
|
| + local += 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1232,18 +1324,18 @@ function runThisShard() {
|
| counter++;
|
| return 5 + local;
|
| }
|
| - resetOptAndAssertResultEquals(50, f);
|
| + resetOptAndAssertResultEquals(935, f);
|
| assertEquals(5, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryThrows, tryResultToLocal,
|
| // doCatch, catchWithLocal, endReturnLocal, deopt]
|
|
|
| - f = function f___2_t__lc_l____ld () {
|
| - var local = 3;
|
| + f = function f___3__t__lc_l____ld () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndReturn15);
|
| + local += 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1253,18 +1345,18 @@ function runThisShard() {
|
| counter++;
|
| return 5 + local;
|
| }
|
| - resetOptAndAssertResultEquals(50, f);
|
| + resetOptAndAssertResultEquals(935, f);
|
| assertEquals(5, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryThrows, tryResultToLocal,
|
| // doCatch, catchWithLocal, catchThrows]
|
|
|
| - f = function f___2_t__lc_lt_____ () {
|
| - var local = 3;
|
| + f = function f___3__t__lc_lt_____ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndReturn15);
|
| + local += 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1276,15 +1368,15 @@ function runThisShard() {
|
| resetOptAndAssertThrowsWith(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryThrows, tryResultToLocal,
|
| // doCatch, catchWithLocal, catchThrows, deopt]
|
|
|
| - f = function f___2_t__lc_lt____d () {
|
| - var local = 3;
|
| + f = function f___3__t__lc_lt____d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndReturn15);
|
| + local += 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1296,15 +1388,15 @@ function runThisShard() {
|
| resetOptAndAssertThrowsWith(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryThrows, tryResultToLocal,
|
| // doCatch, catchWithLocal, catchThrows, endReturnLocal]
|
|
|
| - f = function f___2_t__lc_lt___l_ () {
|
| - var local = 3;
|
| + f = function f___3__t__lc_lt___l_ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndReturn15);
|
| + local += 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1317,15 +1409,15 @@ function runThisShard() {
|
| resetOptAndAssertThrowsWith(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryThrows, tryResultToLocal,
|
| // doCatch, catchWithLocal, catchThrows, endReturnLocal, deopt]
|
|
|
| - f = function f___2_t__lc_lt___ld () {
|
| - var local = 3;
|
| + f = function f___3__t__lc_lt___ld () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndReturn15);
|
| + local += 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1338,15 +1430,15 @@ function runThisShard() {
|
| resetOptAndAssertThrowsWith(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryThrows, tryResultToLocal,
|
| // doCatch, catchReturns]
|
|
|
| - f = function f___2_t__lcr_______ () {
|
| - var local = 3;
|
| + f = function f___3__t__lcr_______ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndReturn15);
|
| + local += 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1358,15 +1450,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryThrows, tryResultToLocal,
|
| // doCatch, catchReturns, deopt]
|
|
|
| - f = function f___2_t__lcr______d () {
|
| - var local = 3;
|
| + f = function f___3__t__lcr______d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndReturn15);
|
| + local += 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1378,15 +1470,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryThrows, tryResultToLocal,
|
| // doCatch, catchReturns, endReturnLocal]
|
|
|
| - f = function f___2_t__lcr_____l_ () {
|
| - var local = 3;
|
| + f = function f___3__t__lcr_____l_ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndReturn15);
|
| + local += 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1399,15 +1491,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryThrows, tryResultToLocal,
|
| // doCatch, catchReturns, endReturnLocal, deopt]
|
|
|
| - f = function f___2_t__lcr_____ld () {
|
| - var local = 3;
|
| + f = function f___3__t__lcr_____ld () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndReturn15);
|
| + local += 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1420,15 +1512,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryThrows, tryResultToLocal,
|
| // doCatch, catchReturns, catchWithLocal]
|
|
|
| - f = function f___2_t__lcrl______ () {
|
| - var local = 3;
|
| + f = function f___3__t__lcrl______ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndReturn15);
|
| + local += 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1437,18 +1529,18 @@ function runThisShard() {
|
| }
|
| counter++;
|
| }
|
| - resetOptAndAssertResultEquals(5, f);
|
| + resetOptAndAssertResultEquals(890, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryThrows, tryResultToLocal,
|
| // doCatch, catchReturns, catchWithLocal, deopt]
|
|
|
| - f = function f___2_t__lcrl_____d () {
|
| - var local = 3;
|
| + f = function f___3__t__lcrl_____d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndReturn15);
|
| + local += 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1457,18 +1549,18 @@ function runThisShard() {
|
| }
|
| counter++;
|
| }
|
| - resetOptAndAssertResultEquals(5, f);
|
| + resetOptAndAssertResultEquals(890, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryThrows, tryResultToLocal,
|
| // doCatch, catchReturns, catchWithLocal, endReturnLocal]
|
|
|
| - f = function f___2_t__lcrl____l_ () {
|
| - var local = 3;
|
| + f = function f___3__t__lcrl____l_ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndReturn15);
|
| + local += 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1478,18 +1570,18 @@ function runThisShard() {
|
| counter++;
|
| return 5 + local;
|
| }
|
| - resetOptAndAssertResultEquals(5, f);
|
| + resetOptAndAssertResultEquals(890, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn2, tryThrows, tryResultToLocal,
|
| + // Variant flags: [alternativeFn3, tryThrows, tryResultToLocal,
|
| // doCatch, catchReturns, catchWithLocal, endReturnLocal, deopt]
|
|
|
| - f = function f___2_t__lcrl____ld () {
|
| - var local = 3;
|
| + f = function f___3__t__lcrl____ld () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - local += invertFunctionCall(increaseAndReturn15);
|
| + local += 4 + invertFunctionCall(increaseAndReturn15);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1499,17 +1591,17 @@ function runThisShard() {
|
| counter++;
|
| return 5 + local;
|
| }
|
| - resetOptAndAssertResultEquals(5, f);
|
| + resetOptAndAssertResultEquals(890, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn3, tryReturns, doCatch]
|
| + // Variant flags: [alternativeFn4, tryReturns, doCatch]
|
|
|
| - f = function f__3___r__c________ () {
|
| - var local = 3;
|
| + f = function f__4____r__c________ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - return (new increaseAndStore15Constructor()).x;
|
| + return 4 + (new increaseAndStore15Constructor()).x;
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1517,17 +1609,17 @@ function runThisShard() {
|
| }
|
| counter++;
|
| }
|
| - resetOptAndAssertResultEquals(15, f);
|
| + resetOptAndAssertResultEquals(19, f);
|
| assertEquals(2, counter);
|
|
|
| - // Variant flags: [alternativeFn3, tryReturns, doCatch, deopt]
|
| + // Variant flags: [alternativeFn4, tryReturns, doCatch, deopt]
|
|
|
| - f = function f__3___r__c_______d () {
|
| - var local = 3;
|
| + f = function f__4____r__c_______d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - return (new increaseAndStore15Constructor()).x;
|
| + return 4 + (new increaseAndStore15Constructor()).x;
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1535,17 +1627,17 @@ function runThisShard() {
|
| }
|
| counter++;
|
| }
|
| - resetOptAndAssertResultEquals(15, f);
|
| + resetOptAndAssertResultEquals(19, f);
|
| assertEquals(2, counter);
|
|
|
| - // Variant flags: [alternativeFn3, tryReturns, doCatch, catchThrows]
|
| + // Variant flags: [alternativeFn4, tryReturns, doCatch, catchThrows]
|
|
|
| - f = function f__3___r__c__t_____ () {
|
| - var local = 3;
|
| + f = function f__4____r__c__t_____ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - return (new increaseAndStore15Constructor()).x;
|
| + return 4 + (new increaseAndStore15Constructor()).x;
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1554,18 +1646,18 @@ function runThisShard() {
|
| }
|
| counter++;
|
| }
|
| - resetOptAndAssertResultEquals(15, f);
|
| + resetOptAndAssertResultEquals(19, f);
|
| assertEquals(2, counter);
|
|
|
| - // Variant flags: [alternativeFn3, tryReturns, doCatch, catchThrows,
|
| + // Variant flags: [alternativeFn4, tryReturns, doCatch, catchThrows,
|
| // deopt]
|
|
|
| - f = function f__3___r__c__t____d () {
|
| - var local = 3;
|
| + f = function f__4____r__c__t____d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - return (new increaseAndStore15Constructor()).x;
|
| + return 4 + (new increaseAndStore15Constructor()).x;
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1574,18 +1666,18 @@ function runThisShard() {
|
| }
|
| counter++;
|
| }
|
| - resetOptAndAssertResultEquals(15, f);
|
| + resetOptAndAssertResultEquals(19, f);
|
| assertEquals(2, counter);
|
|
|
| - // Variant flags: [alternativeFn3, tryReturns, doCatch,
|
| + // Variant flags: [alternativeFn4, tryReturns, doCatch,
|
| // catchReturns]
|
|
|
| - f = function f__3___r__cr_______ () {
|
| - var local = 3;
|
| + f = function f__4____r__cr_______ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - return (new increaseAndStore15Constructor()).x;
|
| + return 4 + (new increaseAndStore15Constructor()).x;
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1594,18 +1686,18 @@ function runThisShard() {
|
| }
|
| counter++;
|
| }
|
| - resetOptAndAssertResultEquals(15, f);
|
| + resetOptAndAssertResultEquals(19, f);
|
| assertEquals(2, counter);
|
|
|
| - // Variant flags: [alternativeFn3, tryReturns, doCatch,
|
| + // Variant flags: [alternativeFn4, tryReturns, doCatch,
|
| // catchReturns, deopt]
|
|
|
| - f = function f__3___r__cr______d () {
|
| - var local = 3;
|
| + f = function f__4____r__cr______d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - return (new increaseAndStore15Constructor()).x;
|
| + return 4 + (new increaseAndStore15Constructor()).x;
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1614,17 +1706,17 @@ function runThisShard() {
|
| }
|
| counter++;
|
| }
|
| - resetOptAndAssertResultEquals(15, f);
|
| + resetOptAndAssertResultEquals(19, f);
|
| assertEquals(2, counter);
|
|
|
| - // Variant flags: [alternativeFn3, tryThrows, doCatch]
|
| + // Variant flags: [alternativeFn4, tryThrows, doCatch]
|
|
|
| - f = function f__3__t___c________ () {
|
| - var local = 3;
|
| + f = function f__4___t___c________ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - return (new increaseAndThrow42Constructor()).x;
|
| + return 4 + (new increaseAndThrow42Constructor()).x;
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1635,14 +1727,14 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(undefined, f);
|
| assertEquals(5, counter);
|
|
|
| - // Variant flags: [alternativeFn3, tryThrows, doCatch, deopt]
|
| + // Variant flags: [alternativeFn4, tryThrows, doCatch, deopt]
|
|
|
| - f = function f__3__t___c_______d () {
|
| - var local = 3;
|
| + f = function f__4___t___c_______d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - return (new increaseAndThrow42Constructor()).x;
|
| + return 4 + (new increaseAndThrow42Constructor()).x;
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1653,14 +1745,14 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(undefined, f);
|
| assertEquals(5, counter);
|
|
|
| - // Variant flags: [alternativeFn3, tryThrows, doCatch, catchThrows]
|
| + // Variant flags: [alternativeFn4, tryThrows, doCatch, catchThrows]
|
|
|
| - f = function f__3__t___c__t_____ () {
|
| - var local = 3;
|
| + f = function f__4___t___c__t_____ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - return (new increaseAndThrow42Constructor()).x;
|
| + return 4 + (new increaseAndThrow42Constructor()).x;
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1672,15 +1764,15 @@ function runThisShard() {
|
| resetOptAndAssertThrowsWith(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn3, tryThrows, doCatch, catchThrows,
|
| + // Variant flags: [alternativeFn4, tryThrows, doCatch, catchThrows,
|
| // deopt]
|
|
|
| - f = function f__3__t___c__t____d () {
|
| - var local = 3;
|
| + f = function f__4___t___c__t____d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - return (new increaseAndThrow42Constructor()).x;
|
| + return 4 + (new increaseAndThrow42Constructor()).x;
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1692,14 +1784,14 @@ function runThisShard() {
|
| resetOptAndAssertThrowsWith(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn3, tryThrows, doCatch, catchReturns]
|
| + // Variant flags: [alternativeFn4, tryThrows, doCatch, catchReturns]
|
|
|
| - f = function f__3__t___cr_______ () {
|
| - var local = 3;
|
| + f = function f__4___t___cr_______ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - return (new increaseAndThrow42Constructor()).x;
|
| + return 4 + (new increaseAndThrow42Constructor()).x;
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1711,15 +1803,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn3, tryThrows, doCatch, catchReturns,
|
| + // Variant flags: [alternativeFn4, tryThrows, doCatch, catchReturns,
|
| // deopt]
|
|
|
| - f = function f__3__t___cr______d () {
|
| - var local = 3;
|
| + f = function f__4___t___cr______d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - return (new increaseAndThrow42Constructor()).x;
|
| + return 4 + (new increaseAndThrow42Constructor()).x;
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1731,14 +1823,14 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn4, tryReturns, doCatch]
|
| + // Variant flags: [alternativeFn5, tryReturns, doCatch]
|
|
|
| - f = function f_4____r__c________ () {
|
| - var local = 3;
|
| + f = function f_5_____r__c________ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - return magic.prop /* returns 15 */;
|
| + return 4 + magic.prop /* returns 15 */;
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1746,17 +1838,17 @@ function runThisShard() {
|
| }
|
| counter++;
|
| }
|
| - resetOptAndAssertResultEquals(15, f);
|
| + resetOptAndAssertResultEquals(19, f);
|
| assertEquals(2, counter);
|
|
|
| - // Variant flags: [alternativeFn4, tryReturns, doCatch, deopt]
|
| + // Variant flags: [alternativeFn5, tryReturns, doCatch, deopt]
|
|
|
| - f = function f_4____r__c_______d () {
|
| - var local = 3;
|
| + f = function f_5_____r__c_______d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - return magic.prop /* returns 15 */;
|
| + return 4 + magic.prop /* returns 15 */;
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1764,17 +1856,17 @@ function runThisShard() {
|
| }
|
| counter++;
|
| }
|
| - resetOptAndAssertResultEquals(15, f);
|
| + resetOptAndAssertResultEquals(19, f);
|
| assertEquals(2, counter);
|
|
|
| - // Variant flags: [alternativeFn4, tryReturns, doCatch, catchThrows]
|
| + // Variant flags: [alternativeFn5, tryReturns, doCatch, catchThrows]
|
|
|
| - f = function f_4____r__c__t_____ () {
|
| - var local = 3;
|
| + f = function f_5_____r__c__t_____ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - return magic.prop /* returns 15 */;
|
| + return 4 + magic.prop /* returns 15 */;
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1783,18 +1875,18 @@ function runThisShard() {
|
| }
|
| counter++;
|
| }
|
| - resetOptAndAssertResultEquals(15, f);
|
| + resetOptAndAssertResultEquals(19, f);
|
| assertEquals(2, counter);
|
|
|
| - // Variant flags: [alternativeFn4, tryReturns, doCatch, catchThrows,
|
| + // Variant flags: [alternativeFn5, tryReturns, doCatch, catchThrows,
|
| // deopt]
|
|
|
| - f = function f_4____r__c__t____d () {
|
| - var local = 3;
|
| + f = function f_5_____r__c__t____d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - return magic.prop /* returns 15 */;
|
| + return 4 + magic.prop /* returns 15 */;
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1803,18 +1895,18 @@ function runThisShard() {
|
| }
|
| counter++;
|
| }
|
| - resetOptAndAssertResultEquals(15, f);
|
| + resetOptAndAssertResultEquals(19, f);
|
| assertEquals(2, counter);
|
|
|
| - // Variant flags: [alternativeFn4, tryReturns, doCatch,
|
| + // Variant flags: [alternativeFn5, tryReturns, doCatch,
|
| // catchReturns]
|
|
|
| - f = function f_4____r__cr_______ () {
|
| - var local = 3;
|
| + f = function f_5_____r__cr_______ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - return magic.prop /* returns 15 */;
|
| + return 4 + magic.prop /* returns 15 */;
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1823,18 +1915,18 @@ function runThisShard() {
|
| }
|
| counter++;
|
| }
|
| - resetOptAndAssertResultEquals(15, f);
|
| + resetOptAndAssertResultEquals(19, f);
|
| assertEquals(2, counter);
|
|
|
| - // Variant flags: [alternativeFn4, tryReturns, doCatch,
|
| + // Variant flags: [alternativeFn5, tryReturns, doCatch,
|
| // catchReturns, deopt]
|
|
|
| - f = function f_4____r__cr______d () {
|
| - var local = 3;
|
| + f = function f_5_____r__cr______d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - return magic.prop /* returns 15 */;
|
| + return 4 + magic.prop /* returns 15 */;
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1843,17 +1935,17 @@ function runThisShard() {
|
| }
|
| counter++;
|
| }
|
| - resetOptAndAssertResultEquals(15, f);
|
| + resetOptAndAssertResultEquals(19, f);
|
| assertEquals(2, counter);
|
|
|
| - // Variant flags: [alternativeFn4, tryThrows, doCatch]
|
| + // Variant flags: [alternativeFn5, tryThrows, doCatch]
|
|
|
| - f = function f_4___t___c________ () {
|
| - var local = 3;
|
| + f = function f_5____t___c________ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - return (magic.prop = 37 /* throws 42 */);
|
| + return 4 + (magic.prop = 37 /* throws 42 */);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1864,14 +1956,14 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(undefined, f);
|
| assertEquals(5, counter);
|
|
|
| - // Variant flags: [alternativeFn4, tryThrows, doCatch, deopt]
|
| + // Variant flags: [alternativeFn5, tryThrows, doCatch, deopt]
|
|
|
| - f = function f_4___t___c_______d () {
|
| - var local = 3;
|
| + f = function f_5____t___c_______d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - return (magic.prop = 37 /* throws 42 */);
|
| + return 4 + (magic.prop = 37 /* throws 42 */);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1882,14 +1974,14 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(undefined, f);
|
| assertEquals(5, counter);
|
|
|
| - // Variant flags: [alternativeFn4, tryThrows, doCatch, catchThrows]
|
| + // Variant flags: [alternativeFn5, tryThrows, doCatch, catchThrows]
|
|
|
| - f = function f_4___t___c__t_____ () {
|
| - var local = 3;
|
| + f = function f_5____t___c__t_____ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - return (magic.prop = 37 /* throws 42 */);
|
| + return 4 + (magic.prop = 37 /* throws 42 */);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1901,15 +1993,15 @@ function runThisShard() {
|
| resetOptAndAssertThrowsWith(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn4, tryThrows, doCatch, catchThrows,
|
| + // Variant flags: [alternativeFn5, tryThrows, doCatch, catchThrows,
|
| // deopt]
|
|
|
| - f = function f_4___t___c__t____d () {
|
| - var local = 3;
|
| + f = function f_5____t___c__t____d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - return (magic.prop = 37 /* throws 42 */);
|
| + return 4 + (magic.prop = 37 /* throws 42 */);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1921,14 +2013,14 @@ function runThisShard() {
|
| resetOptAndAssertThrowsWith(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn4, tryThrows, doCatch, catchReturns]
|
| + // Variant flags: [alternativeFn5, tryThrows, doCatch, catchReturns]
|
|
|
| - f = function f_4___t___cr_______ () {
|
| - var local = 3;
|
| + f = function f_5____t___cr_______ () {
|
| + var local = 888;
|
| deopt = false;
|
| try {
|
| counter++;
|
| - return (magic.prop = 37 /* throws 42 */);
|
| + return 4 + (magic.prop = 37 /* throws 42 */);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1940,15 +2032,15 @@ function runThisShard() {
|
| resetOptAndAssertResultEquals(44, f);
|
| assertEquals(3, counter);
|
|
|
| - // Variant flags: [alternativeFn4, tryThrows, doCatch, catchReturns,
|
| + // Variant flags: [alternativeFn5, tryThrows, doCatch, catchReturns,
|
| // deopt]
|
|
|
| - f = function f_4___t___cr______d () {
|
| - var local = 3;
|
| + f = function f_5____t___cr______d () {
|
| + var local = 888;
|
| deopt = true;
|
| try {
|
| counter++;
|
| - return (magic.prop = 37 /* throws 42 */);
|
| + return 4 + (magic.prop = 37 /* throws 42 */);
|
| counter++;
|
| } catch (ex) {
|
| counter++;
|
| @@ -1963,7 +2055,7 @@ function runThisShard() {
|
| }
|
| %NeverOptimizeFunction(runThisShard);
|
|
|
| -// 92 tests in this shard.
|
| -// 186 tests up to here.
|
| +// 95 tests in this shard.
|
| +// 192 tests up to here.
|
|
|
| runThisShard();
|
|
|