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

Unified Diff: runtime/bin/utils_win.cc

Issue 1518113002: Remove stray copy of OS::AlignedAllocate. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/utils_win.cc
diff --git a/runtime/bin/utils_win.cc b/runtime/bin/utils_win.cc
index 1ae040171167a12795de542b06c7964b6ecd1c4a..8a114ceecf7d815a7bc71b2b4ce9931d9b56d545 100644
--- a/runtime/bin/utils_win.cc
+++ b/runtime/bin/utils_win.cc
@@ -191,18 +191,6 @@ int64_t TimerUtils::GetCurrentMonotonicMicros() {
return result;
}
-
-void* OS::AlignedAllocate(intptr_t size, intptr_t alignment) {
- const int kMinimumAlignment = 16;
- ASSERT(Utils::IsPowerOfTwo(alignment));
- ASSERT(alignment >= kMinimumAlignment);
- void* p = _aligned_malloc(size, alignment);
- if (p == NULL) {
- UNREACHABLE();
- }
- return p;
-}
-
void TimerUtils::Sleep(int64_t millis) {
::Sleep(millis);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698