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_RUNTIME_RUNTIME_H_ | 5 #ifndef V8_RUNTIME_RUNTIME_H_ |
6 #define V8_RUNTIME_RUNTIME_H_ | 6 #define V8_RUNTIME_RUNTIME_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/objects.h" | 9 #include "src/objects.h" |
10 #include "src/zone.h" | 10 #include "src/zone.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
56 #define FOR_EACH_INTRINSIC_ATOMICS(F) \ | 56 #define FOR_EACH_INTRINSIC_ATOMICS(F) \ |
57 F(AtomicsCompareExchange, 4, 1) \ | 57 F(AtomicsCompareExchange, 4, 1) \ |
58 F(AtomicsLoad, 2, 1) \ | 58 F(AtomicsLoad, 2, 1) \ |
59 F(AtomicsStore, 3, 1) \ | 59 F(AtomicsStore, 3, 1) \ |
60 F(AtomicsAdd, 3, 1) \ | 60 F(AtomicsAdd, 3, 1) \ |
61 F(AtomicsSub, 3, 1) \ | 61 F(AtomicsSub, 3, 1) \ |
62 F(AtomicsAnd, 3, 1) \ | 62 F(AtomicsAnd, 3, 1) \ |
63 F(AtomicsOr, 3, 1) \ | 63 F(AtomicsOr, 3, 1) \ |
64 F(AtomicsXor, 3, 1) \ | 64 F(AtomicsXor, 3, 1) \ |
65 F(AtomicsExchange, 3, 1) \ | 65 F(AtomicsExchange, 3, 1) \ |
66 F(AtomicsIsLockFree, 1, 1) | 66 F(AtomicsIsLockFree, 1, 1) \ |
67 F(AtomicsFutexWait, 4, 1) \ | |
Michael Starzinger
2015/07/08 17:54:20
Please add a new FOR_EACH_INTRINSIC_FUTEX macro, e
binji
2015/07/08 18:05:29
Done.
| |
68 F(AtomicsFutexWake, 3, 1) \ | |
69 F(AtomicsFutexWakeOrRequeue, 5, 1) \ | |
70 F(AtomicsFutexNumWaitersForTesting, 2, 1) | |
67 | 71 |
68 | 72 |
69 #define FOR_EACH_INTRINSIC_CLASSES(F) \ | 73 #define FOR_EACH_INTRINSIC_CLASSES(F) \ |
70 F(ThrowNonMethodError, 0, 1) \ | 74 F(ThrowNonMethodError, 0, 1) \ |
71 F(ThrowUnsupportedSuperError, 0, 1) \ | 75 F(ThrowUnsupportedSuperError, 0, 1) \ |
72 F(ThrowConstructorNonCallableError, 0, 1) \ | 76 F(ThrowConstructorNonCallableError, 0, 1) \ |
73 F(ThrowArrayNotSubclassableError, 0, 1) \ | 77 F(ThrowArrayNotSubclassableError, 0, 1) \ |
74 F(ThrowStaticPrototypeError, 0, 1) \ | 78 F(ThrowStaticPrototypeError, 0, 1) \ |
75 F(ThrowIfStaticPrototype, 1, 1) \ | 79 F(ThrowIfStaticPrototype, 1, 1) \ |
76 F(ToMethod, 2, 1) \ | 80 F(ToMethod, 2, 1) \ |
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
941 inline bool Runtime::AtomicIsLockFree(uint32_t size) { | 945 inline bool Runtime::AtomicIsLockFree(uint32_t size) { |
942 return size == 1 || size == 2 || size == 4; | 946 return size == 1 || size == 2 || size == 4; |
943 } | 947 } |
944 | 948 |
945 #endif | 949 #endif |
946 | 950 |
947 } // namespace internal | 951 } // namespace internal |
948 } // namespace v8 | 952 } // namespace v8 |
949 | 953 |
950 #endif // V8_RUNTIME_RUNTIME_H_ | 954 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |