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

Unified Diff: runtime/vm/atomic_macos.h

Issue 677193002: - Use the simulator to do atomic operations that could also (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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/atomic_linux.h ('k') | runtime/vm/atomic_simulator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/atomic_macos.h
===================================================================
--- runtime/vm/atomic_macos.h (revision 41327)
+++ runtime/vm/atomic_macos.h (working copy)
@@ -21,11 +21,13 @@
}
+#if !defined(USING_SIMULATOR)
inline uword AtomicOperations::CompareAndSwapWord(uword* ptr,
uword old_value,
uword new_value) {
return __sync_val_compare_and_swap(ptr, old_value, new_value);
}
+#endif // !defined(USING_SIMULATOR)
} // namespace dart
« no previous file with comments | « runtime/vm/atomic_linux.h ('k') | runtime/vm/atomic_simulator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698