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 6316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6327 V(Set.prototype, has, SetHas) \ | 6327 V(Set.prototype, has, SetHas) \ |
6328 V(Set.prototype, keys, SetKeys) \ | 6328 V(Set.prototype, keys, SetKeys) \ |
6329 V(Set.prototype, values, SetValues) \ | 6329 V(Set.prototype, values, SetValues) \ |
6330 V(WeakMap.prototype, delete, WeakMapDelete) \ | 6330 V(WeakMap.prototype, delete, WeakMapDelete) \ |
6331 V(WeakMap.prototype, has, WeakMapHas) \ | 6331 V(WeakMap.prototype, has, WeakMapHas) \ |
6332 V(WeakMap.prototype, set, WeakMapSet) \ | 6332 V(WeakMap.prototype, set, WeakMapSet) \ |
6333 V(WeakSet.prototype, add, WeakSetAdd) \ | 6333 V(WeakSet.prototype, add, WeakSetAdd) \ |
6334 V(WeakSet.prototype, delete, WeakSetDelete) \ | 6334 V(WeakSet.prototype, delete, WeakSetDelete) \ |
6335 V(WeakSet.prototype, has, WeakSetHas) | 6335 V(WeakSet.prototype, has, WeakSetHas) |
6336 | 6336 |
6337 #define ATOMIC_FUNCTIONS_WITH_ID_LIST(V) \ | 6337 #define ATOMIC_FUNCTIONS_WITH_ID_LIST(V) \ |
6338 V(Atomics, load, AtomicsLoad) \ | 6338 V(Atomics, load, AtomicsLoad) \ |
6339 V(Atomics, store, AtomicsStore) \ | 6339 V(Atomics, store, AtomicsStore) \ |
6340 V(Atomics, exchange, AtomicsExchange) \ | 6340 V(Atomics, exchange, AtomicsExchange) \ |
6341 V(Atomics, compareExchange, AtomicsCompareExchange) | 6341 V(Atomics, compareExchange, AtomicsCompareExchange) \ |
6342 V(Add, add, AtomicsAdd) \ | |
binji
2017/04/06 19:04:50
Why is this not V(Atomics, add, AtomicsAdd)?
aseemgarg
2017/04/06 21:03:56
Done.
| |
6343 V(Sub, sub, AtomicsSub) \ | |
6344 V(And, and, AtomicsAnd) \ | |
6345 V(Or, or, AtomicsOr) \ | |
6346 V(Xor, xor, AtomicsXor) | |
6342 | 6347 |
6343 enum BuiltinFunctionId { | 6348 enum BuiltinFunctionId { |
6344 kArrayCode, | 6349 kArrayCode, |
6345 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \ | 6350 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \ |
6346 k##name, | 6351 k##name, |
6347 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) | 6352 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) |
6348 ATOMIC_FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) | 6353 ATOMIC_FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) |
6349 #undef DECLARE_FUNCTION_ID | 6354 #undef DECLARE_FUNCTION_ID |
6350 // Fake id for a special case of Math.pow. Note, it continues the | 6355 // Fake id for a special case of Math.pow. Note, it continues the |
6351 // list of math functions. | 6356 // list of math functions. |
(...skipping 4752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
11104 } | 11109 } |
11105 }; | 11110 }; |
11106 | 11111 |
11107 | 11112 |
11108 } // NOLINT, false-positive due to second-order macros. | 11113 } // NOLINT, false-positive due to second-order macros. |
11109 } // NOLINT, false-positive due to second-order macros. | 11114 } // NOLINT, false-positive due to second-order macros. |
11110 | 11115 |
11111 #include "src/objects/object-macros-undef.h" | 11116 #include "src/objects/object-macros-undef.h" |
11112 | 11117 |
11113 #endif // V8_OBJECTS_H_ | 11118 #endif // V8_OBJECTS_H_ |
OLD | NEW |