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 7090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7101 V(Number, isFinite, NumberIsFinite) \ | 7101 V(Number, isFinite, NumberIsFinite) \ |
7102 V(Number, isInteger, NumberIsInteger) \ | 7102 V(Number, isInteger, NumberIsInteger) \ |
7103 V(Number, isNaN, NumberIsNaN) \ | 7103 V(Number, isNaN, NumberIsNaN) \ |
7104 V(Number, isSafeInteger, NumberIsSafeInteger) \ | 7104 V(Number, isSafeInteger, NumberIsSafeInteger) \ |
7105 V(Number, parseFloat, NumberParseFloat) \ | 7105 V(Number, parseFloat, NumberParseFloat) \ |
7106 V(Number, parseInt, NumberParseInt) \ | 7106 V(Number, parseInt, NumberParseInt) \ |
7107 V(Number.prototype, toString, NumberToString) | 7107 V(Number.prototype, toString, NumberToString) |
7108 | 7108 |
7109 #define ATOMIC_FUNCTIONS_WITH_ID_LIST(V) \ | 7109 #define ATOMIC_FUNCTIONS_WITH_ID_LIST(V) \ |
7110 V(Atomics, load, AtomicsLoad) \ | 7110 V(Atomics, load, AtomicsLoad) \ |
7111 V(Atomics, store, AtomicsStore) | 7111 V(Atomics, store, AtomicsStore) \ |
| 7112 V(Atomics, exchange, AtomicsExchange) |
7112 | 7113 |
7113 enum BuiltinFunctionId { | 7114 enum BuiltinFunctionId { |
7114 kArrayCode, | 7115 kArrayCode, |
7115 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \ | 7116 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \ |
7116 k##name, | 7117 k##name, |
7117 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) | 7118 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) |
7118 ATOMIC_FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) | 7119 ATOMIC_FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) |
7119 #undef DECLARE_FUNCTION_ID | 7120 #undef DECLARE_FUNCTION_ID |
7120 // Fake id for a special case of Math.pow. Note, it continues the | 7121 // Fake id for a special case of Math.pow. Note, it continues the |
7121 // list of math functions. | 7122 // list of math functions. |
(...skipping 4634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11756 } | 11757 } |
11757 }; | 11758 }; |
11758 | 11759 |
11759 | 11760 |
11760 } // NOLINT, false-positive due to second-order macros. | 11761 } // NOLINT, false-positive due to second-order macros. |
11761 } // NOLINT, false-positive due to second-order macros. | 11762 } // NOLINT, false-positive due to second-order macros. |
11762 | 11763 |
11763 #include "src/objects/object-macros-undef.h" | 11764 #include "src/objects/object-macros-undef.h" |
11764 | 11765 |
11765 #endif // V8_OBJECTS_H_ | 11766 #endif // V8_OBJECTS_H_ |
OLD | NEW |