| Index: test/cctest/interpreter/bytecode_expectations/ClassDeclarations.golden
|
| diff --git a/test/cctest/interpreter/bytecode_expectations/ClassDeclarations.golden b/test/cctest/interpreter/bytecode_expectations/ClassDeclarations.golden
|
| index 347b2e048096c75019fd911c21ebb6826e1e9aef..c71aad91746b1a61fbcdfd0d42f57e893da6d74f 100644
|
| --- a/test/cctest/interpreter/bytecode_expectations/ClassDeclarations.golden
|
| +++ b/test/cctest/interpreter/bytecode_expectations/ClassDeclarations.golden
|
| @@ -12,9 +12,9 @@ snippet: "
|
| speak() { console.log(this.name + ' is speaking.'); }
|
| }
|
| "
|
| -frame size: 8
|
| +frame size: 9
|
| parameter count: 1
|
| -bytecode array length: 72
|
| +bytecode array length: 76
|
| bytecodes: [
|
| B(LdaTheHole),
|
| B(Star), R(2),
|
| @@ -38,7 +38,9 @@ bytecodes: [
|
| B(CreateClosure), U8(3), U8(2),
|
| B(Star), R(7),
|
| B(LdaSmi), U8(2),
|
| - B(StaDataPropertyInLiteral), R(4), R(6), R(7), U8(1),
|
| + B(Star), R(8),
|
| + B(Ldar), R(7),
|
| + B(StaDataPropertyInLiteral), R(4), R(6), U8(1), U8(4),
|
| B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U8(1),
|
| B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1),
|
| B(Star), R(0),
|
| @@ -63,9 +65,9 @@ snippet: "
|
| speak() { console.log(this.name + ' is speaking.'); }
|
| }
|
| "
|
| -frame size: 8
|
| +frame size: 9
|
| parameter count: 1
|
| -bytecode array length: 72
|
| +bytecode array length: 76
|
| bytecodes: [
|
| B(LdaTheHole),
|
| B(Star), R(2),
|
| @@ -89,7 +91,9 @@ bytecodes: [
|
| B(CreateClosure), U8(3), U8(2),
|
| B(Star), R(7),
|
| B(LdaSmi), U8(2),
|
| - B(StaDataPropertyInLiteral), R(4), R(6), R(7), U8(1),
|
| + B(Star), R(8),
|
| + B(Ldar), R(7),
|
| + B(StaDataPropertyInLiteral), R(4), R(6), U8(1), U8(4),
|
| B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U8(1),
|
| B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1),
|
| B(Star), R(0),
|
| @@ -118,7 +122,7 @@ snippet: "
|
| "
|
| frame size: 10
|
| parameter count: 1
|
| -bytecode array length: 115
|
| +bytecode array length: 117
|
| bytecodes: [
|
| B(CreateFunctionContext), U8(2),
|
| B(PushContext), R(3),
|
| @@ -148,8 +152,9 @@ bytecodes: [
|
| B(CreateClosure), U8(4), U8(2),
|
| B(Star), R(8),
|
| B(LdaSmi), U8(2),
|
| - B(StaDataPropertyInLiteral), R(5), R(7), R(8), U8(3),
|
| B(Star), R(9),
|
| + B(Ldar), R(8),
|
| + B(StaDataPropertyInLiteral), R(5), R(7), U8(3), U8(4),
|
| B(LdaCurrentContextSlot), U8(5),
|
| /* 106 E> */ B(ToName), R(7),
|
| B(LdaConstant), U8(3),
|
| @@ -159,7 +164,7 @@ bytecodes: [
|
| B(CallRuntime), U16(Runtime::kThrowStaticPrototypeError), R(0), U8(0),
|
| B(CreateClosure), U8(5), U8(2),
|
| B(Star), R(8),
|
| - B(StaDataPropertyInLiteral), R(6), R(7), R(8), U8(3),
|
| + B(StaDataPropertyInLiteral), R(6), R(7), U8(3), U8(6),
|
| B(CallRuntime), U16(Runtime::kInstallClassNameAccessorWithCheck), R(4), U8(1),
|
| B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1),
|
| B(Star), R(0),
|
| @@ -231,9 +236,9 @@ snippet: "
|
| (class {})
|
| class E { static name () {}}
|
| "
|
| -frame size: 9
|
| +frame size: 10
|
| parameter count: 1
|
| -bytecode array length: 101
|
| +bytecode array length: 105
|
| bytecodes: [
|
| B(LdaTheHole),
|
| B(Star), R(3),
|
| @@ -271,7 +276,9 @@ bytecodes: [
|
| B(CreateClosure), U8(4), U8(2),
|
| B(Star), R(8),
|
| B(LdaSmi), U8(2),
|
| - B(StaDataPropertyInLiteral), R(4), R(7), R(8), U8(1),
|
| + B(Star), R(9),
|
| + B(Ldar), R(8),
|
| + B(StaDataPropertyInLiteral), R(4), R(7), U8(1), U8(6),
|
| B(CallRuntime), U16(Runtime::kToFastProperties), R(4), U8(1),
|
| B(Star), R(0),
|
| B(Star), R(2),
|
|
|