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