CallLookupSlot.golden 1.68 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
#
# Autogenerated by generate-bytecode-expectations.
#

---
wrap: yes

---
snippet: "
  g = function(){}; eval(''); return g();
"
12
frame size: 10
13
parameter count: 1
14
bytecode array length: 75
15
bytecodes: [
16
                B(CreateFunctionContext), U8(0), U8(3),
17
                B(PushContext), R(1),
18
                B(Ldar), R(this),
19
                B(StaCurrentContextSlot), U8(4),
20
                B(CreateMappedArguments),
21
                B(StaCurrentContextSlot), U8(6),
22
                B(Ldar), R(0),
23
                B(StaCurrentContextSlot), U8(5),
24
  /*   30 E> */ B(StackCheck),
25 26
  /*   34 S> */ B(CreateClosure), U8(1), U8(0), U8(2),
  /*   36 E> */ B(StaLookupSlot), U8(2), U8(0),
27
  /*   52 S> */ B(LdaLookupGlobalSlot), U8(3), U8(0), U8(1),
28
                B(Star), R(2),
29
                B(LdaConstant), U8(4),
30
                B(Star), R(3),
31
                B(LdaZero),
32
                B(Star), R(7),
33
                B(LdaSmi), I8(30),
34
                B(Star), R(8),
35 36
                B(LdaSmi), I8(52),
                B(Star), R(9),
37
                B(Mov), R(2), R(4),
38 39 40 41
                B(Mov), R(3), R(5),
                B(Mov), R(closure), R(6),
                B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4), U8(6),
                B(Star), R(2),
42 43
  /*   52 E> */ B(CallUndefinedReceiver1), R(2), R(3), U8(2),
  /*   62 S> */ B(LdaLookupGlobalSlot), U8(2), U8(4), U8(1),
44
                B(Star), R(2),
45
  /*   69 E> */ B(CallUndefinedReceiver0), R(2), U8(6),
46
  /*   73 S> */ B(Return),
47 48
]
constant pool: [
49
  SCOPE_INFO_TYPE,
50 51 52
  SHARED_FUNCTION_INFO_TYPE,
  ONE_BYTE_INTERNALIZED_STRING_TYPE ["g"],
  ONE_BYTE_INTERNALIZED_STRING_TYPE ["eval"],
53
  ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
54 55 56 57
]
handlers: [
]