Index: test/cctest/interpreter/bytecode_expectations/AssignmentsInBinaryExpression.golden |
diff --git a/test/cctest/interpreter/bytecode_expectations/AssignmentsInBinaryExpression.golden b/test/cctest/interpreter/bytecode_expectations/AssignmentsInBinaryExpression.golden |
index d13b5ddbad97daaaf57140e03d1721200a07aaad..f9a3196cdaf8594760dcc252386939ddcb78173c 100644 |
--- a/test/cctest/interpreter/bytecode_expectations/AssignmentsInBinaryExpression.golden |
+++ b/test/cctest/interpreter/bytecode_expectations/AssignmentsInBinaryExpression.golden |
@@ -65,7 +65,7 @@ snippet: " |
x = x + (x = 100) + (x = 101); |
return x; |
" |
-frame size: 3 |
+frame size: 2 |
parameter count: 1 |
bytecode array length: 28 |
bytecodes: [ |
@@ -76,10 +76,10 @@ bytecodes: [ |
B(Mov), R(0), R(1), |
B(Star), R(0), |
/* 57 E> */ B(Add), R(1), U8(2), |
- B(Star), R(2), |
+ B(Star), R(1), |
B(LdaSmi), U8(101), |
B(Star), R(0), |
- /* 69 E> */ B(Add), R(2), U8(3), |
+ /* 69 E> */ B(Add), R(1), U8(3), |
B(Star), R(0), |
/* 77 S> */ B(Nop), |
/* 87 S> */ B(Return), |
@@ -96,7 +96,7 @@ snippet: " |
x++; |
return x; |
" |
-frame size: 3 |
+frame size: 2 |
parameter count: 1 |
bytecode array length: 29 |
bytecodes: [ |
@@ -106,10 +106,10 @@ bytecodes: [ |
/* 46 S> */ B(LdaSmi), U8(56), |
B(Star), R(0), |
/* 61 E> */ B(Sub), R(0), U8(2), |
- B(Star), R(2), |
+ B(Star), R(1), |
B(LdaSmi), U8(57), |
B(Star), R(0), |
- /* 68 E> */ B(Add), R(2), U8(3), |
+ /* 68 E> */ B(Add), R(1), U8(3), |
B(Star), R(0), |
/* 75 S> */ B(Inc), U8(4), |
B(Star), R(0), |
@@ -127,7 +127,7 @@ snippet: " |
var y = x + (x = 1) + (x = 2) + (x = 3); |
return y; |
" |
-frame size: 4 |
+frame size: 3 |
parameter count: 1 |
bytecode array length: 37 |
bytecodes: [ |
@@ -138,10 +138,10 @@ bytecodes: [ |
B(Mov), R(0), R(2), |
B(Star), R(0), |
/* 61 E> */ B(Add), R(2), U8(2), |
- B(Star), R(3), |
+ B(Star), R(2), |
B(LdaSmi), U8(2), |
B(Star), R(0), |
- /* 71 E> */ B(Add), R(3), U8(3), |
+ /* 71 E> */ B(Add), R(2), U8(3), |
B(Star), R(2), |
B(LdaSmi), U8(3), |
B(Star), R(0), |
@@ -161,7 +161,7 @@ snippet: " |
var x = x + (x = 1) + (x = 2) + (x = 3); |
return x; |
" |
-frame size: 3 |
+frame size: 2 |
parameter count: 1 |
bytecode array length: 37 |
bytecodes: [ |
@@ -172,10 +172,10 @@ bytecodes: [ |
B(Mov), R(0), R(1), |
B(Star), R(0), |
/* 61 E> */ B(Add), R(1), U8(2), |
- B(Star), R(2), |
+ B(Star), R(1), |
B(LdaSmi), U8(2), |
B(Star), R(0), |
- /* 71 E> */ B(Add), R(2), U8(3), |
+ /* 71 E> */ B(Add), R(1), U8(3), |
B(Star), R(1), |
B(LdaSmi), U8(3), |
B(Star), R(0), |
@@ -194,7 +194,7 @@ snippet: " |
var x = 10, y = 20; |
return x + (x = 1) + (x + 1) * (y = 2) + (y = 3) + (x = 4) + (y = 5) + y; |
" |
-frame size: 5 |
+frame size: 4 |
parameter count: 1 |
bytecode array length: 72 |
bytecodes: [ |
@@ -207,28 +207,28 @@ bytecodes: [ |
B(Mov), R(0), R(2), |
B(Star), R(0), |
/* 68 E> */ B(Add), R(2), U8(2), |
- B(Star), R(3), |
+ B(Star), R(2), |
/* 76 E> */ B(AddSmi), U8(1), R(0), U8(3), |
- B(Star), R(4), |
+ B(Star), R(3), |
B(LdaSmi), U8(2), |
B(Star), R(1), |
- /* 88 E> */ B(Mul), R(4), U8(4), |
- B(Add), R(3), U8(5), |
+ /* 88 E> */ B(Mul), R(3), U8(4), |
+ B(Add), R(2), U8(5), |
B(Star), R(2), |
B(LdaSmi), U8(3), |
B(Star), R(1), |
/* 98 E> */ B(Add), R(2), U8(6), |
- B(Star), R(3), |
+ B(Star), R(2), |
B(LdaSmi), U8(4), |
B(Star), R(0), |
- /* 108 E> */ B(Add), R(3), U8(7), |
+ /* 108 E> */ B(Add), R(2), U8(7), |
B(Star), R(2), |
B(LdaSmi), U8(5), |
B(Star), R(1), |
/* 118 E> */ B(Add), R(2), U8(8), |
- B(Star), R(3), |
+ B(Star), R(2), |
B(Ldar), R(1), |
- /* 125 E> */ B(Add), R(3), U8(9), |
+ /* 125 E> */ B(Add), R(2), U8(9), |
/* 128 S> */ B(Return), |
] |
constant pool: [ |
@@ -241,7 +241,7 @@ snippet: " |
var x = 17; |
return 1 + x + (x++) + (++x); |
" |
-frame size: 4 |
+frame size: 3 |
parameter count: 1 |
bytecode array length: 41 |
bytecodes: [ |
@@ -252,18 +252,18 @@ bytecodes: [ |
B(Star), R(1), |
B(Ldar), R(0), |
/* 57 E> */ B(Add), R(1), U8(2), |
- B(Star), R(2), |
+ B(Star), R(1), |
B(Ldar), R(0), |
- B(ToNumber), R(1), |
+ B(ToNumber), R(2), |
B(Inc), U8(3), |
B(Star), R(0), |
- B(Ldar), R(1), |
- /* 63 E> */ B(Add), R(2), U8(4), |
- B(Star), R(3), |
+ B(Ldar), R(2), |
+ /* 63 E> */ B(Add), R(1), U8(4), |
+ B(Star), R(1), |
B(Ldar), R(0), |
B(Inc), U8(5), |
B(Star), R(0), |
- /* 72 E> */ B(Add), R(3), U8(6), |
+ /* 72 E> */ B(Add), R(1), U8(6), |
/* 76 S> */ B(Return), |
] |
constant pool: [ |