|
1 | | -/*spec.library: |
| 1 | +/*library: |
2 | 2 | constant=[ |
3 | 3 | { |
4 | 4 | "id": "constant/B.C_JS_CONST = function getTagFallback(o) {\n var s = Object.prototype.toString.call(o);\n return s.substring(8, s.length - 1);\n};\n", |
|
61 | 61 | "imports": [] |
62 | 62 | }] |
63 | 63 | */ |
64 | | -/*kernel.library: |
65 | | - constant=[ |
66 | | - { |
67 | | - "id": "constant/B.C_JS_CONST = function getTagFallback(o) {\n var s = Object.prototype.toString.call(o);\n return s.substring(8, s.length - 1);\n};\n", |
68 | | - "kind": "constant", |
69 | | - "name": "", |
70 | | - "size": 131, |
71 | | - "outputUnit": "outputUnit/main", |
72 | | - "code": "B.C_JS_CONST = function getTagFallback(o) {\n var s = Object.prototype.toString.call(o);\n return s.substring(8, s.length - 1);\n};\n" |
73 | | -}, |
74 | | - { |
75 | | - "id": "constant/B.Interceptor_methods = J.Interceptor.prototype;\n", |
76 | | - "kind": "constant", |
77 | | - "name": "", |
78 | | - "size": 49, |
79 | | - "outputUnit": "outputUnit/main", |
80 | | - "code": "B.Interceptor_methods = J.Interceptor.prototype;\n" |
81 | | -}, |
82 | | - { |
83 | | - "id": "constant/B.JSArray_methods = J.JSArray.prototype;\n", |
84 | | - "kind": "constant", |
85 | | - "name": "", |
86 | | - "size": 41, |
87 | | - "outputUnit": "outputUnit/main", |
88 | | - "code": "B.JSArray_methods = J.JSArray.prototype;\n" |
89 | | -}, |
90 | | - { |
91 | | - "id": "constant/B.JSString_methods = J.JSString.prototype;\n", |
92 | | - "kind": "constant", |
93 | | - "name": "", |
94 | | - "size": 43, |
95 | | - "outputUnit": "outputUnit/main", |
96 | | - "code": "B.JSString_methods = J.JSString.prototype;\n" |
97 | | -}, |
98 | | - { |
99 | | - "id": "constant/B.JavaScriptObject_methods = J.JavaScriptObject.prototype;\n", |
100 | | - "kind": "constant", |
101 | | - "name": "", |
102 | | - "size": 59, |
103 | | - "outputUnit": "outputUnit/main", |
104 | | - "code": "B.JavaScriptObject_methods = J.JavaScriptObject.prototype;\n" |
105 | | -}], |
106 | | - deferredFiles=[{}], |
107 | | - dependencies=[{}], |
108 | | - library=[{ |
109 | | - "id": "library/memory:sdk/tests/web/native/main.dart::", |
110 | | - "kind": "library", |
111 | | - "name": "<unnamed>", |
112 | | - "size": 12431, |
113 | | - "children": [ |
114 | | - "class/memory:sdk/tests/web/native/main.dart::Class1", |
115 | | - "function/memory:sdk/tests/web/native/main.dart::main", |
116 | | - "function/memory:sdk/tests/web/native/main.dart::nested", |
117 | | - "function/memory:sdk/tests/web/native/main.dart::nested2", |
118 | | - "function/memory:sdk/tests/web/native/main.dart::siblings", |
119 | | - "function/memory:sdk/tests/web/native/main.dart::topLevelMethod1", |
120 | | - "function/memory:sdk/tests/web/native/main.dart::topLevelMethod2", |
121 | | - "function/memory:sdk/tests/web/native/main.dart::topLevelMethod3", |
122 | | - "function/memory:sdk/tests/web/native/main.dart::topLevelMethod4", |
123 | | - "function/memory:sdk/tests/web/native/main.dart::twoLocals" |
124 | | - ], |
125 | | - "canonicalUri": "memory:sdk/tests/web/native/main.dart" |
126 | | -}], |
127 | | - outputUnits=[{ |
128 | | - "id": "outputUnit/main", |
129 | | - "kind": "outputUnit", |
130 | | - "name": "main", |
131 | | - "filename": "out", |
132 | | - "imports": [] |
133 | | -}] |
134 | | -*/ |
135 | | -/*spec.class: Class1:class=[{ |
| 64 | +/*class: Class1:class=[{ |
136 | 65 | "id": "class/memory:sdk/tests/web/native/main.dart::Class1", |
137 | 66 | "kind": "class", |
138 | 67 | "name": "Class1", |
|
162 | 91 | ], |
163 | 92 | "supers": [] |
164 | 93 | }]*/ |
165 | | -/*kernel.class: Class1:class=[{ |
166 | | - "id": "class/memory:sdk/tests/web/native/main.dart::Class1", |
167 | | - "kind": "class", |
168 | | - "name": "Class1", |
169 | | - "size": 6151, |
170 | | - "outputUnit": "outputUnit/main", |
171 | | - "parent": "library/memory:sdk/tests/web/native/main.dart::", |
172 | | - "modifiers": { |
173 | | - "abstract": false |
174 | | - }, |
175 | | - "children": [ |
176 | | - "field/memory:sdk/tests/web/native/main.dart::Class1.field", |
177 | | - "field/memory:sdk/tests/web/native/main.dart::Class1.funcField", |
178 | | - "function/memory:sdk/tests/web/native/main.dart::Class1.Class1", |
179 | | - "function/memory:sdk/tests/web/native/main.dart::Class1.Class1.fact", |
180 | | - "function/memory:sdk/tests/web/native/main.dart::Class1.Class1.fact2", |
181 | | - "function/memory:sdk/tests/web/native/main.dart::Class1.Class1.setFunc", |
182 | | - "function/memory:sdk/tests/web/native/main.dart::Class1.method1", |
183 | | - "function/memory:sdk/tests/web/native/main.dart::Class1.method2", |
184 | | - "function/memory:sdk/tests/web/native/main.dart::Class1.method3", |
185 | | - "function/memory:sdk/tests/web/native/main.dart::Class1.method4", |
186 | | - "function/memory:sdk/tests/web/native/main.dart::Class1.method5", |
187 | | - "function/memory:sdk/tests/web/native/main.dart::Class1.method6", |
188 | | - "function/memory:sdk/tests/web/native/main.dart::Class1.staticMethod1", |
189 | | - "function/memory:sdk/tests/web/native/main.dart::Class1.staticMethod2", |
190 | | - "function/memory:sdk/tests/web/native/main.dart::Class1.staticMethod3", |
191 | | - "function/memory:sdk/tests/web/native/main.dart::Class1.staticMethod4" |
192 | | - ], |
193 | | - "supers": [] |
194 | | -}]*/ |
195 | 94 | class Class1<T> { |
196 | | - /*spec.member: Class1.field: |
| 95 | + /*member: Class1.field: |
197 | 96 | closure=[{ |
198 | 97 | "id": "closure/memory:sdk/tests/web/native/main.dart::Class1.field.Class1_field_closure", |
199 | 98 | "kind": "closure", |
@@ -240,94 +139,6 @@ class Class1<T> { |
240 | 139 | "code": "call$0() {\n return A.createRuntimeType(this.T);\n }", |
241 | 140 | "type": "Type Function()", |
242 | 141 | "functionKind": 2 |
243 | | -}], |
244 | | - holding=[ |
245 | | - {"id":"field/memory:sdk/tests/web/native/main.dart::Class1.field"}, |
246 | | - {"id":"function/dart:_js_helper::throwCyclicInit"}, |
247 | | - {"id":"function/dart:_late_helper::throwLateFieldADI"}, |
248 | | - {"id":"function/dart:_rti::Rti._bind"}, |
249 | | - {"id":"function/dart:_rti::Rti._eval"}, |
250 | | - {"id":"function/dart:_rti::_arrayInstanceType"}, |
251 | | - {"id":"function/dart:_rti::_asBool"}, |
252 | | - {"id":"function/dart:_rti::_asBoolQ"}, |
253 | | - {"id":"function/dart:_rti::_asBoolS"}, |
254 | | - {"id":"function/dart:_rti::_asDouble"}, |
255 | | - {"id":"function/dart:_rti::_asDoubleQ"}, |
256 | | - {"id":"function/dart:_rti::_asDoubleS"}, |
257 | | - {"id":"function/dart:_rti::_asInt"}, |
258 | | - {"id":"function/dart:_rti::_asIntQ"}, |
259 | | - {"id":"function/dart:_rti::_asIntS"}, |
260 | | - {"id":"function/dart:_rti::_asNum"}, |
261 | | - {"id":"function/dart:_rti::_asNumQ"}, |
262 | | - {"id":"function/dart:_rti::_asNumS"}, |
263 | | - {"id":"function/dart:_rti::_asObject"}, |
264 | | - {"id":"function/dart:_rti::_asString"}, |
265 | | - {"id":"function/dart:_rti::_asStringQ"}, |
266 | | - {"id":"function/dart:_rti::_asStringS"}, |
267 | | - {"id":"function/dart:_rti::_asTop"}, |
268 | | - {"id":"function/dart:_rti::_generalAsCheckImplementation"}, |
269 | | - {"id":"function/dart:_rti::_generalIsTestImplementation"}, |
270 | | - {"id":"function/dart:_rti::_generalNullableAsCheckImplementation"}, |
271 | | - {"id":"function/dart:_rti::_generalNullableIsTestImplementation"}, |
272 | | - {"id":"function/dart:_rti::_installSpecializedAsCheck"}, |
273 | | - {"id":"function/dart:_rti::_installSpecializedIsTest"}, |
274 | | - {"id":"function/dart:_rti::_instanceType"}, |
275 | | - {"id":"function/dart:_rti::_isBool"}, |
276 | | - {"id":"function/dart:_rti::_isInt"}, |
277 | | - {"id":"function/dart:_rti::_isNum"}, |
278 | | - {"id":"function/dart:_rti::_isObject"}, |
279 | | - {"id":"function/dart:_rti::_isString"}, |
280 | | - {"id":"function/dart:_rti::_isTop"}, |
281 | | - {"id":"function/dart:_rti::findType"}, |
282 | | - {"id":"function/dart:_rti::instanceType"}] |
283 | | - */ |
284 | | - /*kernel.member: Class1.field: |
285 | | - closure=[{ |
286 | | - "id": "closure/memory:sdk/tests/web/native/main.dart::Class1.field.Class1_field_closure", |
287 | | - "kind": "closure", |
288 | | - "name": "Class1_field_closure", |
289 | | - "size": 242, |
290 | | - "outputUnit": "outputUnit/main", |
291 | | - "parent": "field/memory:sdk/tests/web/native/main.dart::Class1.field", |
292 | | - "function": "function/memory:sdk/tests/web/native/main.dart::Class1.field.Class1_field_closure.call" |
293 | | -}], |
294 | | - function=[ |
295 | | - { |
296 | | - "id": "field/memory:sdk/tests/web/native/main.dart::Class1.field", |
297 | | - "kind": "field", |
298 | | - "name": "field", |
299 | | - "size": 318, |
300 | | - "outputUnit": "outputUnit/main", |
301 | | - "parent": "class/memory:sdk/tests/web/native/main.dart::Class1", |
302 | | - "children": [ |
303 | | - "closure/memory:sdk/tests/web/native/main.dart::Class1.field.Class1_field_closure" |
304 | | - ], |
305 | | - "inferredType": "[subclass=Closure]", |
306 | | - "code": "set$field(field) {\n this.field = type$.Type_Function._as(field);\n }", |
307 | | - "type": "Type Function()" |
308 | | -}, |
309 | | - { |
310 | | - "id": "function/memory:sdk/tests/web/native/main.dart::Class1.field.Class1_field_closure.call", |
311 | | - "kind": "function", |
312 | | - "name": "call", |
313 | | - "size": 58, |
314 | | - "outputUnit": "outputUnit/main", |
315 | | - "parent": "closure/memory:sdk/tests/web/native/main.dart::Class1.field.Class1_field_closure", |
316 | | - "children": [], |
317 | | - "modifiers": { |
318 | | - "static": false, |
319 | | - "const": false, |
320 | | - "factory": false, |
321 | | - "external": false |
322 | | - }, |
323 | | - "returnType": "Type", |
324 | | - "inferredReturnType": "[exact=_Type]", |
325 | | - "parameters": [], |
326 | | - "sideEffects": "SideEffects(reads nothing; writes nothing)", |
327 | | - "inlinedCount": 0, |
328 | | - "code": "call$0() {\n return A.createRuntimeType(this.T);\n }", |
329 | | - "type": "Type Function()", |
330 | | - "functionKind": 2 |
331 | 142 | }], |
332 | 143 | holding=[ |
333 | 144 | {"id":"field/memory:sdk/tests/web/native/main.dart::Class1.field"}, |
@@ -2045,7 +1856,7 @@ dynamic nested() { |
2045 | 1856 | x(); |
2046 | 1857 | } |
2047 | 1858 |
|
2048 | | -/*spec.member: nested2: |
| 1859 | +/*member: nested2: |
2049 | 1860 | closure=[ |
2050 | 1861 | { |
2051 | 1862 | "id": "closure/memory:sdk/tests/web/native/main.dart::nested2.nested2_local1", |
@@ -2177,138 +1988,6 @@ dynamic nested() { |
2177 | 1988 | {"id":"function/memory:sdk/tests/web/native/main.dart::nested2.nested2_local1.call"}, |
2178 | 1989 | {"id":"function/memory:sdk/tests/web/native/main.dart::nested2.nested2_local1.call"}] |
2179 | 1990 | */ |
2180 | | -/*kernel.member: nested2: |
2181 | | - closure=[ |
2182 | | - { |
2183 | | - "id": "closure/memory:sdk/tests/web/native/main.dart::nested2.nested2_local1", |
2184 | | - "kind": "closure", |
2185 | | - "name": "nested2_local1", |
2186 | | - "size": 195, |
2187 | | - "outputUnit": "outputUnit/main", |
2188 | | - "parent": "function/memory:sdk/tests/web/native/main.dart::nested2", |
2189 | | - "function": "function/memory:sdk/tests/web/native/main.dart::nested2.nested2_local1.call" |
2190 | | -}, |
2191 | | - { |
2192 | | - "id": "closure/memory:sdk/tests/web/native/main.dart::nested2.nested2_local1__closure", |
2193 | | - "kind": "closure", |
2194 | | - "name": "nested2_local1__closure", |
2195 | | - "size": 193, |
2196 | | - "outputUnit": "outputUnit/main", |
2197 | | - "parent": "function/memory:sdk/tests/web/native/main.dart::nested2", |
2198 | | - "function": "function/memory:sdk/tests/web/native/main.dart::nested2.nested2_local1__closure.call" |
2199 | | -}, |
2200 | | - { |
2201 | | - "id": "closure/memory:sdk/tests/web/native/main.dart::nested2.nested2_local1_closure", |
2202 | | - "kind": "closure", |
2203 | | - "name": "nested2_local1_closure", |
2204 | | - "size": 311, |
2205 | | - "outputUnit": "outputUnit/main", |
2206 | | - "parent": "function/memory:sdk/tests/web/native/main.dart::nested2", |
2207 | | - "function": "function/memory:sdk/tests/web/native/main.dart::nested2.nested2_local1_closure.call" |
2208 | | -}], |
2209 | | - function=[ |
2210 | | - { |
2211 | | - "id": "function/memory:sdk/tests/web/native/main.dart::nested2", |
2212 | | - "kind": "function", |
2213 | | - "name": "nested2", |
2214 | | - "size": 764, |
2215 | | - "outputUnit": "outputUnit/main", |
2216 | | - "parent": "library/memory:sdk/tests/web/native/main.dart::", |
2217 | | - "children": [ |
2218 | | - "closure/memory:sdk/tests/web/native/main.dart::nested2.nested2_local1", |
2219 | | - "closure/memory:sdk/tests/web/native/main.dart::nested2.nested2_local1__closure", |
2220 | | - "closure/memory:sdk/tests/web/native/main.dart::nested2.nested2_local1_closure" |
2221 | | - ], |
2222 | | - "modifiers": { |
2223 | | - "static": false, |
2224 | | - "const": false, |
2225 | | - "factory": false, |
2226 | | - "external": false |
2227 | | - }, |
2228 | | - "returnType": "dynamic", |
2229 | | - "inferredReturnType": "[null]", |
2230 | | - "parameters": [], |
2231 | | - "sideEffects": "SideEffects(reads anything; writes anything)", |
2232 | | - "inlinedCount": 0, |
2233 | | - "code": "nested2() {\n A.print(new A.nested2_local1().call$0());\n }", |
2234 | | - "type": "dynamic Function()", |
2235 | | - "functionKind": 0 |
2236 | | -}, |
2237 | | - { |
2238 | | - "id": "function/memory:sdk/tests/web/native/main.dart::nested2.nested2_local1.call", |
2239 | | - "kind": "function", |
2240 | | - "name": "call", |
2241 | | - "size": 70, |
2242 | | - "outputUnit": "outputUnit/main", |
2243 | | - "parent": "closure/memory:sdk/tests/web/native/main.dart::nested2.nested2_local1", |
2244 | | - "children": [], |
2245 | | - "modifiers": { |
2246 | | - "static": false, |
2247 | | - "const": false, |
2248 | | - "factory": false, |
2249 | | - "external": false |
2250 | | - }, |
2251 | | - "returnType": "int", |
2252 | | - "inferredReturnType": "[subclass=JSInt]", |
2253 | | - "parameters": [], |
2254 | | - "sideEffects": "SideEffects(reads anything; writes anything)", |
2255 | | - "inlinedCount": 0, |
2256 | | - "code": "call$0() {\n return new A.nested2_local1_closure().call$0();\n }", |
2257 | | - "type": "int Function()", |
2258 | | - "functionKind": 2 |
2259 | | -}, |
2260 | | - { |
2261 | | - "id": "function/memory:sdk/tests/web/native/main.dart::nested2.nested2_local1__closure.call", |
2262 | | - "kind": "function", |
2263 | | - "name": "call", |
2264 | | - "size": 32, |
2265 | | - "outputUnit": "outputUnit/main", |
2266 | | - "parent": "closure/memory:sdk/tests/web/native/main.dart::nested2.nested2_local1__closure", |
2267 | | - "children": [], |
2268 | | - "modifiers": { |
2269 | | - "static": false, |
2270 | | - "const": false, |
2271 | | - "factory": false, |
2272 | | - "external": false |
2273 | | - }, |
2274 | | - "returnType": "int", |
2275 | | - "inferredReturnType": "[exact=JSUInt31]", |
2276 | | - "parameters": [], |
2277 | | - "sideEffects": "SideEffects(reads nothing; writes nothing)", |
2278 | | - "inlinedCount": 0, |
2279 | | - "code": "call$0() {\n return 2;\n }", |
2280 | | - "type": "int Function()", |
2281 | | - "functionKind": 2 |
2282 | | -}, |
2283 | | - { |
2284 | | - "id": "function/memory:sdk/tests/web/native/main.dart::nested2.nested2_local1_closure.call", |
2285 | | - "kind": "function", |
2286 | | - "name": "call", |
2287 | | - "size": 154, |
2288 | | - "outputUnit": "outputUnit/main", |
2289 | | - "parent": "closure/memory:sdk/tests/web/native/main.dart::nested2.nested2_local1_closure", |
2290 | | - "children": [], |
2291 | | - "modifiers": { |
2292 | | - "static": false, |
2293 | | - "const": false, |
2294 | | - "factory": false, |
2295 | | - "external": false |
2296 | | - }, |
2297 | | - "returnType": "int", |
2298 | | - "inferredReturnType": "[subclass=JSInt]", |
2299 | | - "parameters": [], |
2300 | | - "sideEffects": "SideEffects(reads anything; writes anything)", |
2301 | | - "inlinedCount": 0, |
2302 | | - "code": "call$0() {\n var t1 = new A.nested2_local1__closure().call$0();\n if (typeof t1 !== \"number\")\n return A.iae(t1);\n return 1 + t1;\n }", |
2303 | | - "type": "int Function()", |
2304 | | - "functionKind": 2 |
2305 | | -}], |
2306 | | - holding=[ |
2307 | | - {"id":"function/dart:_rti::_setArrayType"}, |
2308 | | - {"id":"function/dart:core::print"}, |
2309 | | - {"id":"function/memory:sdk/tests/web/native/main.dart::nested2.nested2_local1.call"}, |
2310 | | - {"id":"function/memory:sdk/tests/web/native/main.dart::nested2.nested2_local1.call"}] |
2311 | | -*/ |
2312 | 1991 | dynamic nested2() { |
2313 | 1992 | dynamic y; |
2314 | 1993 | int local1() { |
|
0 commit comments