2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
pool type: number
|
|
|
|
execute: yes
|
|
|
|
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),
|
|
|
|
/* 44 E> */ B(LdaKeyedProperty), R(0), U8(1),
|
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();
|
|
|
|
"
|
|
|
|
frame size: 5
|
|
|
|
parameter count: 2
|
2016-06-09 13:32:33 +00:00
|
|
|
bytecode array length: 25
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CreateUnmappedArguments),
|
|
|
|
B(Star), R(0),
|
|
|
|
B(CreateRestParameter),
|
|
|
|
B(Star), R(1),
|
|
|
|
B(LdaTheHole),
|
|
|
|
B(Star), R(2),
|
|
|
|
/* 10 E> */ B(StackCheck),
|
2016-05-27 15:57:35 +00:00
|
|
|
B(Mov), R(arg0), R(2),
|
2016-06-09 13:32:33 +00:00
|
|
|
/* 29 S> */ B(LdaZero),
|
|
|
|
/* 44 E> */ B(LdrKeyedProperty), R(1), U8(1), R(4),
|
|
|
|
B(LdaZero),
|
|
|
|
/* 59 E> */ B(LdaKeyedProperty), R(0), U8(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Add), R(4),
|
|
|
|
/* 64 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|