blob: b44d37b975ce146e4acb7b48132dd92259906609 [file] [log] [blame]
Ben Murdoch61f157c2016-09-16 13:49:30 +01001#
2# Autogenerated by generate-bytecode-expectations.
3#
4
5---
6pool type: mixed
7execute: yes
8wrap: yes
9
10---
11snippet: "
12 var global = 1;
13 function f() { return global &= 1; }
14 f();
15"
16frame size: 4
17parameter count: 1
18bytecode array length: 27
19bytecodes: [
20 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
21 B(PushContext), R(1),
22 B(CreateClosure), U8(0), U8(0),
23 B(Star), R(0),
24 /* 30 E> */ B(StackCheck),
25 /* 47 S> */ B(LdaSmi), U8(1),
26 /* 47 E> */ B(StaContextSlot), R(context), U8(4),
27 /* 87 S> */ B(LdrUndefined), R(3),
28 /* 87 E> */ B(Call), R(0), R(3), U8(1), U8(1),
29 B(LdaUndefined),
30 /* 92 S> */ B(Return),
31]
32constant pool: [
33 InstanceType::SHARED_FUNCTION_INFO_TYPE,
34]
35handlers: [
36]
37
38---
39snippet: "
40 unallocated = 1;
41 function f() { return unallocated += 1; }
42 f();
43"
44frame size: 3
45parameter count: 1
46bytecode array length: 20
47bytecodes: [
48 B(CreateClosure), U8(0), U8(0),
49 B(Star), R(0),
50 /* 30 E> */ B(StackCheck),
51 /* 34 S> */ B(LdaSmi), U8(1),
52 /* 46 E> */ B(StaGlobalSloppy), U8(1), U8(1),
53 /* 93 S> */ B(LdrUndefined), R(2),
54 /* 93 E> */ B(Call), R(0), R(2), U8(1), U8(3),
55 B(LdaUndefined),
56 /* 98 S> */ B(Return),
57]
58constant pool: [
59 InstanceType::SHARED_FUNCTION_INFO_TYPE,
60 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
61]
62handlers: [
63]
64