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();
|
|
|
|
"
|
[parser] Skipping inner funcs: simplify rest parameter handling.
With the params (a, b, ...c) the param / variable declaration order used to be
"temp, temp, c, a, b". Now it is "temp, temp, a, b, c" as you'd expect. This
makes it easier for PreParser to match the parameter order of Parser.
R=verwaest@chromium.org
BUG=v8:5516
Change-Id: I79da04ef3f812bf52c032bed6263c009fecb7988
Reviewed-on: https://chromium-review.googlesource.com/447677
Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/master@{#43490}
2017-02-28 14:01:36 +00:00
|
|
|
frame size: 2
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2017-07-17 19:02:35 +00:00
|
|
|
bytecode array length: 7
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
B(CreateRestParameter),
|
2019-01-21 09:47:58 +00:00
|
|
|
B(Star), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 10 E> */ B(StackCheck),
|
2019-01-21 09:47:58 +00:00
|
|
|
/* 22 S> */ B(Star), R(0),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 42 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
function f(a, ...restArgs) { return restArgs; }
|
|
|
|
f();
|
|
|
|
"
|
[parser] Skipping inner funcs: simplify rest parameter handling.
With the params (a, b, ...c) the param / variable declaration order used to be
"temp, temp, c, a, b". Now it is "temp, temp, a, b, c" as you'd expect. This
makes it easier for PreParser to match the parameter order of Parser.
R=verwaest@chromium.org
BUG=v8:5516
Change-Id: I79da04ef3f812bf52c032bed6263c009fecb7988
Reviewed-on: https://chromium-review.googlesource.com/447677
Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/master@{#43490}
2017-02-28 14:01:36 +00:00
|
|
|
frame size: 3
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 2
|
2017-05-08 18:55:54 +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),
|
2019-01-21 09:47:58 +00:00
|
|
|
B(Star), R(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 10 E> */ B(StackCheck),
|
2019-01-21 09:47:58 +00:00
|
|
|
/* 12 S> */ B(Mov), R(arg0), R(0),
|
|
|
|
/* 25 S> */ B(Mov), R(2), R(1),
|
|
|
|
/* 29 S> */ B(Ldar), R(1),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 45 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
function f(a, ...restArgs) { return restArgs[0]; }
|
|
|
|
f();
|
|
|
|
"
|
[parser] Skipping inner funcs: simplify rest parameter handling.
With the params (a, b, ...c) the param / variable declaration order used to be
"temp, temp, c, a, b". Now it is "temp, temp, a, b, c" as you'd expect. This
makes it easier for PreParser to match the parameter order of Parser.
R=verwaest@chromium.org
BUG=v8:5516
Change-Id: I79da04ef3f812bf52c032bed6263c009fecb7988
Reviewed-on: https://chromium-review.googlesource.com/447677
Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/master@{#43490}
2017-02-28 14:01:36 +00:00
|
|
|
frame size: 3
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 2
|
2017-05-08 18:55:54 +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),
|
2019-01-21 09:47:58 +00:00
|
|
|
B(Star), R(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 10 E> */ B(StackCheck),
|
2019-01-21 09:47:58 +00:00
|
|
|
/* 12 S> */ B(Mov), R(arg0), R(0),
|
|
|
|
/* 25 S> */ B(Mov), R(2), R(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
/* 29 S> */ B(LdaZero),
|
2019-01-21 09:47:58 +00:00
|
|
|
/* 44 E> */ B(LdaKeyedProperty), R(1), U8(0),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 48 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();
|
|
|
|
"
|
[parser] Skipping inner funcs: simplify rest parameter handling.
With the params (a, b, ...c) the param / variable declaration order used to be
"temp, temp, c, a, b". Now it is "temp, temp, a, b, c" as you'd expect. This
makes it easier for PreParser to match the parameter order of Parser.
R=verwaest@chromium.org
BUG=v8:5516
Change-Id: I79da04ef3f812bf52c032bed6263c009fecb7988
Reviewed-on: https://chromium-review.googlesource.com/447677
Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/master@{#43490}
2017-02-28 14:01:36 +00:00
|
|
|
frame size: 5
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 2
|
2017-05-08 18:55:54 +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),
|
[parser] Skipping inner funcs: simplify rest parameter handling.
With the params (a, b, ...c) the param / variable declaration order used to be
"temp, temp, c, a, b". Now it is "temp, temp, a, b, c" as you'd expect. This
makes it easier for PreParser to match the parameter order of Parser.
R=verwaest@chromium.org
BUG=v8:5516
Change-Id: I79da04ef3f812bf52c032bed6263c009fecb7988
Reviewed-on: https://chromium-review.googlesource.com/447677
Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/master@{#43490}
2017-02-28 14:01:36 +00:00
|
|
|
B(Star), R(3),
|
2016-09-02 06:23:07 +00:00
|
|
|
B(CreateRestParameter),
|
2019-01-21 09:47:58 +00:00
|
|
|
B(Star), R(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 10 E> */ B(StackCheck),
|
2019-01-21 09:47:58 +00:00
|
|
|
/* 12 S> */ B(Mov), R(arg0), R(0),
|
|
|
|
/* 25 S> */ B(Mov), R(2), R(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
/* 29 S> */ B(LdaZero),
|
2019-01-21 09:47:58 +00:00
|
|
|
/* 44 E> */ B(LdaKeyedProperty), R(1), U8(1),
|
[parser] Skipping inner funcs: simplify rest parameter handling.
With the params (a, b, ...c) the param / variable declaration order used to be
"temp, temp, c, a, b". Now it is "temp, temp, a, b, c" as you'd expect. This
makes it easier for PreParser to match the parameter order of Parser.
R=verwaest@chromium.org
BUG=v8:5516
Change-Id: I79da04ef3f812bf52c032bed6263c009fecb7988
Reviewed-on: https://chromium-review.googlesource.com/447677
Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/master@{#43490}
2017-02-28 14:01:36 +00:00
|
|
|
B(Star), R(4),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(LdaZero),
|
2017-10-19 15:12:42 +00:00
|
|
|
/* 59 E> */ B(LdaKeyedProperty), R(3), U8(3),
|
|
|
|
/* 48 E> */ B(Add), R(4), U8(0),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 63 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|