2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: no
|
|
|
|
test function name: f
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
function bar() { this.value = 0; }
|
|
|
|
function f() { return new bar(); }
|
|
|
|
f();
|
|
|
|
"
|
|
|
|
frame size: 1
|
|
|
|
parameter count: 1
|
2016-11-16 18:17:22 +00:00
|
|
|
bytecode array length: 12
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 45 E> */ B(StackCheck),
|
2017-05-09 21:45:33 +00:00
|
|
|
/* 50 S> */ B(LdaGlobal), U8(0), U8(5),
|
2016-11-10 10:41:48 +00:00
|
|
|
B(Star), R(0),
|
2017-05-09 21:45:33 +00:00
|
|
|
/* 57 E> */ B(Construct), R(0), R(0), U8(0), U8(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 68 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-11-16 18:17:22 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["bar"],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
function bar(x) { this.value = 18; this.x = x;}
|
|
|
|
function f() { return new bar(3); }
|
|
|
|
f();
|
|
|
|
"
|
|
|
|
frame size: 2
|
|
|
|
parameter count: 1
|
2016-11-16 18:17:22 +00:00
|
|
|
bytecode array length: 18
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 58 E> */ B(StackCheck),
|
2017-05-09 21:45:33 +00:00
|
|
|
/* 63 S> */ B(LdaGlobal), U8(0), U8(5),
|
2016-11-10 10:41:48 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Ldar), R(0),
|
2017-05-09 21:45:33 +00:00
|
|
|
/* 70 E> */ B(Construct), R(0), R(1), U8(1), U8(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 82 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-11-16 18:17:22 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["bar"],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
function bar(w, x, y, z) {
|
|
|
|
this.value = 18;
|
|
|
|
this.x = x;
|
|
|
|
this.y = y;
|
|
|
|
this.z = z;
|
|
|
|
}
|
|
|
|
function f() { return new bar(3, 4, 5); }
|
|
|
|
f();
|
|
|
|
"
|
|
|
|
frame size: 4
|
|
|
|
parameter count: 1
|
2016-11-16 18:17:22 +00:00
|
|
|
bytecode array length: 26
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 100 E> */ B(StackCheck),
|
2017-05-09 21:45:33 +00:00
|
|
|
/* 105 S> */ B(LdaGlobal), U8(0), U8(5),
|
2016-11-10 10:41:48 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(4),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(2),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(LdaSmi), I8(5),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(3),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Ldar), R(0),
|
2017-05-09 21:45:33 +00:00
|
|
|
/* 112 E> */ B(Construct), R(0), R(1), U8(3), U8(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 130 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-11-16 18:17:22 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["bar"],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|