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

Side by Side Diff: src/objects.h

Issue 2649703002: [Atomics] Make Atomics.compareExchange a builtin using TF (Closed)
Patch Set: rebase and move cmpxchg to builtins-sharedarraybuffer-gen.cc Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 6879 matching lines...) Expand 10 before | Expand all | Expand 10 after
6890 V(WeakMap.prototype, delete, WeakMapDelete) \ 6890 V(WeakMap.prototype, delete, WeakMapDelete) \
6891 V(WeakMap.prototype, has, WeakMapHas) \ 6891 V(WeakMap.prototype, has, WeakMapHas) \
6892 V(WeakMap.prototype, set, WeakMapSet) \ 6892 V(WeakMap.prototype, set, WeakMapSet) \
6893 V(WeakSet.prototype, add, WeakSetAdd) \ 6893 V(WeakSet.prototype, add, WeakSetAdd) \
6894 V(WeakSet.prototype, delete, WeakSetDelete) \ 6894 V(WeakSet.prototype, delete, WeakSetDelete) \
6895 V(WeakSet.prototype, has, WeakSetHas) 6895 V(WeakSet.prototype, has, WeakSetHas)
6896 6896
6897 #define ATOMIC_FUNCTIONS_WITH_ID_LIST(V) \ 6897 #define ATOMIC_FUNCTIONS_WITH_ID_LIST(V) \
6898 V(Atomics, load, AtomicsLoad) \ 6898 V(Atomics, load, AtomicsLoad) \
6899 V(Atomics, store, AtomicsStore) \ 6899 V(Atomics, store, AtomicsStore) \
6900 V(Atomics, exchange, AtomicsExchange) 6900 V(Atomics, exchange, AtomicsExchange) \
6901 V(Atomics, compareExchange, AtomicsCompareExchange)
6901 6902
6902 enum BuiltinFunctionId { 6903 enum BuiltinFunctionId {
6903 kArrayCode, 6904 kArrayCode,
6904 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \ 6905 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \
6905 k##name, 6906 k##name,
6906 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) 6907 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID)
6907 ATOMIC_FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) 6908 ATOMIC_FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID)
6908 #undef DECLARE_FUNCTION_ID 6909 #undef DECLARE_FUNCTION_ID
6909 // Fake id for a special case of Math.pow. Note, it continues the 6910 // Fake id for a special case of Math.pow. Note, it continues the
6910 // list of math functions. 6911 // list of math functions.
(...skipping 4663 matching lines...) Expand 10 before | Expand all | Expand 10 after
11574 } 11575 }
11575 }; 11576 };
11576 11577
11577 11578
11578 } // NOLINT, false-positive due to second-order macros. 11579 } // NOLINT, false-positive due to second-order macros.
11579 } // NOLINT, false-positive due to second-order macros. 11580 } // NOLINT, false-positive due to second-order macros.
11580 11581
11581 #include "src/objects/object-macros-undef.h" 11582 #include "src/objects/object-macros-undef.h"
11582 11583
11583 #endif // V8_OBJECTS_H_ 11584 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698