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

Side by Side Diff: tests/language/store_to_load_forwarding_phis_vm_test.dart

Issue 12395016: Add library tag into the test store_to_load_forwarding_phis_vm_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 // Test correct handling of phis with only environment uses that were inserted 4 // Test correct handling of phis with only environment uses that were inserted
5 // by store to load forwarding. 5 // by store to load forwarding.
6 // VMOptions=--optimization_counter_threshold=100 6 // VMOptions=--optimization_counter_threshold=100
7 7
8 library store_to_load_forwarding_phis_vm_test;
9
8 import 'dart:async'; 10 import 'dart:async';
9 11
10 class A { 12 class A {
11 var _foo; 13 var _foo;
12 14
13 get foo { 15 get foo {
14 if (_foo == null) { 16 if (_foo == null) {
15 _foo = new A(); 17 _foo = new A();
16 } 18 }
17 return _foo; 19 return _foo;
18 } 20 }
19 } 21 }
20 22
21 foo(obj) { 23 foo(obj) {
22 var a = obj.foo; 24 var a = obj.foo;
23 return new Future.immediate(null).then((val) { }); 25 return new Future.immediate(null).then((val) { });
24 } 26 }
25 27
26 main() { 28 main() {
27 final obj = new A(); 29 final obj = new A();
28 for (var i = 0; i < 200; i++) { 30 for (var i = 0; i < 200; i++) {
29 foo(obj); 31 foo(obj);
30 } 32 }
31 } 33 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698