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

Side by Side Diff: src/objects.h

Issue 2649703002: [Atomics] Make Atomics.compareExchange a builtin using TF (Closed)
Patch Set: PPC and S390 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 6868 matching lines...) Expand 10 before | Expand all | Expand 10 after
6879 V(WeakMap.prototype, delete, WeakMapDelete) \ 6879 V(WeakMap.prototype, delete, WeakMapDelete) \
6880 V(WeakMap.prototype, has, WeakMapHas) \ 6880 V(WeakMap.prototype, has, WeakMapHas) \
6881 V(WeakMap.prototype, set, WeakMapSet) \ 6881 V(WeakMap.prototype, set, WeakMapSet) \
6882 V(WeakSet.prototype, add, WeakSetAdd) \ 6882 V(WeakSet.prototype, add, WeakSetAdd) \
6883 V(WeakSet.prototype, delete, WeakSetDelete) \ 6883 V(WeakSet.prototype, delete, WeakSetDelete) \
6884 V(WeakSet.prototype, has, WeakSetHas) 6884 V(WeakSet.prototype, has, WeakSetHas)
6885 6885
6886 #define ATOMIC_FUNCTIONS_WITH_ID_LIST(V) \ 6886 #define ATOMIC_FUNCTIONS_WITH_ID_LIST(V) \
6887 V(Atomics, load, AtomicsLoad) \ 6887 V(Atomics, load, AtomicsLoad) \
6888 V(Atomics, store, AtomicsStore) \ 6888 V(Atomics, store, AtomicsStore) \
6889 V(Atomics, exchange, AtomicsExchange) 6889 V(Atomics, exchange, AtomicsExchange) \
6890 V(Atomics, compareExchange, AtomicsCompareExchange)
6890 6891
6891 enum BuiltinFunctionId { 6892 enum BuiltinFunctionId {
6892 kArrayCode, 6893 kArrayCode,
6893 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \ 6894 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \
6894 k##name, 6895 k##name,
6895 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) 6896 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID)
6896 ATOMIC_FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) 6897 ATOMIC_FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID)
6897 #undef DECLARE_FUNCTION_ID 6898 #undef DECLARE_FUNCTION_ID
6898 // Fake id for a special case of Math.pow. Note, it continues the 6899 // Fake id for a special case of Math.pow. Note, it continues the
6899 // list of math functions. 6900 // list of math functions.
(...skipping 4672 matching lines...) Expand 10 before | Expand all | Expand 10 after
11572 } 11573 }
11573 }; 11574 };
11574 11575
11575 11576
11576 } // NOLINT, false-positive due to second-order macros. 11577 } // NOLINT, false-positive due to second-order macros.
11577 } // NOLINT, false-positive due to second-order macros. 11578 } // NOLINT, false-positive due to second-order macros.
11578 11579
11579 #include "src/objects/object-macros-undef.h" 11580 #include "src/objects/object-macros-undef.h"
11580 11581
11581 #endif // V8_OBJECTS_H_ 11582 #endif // V8_OBJECTS_H_
OLDNEW
« src/builtins/builtins-sharedarraybuffer.cc ('K') | « src/js/harmony-atomics.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698