Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Unified Diff: test/cctest/interpreter/bytecode_expectations/ClassAndSuperClass.golden

Issue 2614053002: Improve error message for calling super() twice in a derived constructor (Closed)
Patch Set: Merged Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 ef8b9c5f5dc9ea58dbaadbd95ba432da0b44e6f9..0c41685b864c64e9276f71488555f18533bad395 100644
--- a/test/cctest/interpreter/bytecode_expectations/ClassAndSuperClass.golden
+++ b/test/cctest/interpreter/bytecode_expectations/ClassAndSuperClass.golden
@@ -107,7 +107,7 @@ snippet: "
"
frame size: 4
parameter count: 1
-bytecode array length: 79
+bytecode array length: 75
bytecodes: [
B(Mov), R(closure), R(1),
B(Mov), R(new_target), R(0),
@@ -122,10 +122,8 @@ bytecodes: [
B(Star), R(2),
B(Ldar), R(this),
B(JumpIfNotHole), U8(4),
- B(Jump), U8(11),
- B(LdaConstant), U8(0),
- B(Star), R(3),
- /* 118 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
+ B(Jump), U8(7),
+ /* 118 E> */ B(CallRuntime), U16(Runtime::kThrowSuperAlreadyCalledError), R(0), U8(0),
B(Mov), R(2), R(this),
/* 128 S> */ B(Ldar), R(this),
B(JumpIfNotHole), U8(11),
@@ -162,9 +160,9 @@ snippet: "
test = new B().constructor;
})();
"
-frame size: 4
+frame size: 3
parameter count: 1
-bytecode array length: 75
+bytecode array length: 71
bytecodes: [
B(Mov), R(closure), R(1),
B(Mov), R(new_target), R(0),
@@ -177,10 +175,8 @@ bytecodes: [
B(Star), R(2),
B(Ldar), R(this),
B(JumpIfNotHole), U8(4),
- B(Jump), U8(11),
- B(LdaConstant), U8(0),
- B(Star), R(3),
- /* 117 E> */ B(CallRuntime), U16(Runtime::kThrowReferenceError), R(3), U8(1),
+ B(Jump), U8(7),
+ /* 117 E> */ B(CallRuntime), U16(Runtime::kThrowSuperAlreadyCalledError), R(0), U8(0),
B(Mov), R(2), R(this),
/* 126 S> */ B(Ldar), R(this),
B(JumpIfNotHole), U8(11),
« no previous file with comments | « src/runtime/runtime-classes.cc ('k') | test/cctest/interpreter/bytecode_expectations/SuperCallAndSpread.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698