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

Side by Side Diff: src/objects.h

Issue 2799863002: [Atomics] use TFJ builtins for atomic add, sub, and, or, and xor (Closed)
Patch Set: [Atomics] use TFJ builtins for atomic add, sub, and, or, and xor Created 3 years, 8 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 5694 matching lines...) Expand 10 before | Expand all | Expand 10 after
5705 V(Set.prototype, has, SetHas) \ 5705 V(Set.prototype, has, SetHas) \
5706 V(Set.prototype, keys, SetKeys) \ 5706 V(Set.prototype, keys, SetKeys) \
5707 V(Set.prototype, values, SetValues) \ 5707 V(Set.prototype, values, SetValues) \
5708 V(WeakMap.prototype, delete, WeakMapDelete) \ 5708 V(WeakMap.prototype, delete, WeakMapDelete) \
5709 V(WeakMap.prototype, has, WeakMapHas) \ 5709 V(WeakMap.prototype, has, WeakMapHas) \
5710 V(WeakMap.prototype, set, WeakMapSet) \ 5710 V(WeakMap.prototype, set, WeakMapSet) \
5711 V(WeakSet.prototype, add, WeakSetAdd) \ 5711 V(WeakSet.prototype, add, WeakSetAdd) \
5712 V(WeakSet.prototype, delete, WeakSetDelete) \ 5712 V(WeakSet.prototype, delete, WeakSetDelete) \
5713 V(WeakSet.prototype, has, WeakSetHas) 5713 V(WeakSet.prototype, has, WeakSetHas)
5714 5714
5715 #define ATOMIC_FUNCTIONS_WITH_ID_LIST(V) \ 5715 #define ATOMIC_FUNCTIONS_WITH_ID_LIST(V) \
5716 V(Atomics, load, AtomicsLoad) \ 5716 V(Atomics, load, AtomicsLoad) \
5717 V(Atomics, store, AtomicsStore) \ 5717 V(Atomics, store, AtomicsStore) \
5718 V(Atomics, exchange, AtomicsExchange) \ 5718 V(Atomics, exchange, AtomicsExchange) \
5719 V(Atomics, compareExchange, AtomicsCompareExchange) 5719 V(Atomics, compareExchange, AtomicsCompareExchange) \
5720 V(Atomics, add, AtomicsAdd) \
5721 V(Atomics, sub, AtomicsSub) \
5722 V(Atomics, and, AtomicsAnd) \
5723 V(Atomics, or, AtomicsOr) \
5724 V(Atomics, xor, AtomicsXor)
5720 5725
5721 enum BuiltinFunctionId { 5726 enum BuiltinFunctionId {
5722 kArrayCode, 5727 kArrayCode,
5723 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \ 5728 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \
5724 k##name, 5729 k##name,
5725 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) 5730 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID)
5726 ATOMIC_FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) 5731 ATOMIC_FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID)
5727 #undef DECLARE_FUNCTION_ID 5732 #undef DECLARE_FUNCTION_ID
5728 // Fake id for a special case of Math.pow. Note, it continues the 5733 // Fake id for a special case of Math.pow. Note, it continues the
5729 // list of math functions. 5734 // list of math functions.
(...skipping 4519 matching lines...) Expand 10 before | Expand all | Expand 10 after
10249 } 10254 }
10250 }; 10255 };
10251 10256
10252 10257
10253 } // NOLINT, false-positive due to second-order macros. 10258 } // NOLINT, false-positive due to second-order macros.
10254 } // NOLINT, false-positive due to second-order macros. 10259 } // NOLINT, false-positive due to second-order macros.
10255 10260
10256 #include "src/objects/object-macros-undef.h" 10261 #include "src/objects/object-macros-undef.h"
10257 10262
10258 #endif // V8_OBJECTS_H_ 10263 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698