Index: test/cctest/interpreter/bytecode_expectations/ClassAndSuperClass.golden |
diff --git a/test/cctest/interpreter/bytecode_expectations/ClassAndSuperClass.golden b/test/cctest/interpreter/bytecode_expectations/ClassAndSuperClass.golden |
index 9316f65b3f86a6c75d063038affdc52017643d78..066c630d8b9c698de057a9e5d7038cb82dbb5156 100644 |
--- a/test/cctest/interpreter/bytecode_expectations/ClassAndSuperClass.golden |
+++ b/test/cctest/interpreter/bytecode_expectations/ClassAndSuperClass.golden |
@@ -61,23 +61,24 @@ snippet: " |
test(); |
})(); |
" |
-frame size: 5 |
+frame size: 6 |
parameter count: 1 |
-bytecode array length: 47 |
+bytecode array length: 50 |
bytecodes: [ |
B(Mov), R(closure), R(0), |
/* 125 E> */ B(StackCheck), |
/* 130 S> */ B(LdaConstant), U8(0), |
/* 130 E> */ B(LdaKeyedProperty), R(closure), U8(2), |
- B(Star), R(2), |
- B(LdaConstant), U8(1), |
B(Star), R(3), |
+ B(LdaConstant), U8(1), |
+ B(Star), R(1), |
B(LdaSmi), I8(2), |
- B(Star), R(4), |
- B(Mov), R(this), R(1), |
- /* 138 E> */ B(CallRuntime), U16(Runtime::kStoreToSuper_Strict), R(1), U8(4), |
+ B(Star), R(5), |
+ B(Mov), R(this), R(2), |
+ B(Mov), R(1), R(4), |
+ /* 138 E> */ B(CallRuntime), U16(Runtime::kStoreToSuper_Strict), R(2), U8(4), |
/* 143 S> */ B(LdaConstant), U8(0), |
- /* 150 E> */ B(LdaKeyedProperty), R(closure), U8(4), |
+ /* 150 E> */ B(LdaKeyedProperty), R(closure), U8(6), |
B(Star), R(2), |
B(LdaConstant), U8(1), |
B(Star), R(3), |
@@ -105,34 +106,38 @@ snippet: " |
test = new B().constructor; |
})(); |
" |
-frame size: 4 |
+frame size: 5 |
parameter count: 1 |
-bytecode array length: 75 |
+bytecode array length: 83 |
bytecodes: [ |
B(Mov), R(closure), R(1), |
B(Mov), R(new_target), R(0), |
B(Ldar), R(new_target), |
/* 113 E> */ B(StackCheck), |
- /* 118 S> */ B(Ldar), R(1), |
- B(GetSuperConstructor), R(2), |
+ /* 118 S> */ B(LdaConstant), U8(0), |
+ B(Star), R(2), |
+ B(Ldar), R(1), |
+ /* 118 E> */ B(GetSuperConstructor), R(3), |
B(LdaSmi), I8(1), |
- B(Star), R(3), |
+ B(Star), R(4), |
B(Ldar), R(0), |
- /* 118 E> */ B(Construct), R(2), R(3), U8(1), U8(2), |
- B(Star), R(2), |
+ /* 118 E> */ B(Construct), R(3), R(4), U8(1), U8(2), |
+ B(Star), R(3), |
B(Ldar), R(this), |
B(JumpIfNotHole), U8(4), |
B(Jump), U8(7), |
/* 118 E> */ B(CallRuntime), U16(Runtime::kThrowSuperAlreadyCalledError), R(0), U8(0), |
- B(Mov), R(2), R(this), |
+ B(Mov), R(3), R(this), |
/* 128 S> */ B(Ldar), R(this), |
B(JumpIfNotHole), U8(11), |
B(LdaConstant), U8(0), |
- B(Star), R(2), |
- B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
+ B(Star), R(3), |
+ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
+ B(Star), R(3), |
+ B(LdaConstant), U8(1), |
B(Star), R(2), |
B(LdaSmi), I8(2), |
- /* 136 E> */ B(StaNamedPropertyStrict), R(2), U8(1), U8(4), |
+ /* 136 E> */ B(StaNamedPropertyStrict), R(3), U8(1), U8(6), |
B(Ldar), R(this), |
B(JumpIfNotHole), U8(11), |
B(LdaConstant), U8(0), |
@@ -160,32 +165,36 @@ snippet: " |
test = new B().constructor; |
})(); |
" |
-frame size: 3 |
+frame size: 4 |
parameter count: 1 |
-bytecode array length: 71 |
+bytecode array length: 79 |
bytecodes: [ |
B(Mov), R(closure), R(1), |
B(Mov), R(new_target), R(0), |
B(Ldar), R(new_target), |
/* 112 E> */ B(StackCheck), |
- /* 117 S> */ B(Ldar), R(1), |
- B(GetSuperConstructor), R(2), |
- B(Ldar), R(0), |
- /* 117 E> */ B(Construct), R(2), R(0), U8(0), U8(2), |
+ /* 117 S> */ B(LdaConstant), U8(0), |
B(Star), R(2), |
+ B(Ldar), R(1), |
+ /* 117 E> */ B(GetSuperConstructor), R(3), |
+ B(Ldar), R(0), |
+ /* 117 E> */ B(Construct), R(3), R(0), U8(0), U8(2), |
+ B(Star), R(3), |
B(Ldar), R(this), |
B(JumpIfNotHole), U8(4), |
B(Jump), U8(7), |
/* 117 E> */ B(CallRuntime), U16(Runtime::kThrowSuperAlreadyCalledError), R(0), U8(0), |
- B(Mov), R(2), R(this), |
+ B(Mov), R(3), R(this), |
/* 126 S> */ B(Ldar), R(this), |
B(JumpIfNotHole), U8(11), |
B(LdaConstant), U8(0), |
- B(Star), R(2), |
- B(CallRuntime), U16(Runtime::kThrowReferenceError), R(2), U8(1), |
+ B(Star), R(3), |
+ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1), |
+ B(Star), R(3), |
+ B(LdaConstant), U8(1), |
B(Star), R(2), |
B(LdaSmi), I8(2), |
- /* 134 E> */ B(StaNamedPropertyStrict), R(2), U8(1), U8(4), |
+ /* 134 E> */ B(StaNamedPropertyStrict), R(3), U8(1), U8(6), |
B(Ldar), R(this), |
B(JumpIfNotHole), U8(11), |
B(LdaConstant), U8(0), |