Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Side by Side Diff: tests/compiler/dart2js/inference/data/locals.dart

Issue 3008133002: Handle local invoke in inferrer (Closed)
Patch Set: dartfmt Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /*element: main:[null]*/ 5 /*element: main:[null]*/
6 main() { 6 main() {
7 uninitializedLocal(); 7 uninitializedLocal();
8 initializedLocal(); 8 initializedLocal();
9 updatedLocal(); 9 updatedLocal();
10 invokeLocal();
11 postfixLocal();
10 } 12 }
11 13
12 /*element: uninitializedLocal:[null]*/ 14 /*element: uninitializedLocal:[null]*/
13 uninitializedLocal() { 15 uninitializedLocal() {
14 var local; 16 var local;
15 return local; 17 return local;
16 } 18 }
17 19
18 /*element: initializedLocal:[exact=JSUInt31]*/ 20 /*element: initializedLocal:[exact=JSUInt31]*/
19 initializedLocal() { 21 initializedLocal() {
20 var local = 0; 22 var local = 0;
21 return local; 23 return local;
22 } 24 }
23 25
24 /*element: updatedLocal:[exact=JSUInt31]*/ 26 /*element: updatedLocal:[exact=JSUInt31]*/
25 updatedLocal() { 27 updatedLocal() {
26 var local2; 28 var local2;
27 local2 = 0; 29 local2 = 0;
28 return local2; 30 return local2;
29 } 31 }
32
33 /*element: invokeLocal:[null]*/
34 invokeLocal() {
35 var local2 = 0;
36 local2. /*invoke: [exact=JSUInt31]*/ toString();
37 return null;
38 }
39
40 /*element: postfixLocal:[null]*/
41 postfixLocal() {
42 // ignore: UNUSED_LOCAL_VARIABLE
Siggi Cherem (dart-lang) 2017/09/05 19:20:39 should we disable running the analyzer on this dat
Johnni Winther 2017/09/07 08:08:52 Maybe.
43 var local2 = 0;
44 local2 /*invoke: [exact=JSUInt31]*/ ++;
45 return null;
46 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698