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

Unified Diff: lib/compiler/implementation/ssa/nodes.dart

Issue 10917285: Stub implementation of patch invariants for the patch refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Leftovers from rebase. Created 8 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 side-by-side diff with in-line comments
Download patch
Index: lib/compiler/implementation/ssa/nodes.dart
diff --git a/lib/compiler/implementation/ssa/nodes.dart b/lib/compiler/implementation/ssa/nodes.dart
index f71632d0c8c147c6402d0052c5cb914cff678647..289b048b7984e0ae7ea4bce32001d01b476a39c2 100644
--- a/lib/compiler/implementation/ssa/nodes.dart
+++ b/lib/compiler/implementation/ssa/nodes.dart
@@ -2367,7 +2367,10 @@ class HThrow extends HControlFlow {
class HStatic extends HInstruction {
final Element element;
- HStatic(this.element) : super(<HInstruction>[]) { assert(element !== null); }
+ HStatic(this.element) : super(<HInstruction>[]) {
+ assert(element !== null);
+ assert(element.isDeclaration);
+ }
void prepareGvn(HTypeMap types) {
if (!element.isAssignable()) {

Powered by Google App Engine
This is Rietveld 408576698