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

Side by Side Diff: vm/bit_vector_test.cc

Issue 10796108: Add a backward instruction iterator and use it in the liveness analysis. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "platform/assert.h" 5 #include "platform/assert.h"
6 #include "vm/bit_vector.h" 6 #include "vm/bit_vector.h"
7 #include "vm/unit_test.h" 7 #include "vm/unit_test.h"
8 8
9 namespace dart { 9 namespace dart {
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 EXPECT_EQ(false, a->Contains(127)); 67 EXPECT_EQ(false, a->Contains(127));
68 b->Add(96); 68 b->Add(96);
69 b->Add(127); 69 b->Add(127);
70 c->Add(127); 70 c->Add(127);
71 a->KillAndAdd(c, b); 71 a->KillAndAdd(c, b);
72 EXPECT_EQ(true, a->Contains(0)); 72 EXPECT_EQ(true, a->Contains(0));
73 EXPECT_EQ(true, a->Contains(32)); 73 EXPECT_EQ(true, a->Contains(32));
74 EXPECT_EQ(true, a->Contains(64)); 74 EXPECT_EQ(true, a->Contains(64));
75 EXPECT_EQ(true, a->Contains(96)); 75 EXPECT_EQ(true, a->Contains(96));
76 EXPECT_EQ(false, a->Contains(127)); 76 EXPECT_EQ(false, a->Contains(127));
77 a->Remove(0);
78 a->Remove(32);
79 a->Remove(64);
80 a->Remove(96);
81 EXPECT_EQ(false, a->Contains(0));
82 EXPECT_EQ(false, a->Contains(32));
83 EXPECT_EQ(false, a->Contains(64));
84 EXPECT_EQ(false, a->Contains(96));
77 } 85 }
78 } 86 }
79 87
80 } // namespace dart 88 } // namespace dart
OLDNEW
« no previous file with comments | « vm/bit_vector.h ('k') | vm/flow_graph_allocator.cc » ('j') | vm/flow_graph_allocator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698