99cfa5f620
This removes the execute_ flag, which was always the negation of top_level_. R=rmcilroy@chromium.org BUG= Review-Url: https://codereview.chromium.org/2390163003 Cr-Commit-Position: refs/heads/master@{#39961}
63 lines
1.3 KiB
Plaintext
63 lines
1.3 KiB
Plaintext
#
|
|
# 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();
|
|
"
|
|
frame size: 1
|
|
parameter count: 1
|
|
bytecode array length: 14
|
|
bytecodes: [
|
|
/* 97 E> */ B(StackCheck),
|
|
/* 102 S> */ B(LdrContextSlot), R(context), U8(4), U8(1), R(0),
|
|
/* 120 E> */ B(LdaContextSlot), R(context), U8(4), U8(0),
|
|
B(Mul), R(0), U8(2),
|
|
/* 130 S> */ B(Return),
|
|
]
|
|
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();
|
|
"
|
|
frame size: 0
|
|
parameter count: 1
|
|
bytecode array length: 11
|
|
bytecodes: [
|
|
/* 97 E> */ B(StackCheck),
|
|
/* 102 S> */ B(LdaContextSlot), R(context), U8(4), U8(0),
|
|
/* 111 E> */ B(StaContextSlot), R(context), U8(4), U8(1),
|
|
B(LdaUndefined),
|
|
/* 123 S> */ B(Return),
|
|
]
|
|
constant pool: [
|
|
]
|
|
handlers: [
|
|
]
|
|
|