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

Unified Diff: runtime/vm/intermediate_language_test.cc

Issue 10919008: Unbox phis that were proven to be of type Double. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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: runtime/vm/intermediate_language_test.cc
diff --git a/runtime/vm/intermediate_language_test.cc b/runtime/vm/intermediate_language_test.cc
index 809a5ed761baf98f8028fb0b6811628c8f6c1cf6..1b571acb71dc16eb44f7bc6e8d861dcdfa6c5bb3 100644
--- a/runtime/vm/intermediate_language_test.cc
+++ b/runtime/vm/intermediate_language_test.cc
@@ -20,8 +20,11 @@ TEST_CASE(InstructionTests) {
TEST_CASE(OptimizationTests) {
- Definition* def1 = new PhiInstr(0);
- Definition* def2 = new PhiInstr(0);
+ JoinEntryInstr* join =
+ new JoinEntryInstr(CatchClauseNode::kInvalidTryIndex);
+
+ Definition* def1 = new PhiInstr(join, 0);
+ Definition* def2 = new PhiInstr(join, 0);
Value* use1a = new Value(def1);
Value* use1b = new Value(def1);
EXPECT(use1a->Equals(use1b));

Powered by Google App Engine
This is Rietveld 408576698