2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: no
|
|
|
|
test function name: f
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
function f(arg1) { return function() { arg1 = 2; }; }
|
|
|
|
f();
|
|
|
|
"
|
|
|
|
frame size: 1
|
|
|
|
parameter count: 2
|
2018-05-02 13:57:26 +00:00
|
|
|
bytecode array length: 15
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2018-05-02 13:57:26 +00:00
|
|
|
B(CreateFunctionContext), U8(0), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(PushContext), R(0),
|
|
|
|
B(Ldar), R(arg0),
|
2016-10-28 10:10:32 +00:00
|
|
|
B(StaCurrentContextSlot), U8(4),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 10 E> */ B(StackCheck),
|
2018-05-02 13:57:26 +00:00
|
|
|
/* 19 S> */ B(CreateClosure), U8(1), U8(0), U8(2),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 51 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2018-05-02 13:57:26 +00:00
|
|
|
SCOPE_INFO_TYPE,
|
2016-09-06 16:10:19 +00:00
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
function f(arg1) { var a = function() { arg1 = 2; }; return arg1; }
|
|
|
|
f();
|
|
|
|
"
|
|
|
|
frame size: 2
|
|
|
|
parameter count: 2
|
2018-05-02 13:57:26 +00:00
|
|
|
bytecode array length: 19
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2018-05-02 13:57:26 +00:00
|
|
|
B(CreateFunctionContext), U8(0), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(PushContext), R(1),
|
|
|
|
B(Ldar), R(arg0),
|
2016-10-28 10:10:32 +00:00
|
|
|
B(StaCurrentContextSlot), U8(4),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 10 E> */ B(StackCheck),
|
2018-05-02 13:57:26 +00:00
|
|
|
/* 27 S> */ B(CreateClosure), U8(1), U8(0), U8(2),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2016-10-28 10:10:32 +00:00
|
|
|
/* 53 S> */ B(LdaCurrentContextSlot), U8(4),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 65 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2018-05-02 13:57:26 +00:00
|
|
|
SCOPE_INFO_TYPE,
|
2016-09-06 16:10:19 +00:00
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
function f(a1, a2, a3, a4) { return function() { a1 = a3; }; }
|
|
|
|
f();
|
|
|
|
"
|
|
|
|
frame size: 1
|
|
|
|
parameter count: 5
|
2018-05-02 13:57:26 +00:00
|
|
|
bytecode array length: 19
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2018-05-02 13:57:26 +00:00
|
|
|
B(CreateFunctionContext), U8(0), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(PushContext), R(0),
|
|
|
|
B(Ldar), R(arg0),
|
2016-10-28 10:10:32 +00:00
|
|
|
B(StaCurrentContextSlot), U8(5),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Ldar), R(arg2),
|
2016-10-28 10:10:32 +00:00
|
|
|
B(StaCurrentContextSlot), U8(4),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 10 E> */ B(StackCheck),
|
2018-05-02 13:57:26 +00:00
|
|
|
/* 29 S> */ B(CreateClosure), U8(1), U8(0), U8(2),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 60 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2018-05-02 13:57:26 +00:00
|
|
|
SCOPE_INFO_TYPE,
|
2016-09-06 16:10:19 +00:00
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
function f() { var self = this; return function() { self = 2; }; }
|
|
|
|
f();
|
|
|
|
"
|
|
|
|
frame size: 1
|
|
|
|
parameter count: 1
|
2018-05-02 13:57:26 +00:00
|
|
|
bytecode array length: 15
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2018-05-02 13:57:26 +00:00
|
|
|
B(CreateFunctionContext), U8(0), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(PushContext), R(0),
|
|
|
|
/* 10 E> */ B(StackCheck),
|
|
|
|
/* 26 S> */ B(Ldar), R(this),
|
2016-10-28 10:10:32 +00:00
|
|
|
/* 26 E> */ B(StaCurrentContextSlot), U8(4),
|
2018-05-02 13:57:26 +00:00
|
|
|
/* 32 S> */ B(CreateClosure), U8(1), U8(0), U8(2),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 64 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2018-05-02 13:57:26 +00:00
|
|
|
SCOPE_INFO_TYPE,
|
2016-09-06 16:10:19 +00:00
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|