b3d004aaf9
... /interpreter. This CL moves cctest/interpreter/{bytecode-expectations-printer, test-bytecode-generator, test-interpreter-intrinsics, interpreter-tester, test-interpreter, test-source-positions, source-position-matcher} to unittests/interpreter/{ bytecode-expectations-printer, bytecode-generator-unittest, interpreter-intrinsics-unittest, interpreter-tester, interpreter-unittest, source-positions-unittest, source-position-matcher}. Bug: v8:12781 Change-Id: I187583bd34f709dd0d7dfc0f92e18f191da0e30f Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3609752 Reviewed-by: Leszek Swirski <leszeks@chromium.org> Commit-Queue: 王澳 <wangao.james@bytedance.com> Reviewed-by: Toon Verwaest <verwaest@chromium.org> Cr-Commit-Position: refs/heads/main@{#81057}
99 lines
1.8 KiB
Plaintext
99 lines
1.8 KiB
Plaintext
#
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
#
|
|
|
|
---
|
|
wrap: no
|
|
test function name: f
|
|
|
|
---
|
|
snippet: "
|
|
function f(...restArgs) { return restArgs; }
|
|
f();
|
|
"
|
|
frame size: 2
|
|
parameter count: 1
|
|
bytecode array length: 4
|
|
bytecodes: [
|
|
/* 10 E> */ B(CreateRestParameter),
|
|
B(Star1),
|
|
B(Star0),
|
|
/* 42 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
function f(a, ...restArgs) { return restArgs; }
|
|
f();
|
|
"
|
|
frame size: 3
|
|
parameter count: 2
|
|
bytecode array length: 11
|
|
bytecodes: [
|
|
/* 10 E> */ B(CreateRestParameter),
|
|
B(Star2),
|
|
B(Mov), R(arg0), R(0),
|
|
B(Mov), R(2), R(1),
|
|
/* 29 S> */ B(Ldar), R(1),
|
|
/* 45 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
function f(a, ...restArgs) { return restArgs[0]; }
|
|
f();
|
|
"
|
|
frame size: 3
|
|
parameter count: 2
|
|
bytecode array length: 13
|
|
bytecodes: [
|
|
/* 10 E> */ B(CreateRestParameter),
|
|
B(Star2),
|
|
B(Mov), R(arg0), R(0),
|
|
B(Mov), R(2), R(1),
|
|
/* 29 S> */ B(LdaZero),
|
|
/* 44 E> */ B(GetKeyedProperty), R(1), U8(0),
|
|
/* 48 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
]
|
|
handlers: [
|
|
]
|
|
|
|
---
|
|
snippet: "
|
|
function f(a, ...restArgs) { return restArgs[0] + arguments[0]; }
|
|
f();
|
|
"
|
|
frame size: 5
|
|
parameter count: 2
|
|
bytecode array length: 23
|
|
bytecodes: [
|
|
/* 10 E> */ B(CreateUnmappedArguments),
|
|
B(Star3),
|
|
B(CreateRestParameter),
|
|
B(Star2),
|
|
B(Mov), R(arg0), R(0),
|
|
B(Mov), R(2), R(1),
|
|
/* 29 S> */ B(LdaZero),
|
|
/* 44 E> */ B(GetKeyedProperty), R(1), U8(1),
|
|
B(Star4),
|
|
B(LdaZero),
|
|
/* 59 E> */ B(GetKeyedProperty), R(3), U8(3),
|
|
/* 48 E> */ B(Add), R(4), U8(0),
|
|
/* 63 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
]
|
|
handlers: [
|
|
]
|
|
|