| 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/unicode.h" |
| (...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1143 Isolate* isolate, Handle<Object> object, Handle<Object> key, | 1143 Isolate* isolate, Handle<Object> object, Handle<Object> key, |
| 1144 LanguageMode language_mode = SLOPPY); | 1144 LanguageMode language_mode = SLOPPY); |
| 1145 | 1145 |
| 1146 MUST_USE_RESULT static MaybeHandle<Object> KeyedGetObjectProperty( | 1146 MUST_USE_RESULT static MaybeHandle<Object> KeyedGetObjectProperty( |
| 1147 Isolate* isolate, Handle<Object> receiver_obj, Handle<Object> key_obj, | 1147 Isolate* isolate, Handle<Object> receiver_obj, Handle<Object> key_obj, |
| 1148 LanguageMode language_mode); | 1148 LanguageMode language_mode); |
| 1149 | 1149 |
| 1150 MUST_USE_RESULT static MaybeHandle<Object> GetPrototype( | 1150 MUST_USE_RESULT static MaybeHandle<Object> GetPrototype( |
| 1151 Isolate* isolate, Handle<Object> object); | 1151 Isolate* isolate, Handle<Object> object); |
| 1152 | 1152 |
| 1153 MUST_USE_RESULT static MaybeHandle<Name> ToName(Isolate* isolate, | |
| 1154 Handle<Object> key); | |
| 1155 | |
| 1156 enum TypedArrayId { | 1153 enum TypedArrayId { |
| 1157 // arrayIds below should be synchronized with typedarray.js natives. | 1154 // arrayIds below should be synchronized with typedarray.js natives. |
| 1158 ARRAY_ID_UINT8 = 1, | 1155 ARRAY_ID_UINT8 = 1, |
| 1159 ARRAY_ID_INT8 = 2, | 1156 ARRAY_ID_INT8 = 2, |
| 1160 ARRAY_ID_UINT16 = 3, | 1157 ARRAY_ID_UINT16 = 3, |
| 1161 ARRAY_ID_INT16 = 4, | 1158 ARRAY_ID_INT16 = 4, |
| 1162 ARRAY_ID_UINT32 = 5, | 1159 ARRAY_ID_UINT32 = 5, |
| 1163 ARRAY_ID_INT32 = 6, | 1160 ARRAY_ID_INT32 = 6, |
| 1164 ARRAY_ID_FLOAT32 = 7, | 1161 ARRAY_ID_FLOAT32 = 7, |
| 1165 ARRAY_ID_FLOAT64 = 8, | 1162 ARRAY_ID_FLOAT64 = 8, |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1217 inline bool Runtime::AtomicIsLockFree(uint32_t size) { | 1214 inline bool Runtime::AtomicIsLockFree(uint32_t size) { |
| 1218 return size == 1 || size == 2 || size == 4; | 1215 return size == 1 || size == 2 || size == 4; |
| 1219 } | 1216 } |
| 1220 | 1217 |
| 1221 #endif | 1218 #endif |
| 1222 | 1219 |
| 1223 } // namespace internal | 1220 } // namespace internal |
| 1224 } // namespace v8 | 1221 } // namespace v8 |
| 1225 | 1222 |
| 1226 #endif // V8_RUNTIME_RUNTIME_H_ | 1223 #endif // V8_RUNTIME_RUNTIME_H_ |
| OLD | NEW |