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

Unified Diff: runtime/vm/intermediate_language_test.cc

Issue 10917085: Revert "Remove classes Computation and BindInstr." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language_test.cc
diff --git a/runtime/vm/intermediate_language_test.cc b/runtime/vm/intermediate_language_test.cc
index 71b48fb97bd7de29f5db59bfb72f527e4c6c131b..28d2b5c55e88aa31d6ad75a43928a62e1e1152d5 100644
--- a/runtime/vm/intermediate_language_test.cc
+++ b/runtime/vm/intermediate_language_test.cc
@@ -11,10 +11,11 @@ TEST_CASE(InstructionTests) {
TargetEntryInstr* target_instr =
new TargetEntryInstr(CatchClauseNode::kInvalidTryIndex);
EXPECT(target_instr->IsBlockEntry());
- EXPECT(!target_instr->IsDefinition());
- CurrentContextInstr* context = new CurrentContextInstr();
- EXPECT(context->IsDefinition());
- EXPECT(!context->IsBlockEntry());
+ EXPECT(!target_instr->IsBind());
+ BindInstr* bind_instr =
+ new BindInstr(Definition::kEffect, new CurrentContextComp());
+ EXPECT(bind_instr->IsBind());
+ EXPECT(!bind_instr->IsBlockEntry());
}
@@ -30,11 +31,11 @@ TEST_CASE(OptimizationTests) {
Value* use2 = new Value(def2);
EXPECT(!use2->Equals(use1a));
- ConstantInstr* c1 = new ConstantInstr(Bool::ZoneHandle(Bool::True()));
- ConstantInstr* c2 = new ConstantInstr(Bool::ZoneHandle(Bool::True()));
+ ConstantComp* c1 = new ConstantComp(Bool::ZoneHandle(Bool::True()));
+ ConstantComp* c2 = new ConstantComp(Bool::ZoneHandle(Bool::True()));
EXPECT(c1->Equals(c2));
- ConstantInstr* c3 = new ConstantInstr(Object::ZoneHandle());
- ConstantInstr* c4 = new ConstantInstr(Object::ZoneHandle());
+ ConstantComp* c3 = new ConstantComp(Object::ZoneHandle());
+ ConstantComp* c4 = new ConstantComp(Object::ZoneHandle());
EXPECT(c3->Equals(c4));
EXPECT(!c3->Equals(c1));
}
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698