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

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

Issue 2917263002: Move generator-close on exception from the generator function to the GeneratorResume builtin. (Closed)
Patch Set: Add the builtins to the uncaught exception prediction list Created 3 years, 6 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/Modules.golden
diff --git a/test/cctest/interpreter/bytecode_expectations/Modules.golden b/test/cctest/interpreter/bytecode_expectations/Modules.golden
index de2ef763614602124c9124f726017063da861cc9..48f376c878bcd8e041f0d2530133654d9742901e 100644
--- a/test/cctest/interpreter/bytecode_expectations/Modules.golden
+++ b/test/cctest/interpreter/bytecode_expectations/Modules.golden
@@ -11,9 +11,9 @@ top level: yes
snippet: "
import \"bar\";
"
-frame size: 9
+frame size: 7
parameter count: 2
-bytecode array length: 141
+bytecode array length: 133
bytecodes: [
B(Mov), R(new_target), R(0),
B(Ldar), R(new_target),
@@ -56,14 +56,11 @@ bytecodes: [
B(Star), R(6),
B(LdaZero),
B(TestEqualStrictNoFeedback), R(6),
- B(JumpIfTrue), U8(22),
+ B(JumpIfTrue), U8(14),
B(LdaSmi), I8(2),
B(TestEqualStrictNoFeedback), R(6),
- B(JumpIfTrue), U8(13),
- B(LdaTrue),
- B(Star), R(8),
- B(Mov), R(5), R(7),
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7), U8(2),
+ B(JumpIfTrue), U8(5),
+ B(Ldar), R(5),
/* 13 S> */ B(Return),
B(Ldar), R(5),
/* 0 E> */ B(Throw),
@@ -87,9 +84,9 @@ handlers: [
snippet: "
import {foo} from \"bar\";
"
-frame size: 9
+frame size: 7
parameter count: 2
-bytecode array length: 141
+bytecode array length: 133
bytecodes: [
B(Mov), R(new_target), R(0),
B(Ldar), R(new_target),
@@ -132,14 +129,11 @@ bytecodes: [
B(Star), R(6),
B(LdaZero),
B(TestEqualStrictNoFeedback), R(6),
- B(JumpIfTrue), U8(22),
+ B(JumpIfTrue), U8(14),
B(LdaSmi), I8(2),
B(TestEqualStrictNoFeedback), R(6),
- B(JumpIfTrue), U8(13),
- B(LdaTrue),
- B(Star), R(8),
- B(Mov), R(5), R(7),
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7), U8(2),
+ B(JumpIfTrue), U8(5),
+ B(Ldar), R(5),
/* 24 S> */ B(Return),
B(Ldar), R(5),
/* 0 E> */ B(Throw),
@@ -165,9 +159,9 @@ snippet: "
goo(42);
{ let x; { goo(42) } };
"
-frame size: 9
+frame size: 7
parameter count: 2
-bytecode array length: 203
+bytecode array length: 195
bytecodes: [
B(Mov), R(new_target), R(0),
B(Ldar), R(new_target),
@@ -210,14 +204,11 @@ bytecodes: [
B(Star), R(6),
B(LdaZero),
B(TestEqualStrictNoFeedback), R(6),
- B(JumpIfTrue), U8(22),
+ B(JumpIfTrue), U8(14),
B(LdaSmi), I8(2),
B(TestEqualStrictNoFeedback), R(6),
- B(JumpIfTrue), U8(13),
- B(LdaTrue),
- B(Star), R(8),
- B(Mov), R(5), R(7),
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7), U8(2),
+ B(JumpIfTrue), U8(5),
+ B(Ldar), R(5),
/* 64 S> */ B(Return),
B(Ldar), R(5),
/* 0 E> */ B(Throw),
@@ -270,9 +261,9 @@ snippet: "
foo++;
{ let x; { foo++ } };
"
-frame size: 9
+frame size: 7
parameter count: 2
-bytecode array length: 183
+bytecode array length: 175
bytecodes: [
B(Mov), R(new_target), R(0),
B(Ldar), R(new_target),
@@ -315,14 +306,11 @@ bytecodes: [
B(Star), R(6),
B(LdaZero),
B(TestEqualStrictNoFeedback), R(6),
- B(JumpIfTrue), U8(22),
+ B(JumpIfTrue), U8(14),
B(LdaSmi), I8(2),
B(TestEqualStrictNoFeedback), R(6),
- B(JumpIfTrue), U8(13),
- B(LdaTrue),
- B(Star), R(8),
- B(Mov), R(5), R(7),
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7), U8(2),
+ B(JumpIfTrue), U8(5),
+ B(Ldar), R(5),
/* 49 S> */ B(Return),
B(Ldar), R(5),
/* 0 E> */ B(Throw),
@@ -367,9 +355,9 @@ snippet: "
foo++;
{ let x; { foo++ } };
"
-frame size: 9
+frame size: 7
parameter count: 2
-bytecode array length: 187
+bytecode array length: 179
bytecodes: [
B(Mov), R(new_target), R(0),
B(Ldar), R(new_target),
@@ -414,14 +402,11 @@ bytecodes: [
B(Star), R(6),
B(LdaZero),
B(TestEqualStrictNoFeedback), R(6),
- B(JumpIfTrue), U8(22),
+ B(JumpIfTrue), U8(14),
B(LdaSmi), I8(2),
B(TestEqualStrictNoFeedback), R(6),
- B(JumpIfTrue), U8(13),
- B(LdaTrue),
- B(Star), R(8),
- B(Mov), R(5), R(7),
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7), U8(2),
+ B(JumpIfTrue), U8(5),
+ B(Ldar), R(5),
/* 49 S> */ B(Return),
B(Ldar), R(5),
/* 0 E> */ B(Throw),
@@ -466,9 +451,9 @@ snippet: "
foo++;
{ let x; { foo++ } };
"
-frame size: 9
+frame size: 7
parameter count: 2
-bytecode array length: 191
+bytecode array length: 183
bytecodes: [
B(Mov), R(new_target), R(0),
B(Ldar), R(new_target),
@@ -513,14 +498,11 @@ bytecodes: [
B(Star), R(6),
B(LdaZero),
B(TestEqualStrictNoFeedback), R(6),
- B(JumpIfTrue), U8(22),
+ B(JumpIfTrue), U8(14),
B(LdaSmi), I8(2),
B(TestEqualStrictNoFeedback), R(6),
- B(JumpIfTrue), U8(13),
- B(LdaTrue),
- B(Star), R(8),
- B(Mov), R(5), R(7),
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7), U8(2),
+ B(JumpIfTrue), U8(5),
+ B(Ldar), R(5),
/* 51 S> */ B(Return),
B(Ldar), R(5),
/* 0 E> */ B(Throw),
@@ -563,9 +545,9 @@ handlers: [
snippet: "
export default (function () {});
"
-frame size: 9
+frame size: 7
parameter count: 2
-bytecode array length: 152
+bytecode array length: 144
bytecodes: [
B(Mov), R(new_target), R(0),
B(Ldar), R(new_target),
@@ -610,14 +592,11 @@ bytecodes: [
B(Star), R(6),
B(LdaZero),
B(TestEqualStrictNoFeedback), R(6),
- B(JumpIfTrue), U8(22),
+ B(JumpIfTrue), U8(14),
B(LdaSmi), I8(2),
B(TestEqualStrictNoFeedback), R(6),
- B(JumpIfTrue), U8(13),
- B(LdaTrue),
- B(Star), R(8),
- B(Mov), R(5), R(7),
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7), U8(2),
+ B(JumpIfTrue), U8(5),
+ B(Ldar), R(5),
/* 32 S> */ B(Return),
B(Ldar), R(5),
/* 0 E> */ B(Throw),
@@ -646,7 +625,7 @@ snippet: "
"
frame size: 9
parameter count: 2
-bytecode array length: 185
+bytecode array length: 177
bytecodes: [
B(Mov), R(new_target), R(0),
B(Ldar), R(new_target),
@@ -691,14 +670,11 @@ bytecodes: [
B(Star), R(6),
B(LdaZero),
B(TestEqualStrictNoFeedback), R(6),
- B(JumpIfTrue), U8(22),
+ B(JumpIfTrue), U8(14),
B(LdaSmi), I8(2),
B(TestEqualStrictNoFeedback), R(6),
- B(JumpIfTrue), U8(13),
- B(LdaTrue),
- B(Star), R(8),
- B(Mov), R(5), R(7),
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7), U8(2),
+ B(JumpIfTrue), U8(5),
+ B(Ldar), R(5),
/* 26 S> */ B(Return),
B(Ldar), R(5),
/* 0 E> */ B(Throw),
@@ -737,9 +713,9 @@ handlers: [
snippet: "
export {foo as goo} from \"bar\"
"
-frame size: 9
+frame size: 7
parameter count: 2
-bytecode array length: 141
+bytecode array length: 133
bytecodes: [
B(Mov), R(new_target), R(0),
B(Ldar), R(new_target),
@@ -782,14 +758,11 @@ bytecodes: [
B(Star), R(6),
B(LdaZero),
B(TestEqualStrictNoFeedback), R(6),
- B(JumpIfTrue), U8(22),
+ B(JumpIfTrue), U8(14),
B(LdaSmi), I8(2),
B(TestEqualStrictNoFeedback), R(6),
- B(JumpIfTrue), U8(13),
- B(LdaTrue),
- B(Star), R(8),
- B(Mov), R(5), R(7),
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7), U8(2),
+ B(JumpIfTrue), U8(5),
+ B(Ldar), R(5),
/* 30 S> */ B(Return),
B(Ldar), R(5),
/* 0 E> */ B(Throw),
@@ -813,9 +786,9 @@ handlers: [
snippet: "
export * from \"bar\"
"
-frame size: 9
+frame size: 7
parameter count: 2
-bytecode array length: 141
+bytecode array length: 133
bytecodes: [
B(Mov), R(new_target), R(0),
B(Ldar), R(new_target),
@@ -858,14 +831,11 @@ bytecodes: [
B(Star), R(6),
B(LdaZero),
B(TestEqualStrictNoFeedback), R(6),
- B(JumpIfTrue), U8(22),
+ B(JumpIfTrue), U8(14),
B(LdaSmi), I8(2),
B(TestEqualStrictNoFeedback), R(6),
- B(JumpIfTrue), U8(13),
- B(LdaTrue),
- B(Star), R(8),
- B(Mov), R(5), R(7),
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7), U8(2),
+ B(JumpIfTrue), U8(5),
+ B(Ldar), R(5),
/* 19 S> */ B(Return),
B(Ldar), R(5),
/* 0 E> */ B(Throw),
@@ -890,9 +860,9 @@ snippet: "
import * as foo from \"bar\"
foo.f(foo, foo.x);
"
-frame size: 9
+frame size: 8
parameter count: 2
-bytecode array length: 179
+bytecode array length: 171
bytecodes: [
B(Mov), R(new_target), R(0),
B(Ldar), R(new_target),
@@ -939,14 +909,11 @@ bytecodes: [
B(Star), R(6),
B(LdaZero),
B(TestEqualStrictNoFeedback), R(6),
- B(JumpIfTrue), U8(22),
+ B(JumpIfTrue), U8(14),
B(LdaSmi), I8(2),
B(TestEqualStrictNoFeedback), R(6),
- B(JumpIfTrue), U8(13),
- B(LdaTrue),
- B(Star), R(8),
- B(Mov), R(5), R(7),
- B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7), U8(2),
+ B(JumpIfTrue), U8(5),
+ B(Ldar), R(5),
/* 45 S> */ B(Return),
B(Ldar), R(5),
/* 0 E> */ B(Throw),

Powered by Google App Engine
This is Rietveld 408576698