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

Unified Diff: runtime/vm/intermediate_language_test.cc

Issue 10700111: Eliminate the type distinction between BindInstr and DoInstr. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Eliminate an unnecessary virtual function. Created 8 years, 5 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 9035d3060d425a577d4d6a89cdd5c90f8ab7c2f3..f6b5b870e2ce10a92ddafb71a013f2daa9882125 100644
--- a/runtime/vm/intermediate_language_test.cc
+++ b/runtime/vm/intermediate_language_test.cc
@@ -10,12 +10,11 @@ namespace dart {
TEST_CASE(InstructionTests) {
TargetEntryInstr* target_instr = new TargetEntryInstr();
EXPECT(target_instr->IsBlockEntry());
- EXPECT(!target_instr->IsDo());
EXPECT(!target_instr->IsBind());
- DoInstr* do_instr = new DoInstr(new CurrentContextComp());
- EXPECT(do_instr->IsDo());
- EXPECT(!do_instr->IsBlockEntry());
- EXPECT(!do_instr->IsBind());
+ BindInstr* bind_instr =
+ new BindInstr(BindInstr::kUnused, new CurrentContextComp());
+ EXPECT(bind_instr->IsBind());
+ EXPECT(!bind_instr->IsBlockEntry());
}
} // namespace dart
« 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