blob: b0e80dd4d5390552f6203c85a598e2c6075bc6ef [file] [log] [blame]
Ben Murdochda12d292016-06-02 14:46:10 +01001#
2# Autogenerated by generate-bytecode-expectations.
3#
4
5---
6pool type: string
7execute: yes
8wrap: no
9test function name: f
10
11---
12snippet: "
13 function f() {
14 var x = 13;
15 return typeof(x);
16 };
17 f();
18"
19frame size: 1
20parameter count: 1
21bytecode array length: 7
22bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +010023 /* 10 E> */ B(StackCheck),
24 /* 24 S> */ B(LdaSmi), U8(13),
25 /* 24 E> */ B(Star), R(0),
26 /* 29 S> */ B(TypeOf),
27 /* 47 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +010028]
29constant pool: [
30]
31handlers: [
32]
33
34---
35snippet: "
36 var x = 13;
37 function f() {
38 return typeof(x);
39 };
40 f();
41"
42frame size: 0
43parameter count: 1
44bytecode array length: 6
45bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +010046 /* 22 E> */ B(StackCheck),
47 /* 28 S> */ B(LdaGlobalInsideTypeof), U8(0), U8(1),
48 B(TypeOf),
49 /* 46 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +010050]
51constant pool: [
52 "x",
53]
54handlers: [
55]
56