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/unicode.h" |
10 #include "src/zone.h" | 11 #include "src/zone.h" |
11 | 12 |
12 namespace v8 { | 13 namespace v8 { |
13 namespace internal { | 14 namespace internal { |
14 | 15 |
15 // * Each intrinsic is consistently exposed in JavaScript via 2 names: | 16 // * Each intrinsic is consistently exposed in JavaScript via 2 names: |
16 // * %#name, which is always a runtime call. | 17 // * %#name, which is always a runtime call. |
17 // * %_#name, which can be inlined or just a runtime call, the compiler in | 18 // * %_#name, which can be inlined or just a runtime call, the compiler in |
18 // question decides. | 19 // question decides. |
19 // | 20 // |
(...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1138 inline bool Runtime::AtomicIsLockFree(uint32_t size) { | 1139 inline bool Runtime::AtomicIsLockFree(uint32_t size) { |
1139 return size == 1 || size == 2 || size == 4; | 1140 return size == 1 || size == 2 || size == 4; |
1140 } | 1141 } |
1141 | 1142 |
1142 #endif | 1143 #endif |
1143 | 1144 |
1144 } // namespace internal | 1145 } // namespace internal |
1145 } // namespace v8 | 1146 } // namespace v8 |
1146 | 1147 |
1147 #endif // V8_RUNTIME_RUNTIME_H_ | 1148 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |