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

Unified Diff: runtime/vm/os_macos.cc

Issue 2276803002: Remove unused external typed data factories. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 | « runtime/vm/os_linux.cc ('k') | runtime/vm/os_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/os_macos.cc
diff --git a/runtime/vm/os_macos.cc b/runtime/vm/os_macos.cc
index cecee6fd541e5e60baa9bee8527a7d09fb18691a..db3adbb874034f1b5d92954f00c5ae24b94c3e13 100644
--- a/runtime/vm/os_macos.cc
+++ b/runtime/vm/os_macos.cc
@@ -166,24 +166,6 @@ int64_t OS::GetCurrentThreadCPUMicros() {
}
-void* OS::AlignedAllocate(intptr_t size, intptr_t alignment) {
- const int kMinimumAlignment = 16;
- ASSERT(Utils::IsPowerOfTwo(alignment));
- ASSERT(alignment >= kMinimumAlignment);
- // Temporary workaround until xcode is upgraded.
- // Mac guarantees malloc returns a 16 byte aligned memory chunk.
- // Currently we only allocate with 16-bye alignment.
- ASSERT(alignment == 16);
- // TODO(johnmccutchan): Remove hack and switch to posix_memalign.
- return malloc(size);
-}
-
-
-void OS::AlignedFree(void* ptr) {
- free(ptr);
-}
-
-
intptr_t OS::ActivationFrameAlignment() {
#if TARGET_OS_IOS
#if TARGET_ARCH_ARM
« no previous file with comments | « runtime/vm/os_linux.cc ('k') | runtime/vm/os_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698