mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
3.1 KiB
70 lines
3.1 KiB
/*
|
|
* Many temporaries at the same time.
|
|
*
|
|
* Intent is to ensure temporaries are exhausted from the easily accessible
|
|
* range, and spilling is required to handle the expression correctly.
|
|
* Parentheses are required to ensure temporaries are truly needed.
|
|
*/
|
|
|
|
/* NOTE: Rhino croaks, but Smjs computes correctly. */
|
|
|
|
/*===
|
|
603
|
|
===*/
|
|
|
|
var x = 1;
|
|
var y = 2;
|
|
|
|
/* result = (1 + 20*10) * (x + y) = 201 * 3 = 603 */
|
|
var z = x +
|
|
|
|
(y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x +
|
|
(y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x +
|
|
(y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x +
|
|
(y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x +
|
|
(y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x +
|
|
(y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x +
|
|
(y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x +
|
|
(y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x +
|
|
(y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x +
|
|
(y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x +
|
|
|
|
(y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x +
|
|
(y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x +
|
|
(y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x +
|
|
(y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x +
|
|
(y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x +
|
|
(y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x +
|
|
(y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x +
|
|
(y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x +
|
|
(y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x +
|
|
(y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x + (y + (x +
|
|
|
|
y
|
|
|
|
)) )) )) )) )) )) )) )) )) ))
|
|
)) )) )) )) )) )) )) )) )) ))
|
|
)) )) )) )) )) )) )) )) )) ))
|
|
)) )) )) )) )) )) )) )) )) ))
|
|
)) )) )) )) )) )) )) )) )) ))
|
|
)) )) )) )) )) )) )) )) )) ))
|
|
)) )) )) )) )) )) )) )) )) ))
|
|
)) )) )) )) )) )) )) )) )) ))
|
|
)) )) )) )) )) )) )) )) )) ))
|
|
)) )) )) )) )) )) )) )) )) ))
|
|
|
|
)) )) )) )) )) )) )) )) )) ))
|
|
)) )) )) )) )) )) )) )) )) ))
|
|
)) )) )) )) )) )) )) )) )) ))
|
|
)) )) )) )) )) )) )) )) )) ))
|
|
)) )) )) )) )) )) )) )) )) ))
|
|
)) )) )) )) )) )) )) )) )) ))
|
|
)) )) )) )) )) )) )) )) )) ))
|
|
)) )) )) )) )) )) )) )) )) ))
|
|
)) )) )) )) )) )) )) )) )) ))
|
|
)) )) )) )) )) )) )) )) )) ))
|
|
|
|
;
|
|
|
|
print(z);
|
|
|
|
|