summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/interpreter/bytecode_expectations/Typeof.golden
blob: 5e15e5981e80065fa1556c4cbe1a728a90064074 (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
#
# Autogenerated by generate-bytecode-expectations.
#

---
wrap: no
test function name: f

---
snippet: "
  function f() {
   var x = 13;
   return typeof(x);
  };
  f();
"
frame size: 1
parameter count: 1
bytecode array length: 7
bytecodes: [
  /*   10 E> */ B(StackCheck),
  /*   24 S> */ B(LdaSmi), U8(13),
                B(Star), R(0),
  /*   29 S> */ B(TypeOf),
  /*   47 S> */ B(Return),
]
constant pool: [
]
handlers: [
]

---
snippet: "
  var x = 13;
  function f() {
   return typeof(x);
  };
  f();
"
frame size: 0
parameter count: 1
bytecode array length: 5
bytecodes: [
  /*   22 E> */ B(StackCheck),
  /*   28 S> */ B(LdaGlobalInsideTypeof), U8(2),
                B(TypeOf),
  /*   46 S> */ B(Return),
]
constant pool: [
]
handlers: [
]