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

Unified Diff: runtime/platform/utils.h

Issue 10968058: Support constant folding of instructions with constant smi values. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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/platform/utils.h
diff --git a/runtime/platform/utils.h b/runtime/platform/utils.h
index 77363161a5267d621a80d5e1676404d85597e884..89ca3b4ead70d3e2fb5a6bef9d522b7221d348eb 100644
--- a/runtime/platform/utils.h
+++ b/runtime/platform/utils.h
@@ -79,6 +79,8 @@ class Utils {
static uint32_t RoundUpToPowerOfTwo(uint32_t x);
static int CountOneBits(uint32_t x);
+ static int HighestBit(int64_t v);
+
static int CountTrailingZeros(uword x);
// Computes a hash value for the given string.

Powered by Google App Engine
This is Rietveld 408576698