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 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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( | 1175 MUST_USE_RESULT static MaybeHandle<Object> KeyedGetObjectProperty( |
1176 Isolate* isolate, Handle<Object> receiver_obj, Handle<Object> key_obj, | 1176 Isolate* isolate, Handle<Object> receiver_obj, Handle<Object> key_obj, |
1177 LanguageMode language_mode); | 1177 LanguageMode language_mode); |
1178 | 1178 |
1179 // TODO(mstarzinger): Remove this once %DefaultConstructorCallSuper is gone. | |
1180 MUST_USE_RESULT static MaybeHandle<Object> GetPrototype( | |
1181 Isolate* isolate, Handle<Object> object); | |
1182 | |
1183 enum TypedArrayId { | 1179 enum TypedArrayId { |
1184 // arrayIds below should be synchronized with typedarray.js natives. | 1180 // arrayIds below should be synchronized with typedarray.js natives. |
1185 ARRAY_ID_UINT8 = 1, | 1181 ARRAY_ID_UINT8 = 1, |
1186 ARRAY_ID_INT8 = 2, | 1182 ARRAY_ID_INT8 = 2, |
1187 ARRAY_ID_UINT16 = 3, | 1183 ARRAY_ID_UINT16 = 3, |
1188 ARRAY_ID_INT16 = 4, | 1184 ARRAY_ID_INT16 = 4, |
1189 ARRAY_ID_UINT32 = 5, | 1185 ARRAY_ID_UINT32 = 5, |
1190 ARRAY_ID_INT32 = 6, | 1186 ARRAY_ID_INT32 = 6, |
1191 ARRAY_ID_FLOAT32 = 7, | 1187 ARRAY_ID_FLOAT32 = 7, |
1192 ARRAY_ID_FLOAT64 = 8, | 1188 ARRAY_ID_FLOAT64 = 8, |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1253 inline bool Runtime::AtomicIsLockFree(uint32_t size) { | 1249 inline bool Runtime::AtomicIsLockFree(uint32_t size) { |
1254 return size == 1 || size == 2 || size == 4; | 1250 return size == 1 || size == 2 || size == 4; |
1255 } | 1251 } |
1256 | 1252 |
1257 #endif | 1253 #endif |
1258 | 1254 |
1259 } // namespace internal | 1255 } // namespace internal |
1260 } // namespace v8 | 1256 } // namespace v8 |
1261 | 1257 |
1262 #endif // V8_RUNTIME_RUNTIME_H_ | 1258 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |