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 7080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7091 V(Number, isFinite, NumberIsFinite) \ | 7091 V(Number, isFinite, NumberIsFinite) \ |
7092 V(Number, isInteger, NumberIsInteger) \ | 7092 V(Number, isInteger, NumberIsInteger) \ |
7093 V(Number, isNaN, NumberIsNaN) \ | 7093 V(Number, isNaN, NumberIsNaN) \ |
7094 V(Number, isSafeInteger, NumberIsSafeInteger) \ | 7094 V(Number, isSafeInteger, NumberIsSafeInteger) \ |
7095 V(Number, parseFloat, NumberParseFloat) \ | 7095 V(Number, parseFloat, NumberParseFloat) \ |
7096 V(Number, parseInt, NumberParseInt) \ | 7096 V(Number, parseInt, NumberParseInt) \ |
7097 V(Number.prototype, toString, NumberToString) | 7097 V(Number.prototype, toString, NumberToString) |
7098 | 7098 |
7099 #define ATOMIC_FUNCTIONS_WITH_ID_LIST(V) \ | 7099 #define ATOMIC_FUNCTIONS_WITH_ID_LIST(V) \ |
7100 V(Atomics, load, AtomicsLoad) \ | 7100 V(Atomics, load, AtomicsLoad) \ |
7101 V(Atomics, store, AtomicsStore) | 7101 V(Atomics, store, AtomicsStore) \ |
| 7102 V(Atomics, exchange, AtomicsExchange) |
7102 | 7103 |
7103 enum BuiltinFunctionId { | 7104 enum BuiltinFunctionId { |
7104 kArrayCode, | 7105 kArrayCode, |
7105 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \ | 7106 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \ |
7106 k##name, | 7107 k##name, |
7107 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) | 7108 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) |
7108 ATOMIC_FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) | 7109 ATOMIC_FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) |
7109 #undef DECLARE_FUNCTION_ID | 7110 #undef DECLARE_FUNCTION_ID |
7110 // Fake id for a special case of Math.pow. Note, it continues the | 7111 // Fake id for a special case of Math.pow. Note, it continues the |
7111 // list of math functions. | 7112 // list of math functions. |
(...skipping 4590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11702 } | 11703 } |
11703 }; | 11704 }; |
11704 | 11705 |
11705 | 11706 |
11706 } // NOLINT, false-positive due to second-order macros. | 11707 } // NOLINT, false-positive due to second-order macros. |
11707 } // NOLINT, false-positive due to second-order macros. | 11708 } // NOLINT, false-positive due to second-order macros. |
11708 | 11709 |
11709 #include "src/objects/object-macros-undef.h" | 11710 #include "src/objects/object-macros-undef.h" |
11710 | 11711 |
11711 #endif // V8_OBJECTS_H_ | 11712 #endif // V8_OBJECTS_H_ |
OLD | NEW |