v8/test/cctest/interpreter/bytecode_expectations/CreateArguments.golden
klaasb 8097eeb9f2 [interpreter] Add CreateFunctionContext bytecode
Add a new bytecode to create a function context. The handler inlines
FastNewFunctionContextStub.

BUG=v8:4280
LOG=n

Review-Url: https://codereview.chromium.org/2187523002
Cr-Commit-Position: refs/heads/master@{#38301}
2016-08-03 14:43:26 +00:00

145 lines
2.7 KiB
Plaintext

#
# 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: 6
bytecodes: [
B(CreateMappedArguments),
B(Star), R(0),
/* 10 E> */ B(StackCheck),
/* 15 S> */ B(Nop),
/* 33 S> */ B(Return),
]
constant pool: [
]
handlers: [
]
---
snippet: "
function f() { return arguments[0]; }
f();
"
frame size: 1
parameter count: 1
bytecode array length: 9
bytecodes: [
B(CreateMappedArguments),
B(Star), R(0),
/* 10 E> */ B(StackCheck),
/* 15 S> */ B(LdaZero),
/* 31 E> */ B(LdaKeyedProperty), R(0), U8(1),
/* 36 S> */ B(Return),
]
constant pool: [
]
handlers: [
]
---
snippet: "
function f() { 'use strict'; return arguments; }
f();
"
frame size: 1
parameter count: 1
bytecode array length: 6
bytecodes: [
B(CreateUnmappedArguments),
B(Star), R(0),
/* 10 E> */ B(StackCheck),
/* 29 S> */ B(Nop),
/* 47 S> */ B(Return),
]
constant pool: [
]
handlers: [
]
---
snippet: "
function f(a) { return arguments[0]; }
f();
"
frame size: 2
parameter count: 2
bytecode array length: 18
bytecodes: [
B(CreateFunctionContext), U8(1),
B(PushContext), R(1),
B(Ldar), R(arg0),
B(StaContextSlot), R(context), U8(4),
B(CreateMappedArguments),
B(Star), R(0),
/* 10 E> */ B(StackCheck),
/* 16 S> */ B(LdaZero),
/* 32 E> */ B(LdaKeyedProperty), R(0), U8(1),
/* 37 S> */ B(Return),
]
constant pool: [
]
handlers: [
]
---
snippet: "
function f(a, b, c) { return arguments; }
f();
"
frame size: 2
parameter count: 4
bytecode array length: 25
bytecodes: [
B(CreateFunctionContext), U8(3),
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),
/* 10 E> */ B(StackCheck),
/* 22 S> */ B(Nop),
/* 40 S> */ 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: 6
bytecodes: [
B(CreateUnmappedArguments),
B(Star), R(0),
/* 10 E> */ B(StackCheck),
/* 36 S> */ B(Nop),
/* 54 S> */ B(Return),
]
constant pool: [
]
handlers: [
]