2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: no
|
|
|
|
test function name: f
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
function f(...restArgs) { return restArgs; }
|
|
|
|
f();
|
|
|
|
"
|
|
|
|
frame size: 1
|
|
|
|
parameter count: 1
|
2016-05-27 15:57:35 +00:00
|
|
|
bytecode array length: 6
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CreateRestParameter),
|
|
|
|
B(Star), R(0),
|
|
|
|
/* 10 E> */ B(StackCheck),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 26 S> */ B(Nop),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 43 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
function f(a, ...restArgs) { return restArgs; }
|
|
|
|
f();
|
|
|
|
"
|
|
|
|
frame size: 2
|
|
|
|
parameter count: 2
|
2016-05-27 15:57:35 +00:00
|
|
|
bytecode array length: 13
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CreateRestParameter),
|
|
|
|
B(Star), R(0),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(Star), R(1),
|
|
|
|
/* 10 E> */ B(StackCheck),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(arg0), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 29 S> */ B(Ldar), R(0),
|
|
|
|
/* 46 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
function f(a, ...restArgs) { return restArgs[0]; }
|
|
|
|
f();
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 2
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 2
|
2016-06-09 13:32:33 +00:00
|
|
|
bytecode array length: 15
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CreateRestParameter),
|
|
|
|
B(Star), R(0),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(Star), R(1),
|
|
|
|
/* 10 E> */ B(StackCheck),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(arg0), R(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
/* 29 S> */ B(LdaZero),
|
2016-09-14 10:20:08 +00:00
|
|
|
/* 44 E> */ B(LdaKeyedProperty), R(0), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 49 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
function f(a, ...restArgs) { return restArgs[0] + arguments[0]; }
|
|
|
|
f();
|
|
|
|
"
|
2016-09-30 09:02:59 +00:00
|
|
|
frame size: 4
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 2
|
2016-11-09 13:16:01 +00:00
|
|
|
bytecode array length: 27
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CreateUnmappedArguments),
|
2016-09-07 06:54:36 +00:00
|
|
|
B(Star), R(2),
|
2016-09-02 06:23:07 +00:00
|
|
|
B(CreateRestParameter),
|
2016-09-07 06:54:36 +00:00
|
|
|
B(Star), R(0),
|
2016-09-02 06:23:07 +00:00
|
|
|
B(LdaTheHole),
|
2016-09-07 06:54:36 +00:00
|
|
|
B(Star), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 10 E> */ B(StackCheck),
|
2016-09-07 06:54:36 +00:00
|
|
|
B(Mov), R(arg0), R(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
/* 29 S> */ B(LdaZero),
|
2016-11-09 13:16:01 +00:00
|
|
|
/* 44 E> */ B(LdaKeyedProperty), R(0), U8(2),
|
|
|
|
B(Star), R(3),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(LdaZero),
|
2016-09-14 10:20:08 +00:00
|
|
|
/* 59 E> */ B(LdaKeyedProperty), R(2), U8(4),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 48 E> */ B(Add), R(3), U8(6),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 64 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|