Delete.golden 2.73 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
#
# Autogenerated by generate-bytecode-expectations.
#

---
wrap: yes

---
snippet: "
  var a = {x:13, y:14}; return delete a.x;
"
frame size: 2
parameter count: 1
14
bytecode array length: 14
15
bytecodes: [
16
  /*   30 E> */ B(StackCheck),
17
  /*   42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41), R(1),
18
                B(Mov), R(1), R(0),
19
  /*   56 S> */ B(LdaConstant), U8(1),
20
                B(DeletePropertySloppy), R(1),
21
  /*   74 S> */ B(Return),
22 23
]
constant pool: [
24 25
  FIXED_ARRAY_TYPE,
  ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
26 27 28 29 30 31 32 33 34 35
]
handlers: [
]

---
snippet: "
  'use strict'; var a = {x:13, y:14}; return delete a.x;
"
frame size: 2
parameter count: 1
36
bytecode array length: 14
37
bytecodes: [
38
  /*   30 E> */ B(StackCheck),
39
  /*   56 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41), R(1),
40
                B(Mov), R(1), R(0),
41
  /*   70 S> */ B(LdaConstant), U8(1),
42
                B(DeletePropertyStrict), R(1),
43
  /*   88 S> */ B(Return),
44 45
]
constant pool: [
46 47
  FIXED_ARRAY_TYPE,
  ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
48 49 50 51 52 53 54 55 56 57
]
handlers: [
]

---
snippet: "
  var a = {1:13, 2:14}; return delete a[2];
"
frame size: 2
parameter count: 1
58
bytecode array length: 14
59
bytecodes: [
60
  /*   30 E> */ B(StackCheck),
61
  /*   42 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41), R(1),
62
                B(Mov), R(1), R(0),
63
  /*   56 S> */ B(LdaSmi), I8(2),
64
                B(DeletePropertySloppy), R(1),
65
  /*   75 S> */ B(Return),
66 67
]
constant pool: [
68
  FIXED_ARRAY_TYPE,
69 70 71 72 73 74 75 76 77 78 79 80
]
handlers: [
]

---
snippet: "
  var a = 10; return delete a;
"
frame size: 1
parameter count: 1
bytecode array length: 7
bytecodes: [
81
  /*   30 E> */ B(StackCheck),
82
  /*   42 S> */ B(LdaSmi), I8(10),
83
                B(Star), R(0),
84
  /*   46 S> */ B(LdaFalse),
85
  /*   62 S> */ B(Return),
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
]
constant pool: [
]
handlers: [
]

---
snippet: "
  'use strict';
  var a = {1:10};
  (function f1() {return a;});
  return delete a[1];
"
frame size: 2
parameter count: 1
101
bytecode array length: 27
102
bytecodes: [
103
                B(CreateFunctionContext), U8(1),
104 105
                B(PushContext), R(0),
  /*   30 E> */ B(StackCheck),
106
  /*   56 S> */ B(CreateObjectLiteral), U8(0), U8(0), U8(41), R(1),
107
                B(Ldar), R(1),
108
  /*   56 E> */ B(StaCurrentContextSlot), U8(4),
109
  /*   64 S> */ B(CreateClosure), U8(1), U8(1), U8(2),
110
  /*   93 S> */ B(LdaImmutableCurrentContextSlot), U8(4),
111
                B(Star), R(1),
112
                B(LdaSmi), I8(1),
113
                B(DeletePropertyStrict), R(1),
114
  /*  112 S> */ B(Return),
115 116
]
constant pool: [
117 118
  FIXED_ARRAY_TYPE,
  SHARED_FUNCTION_INFO_TYPE,
119 120 121 122 123 124 125 126 127 128 129 130
]
handlers: [
]

---
snippet: "
  return delete 'test';
"
frame size: 0
parameter count: 1
bytecode array length: 3
bytecodes: [
131 132
  /*   30 E> */ B(StackCheck),
  /*   34 S> */ B(LdaTrue),
133
  /*   55 S> */ B(Return),
134 135 136 137 138 139
]
constant pool: [
]
handlers: [
]