| Index: test/cctest/interpreter/bytecode_expectations/CompoundExpressions.golden
|
| diff --git a/test/cctest/interpreter/bytecode_expectations/CompoundExpressions.golden b/test/cctest/interpreter/bytecode_expectations/CompoundExpressions.golden
|
| index 620031bf27912cf6b2e4f041b68f1f9e70405ff5..7486d06a74b4c15ebdd0e99422900dc8ab5d6cd8 100644
|
| --- a/test/cctest/interpreter/bytecode_expectations/CompoundExpressions.golden
|
| +++ b/test/cctest/interpreter/bytecode_expectations/CompoundExpressions.golden
|
| @@ -9,15 +9,15 @@ wrap: yes
|
| snippet: "
|
| var a = 1; a += 2;
|
| "
|
| -frame size: 2
|
| +frame size: 3
|
| parameter count: 1
|
| bytecode array length: 16
|
| bytecodes: [
|
| /* 30 E> */ B(StackCheck),
|
| /* 42 S> */ B(LdaSmi), I8(1),
|
| B(Star), R(0),
|
| - /* 45 S> */ B(AddSmi), I8(2), R(0), U8(2),
|
| - B(Mov), R(0), R(1),
|
| + /* 45 S> */ B(AddSmi), I8(2), R(0), U8(4),
|
| + B(Mov), R(0), R(2),
|
| B(Star), R(0),
|
| B(LdaUndefined),
|
| /* 53 S> */ B(Return),
|
| @@ -31,7 +31,7 @@ handlers: [
|
| snippet: "
|
| var a = 1; a /= 2;
|
| "
|
| -frame size: 2
|
| +frame size: 3
|
| parameter count: 1
|
| bytecode array length: 17
|
| bytecodes: [
|
| @@ -39,8 +39,8 @@ bytecodes: [
|
| /* 42 S> */ B(LdaSmi), I8(1),
|
| B(Star), R(0),
|
| /* 45 S> */ B(LdaSmi), I8(2),
|
| - B(Div), R(0), U8(2),
|
| - B(Mov), R(0), R(1),
|
| + B(Div), R(0), U8(4),
|
| + B(Mov), R(0), R(2),
|
| B(Star), R(0),
|
| B(LdaUndefined),
|
| /* 53 S> */ B(Return),
|
| @@ -54,18 +54,18 @@ handlers: [
|
| snippet: "
|
| var a = { val: 2 }; a.name *= 2;
|
| "
|
| -frame size: 3
|
| +frame size: 4
|
| parameter count: 1
|
| bytecode array length: 26
|
| bytecodes: [
|
| /* 30 E> */ B(StackCheck),
|
| - /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(1),
|
| - B(Mov), R(1), R(0),
|
| - /* 54 S> */ B(LdaNamedProperty), R(0), U8(1), U8(3),
|
| - B(Star), R(2),
|
| + /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(2),
|
| + B(Mov), R(2), R(0),
|
| + /* 54 S> */ B(LdaNamedProperty), R(0), U8(1), U8(5),
|
| + B(Star), R(3),
|
| B(LdaSmi), I8(2),
|
| - B(Mul), R(2), U8(5),
|
| - /* 61 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(6),
|
| + B(Mul), R(3), U8(7),
|
| + /* 61 E> */ B(StaNamedPropertySloppy), R(0), U8(1), U8(8),
|
| B(LdaUndefined),
|
| /* 67 S> */ B(Return),
|
| ]
|
| @@ -80,20 +80,20 @@ handlers: [
|
| snippet: "
|
| var a = { 1: 2 }; a[1] ^= 2;
|
| "
|
| -frame size: 4
|
| +frame size: 5
|
| parameter count: 1
|
| bytecode array length: 29
|
| bytecodes: [
|
| /* 30 E> */ B(StackCheck),
|
| - /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(1),
|
| - B(Mov), R(1), R(0),
|
| + /* 42 S> */ B(CreateObjectLiteral), U8(0), U8(2), U8(1), R(2),
|
| + B(Mov), R(2), R(0),
|
| /* 52 S> */ B(LdaSmi), I8(1),
|
| - B(Star), R(2),
|
| - B(LdaKeyedProperty), R(0), U8(3),
|
| B(Star), R(3),
|
| + B(LdaKeyedProperty), R(0), U8(5),
|
| + B(Star), R(4),
|
| B(LdaSmi), I8(2),
|
| - B(BitwiseXor), R(3), U8(5),
|
| - /* 57 E> */ B(StaKeyedPropertySloppy), R(0), R(2), U8(6),
|
| + B(BitwiseXor), R(4), U8(7),
|
| + /* 57 E> */ B(StaKeyedPropertySloppy), R(0), R(3), U8(8),
|
| B(LdaUndefined),
|
| /* 63 S> */ B(Return),
|
| ]
|
| @@ -107,7 +107,7 @@ handlers: [
|
| snippet: "
|
| var a = 1; (function f() { return a; }); a |= 24;
|
| "
|
| -frame size: 2
|
| +frame size: 3
|
| parameter count: 1
|
| bytecode array length: 25
|
| bytecodes: [
|
| @@ -116,10 +116,10 @@ bytecodes: [
|
| /* 30 E> */ B(StackCheck),
|
| /* 42 S> */ B(LdaSmi), I8(1),
|
| /* 42 E> */ B(StaCurrentContextSlot), U8(4),
|
| - /* 45 S> */ B(CreateClosure), U8(0), U8(2), U8(2),
|
| + /* 45 S> */ B(CreateClosure), U8(0), U8(4), U8(2),
|
| /* 75 S> */ B(LdaCurrentContextSlot), U8(4),
|
| - B(Star), R(1),
|
| - B(BitwiseOrSmi), I8(24), R(1), U8(3),
|
| + B(Star), R(2),
|
| + B(BitwiseOrSmi), I8(24), R(2), U8(5),
|
| /* 77 E> */ B(StaCurrentContextSlot), U8(4),
|
| B(LdaUndefined),
|
| /* 84 S> */ B(Return),
|
|
|