OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 \ | 321 \ |
322 /* Harmony observe */ \ | 322 /* Harmony observe */ \ |
323 F(IsObserved, 1, 1) \ | 323 F(IsObserved, 1, 1) \ |
324 F(SetIsObserved, 1, 1) \ | 324 F(SetIsObserved, 1, 1) \ |
325 F(GetObservationState, 0, 1) \ | 325 F(GetObservationState, 0, 1) \ |
326 F(ObservationWeakMapCreate, 0, 1) \ | 326 F(ObservationWeakMapCreate, 0, 1) \ |
327 F(UnwrapGlobalProxy, 1, 1) \ | 327 F(UnwrapGlobalProxy, 1, 1) \ |
328 F(IsAccessAllowedForObserver, 3, 1) \ | 328 F(IsAccessAllowedForObserver, 3, 1) \ |
329 \ | 329 \ |
330 /* Harmony typed arrays */ \ | 330 /* Harmony typed arrays */ \ |
331 F(ArrayBufferInitialize, 2, 1)\ | 331 F(ArrayBufferInitialize, 3, 1)\ |
| 332 F(ArrayBufferGetShared, 1, 1)\ |
332 F(ArrayBufferSliceImpl, 3, 1) \ | 333 F(ArrayBufferSliceImpl, 3, 1) \ |
333 F(ArrayBufferIsView, 1, 1) \ | 334 F(ArrayBufferIsView, 1, 1) \ |
334 F(ArrayBufferNeuter, 1, 1) \ | 335 F(ArrayBufferNeuter, 1, 1) \ |
335 \ | 336 \ |
| 337 /* Pthreads */ \ |
| 338 F(ArrayBufferMutexInit, 2, 1)\ |
| 339 F(ArrayBufferMutexDestroy, 2, 1)\ |
| 340 F(ArrayBufferMutexLock, 2, 1)\ |
| 341 F(ArrayBufferMutexUnlock, 2, 1)\ |
| 342 F(ArrayBufferMutexSize, 1, 1)\ |
| 343 \ |
| 344 F(ArrayBufferCondInit, 2, 1)\ |
| 345 F(ArrayBufferCondDestroy, 2, 1)\ |
| 346 F(ArrayBufferCondWait, 3, 1)\ |
| 347 F(ArrayBufferCondSignal, 2, 1)\ |
| 348 F(ArrayBufferCondBroadcast, 2, 1)\ |
| 349 F(ArrayBufferCondSize, 1, 1)\ |
| 350 \ |
| 351 F(ArrayBufferBarrierInit, 3, 1)\ |
| 352 F(ArrayBufferBarrierDestroy, 2, 1)\ |
| 353 F(ArrayBufferBarrierWait, 2, 1)\ |
| 354 F(ArrayBufferBarrierSize, 1, 1)\ |
| 355 \ |
336 F(TypedArrayInitializeFromArrayLike, 4, 1) \ | 356 F(TypedArrayInitializeFromArrayLike, 4, 1) \ |
337 F(TypedArrayGetBuffer, 1, 1) \ | 357 F(TypedArrayGetBuffer, 1, 1) \ |
338 F(TypedArraySetFastCases, 3, 1) \ | 358 F(TypedArraySetFastCases, 3, 1) \ |
339 \ | 359 \ |
340 F(DataViewGetBuffer, 1, 1) \ | 360 F(DataViewGetBuffer, 1, 1) \ |
341 F(DataViewGetInt8, 3, 1) \ | 361 F(DataViewGetInt8, 3, 1) \ |
342 F(DataViewGetUint8, 3, 1) \ | 362 F(DataViewGetUint8, 3, 1) \ |
343 F(DataViewGetInt16, 3, 1) \ | 363 F(DataViewGetInt16, 3, 1) \ |
344 F(DataViewGetUint16, 3, 1) \ | 364 F(DataViewGetUint16, 3, 1) \ |
345 F(DataViewGetInt32, 3, 1) \ | 365 F(DataViewGetInt32, 3, 1) \ |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 | 875 |
856 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( | 876 MUST_USE_RESULT static MaybeHandle<Object> GetObjectProperty( |
857 Isolate* isolate, | 877 Isolate* isolate, |
858 Handle<Object> object, | 878 Handle<Object> object, |
859 Handle<Object> key); | 879 Handle<Object> key); |
860 | 880 |
861 static void SetupArrayBuffer(Isolate* isolate, | 881 static void SetupArrayBuffer(Isolate* isolate, |
862 Handle<JSArrayBuffer> array_buffer, | 882 Handle<JSArrayBuffer> array_buffer, |
863 bool is_external, | 883 bool is_external, |
864 void* data, | 884 void* data, |
865 size_t allocated_length); | 885 size_t allocated_length, |
| 886 bool shared); |
866 | 887 |
867 static bool SetupArrayBufferAllocatingData( | 888 static bool SetupArrayBufferAllocatingData( |
868 Isolate* isolate, | 889 Isolate* isolate, |
869 Handle<JSArrayBuffer> array_buffer, | 890 Handle<JSArrayBuffer> array_buffer, |
870 size_t allocated_length, | 891 size_t allocated_length, |
871 bool initialize = true); | 892 bool initialize = true, |
| 893 bool shared = false); |
872 | 894 |
873 static void NeuterArrayBuffer(Handle<JSArrayBuffer> array_buffer); | 895 static void NeuterArrayBuffer(Handle<JSArrayBuffer> array_buffer); |
874 | 896 |
875 static void FreeArrayBuffer( | 897 static void FreeArrayBuffer( |
876 Isolate* isolate, | 898 Isolate* isolate, |
877 JSArrayBuffer* phantom_array_buffer); | 899 JSArrayBuffer* phantom_array_buffer); |
878 | 900 |
879 enum TypedArrayId { | 901 enum TypedArrayId { |
880 // arrayIds below should be synchromized with typedarray.js natives. | 902 // arrayIds below should be synchromized with typedarray.js natives. |
881 ARRAY_ID_UINT8 = 1, | 903 ARRAY_ID_UINT8 = 1, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
913 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; | 935 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; |
914 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; | 936 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; |
915 | 937 |
916 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; | 938 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; |
917 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; | 939 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; |
918 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {}; | 940 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {}; |
919 | 941 |
920 } } // namespace v8::internal | 942 } } // namespace v8::internal |
921 | 943 |
922 #endif // V8_RUNTIME_H_ | 944 #endif // V8_RUNTIME_H_ |
OLD | NEW |