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

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: Updated cf. comments 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
« no previous file with comments | « lib/compiler/implementation/ssa/codegen.dart ('k') | lib/compiler/implementation/tree/nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/nodes.dart
diff --git a/lib/compiler/implementation/ssa/nodes.dart b/lib/compiler/implementation/ssa/nodes.dart
index b897f36a4d48e2caa5266acea39f39f433674b7b..72a45cff490db01565a579fda54ec975147da069 100644
--- a/lib/compiler/implementation/ssa/nodes.dart
+++ b/lib/compiler/implementation/ssa/nodes.dart
@@ -739,7 +739,7 @@ class HBasicBlock extends HInstructionList implements Hashable {
}
-class HInstruction implements Hashable {
+class HInstruction implements Hashable, Spannable {
Element sourceElement;
SourceFileLocation sourcePosition;
@@ -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(invariant(this, element.isDeclaration));
+ }
void prepareGvn(HTypeMap types) {
if (!element.isAssignable()) {
« no previous file with comments | « lib/compiler/implementation/ssa/codegen.dart ('k') | lib/compiler/implementation/tree/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698