OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 6544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6555 V(Math, sin, MathSin) \ | 6555 V(Math, sin, MathSin) \ |
6556 V(Math, tan, MathTan) \ | 6556 V(Math, tan, MathTan) \ |
6557 V(Math, acos, MathAcos) \ | 6557 V(Math, acos, MathAcos) \ |
6558 V(Math, asin, MathAsin) \ | 6558 V(Math, asin, MathAsin) \ |
6559 V(Math, atan, MathAtan) \ | 6559 V(Math, atan, MathAtan) \ |
6560 V(Math, atan2, MathAtan2) \ | 6560 V(Math, atan2, MathAtan2) \ |
6561 V(Math, imul, MathImul) \ | 6561 V(Math, imul, MathImul) \ |
6562 V(Math, clz32, MathClz32) \ | 6562 V(Math, clz32, MathClz32) \ |
6563 V(Math, fround, MathFround) | 6563 V(Math, fround, MathFround) |
6564 | 6564 |
| 6565 #define ATOMIC_FUNCTIONS_WITH_ID_LIST(V) \ |
| 6566 V(Atomics, load, AtomicsLoad) \ |
| 6567 V(Atomics, store, AtomicsStore) |
| 6568 |
6565 enum BuiltinFunctionId { | 6569 enum BuiltinFunctionId { |
6566 kArrayCode, | 6570 kArrayCode, |
6567 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \ | 6571 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \ |
6568 k##name, | 6572 k##name, |
6569 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) | 6573 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) |
| 6574 ATOMIC_FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) |
6570 #undef DECLARE_FUNCTION_ID | 6575 #undef DECLARE_FUNCTION_ID |
6571 // Fake id for a special case of Math.pow. Note, it continues the | 6576 // Fake id for a special case of Math.pow. Note, it continues the |
6572 // list of math functions. | 6577 // list of math functions. |
6573 kMathPowHalf | 6578 kMathPowHalf |
6574 }; | 6579 }; |
6575 | 6580 |
6576 | 6581 |
6577 // SharedFunctionInfo describes the JSFunction information that can be | 6582 // SharedFunctionInfo describes the JSFunction information that can be |
6578 // shared by multiple instances of the function. | 6583 // shared by multiple instances of the function. |
6579 class SharedFunctionInfo: public HeapObject { | 6584 class SharedFunctionInfo: public HeapObject { |
(...skipping 4258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10838 } else { | 10843 } else { |
10839 value &= ~(1 << bit_position); | 10844 value &= ~(1 << bit_position); |
10840 } | 10845 } |
10841 return value; | 10846 return value; |
10842 } | 10847 } |
10843 }; | 10848 }; |
10844 | 10849 |
10845 } } // namespace v8::internal | 10850 } } // namespace v8::internal |
10846 | 10851 |
10847 #endif // V8_OBJECTS_H_ | 10852 #endif // V8_OBJECTS_H_ |
OLD | NEW |