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

Unified Diff: src/objects.h

Issue 1162503002: Implement Atomics API (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix warnings Created 5 years, 7 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: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 0e78af87f127f9f03ca4f5bd2d6a2a25db7f98a4..b262cf765106f27c4cf5ffd2ccb4c14d5f441955 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -6901,11 +6901,16 @@ class Script: public Struct {
V(Math, clz32, MathClz32) \
V(Math, fround, MathFround)
+#define ATOMIC_FUNCTIONS_WITH_ID_LIST(V) \
+ V(Atomics, load, AtomicsLoad) \
+ V(Atomics, store, AtomicsStore)
+
enum BuiltinFunctionId {
kArrayCode,
#define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \
k##name,
FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID)
+ ATOMIC_FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID)
Jarin 2015/06/01 17:50:10 Funny indentation.
binji 2015/06/02 21:32:55 Agreed. This is what git cl format does, I think b
Jarin 2015/06/03 13:30:14 I think this is because git cl format only format
#undef DECLARE_FUNCTION_ID
// Fake id for a special case of Math.pow. Note, it continues the
// list of math functions.
« no previous file with comments | « src/messages.h ('k') | src/runtime/runtime.h » ('j') | src/runtime/runtime-atomics.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698