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

Unified Diff: src/utils.h

Issue 7054072: Refactor storage of global handles. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 6 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
« src/global-handles.cc ('K') | « src/heap.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils.h
diff --git a/src/utils.h b/src/utils.h
index 85fccbd4b4b7b697ed4ef916edfb851e364cb233..f74d7a362d15b6d042ff95e747447c5d06a38771 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -202,6 +202,8 @@ inline int StrLength(const char* string) {
template<class T, int shift, int size>
class BitField {
public:
+ typedef T ValueType;
Vyacheslav Egorov (Chromium) 2011/06/06 12:59:22 I did not find place where it is used.
Vitaly Repeshko 2011/06/06 15:19:43 Oops, this got in from another change.
+
// Tells whether the provided value fits into the bit field.
static bool is_valid(T value) {
return (static_cast<uint32_t>(value) & ~((1U << (size)) - 1)) == 0;
« src/global-handles.cc ('K') | « src/heap.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698