mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
148 lines
2.2 KiB
148 lines
2.2 KiB
9 years ago
|
#
|
||
|
# Autogenerated by generate-bytecode-expectations.
|
||
|
#
|
||
|
|
||
|
---
|
||
|
pool type: string
|
||
|
execute: yes
|
||
|
wrap: no
|
||
|
test function name: f
|
||
|
|
||
|
---
|
||
|
snippet: "
|
||
|
function f() { return arguments; }
|
||
|
f();
|
||
|
"
|
||
|
frame size: 1
|
||
|
parameter count: 1
|
||
|
bytecode array length: 7
|
||
|
bytecodes: [
|
||
|
B(CreateMappedArguments),
|
||
|
B(Star), R(0),
|
||
|
B(StackCheck),
|
||
|
B(Ldar), R(0),
|
||
|
B(Return),
|
||
|
]
|
||
|
constant pool: [
|
||
|
]
|
||
|
handlers: [
|
||
|
]
|
||
|
|
||
|
---
|
||
|
snippet: "
|
||
|
function f() { return arguments[0]; }
|
||
|
f();
|
||
|
"
|
||
|
frame size: 2
|
||
|
parameter count: 1
|
||
|
bytecode array length: 13
|
||
|
bytecodes: [
|
||
|
B(CreateMappedArguments),
|
||
|
B(Star), R(0),
|
||
|
B(StackCheck),
|
||
|
B(Ldar), R(0),
|
||
|
B(Star), R(1),
|
||
|
B(LdaZero),
|
||
|
B(KeyedLoadIC), R(1), U8(1),
|
||
|
B(Return),
|
||
|
]
|
||
|
constant pool: [
|
||
|
]
|
||
|
handlers: [
|
||
|
]
|
||
|
|
||
|
---
|
||
|
snippet: "
|
||
|
function f() { 'use strict'; return arguments; }
|
||
|
f();
|
||
|
"
|
||
|
frame size: 1
|
||
|
parameter count: 1
|
||
|
bytecode array length: 7
|
||
|
bytecodes: [
|
||
|
B(CreateUnmappedArguments),
|
||
|
B(Star), R(0),
|
||
|
B(StackCheck),
|
||
|
B(Ldar), R(0),
|
||
|
B(Return),
|
||
|
]
|
||
|
constant pool: [
|
||
|
]
|
||
|
handlers: [
|
||
|
]
|
||
|
|
||
|
---
|
||
|
snippet: "
|
||
|
function f(a) { return arguments[0]; }
|
||
|
f();
|
||
|
"
|
||
|
frame size: 3
|
||
|
parameter count: 2
|
||
|
bytecode array length: 25
|
||
|
bytecodes: [
|
||
|
B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
|
||
|
B(PushContext), R(1),
|
||
|
B(Ldar), R(arg0),
|
||
|
B(StaContextSlot), R(context), U8(4),
|
||
|
B(CreateMappedArguments),
|
||
|
B(Star), R(0),
|
||
|
B(StackCheck),
|
||
|
B(Ldar), R(0),
|
||
|
B(Star), R(2),
|
||
|
B(LdaZero),
|
||
|
B(KeyedLoadIC), R(2), U8(1),
|
||
|
B(Return),
|
||
|
]
|
||
|
constant pool: [
|
||
|
]
|
||
|
handlers: [
|
||
|
]
|
||
|
|
||
|
---
|
||
|
snippet: "
|
||
|
function f(a, b, c) { return arguments; }
|
||
|
f();
|
||
|
"
|
||
|
frame size: 2
|
||
|
parameter count: 4
|
||
|
bytecode array length: 29
|
||
|
bytecodes: [
|
||
|
B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1),
|
||
|
B(PushContext), R(1),
|
||
|
B(Ldar), R(arg0),
|
||
|
B(StaContextSlot), R(context), U8(6),
|
||
|
B(Ldar), R(arg1),
|
||
|
B(StaContextSlot), R(context), U8(5),
|
||
|
B(Ldar), R(arg2),
|
||
|
B(StaContextSlot), R(context), U8(4),
|
||
|
B(CreateMappedArguments),
|
||
|
B(Star), R(0),
|
||
|
B(StackCheck),
|
||
|
B(Ldar), R(0),
|
||
|
B(Return),
|
||
|
]
|
||
|
constant pool: [
|
||
|
]
|
||
|
handlers: [
|
||
|
]
|
||
|
|
||
|
---
|
||
|
snippet: "
|
||
|
function f(a, b, c) { 'use strict'; return arguments; }
|
||
|
f();
|
||
|
"
|
||
|
frame size: 1
|
||
|
parameter count: 4
|
||
|
bytecode array length: 7
|
||
|
bytecodes: [
|
||
|
B(CreateUnmappedArguments),
|
||
|
B(Star), R(0),
|
||
|
B(StackCheck),
|
||
|
B(Ldar), R(0),
|
||
|
B(Return),
|
||
|
]
|
||
|
constant pool: [
|
||
|
]
|
||
|
handlers: [
|
||
|
]
|