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

Side by Side Diff: pkg/compiler/lib/src/universe/side_effects.dart

Issue 1762723002: Cleanup 1: split parts into their own libraries, remove unused imports (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
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 4
5 library universe.side_effects; 5 library universe.side_effects;
6 6
7 import '../common.dart';
8
9 class SideEffects { 7 class SideEffects {
10 // Changes flags. 8 // Changes flags.
11 static const int FLAG_CHANGES_INDEX = 0; 9 static const int FLAG_CHANGES_INDEX = 0;
12 static const int FLAG_CHANGES_INSTANCE_PROPERTY = FLAG_CHANGES_INDEX + 1; 10 static const int FLAG_CHANGES_INSTANCE_PROPERTY = FLAG_CHANGES_INDEX + 1;
13 static const int FLAG_CHANGES_STATIC_PROPERTY 11 static const int FLAG_CHANGES_STATIC_PROPERTY
14 = FLAG_CHANGES_INSTANCE_PROPERTY + 1; 12 = FLAG_CHANGES_INSTANCE_PROPERTY + 1;
15 static const int FLAG_CHANGES_COUNT = FLAG_CHANGES_STATIC_PROPERTY + 1; 13 static const int FLAG_CHANGES_COUNT = FLAG_CHANGES_STATIC_PROPERTY + 1;
16 14
17 // Depends flags (one for each changes flag). 15 // Depends flags (one for each changes flag).
18 static const int FLAG_DEPENDS_ON_INDEX_STORE = FLAG_CHANGES_COUNT; 16 static const int FLAG_DEPENDS_ON_INDEX_STORE = FLAG_CHANGES_COUNT;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 if (!dependsOnSomething()) buffer.write(' nothing'); 122 if (!dependsOnSomething()) buffer.write(' nothing');
125 buffer.write(', Changes'); 123 buffer.write(', Changes');
126 if (changesIndex()) buffer.write(' []'); 124 if (changesIndex()) buffer.write(' []');
127 if (changesInstanceProperty()) buffer.write(' field'); 125 if (changesInstanceProperty()) buffer.write(' field');
128 if (changesStaticProperty()) buffer.write(' static'); 126 if (changesStaticProperty()) buffer.write(' static');
129 if (!hasSideEffects()) buffer.write(' nothing'); 127 if (!hasSideEffects()) buffer.write(' nothing');
130 buffer.write('.'); 128 buffer.write('.');
131 return buffer.toString(); 129 return buffer.toString();
132 } 130 }
133 } 131 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698