GenerateTestUndetectable.golden 5.16 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#
# Autogenerated by generate-bytecode-expectations.
#

---
wrap: yes

---
snippet: "
  var obj_a = {val:1};
  var b = 10;
  if (obj_a == null) { b = 20;}
  return b;
"
15
frame size: 2
16
parameter count: 1
17
bytecode array length: 23
18 19
bytecodes: [
  /*   30 E> */ B(StackCheck),
20 21
  /*   46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41),
                B(Star), R(0),
22
  /*   63 S> */ B(LdaSmi), I8(10),
23
                B(Star), R(1),
24 25
  /*   67 S> */ B(Ldar), R(0),
                B(TestUndetectable),
26
                B(JumpIfFalse), U8(6),
27
  /*   88 S> */ B(LdaSmi), I8(20),
28 29
                B(Star), R(1),
  /*   97 S> */ B(Ldar), R(1),
30
  /*  106 S> */ B(Return),
31 32
]
constant pool: [
33
  OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
34 35 36 37 38 39 40 41 42 43 44
]
handlers: [
]

---
snippet: "
  var obj_a = {val:1};
  var b = 10;
  if (obj_a == undefined) { b = 20;}
  return b;
"
45
frame size: 2
46
parameter count: 1
47
bytecode array length: 23
48 49
bytecodes: [
  /*   30 E> */ B(StackCheck),
50 51
  /*   46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41),
                B(Star), R(0),
52
  /*   63 S> */ B(LdaSmi), I8(10),
53
                B(Star), R(1),
54 55
  /*   67 S> */ B(Ldar), R(0),
                B(TestUndetectable),
56
                B(JumpIfFalse), U8(6),
57
  /*   93 S> */ B(LdaSmi), I8(20),
58 59
                B(Star), R(1),
  /*  102 S> */ B(Ldar), R(1),
60
  /*  111 S> */ B(Return),
61 62
]
constant pool: [
63
  OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
64 65 66 67 68 69 70 71 72 73 74
]
handlers: [
]

---
snippet: "
  var obj_a = {val:1};
  var b = 10;
  if (obj_a != null) { b = 20;}
  return b;
"
75
frame size: 2
76
parameter count: 1
77
bytecode array length: 23
78 79
bytecodes: [
  /*   30 E> */ B(StackCheck),
80 81
  /*   46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41),
                B(Star), R(0),
82
  /*   63 S> */ B(LdaSmi), I8(10),
83
                B(Star), R(1),
84 85
  /*   67 S> */ B(Ldar), R(0),
                B(TestUndetectable),
86
                B(JumpIfTrue), U8(6),
87
  /*   88 S> */ B(LdaSmi), I8(20),
88 89
                B(Star), R(1),
  /*   97 S> */ B(Ldar), R(1),
90
  /*  106 S> */ B(Return),
91 92
]
constant pool: [
93
  OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
94 95 96 97 98 99 100 101 102 103 104
]
handlers: [
]

---
snippet: "
  var obj_a = {val:1};
  var b = 10;
  if (obj_a != undefined) { b = 20;}
  return b;
"
105
frame size: 2
106
parameter count: 1
107
bytecode array length: 23
108 109
bytecodes: [
  /*   30 E> */ B(StackCheck),
110 111
  /*   46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41),
                B(Star), R(0),
112
  /*   63 S> */ B(LdaSmi), I8(10),
113
                B(Star), R(1),
114 115
  /*   67 S> */ B(Ldar), R(0),
                B(TestUndetectable),
116
                B(JumpIfTrue), U8(6),
117
  /*   93 S> */ B(LdaSmi), I8(20),
118 119
                B(Star), R(1),
  /*  102 S> */ B(Ldar), R(1),
120
  /*  111 S> */ B(Return),
121 122
]
constant pool: [
123
  OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
124 125 126 127
]
handlers: [
]

128 129 130 131 132 133 134
---
snippet: "
  var obj_a = {val:1};
  var b = 10;
  if (obj_a === null) { b = 20;}
  return b;
"
135
frame size: 2
136
parameter count: 1
137
bytecode array length: 22
138 139
bytecodes: [
  /*   30 E> */ B(StackCheck),
140 141
  /*   46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41),
                B(Star), R(0),
142
  /*   63 S> */ B(LdaSmi), I8(10),
143
                B(Star), R(1),
144 145
  /*   67 S> */ B(Ldar), R(0),
                B(JumpIfNotNull), U8(6),
146
  /*   89 S> */ B(LdaSmi), I8(20),
147 148
                B(Star), R(1),
  /*   98 S> */ B(Ldar), R(1),
149
  /*  107 S> */ B(Return),
150 151
]
constant pool: [
152
  OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
153 154 155 156 157 158 159 160 161 162 163
]
handlers: [
]

---
snippet: "
  var obj_a = {val:1};
  var b = 10;
  if (obj_a === undefined) { b = 20;}
  return b;
"
164
frame size: 2
165
parameter count: 1
166
bytecode array length: 22
167 168
bytecodes: [
  /*   30 E> */ B(StackCheck),
169 170
  /*   46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41),
                B(Star), R(0),
171
  /*   63 S> */ B(LdaSmi), I8(10),
172
                B(Star), R(1),
173 174
  /*   67 S> */ B(Ldar), R(0),
                B(JumpIfNotUndefined), U8(6),
175
  /*   94 S> */ B(LdaSmi), I8(20),
176 177
                B(Star), R(1),
  /*  103 S> */ B(Ldar), R(1),
178
  /*  112 S> */ B(Return),
179 180
]
constant pool: [
181
  OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
182 183 184 185 186 187 188 189 190 191 192
]
handlers: [
]

---
snippet: "
  var obj_a = {val:1};
  var b = 10;
  if (obj_a !== null) { b = 20;}
  return b;
"
193
frame size: 2
194
parameter count: 1
195
bytecode array length: 22
196 197
bytecodes: [
  /*   30 E> */ B(StackCheck),
198 199
  /*   46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41),
                B(Star), R(0),
200
  /*   63 S> */ B(LdaSmi), I8(10),
201
                B(Star), R(1),
202 203
  /*   67 S> */ B(Ldar), R(0),
                B(JumpIfNull), U8(6),
204
  /*   89 S> */ B(LdaSmi), I8(20),
205 206
                B(Star), R(1),
  /*   98 S> */ B(Ldar), R(1),
207
  /*  107 S> */ B(Return),
208 209
]
constant pool: [
210
  OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
211 212 213 214 215 216 217 218 219 220 221
]
handlers: [
]

---
snippet: "
  var obj_a = {val:1};
  var b = 10;
  if (obj_a !== undefined) { b = 20;}
  return b;
"
222
frame size: 2
223
parameter count: 1
224
bytecode array length: 22
225 226
bytecodes: [
  /*   30 E> */ B(StackCheck),
227 228
  /*   46 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41),
                B(Star), R(0),
229
  /*   63 S> */ B(LdaSmi), I8(10),
230
                B(Star), R(1),
231 232
  /*   67 S> */ B(Ldar), R(0),
                B(JumpIfUndefined), U8(6),
233
  /*   94 S> */ B(LdaSmi), I8(20),
234 235
                B(Star), R(1),
  /*  103 S> */ B(Ldar), R(1),
236
  /*  112 S> */ B(Return),
237 238
]
constant pool: [
239
  OBJECT_BOILERPLATE_DESCRIPTION_TYPE,
240 241 242 243
]
handlers: [
]