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

Unified Diff: src/list-inl.h

Issue 8356041: Handlify KeyedIC::ComputeStub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase and address comments. Created 9 years, 2 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 | « src/list.h ('k') | src/objects.h » ('j') | src/objects.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/list-inl.h
diff --git a/src/list-inl.h b/src/list-inl.h
index 5b5179d44c26f331f619762540020c8dd19f171f..34fa027370714b686f91a85269e578de4061f7dc 100644
--- a/src/list-inl.h
+++ b/src/list-inl.h
@@ -236,6 +236,19 @@ int SortedListBSearch(const List<T>& list, T elem) {
return SortedListBSearch<T>(list, elem, PointerValueCompare<T>);
}
+
+template <class T>
+List<T*>* UnwrapHandleList(List<T*>* destination, List<Handle<T> >* source) {
+ ASSERT(destination->is_empty());
+ int length = source->length();
+ for (int i = 0; i < length; ++i) {
+ Handle<T> handle = source->at(i);
+ destination->Add(handle.is_null() ? NULL : *handle);
+ }
+ return destination;
+}
+
+
} } // namespace v8::internal
#endif // V8_LIST_INL_H_
« no previous file with comments | « src/list.h ('k') | src/objects.h » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698