blob: 6aa50ef46b17419ff36d2c9f7479e8ed7fb180de [file] [log] [blame]
Ben Murdochda12d292016-06-02 14:46:10 +01001#
2# Autogenerated by generate-bytecode-expectations.
3#
4
5---
6pool type: number
7execute: yes
8wrap: yes
9
10---
11snippet: "
12 var a = 1; if (a || a < 0) { return 1; }
13"
14frame size: 2
15parameter count: 1
16bytecode array length: 21
17bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +010018 /* 30 E> */ B(StackCheck),
19 /* 42 S> */ B(LdaSmi), U8(1),
20 /* 42 E> */ B(Star), R(0),
21 /* 45 S> */ B(JumpIfToBooleanTrue), U8(9),
22 /* 54 E> */ B(Ldar), R(0),
23 B(Star), R(1),
24 B(LdaZero),
25 /* 56 E> */ B(TestLessThan), R(1),
26 B(JumpIfToBooleanFalse), U8(5),
27 /* 63 S> */ B(LdaSmi), U8(1),
28 /* 75 S> */ B(Return),
29 B(LdaUndefined),
30 /* 75 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +010031]
32constant pool: [
33]
34handlers: [
35]
36
37---
38snippet: "
39 var a = 1; if (a && a < 0) { return 1; }
40"
41frame size: 2
42parameter count: 1
43bytecode array length: 21
44bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +010045 /* 30 E> */ B(StackCheck),
46 /* 42 S> */ B(LdaSmi), U8(1),
47 /* 42 E> */ B(Star), R(0),
48 /* 45 S> */ B(JumpIfToBooleanFalse), U8(9),
49 /* 54 E> */ B(Ldar), R(0),
50 B(Star), R(1),
51 B(LdaZero),
52 /* 56 E> */ B(TestLessThan), R(1),
53 B(JumpIfToBooleanFalse), U8(5),
54 /* 63 S> */ B(LdaSmi), U8(1),
55 /* 75 S> */ B(Return),
56 B(LdaUndefined),
57 /* 75 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +010058]
59constant pool: [
60]
61handlers: [
62]
63
64---
65snippet: "
66 var a = 1; a = (a || a < 0) ? 2 : 3;
67"
68frame size: 2
69parameter count: 1
70bytecode array length: 26
71bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +010072 /* 30 E> */ B(StackCheck),
73 /* 42 S> */ B(LdaSmi), U8(1),
74 /* 42 E> */ B(Star), R(0),
75 /* 45 S> */ B(JumpIfToBooleanTrue), U8(9),
76 /* 55 E> */ B(Ldar), R(0),
77 B(Star), R(1),
78 B(LdaZero),
79 /* 57 E> */ B(TestLessThan), R(1),
80 B(JumpIfToBooleanFalse), U8(6),
81 B(LdaSmi), U8(2),
82 B(Jump), U8(4),
83 B(LdaSmi), U8(3),
84 /* 47 E> */ B(Star), R(0),
85 B(LdaUndefined),
86 /* 71 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +010087]
88constant pool: [
89]
90handlers: [
91]
92