| Index: test/cctest/interpreter/bytecode_expectations/StoreGlobal.golden
|
| diff --git a/test/cctest/interpreter/bytecode_expectations/StoreGlobal.golden b/test/cctest/interpreter/bytecode_expectations/StoreGlobal.golden
|
| index 4e0330ede3da5b0c297f94fb1d8ed8045a4fd78a..6bbad12b37b432679c1af0620810154fa226bdbc 100644
|
| --- a/test/cctest/interpreter/bytecode_expectations/StoreGlobal.golden
|
| +++ b/test/cctest/interpreter/bytecode_expectations/StoreGlobal.golden
|
| @@ -12,12 +12,14 @@ snippet: "
|
| function f() { a = 2; }
|
| f();
|
| "
|
| -frame size: 0
|
| +frame size: 1
|
| parameter count: 1
|
| -bytecode array length: 8
|
| +bytecode array length: 12
|
| bytecodes: [
|
| /* 21 E> */ B(StackCheck),
|
| - /* 26 S> */ B(LdaSmi), I8(2),
|
| + /* 26 S> */ B(LdaConstant), U8(0),
|
| + B(Star), R(0),
|
| + B(LdaSmi), I8(2),
|
| /* 28 E> */ B(StaGlobalSloppy), U8(0), U8(2),
|
| B(LdaUndefined),
|
| /* 33 S> */ B(Return),
|
| @@ -33,12 +35,14 @@ snippet: "
|
| var a = \"test\"; function f(b) { a = b; }
|
| f(\"global\");
|
| "
|
| -frame size: 0
|
| +frame size: 1
|
| parameter count: 2
|
| -bytecode array length: 8
|
| +bytecode array length: 12
|
| bytecodes: [
|
| /* 26 E> */ B(StackCheck),
|
| - /* 32 S> */ B(Ldar), R(arg0),
|
| + /* 32 S> */ B(LdaConstant), U8(0),
|
| + B(Star), R(0),
|
| + B(Ldar), R(arg0),
|
| /* 34 E> */ B(StaGlobalSloppy), U8(0), U8(2),
|
| B(LdaUndefined),
|
| /* 39 S> */ B(Return),
|
| @@ -55,12 +59,14 @@ snippet: "
|
| function f() { a = 2; }
|
| f();
|
| "
|
| -frame size: 0
|
| +frame size: 1
|
| parameter count: 1
|
| -bytecode array length: 8
|
| +bytecode array length: 12
|
| bytecodes: [
|
| /* 35 E> */ B(StackCheck),
|
| - /* 40 S> */ B(LdaSmi), I8(2),
|
| + /* 40 S> */ B(LdaConstant), U8(0),
|
| + B(Star), R(0),
|
| + B(LdaSmi), I8(2),
|
| /* 42 E> */ B(StaGlobalStrict), U8(0), U8(2),
|
| B(LdaUndefined),
|
| /* 47 S> */ B(Return),
|
| @@ -77,12 +83,14 @@ snippet: "
|
| function f() { a = 2; }
|
| f();
|
| "
|
| -frame size: 0
|
| +frame size: 1
|
| parameter count: 1
|
| -bytecode array length: 8
|
| +bytecode array length: 12
|
| bytecodes: [
|
| /* 17 E> */ B(StackCheck),
|
| - /* 22 S> */ B(LdaSmi), I8(2),
|
| + /* 22 S> */ B(LdaConstant), U8(0),
|
| + B(Star), R(0),
|
| + B(LdaSmi), I8(2),
|
| /* 24 E> */ B(StaGlobalSloppy), U8(0), U8(2),
|
| B(LdaUndefined),
|
| /* 29 S> */ B(Return),
|
| @@ -229,9 +237,9 @@ snippet: "
|
| }
|
| f({name: 1});
|
| "
|
| -frame size: 0
|
| +frame size: 1
|
| parameter count: 2
|
| -bytecode array length: 655
|
| +bytecode array length: 659
|
| bytecodes: [
|
| /* 17 E> */ B(StackCheck),
|
| /* 25 S> */ B(Nop),
|
| @@ -490,7 +498,9 @@ bytecodes: [
|
| /* 1286 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(254),
|
| /* 1295 S> */ B(Nop),
|
| /* 1296 E> */ B(Wide), B(LdaNamedProperty), R16(arg0), U16(0), U16(256),
|
| - /* 1305 S> */ B(LdaSmi), I8(2),
|
| + /* 1305 S> */ B(LdaConstant), U8(1),
|
| + B(Star), R(0),
|
| + B(LdaSmi), I8(2),
|
| /* 1307 E> */ B(Wide), B(StaGlobalSloppy), U16(1), U16(258),
|
| B(LdaUndefined),
|
| /* 1312 S> */ B(Return),
|
| @@ -639,9 +649,9 @@ snippet: "
|
| }
|
| f({name: 1});
|
| "
|
| -frame size: 0
|
| +frame size: 1
|
| parameter count: 2
|
| -bytecode array length: 655
|
| +bytecode array length: 659
|
| bytecodes: [
|
| /* 17 E> */ B(StackCheck),
|
| /* 41 S> */ B(Nop),
|
| @@ -900,7 +910,9 @@ bytecodes: [
|
| /* 1302 E> */ B(LdaNamedProperty), R(arg0), U8(0), U8(254),
|
| /* 1311 S> */ B(Nop),
|
| /* 1312 E> */ B(Wide), B(LdaNamedProperty), R16(arg0), U16(0), U16(256),
|
| - /* 1321 S> */ B(LdaSmi), I8(2),
|
| + /* 1321 S> */ B(LdaConstant), U8(1),
|
| + B(Star), R(0),
|
| + B(LdaSmi), I8(2),
|
| /* 1323 E> */ B(Wide), B(StaGlobalStrict), U16(1), U16(258),
|
| B(LdaUndefined),
|
| /* 1328 S> */ B(Return),
|
|
|