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

Unified Diff: src/small-pointer-list.h

Issue 11365174: A change in the way we place TransitionElementKinds in the tree. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Visited set needs to consider edges, not vertexes on down propagation through the network. Created 8 years, 1 month 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: src/small-pointer-list.h
diff --git a/src/small-pointer-list.h b/src/small-pointer-list.h
index 295a06f26afc50bc39f81a21f777f3e1b922b4de..21d9e0671595a76dac9cf780b21b2504fe21f517 100644
--- a/src/small-pointer-list.h
+++ b/src/small-pointer-list.h
@@ -126,6 +126,16 @@ class SmallPointerList {
list()->RemoveElement(pointer);
}
+ void RemoveAt(int i) {
+ if ((data_ & kTagMask) == kEmptyTag) return;
+ if ((data_ & kTagMask) == kSingletonTag) {
+ ASSERT(i == 0);
+ data_ = kEmptyTag;
+ return;
+ }
+ list()->Remove(i);
+ }
+
T* RemoveLast() {
ASSERT((data_ & kTagMask) != kEmptyTag);
if ((data_ & kTagMask) == kSingletonTag) {
« src/hydrogen-instructions.h ('K') | « src/objects.cc ('k') | src/v8-counters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698