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

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

Issue 2889973002: [Interpreter] Handle various generator intrinsics (Closed)
Patch Set: REBASE. Created 3 years, 7 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
« no previous file with comments | « src/runtime/runtime-generator.cc ('k') | test/cctest/interpreter/bytecode_expectations/ForOfLoop.golden » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/interpreter/bytecode_expectations/ForAwaitOf.golden
diff --git a/test/cctest/interpreter/bytecode_expectations/ForAwaitOf.golden b/test/cctest/interpreter/bytecode_expectations/ForAwaitOf.golden
index bf020a9ecad048f48ada67b78b1fa44ce2e675c5..afeb5627d789750a96b1a7a4157d31c460fd1866 100644
--- a/test/cctest/interpreter/bytecode_expectations/ForAwaitOf.golden
+++ b/test/cctest/interpreter/bytecode_expectations/ForAwaitOf.golden
@@ -16,11 +16,11 @@ snippet: "
"
frame size: 18
parameter count: 1
-bytecode array length: 953
+bytecode array length: 946
bytecodes: [
B(Ldar), R(new_target),
- B(JumpIfUndefined), U8(26),
- B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
+ B(JumpIfUndefined), U8(25),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
B(PushContext), R(4),
B(ResumeGenerator), R(new_target),
B(Star), R(3),
@@ -100,9 +100,9 @@ bytecodes: [
/* 57 S> */ B(Return),
B(LdaSmi), I8(-2),
B(Star), R(3),
- B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(13), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(13), U8(1),
B(Star), R(14),
- B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(13), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(13), U8(1),
B(Star), R(15),
B(LdaZero),
B(TestEqualStrictNoFeedback), R(15),
@@ -151,7 +151,7 @@ bytecodes: [
B(PopContext), R(2),
B(LdaZero),
B(StaContextSlot), R(1), U8(8), U8(0),
- B(JumpLoop), U8(221), I8(0),
+ B(JumpLoop), U8(219), I8(0),
B(Jump), U8(48),
B(Star), R(13),
B(Ldar), R(closure),
@@ -198,7 +198,7 @@ bytecodes: [
B(Star), R(12),
B(LdaSmi), I8(1),
B(TestEqualStrict), R(12), U8(25),
- B(JumpIfFalse), U8(177),
+ B(JumpIfFalse), U8(175),
B(LdaContextSlot), R(1), U8(12), U8(0),
B(TestTypeOf), U8(5),
B(JumpIfFalse), U8(4),
@@ -235,9 +235,9 @@ bytecodes: [
/* 57 S> */ B(Return),
B(LdaSmi), I8(-2),
B(Star), R(3),
- B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(13), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(13), U8(1),
B(Star), R(14),
- B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(13), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(13), U8(1),
B(Star), R(15),
B(LdaZero),
B(TestEqualStrictNoFeedback), R(15),
@@ -270,7 +270,7 @@ bytecodes: [
B(Ldar), R(12),
B(PushContext), R(2),
B(PopContext), R(2),
- B(Jump), U8(155),
+ B(Jump), U8(153),
B(LdaImmutableContextSlot), R(1), U8(4), U8(0),
B(Star), R(12),
B(LdaContextSlot), R(1), U8(12), U8(0),
@@ -296,9 +296,9 @@ bytecodes: [
/* 57 S> */ B(Return),
B(LdaSmi), I8(-2),
B(Star), R(3),
- B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(12), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(12), U8(1),
B(Star), R(13),
- B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(12), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(12), U8(1),
B(Star), R(14),
B(LdaZero),
B(TestEqualStrictNoFeedback), R(14),
@@ -413,8 +413,8 @@ bytecodes: [
]
constant pool: [
Smi [116],
- Smi [546],
- Smi [692],
+ Smi [544],
+ Smi [688],
FIXED_ARRAY_TYPE,
TUPLE2_TYPE,
SYMBOL_TYPE,
@@ -429,21 +429,21 @@ constant pool: [
ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
FIXED_ARRAY_TYPE,
- Smi [343],
- Smi [366],
+ Smi [339],
+ Smi [362],
Smi [6],
Smi [22],
FIXED_ARRAY_TYPE,
- Smi [306],
+ Smi [304],
Smi [6],
Smi [9],
]
handlers: [
- [61, 907, 913],
- [64, 854, 856],
- [81, 403, 409],
- [84, 355, 357],
- [496, 620, 622],
+ [60, 900, 906],
+ [63, 847, 849],
+ [80, 400, 406],
+ [83, 352, 354],
+ [493, 615, 617],
]
---
@@ -455,11 +455,11 @@ snippet: "
"
frame size: 18
parameter count: 1
-bytecode array length: 999
+bytecode array length: 992
bytecodes: [
B(Ldar), R(new_target),
- B(JumpIfUndefined), U8(26),
- B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
+ B(JumpIfUndefined), U8(25),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
B(PushContext), R(4),
B(ResumeGenerator), R(new_target),
B(Star), R(3),
@@ -539,9 +539,9 @@ bytecodes: [
/* 68 S> */ B(Return),
B(LdaSmi), I8(-2),
B(Star), R(3),
- B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(13), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(13), U8(1),
B(Star), R(14),
- B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(13), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(13), U8(1),
B(Star), R(15),
B(LdaZero),
B(TestEqualStrictNoFeedback), R(15),
@@ -644,7 +644,7 @@ bytecodes: [
B(Star), R(12),
B(LdaSmi), I8(1),
B(TestEqualStrict), R(12), U8(25),
- B(JumpIfFalse), U8(177),
+ B(JumpIfFalse), U8(175),
B(LdaContextSlot), R(1), U8(12), U8(0),
B(TestTypeOf), U8(5),
B(JumpIfFalse), U8(4),
@@ -681,9 +681,9 @@ bytecodes: [
/* 68 S> */ B(Return),
B(LdaSmi), I8(-2),
B(Star), R(3),
- B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(13), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(13), U8(1),
B(Star), R(14),
- B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(13), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(13), U8(1),
B(Star), R(15),
B(LdaZero),
B(TestEqualStrictNoFeedback), R(15),
@@ -716,7 +716,7 @@ bytecodes: [
B(Ldar), R(12),
B(PushContext), R(2),
B(PopContext), R(2),
- B(Jump), U8(155),
+ B(Jump), U8(153),
B(LdaImmutableContextSlot), R(1), U8(4), U8(0),
B(Star), R(12),
B(LdaContextSlot), R(1), U8(12), U8(0),
@@ -742,9 +742,9 @@ bytecodes: [
/* 68 S> */ B(Return),
B(LdaSmi), I8(-2),
B(Star), R(3),
- B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(12), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(12), U8(1),
B(Star), R(13),
- B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(12), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(12), U8(1),
B(Star), R(14),
B(LdaZero),
B(TestEqualStrictNoFeedback), R(14),
@@ -875,8 +875,8 @@ bytecodes: [
]
constant pool: [
Smi [116],
- Smi [558],
- Smi [704],
+ Smi [556],
+ Smi [700],
FIXED_ARRAY_TYPE,
TUPLE2_TYPE,
SYMBOL_TYPE,
@@ -891,23 +891,23 @@ constant pool: [
ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
FIXED_ARRAY_TYPE,
- Smi [343],
- Smi [366],
+ Smi [339],
+ Smi [362],
Smi [6],
Smi [22],
Smi [39],
FIXED_ARRAY_TYPE,
- Smi [323],
+ Smi [321],
Smi [6],
Smi [9],
Smi [26],
]
handlers: [
- [61, 936, 942],
- [64, 883, 885],
- [81, 415, 421],
- [84, 367, 369],
- [508, 632, 634],
+ [60, 929, 935],
+ [63, 876, 878],
+ [80, 412, 418],
+ [83, 364, 366],
+ [505, 627, 629],
]
---
@@ -922,11 +922,11 @@ snippet: "
"
frame size: 18
parameter count: 1
-bytecode array length: 987
+bytecode array length: 980
bytecodes: [
B(Ldar), R(new_target),
- B(JumpIfUndefined), U8(26),
- B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
+ B(JumpIfUndefined), U8(25),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_target), U8(1),
B(PushContext), R(4),
B(ResumeGenerator), R(new_target),
B(Star), R(3),
@@ -1006,9 +1006,9 @@ bytecodes: [
/* 114 S> */ B(Return),
B(LdaSmi), I8(-2),
B(Star), R(3),
- B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(13), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(13), U8(1),
B(Star), R(14),
- B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(13), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(13), U8(1),
B(Star), R(15),
B(LdaZero),
B(TestEqualStrictNoFeedback), R(15),
@@ -1073,7 +1073,7 @@ bytecodes: [
B(PopContext), R(2),
B(LdaZero),
B(StaContextSlot), R(1), U8(8), U8(0),
- B(JumpLoop), U8(255), I8(0),
+ B(JumpLoop), U8(253), I8(0),
B(Jump), U8(48),
B(Star), R(13),
B(Ldar), R(closure),
@@ -1120,7 +1120,7 @@ bytecodes: [
B(Star), R(12),
B(LdaSmi), I8(1),
B(TestEqualStrict), R(12), U8(27),
- B(JumpIfFalse), U8(177),
+ B(JumpIfFalse), U8(175),
B(LdaContextSlot), R(1), U8(12), U8(0),
B(TestTypeOf), U8(5),
B(JumpIfFalse), U8(4),
@@ -1157,9 +1157,9 @@ bytecodes: [
/* 114 S> */ B(Return),
B(LdaSmi), I8(-2),
B(Star), R(3),
- B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(13), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(13), U8(1),
B(Star), R(14),
- B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(13), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(13), U8(1),
B(Star), R(15),
B(LdaZero),
B(TestEqualStrictNoFeedback), R(15),
@@ -1192,7 +1192,7 @@ bytecodes: [
B(Ldar), R(12),
B(PushContext), R(2),
B(PopContext), R(2),
- B(Jump), U8(155),
+ B(Jump), U8(153),
B(LdaImmutableContextSlot), R(1), U8(4), U8(0),
B(Star), R(12),
B(LdaContextSlot), R(1), U8(12), U8(0),
@@ -1218,9 +1218,9 @@ bytecodes: [
/* 114 S> */ B(Return),
B(LdaSmi), I8(-2),
B(Star), R(3),
- B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(12), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetInputOrDebugPos), R(12), U8(1),
B(Star), R(13),
- B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(12), U8(1),
+ B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetResumeMode), R(12), U8(1),
B(Star), R(14),
B(LdaZero),
B(TestEqualStrictNoFeedback), R(14),
@@ -1335,8 +1335,8 @@ bytecodes: [
]
constant pool: [
Smi [116],
- Smi [580],
- Smi [726],
+ Smi [578],
+ Smi [722],
FIXED_ARRAY_TYPE,
TUPLE2_TYPE,
SYMBOL_TYPE,
@@ -1351,21 +1351,21 @@ constant pool: [
ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
FIXED_ARRAY_TYPE,
- Smi [343],
- Smi [366],
+ Smi [339],
+ Smi [362],
Smi [6],
Smi [22],
FIXED_ARRAY_TYPE,
- Smi [306],
+ Smi [304],
Smi [6],
Smi [9],
]
handlers: [
- [61, 941, 947],
- [64, 888, 890],
- [81, 437, 443],
- [84, 389, 391],
- [530, 654, 656],
+ [60, 934, 940],
+ [63, 881, 883],
+ [80, 434, 440],
+ [83, 386, 388],
+ [527, 649, 651],
]
---
« no previous file with comments | « src/runtime/runtime-generator.cc ('k') | test/cctest/interpreter/bytecode_expectations/ForOfLoop.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698