2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: no
|
|
|
|
test function name: f
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
function Outer() {
|
|
|
|
var outerVar = 1;
|
|
|
|
function Inner(innerArg) {
|
|
|
|
this.innerFunc = function() { return outerVar * innerArg; }
|
|
|
|
}
|
|
|
|
this.getInnerFunc = function() { return new Inner(1).innerFunc; }
|
|
|
|
}
|
|
|
|
var f = new Outer().getInnerFunc();
|
|
|
|
f();
|
|
|
|
"
|
2016-09-13 11:09:00 +00:00
|
|
|
frame size: 1
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-11-10 10:41:48 +00:00
|
|
|
bytecode array length: 13
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 97 E> */ B(StackCheck),
|
2017-02-07 20:42:03 +00:00
|
|
|
/* 102 S> */ B(LdaImmutableContextSlot), R(context), U8(4), U8(1),
|
2016-11-10 10:41:48 +00:00
|
|
|
B(Star), R(0),
|
2017-02-07 20:42:03 +00:00
|
|
|
B(LdaImmutableCurrentContextSlot), U8(4),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 118 E> */ B(Mul), R(0), U8(0),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 129 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
function Outer() {
|
|
|
|
var outerVar = 1;
|
|
|
|
function Inner(innerArg) {
|
|
|
|
this.innerFunc = function() { outerVar = innerArg; }
|
|
|
|
}
|
|
|
|
this.getInnerFunc = function() { return new Inner(1).innerFunc; }
|
|
|
|
}
|
|
|
|
var f = new Outer().getInnerFunc();
|
|
|
|
f();
|
|
|
|
"
|
2016-09-13 11:09:00 +00:00
|
|
|
frame size: 0
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-10-28 10:10:32 +00:00
|
|
|
bytecode array length: 9
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 97 E> */ B(StackCheck),
|
2017-02-07 20:42:03 +00:00
|
|
|
/* 102 S> */ B(LdaImmutableCurrentContextSlot), U8(4),
|
2016-09-13 11:09:00 +00:00
|
|
|
/* 111 E> */ B(StaContextSlot), R(context), U8(4), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 123 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|