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

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

Issue 2557593004: [ignition] desugar GetIterator() via bytecode rather than via AST (Closed)
Patch Set: get tests passing Created 4 years 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/ForOf.golden
diff --git a/test/cctest/interpreter/bytecode_expectations/ForOf.golden b/test/cctest/interpreter/bytecode_expectations/ForOf.golden
index 21abc69caed20ccf596e1bb78cedfac68ea97125..22a9703b85d3dfa45f246a1f88eb524fc4566268 100644
--- a/test/cctest/interpreter/bytecode_expectations/ForOf.golden
+++ b/test/cctest/interpreter/bytecode_expectations/ForOf.golden
@@ -11,7 +11,7 @@ snippet: "
"
frame size: 15
parameter count: 1
-bytecode array length: 268
+bytecode array length: 274
bytecodes: [
/* 30 E> */ B(StackCheck),
B(LdaZero),
@@ -19,11 +19,12 @@ bytecodes: [
B(Mov), R(context), R(11),
B(Mov), R(context), R(12),
/* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(9),
- B(Star), R(14),
- B(LdaConstant), U8(1),
- /* 48 E> */ B(LdaKeyedProperty), R(14), U8(4),
B(Star), R(13),
- /* 48 E> */ B(CallProperty), R(13), R(14), U8(1), U8(2),
+ B(LdaNamedProperty), R(13), U8(1), U8(2),
+ B(Star), R(14),
+ B(CallProperty), R(14), R(13), U8(1), U8(4),
+ B(JumpIfJSReceiver), U8(7),
+ B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
caitp 2016/12/06 05:49:11 well, the other downside is how much bigger the by
rmcilroy 2016/12/06 15:02:28 I'm slightly confused by this - it looks like the
caitp 2016/12/06 15:14:58 These nodes were only added for yield* desugaring,
caitp 2016/12/06 16:07:07 Also note, not including the typecheck is an obser
B(Star), R(2),
/* 45 S> */ B(LdaNamedProperty), R(2), U8(2), U8(8),
B(Star), R(14),
@@ -142,9 +143,9 @@ constant pool: [
FIXED_ARRAY_TYPE,
]
handlers: [
- [7, 120, 126],
- [10, 84, 86],
- [195, 205, 207],
+ [7, 126, 132],
+ [10, 90, 92],
+ [201, 211, 213],
]
---
@@ -154,7 +155,7 @@ snippet: "
"
frame size: 16
parameter count: 1
-bytecode array length: 279
+bytecode array length: 288
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 42 S> */ B(LdaConstant), U8(0),
@@ -163,10 +164,12 @@ bytecodes: [
B(Star), R(5),
B(Mov), R(context), R(12),
B(Mov), R(context), R(13),
- /* 68 S> */ B(LdaConstant), U8(1),
- /* 68 E> */ B(LdaKeyedProperty), R(0), U8(4),
- B(Star), R(14),
- /* 68 E> */ B(CallProperty), R(14), R(0), U8(1), U8(2),
+ /* 68 S> */ B(LdaNamedProperty), R(0), U8(1), U8(2),
+ B(Star), R(15),
+ B(CallProperty), R(15), R(0), U8(1), U8(4),
+ B(Mov), R(0), R(14),
+ B(JumpIfJSReceiver), U8(7),
+ B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
B(Star), R(3),
/* 65 S> */ B(LdaNamedProperty), R(3), U8(2), U8(8),
B(Star), R(15),
@@ -291,9 +294,9 @@ constant pool: [
FIXED_ARRAY_TYPE,
]
handlers: [
- [11, 120, 126],
- [14, 84, 86],
- [196, 206, 208],
+ [11, 129, 135],
+ [14, 93, 95],
+ [205, 215, 217],
]
---
@@ -305,7 +308,7 @@ snippet: "
"
frame size: 15
parameter count: 1
-bytecode array length: 286
+bytecode array length: 292
bytecodes: [
/* 30 E> */ B(StackCheck),
B(LdaZero),
@@ -313,11 +316,12 @@ bytecodes: [
B(Mov), R(context), R(11),
B(Mov), R(context), R(12),
/* 48 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(9),
- B(Star), R(14),
- B(LdaConstant), U8(1),
- /* 48 E> */ B(LdaKeyedProperty), R(14), U8(4),
B(Star), R(13),
- /* 48 E> */ B(CallProperty), R(13), R(14), U8(1), U8(2),
+ B(LdaNamedProperty), R(13), U8(1), U8(2),
+ B(Star), R(14),
+ B(CallProperty), R(14), R(13), U8(1), U8(4),
+ B(JumpIfJSReceiver), U8(7),
+ B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
B(Star), R(2),
/* 45 S> */ B(LdaNamedProperty), R(2), U8(2), U8(8),
B(Star), R(14),
@@ -444,9 +448,9 @@ constant pool: [
FIXED_ARRAY_TYPE,
]
handlers: [
- [7, 138, 144],
- [10, 102, 104],
- [213, 223, 225],
+ [7, 144, 150],
+ [10, 108, 110],
+ [219, 229, 231],
]
---
@@ -456,7 +460,7 @@ snippet: "
"
frame size: 14
parameter count: 1
-bytecode array length: 293
+bytecode array length: 299
bytecodes: [
/* 30 E> */ B(StackCheck),
/* 42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(1), R(8),
@@ -466,11 +470,12 @@ bytecodes: [
B(Mov), R(context), R(10),
B(Mov), R(context), R(11),
/* 77 S> */ B(CreateArrayLiteral), U8(1), U8(1), U8(9),
- B(Star), R(13),
- B(LdaConstant), U8(2),
- /* 77 E> */ B(LdaKeyedProperty), R(13), U8(4),
B(Star), R(12),
- /* 77 E> */ B(CallProperty), R(12), R(13), U8(1), U8(2),
+ B(LdaNamedProperty), R(12), U8(2), U8(2),
+ B(Star), R(13),
+ B(CallProperty), R(13), R(12), U8(1), U8(4),
+ B(JumpIfJSReceiver), U8(7),
+ B(CallRuntime), U16(Runtime::kThrowSymbolIteratorInvalid), R(0), U8(0),
B(Star), R(1),
/* 74 S> */ B(LdaNamedProperty), R(1), U8(3), U8(8),
B(Star), R(13),
@@ -599,8 +604,8 @@ constant pool: [
FIXED_ARRAY_TYPE,
]
handlers: [
- [15, 134, 140],
- [18, 98, 100],
- [210, 220, 222],
+ [15, 140, 146],
+ [18, 104, 106],
+ [216, 226, 228],
]

Powered by Google App Engine
This is Rietveld 408576698