blob: 79dd5c148ec4fa566d1fe236171802b1eb5ab570 [file] [log] [blame]
Ben Murdochda12d292016-06-02 14:46:10 +01001#
2# Autogenerated by generate-bytecode-expectations.
3#
4
5---
6pool type: mixed
7execute: yes
8wrap: no
9test function name: f
10
11---
12snippet: "
13 function bar() { this.value = 0; }
14 function f() { return new bar(); }
15 f();
16"
17frame size: 1
18parameter count: 1
19bytecode array length: 11
20bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +010021 /* 45 E> */ B(StackCheck),
22 /* 50 S> */ B(LdaGlobal), U8(0), U8(2),
23 B(Star), R(0),
24 /* 57 E> */ B(New), R(0), R(0), U8(0),
25 /* 68 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +010026]
27constant pool: [
28 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
29]
30handlers: [
31]
32
33---
34snippet: "
35 function bar(x) { this.value = 18; this.x = x;}
36 function f() { return new bar(3); }
37 f();
38"
39frame size: 2
40parameter count: 1
41bytecode array length: 17
42bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +010043 /* 58 E> */ B(StackCheck),
44 /* 63 S> */ B(LdaGlobal), U8(0), U8(2),
45 B(Star), R(0),
46 B(LdaSmi), U8(3),
47 B(Star), R(1),
48 /* 70 E> */ B(Ldar), R(0),
49 B(New), R(0), R(1), U8(1),
50 /* 82 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +010051]
52constant pool: [
53 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
54]
55handlers: [
56]
57
58---
59snippet: "
60 function bar(w, x, y, z) {
61 this.value = 18;
62 this.x = x;
63 this.y = y;
64 this.z = z;
65 }
66 function f() { return new bar(3, 4, 5); }
67 f();
68"
69frame size: 4
70parameter count: 1
71bytecode array length: 25
72bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +010073 /* 100 E> */ B(StackCheck),
74 /* 105 S> */ B(LdaGlobal), U8(0), U8(2),
75 B(Star), R(0),
76 B(LdaSmi), U8(3),
77 B(Star), R(1),
78 B(LdaSmi), U8(4),
79 B(Star), R(2),
80 B(LdaSmi), U8(5),
81 B(Star), R(3),
82 /* 112 E> */ B(Ldar), R(0),
83 B(New), R(0), R(1), U8(3),
84 /* 130 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +010085]
86constant pool: [
87 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
88]
89handlers: [
90]
91