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

Unified Diff: runtime/vm/atomic_linux.cc

Issue 109803002: Profiler Take 2 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « runtime/vm/atomic_android.cc ('k') | runtime/vm/atomic_macos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/atomic_linux.cc
diff --git a/runtime/bin/vmservice.h b/runtime/vm/atomic_linux.cc
similarity index 53%
copy from runtime/bin/vmservice.h
copy to runtime/vm/atomic_linux.cc
index 4dcf93f704aaf7e82fc4d54ab5dbd81d2c7ee64e..f5888b019d44890b1e657b35ee8ccc26c09509a7 100644
--- a/runtime/bin/vmservice.h
+++ b/runtime/vm/atomic_linux.cc
@@ -2,16 +2,20 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-#ifndef BIN_VMSERVICE_H_
-#define BIN_VMSERVICE_H_
+#include "platform/globals.h"
+#if defined(TARGET_OS_LINUX)
-#include "include/dart_api.h"
+#include "vm/atomic.h"
namespace dart {
-namespace bin {
-} // namespace bin
+uintptr_t AtomicOperations::FetchAndIncrement(uintptr_t* p) {
+ return __sync_fetch_and_add(p, 1);
+}
+
+
} // namespace dart
-#endif // BIN_VMSERVICE_H_
+
+#endif // defined(TARGET_OS_LINUX)
« no previous file with comments | « runtime/vm/atomic_android.cc ('k') | runtime/vm/atomic_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698