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 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1165 LanguageMode language_mode); | 1165 LanguageMode language_mode); |
1166 | 1166 |
1167 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( | 1167 MUST_USE_RESULT static MaybeHandle<Object> SetObjectProperty( |
1168 Isolate* isolate, Handle<Object> object, Handle<Object> key, | 1168 Isolate* isolate, Handle<Object> object, Handle<Object> key, |
1169 Handle<Object> value, LanguageMode language_mode); | 1169 Handle<Object> value, LanguageMode language_mode); |
1170 | 1170 |
1171 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( | 1171 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( |
1172 Isolate* isolate, Handle<Object> object, Handle<Object> key, | 1172 Isolate* isolate, Handle<Object> object, Handle<Object> key, |
1173 LanguageMode language_mode = SLOPPY); | 1173 LanguageMode language_mode = SLOPPY); |
1174 | 1174 |
1175 MUST_USE_RESULT static MaybeHandle<Object> KeyedGetObjectProperty( | |
1176 Isolate* isolate, Handle<Object> receiver_obj, Handle<Object> key_obj, | |
1177 LanguageMode language_mode); | |
1178 | |
1179 enum TypedArrayId { | 1175 enum TypedArrayId { |
1180 // arrayIds below should be synchronized with typedarray.js natives. | 1176 // arrayIds below should be synchronized with typedarray.js natives. |
1181 ARRAY_ID_UINT8 = 1, | 1177 ARRAY_ID_UINT8 = 1, |
1182 ARRAY_ID_INT8 = 2, | 1178 ARRAY_ID_INT8 = 2, |
1183 ARRAY_ID_UINT16 = 3, | 1179 ARRAY_ID_UINT16 = 3, |
1184 ARRAY_ID_INT16 = 4, | 1180 ARRAY_ID_INT16 = 4, |
1185 ARRAY_ID_UINT32 = 5, | 1181 ARRAY_ID_UINT32 = 5, |
1186 ARRAY_ID_INT32 = 6, | 1182 ARRAY_ID_INT32 = 6, |
1187 ARRAY_ID_FLOAT32 = 7, | 1183 ARRAY_ID_FLOAT32 = 7, |
1188 ARRAY_ID_FLOAT64 = 8, | 1184 ARRAY_ID_FLOAT64 = 8, |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1249 inline bool Runtime::AtomicIsLockFree(uint32_t size) { | 1245 inline bool Runtime::AtomicIsLockFree(uint32_t size) { |
1250 return size == 1 || size == 2 || size == 4; | 1246 return size == 1 || size == 2 || size == 4; |
1251 } | 1247 } |
1252 | 1248 |
1253 #endif | 1249 #endif |
1254 | 1250 |
1255 } // namespace internal | 1251 } // namespace internal |
1256 } // namespace v8 | 1252 } // namespace v8 |
1257 | 1253 |
1258 #endif // V8_RUNTIME_RUNTIME_H_ | 1254 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |