2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: no
|
|
|
|
test function name: f
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var f;
|
|
|
|
var x = 1;
|
|
|
|
function f1() {
|
|
|
|
eval(\"function t() { return x; }; f = t; f();\");
|
|
|
|
}
|
|
|
|
f1();
|
|
|
|
"
|
|
|
|
frame size: 0
|
|
|
|
parameter count: 1
|
2016-09-20 10:31:24 +00:00
|
|
|
bytecode array length: 6
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 10 E> */ B(StackCheck),
|
2017-05-08 20:15:23 +00:00
|
|
|
/* 15 S> */ B(LdaLookupGlobalSlot), U8(0), U8(2), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 25 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var f;
|
|
|
|
var x = 1;
|
|
|
|
function f1() {
|
|
|
|
eval(\"function t() { x = 10; }; f = t; f();\");
|
|
|
|
}
|
|
|
|
f1();
|
|
|
|
"
|
|
|
|
frame size: 0
|
|
|
|
parameter count: 1
|
|
|
|
bytecode array length: 7
|
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 10 E> */ B(StackCheck),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 15 S> */ B(LdaSmi), I8(10),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 17 E> */ B(StaLookupSlotSloppy), U8(0),
|
|
|
|
B(LdaUndefined),
|
|
|
|
/* 23 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var f;
|
|
|
|
var x = 1;
|
|
|
|
function f1() {
|
|
|
|
eval(\"function t() { 'use strict'; x = 10; }; f = t; f();\");
|
|
|
|
}
|
|
|
|
f1();
|
|
|
|
"
|
|
|
|
frame size: 0
|
|
|
|
parameter count: 1
|
|
|
|
bytecode array length: 7
|
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 10 E> */ B(StackCheck),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 29 S> */ B(LdaSmi), I8(10),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 31 E> */ B(StaLookupSlotStrict), U8(0),
|
|
|
|
B(LdaUndefined),
|
|
|
|
/* 37 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var f;
|
|
|
|
var x = 1;
|
|
|
|
function f1() {
|
|
|
|
eval(\"function t() { return typeof x; }; f = t; f();\");
|
|
|
|
}
|
|
|
|
f1();
|
|
|
|
"
|
|
|
|
frame size: 0
|
|
|
|
parameter count: 1
|
2016-09-20 10:31:24 +00:00
|
|
|
bytecode array length: 7
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 10 E> */ B(StackCheck),
|
2017-05-08 20:15:23 +00:00
|
|
|
/* 15 S> */ B(LdaLookupGlobalSlotInsideTypeof), U8(0), U8(2), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(TypeOf),
|
|
|
|
/* 32 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2016-09-06 16:10:19 +00:00
|
|
|
ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|