summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/interpreter/bytecode_expectations/BasicBlockToBoolean.golden
blob: 422fad3283ec59b6617889b4a828360f02b9ed08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#
# Autogenerated by generate-bytecode-expectations.
#

---
pool type: number
execute: yes
wrap: yes

---
snippet: "
  var a = 1; if (a || a < 0) { return 1; }
"
frame size: 1
parameter count: 1
bytecode array length: 17
bytecodes: [
  /*   30 E> */ B(StackCheck),
  /*   42 S> */ B(LdaSmi), U8(1),
                B(Star), R(0),
  /*   45 S> */ B(JumpIfToBooleanTrue), U8(7),
                B(LdaZero),
  /*   56 E> */ B(TestLessThan), R(0),
                B(JumpIfFalse), U8(5),
  /*   63 S> */ B(LdaSmi), U8(1),
  /*   75 S> */ B(Return),
                B(LdaUndefined),
  /*   75 S> */ B(Return),
]
constant pool: [
]
handlers: [
]

---
snippet: "
  var a = 1; if (a && a < 0) { return 1; }
"
frame size: 1
parameter count: 1
bytecode array length: 17
bytecodes: [
  /*   30 E> */ B(StackCheck),
  /*   42 S> */ B(LdaSmi), U8(1),
                B(Star), R(0),
  /*   45 S> */ B(JumpIfToBooleanFalse), U8(10),
                B(LdaZero),
  /*   56 E> */ B(TestLessThan), R(0),
                B(JumpIfFalse), U8(5),
  /*   63 S> */ B(LdaSmi), U8(1),
  /*   75 S> */ B(Return),
                B(LdaUndefined),
  /*   75 S> */ B(Return),
]
constant pool: [
]
handlers: [
]

---
snippet: "
  var a = 1; a = (a || a < 0) ? 2 : 3;
"
frame size: 1
parameter count: 1
bytecode array length: 22
bytecodes: [
  /*   30 E> */ B(StackCheck),
  /*   42 S> */ B(LdaSmi), U8(1),
                B(Star), R(0),
  /*   45 S> */ B(JumpIfToBooleanTrue), U8(7),
                B(LdaZero),
  /*   57 E> */ B(TestLessThan), R(0),
                B(JumpIfFalse), U8(6),
                B(LdaSmi), U8(2),
                B(Jump), U8(4),
                B(LdaSmi), U8(3),
                B(Star), R(0),
                B(LdaUndefined),
  /*   71 S> */ B(Return),
]
constant pool: [
]
handlers: [
]