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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 F(GetObservationState, 0, 1) \ | 358 F(GetObservationState, 0, 1) \ |
359 F(ObservationWeakMapCreate, 0, 1) \ | 359 F(ObservationWeakMapCreate, 0, 1) \ |
360 F(UnwrapGlobalProxy, 1, 1) \ | 360 F(UnwrapGlobalProxy, 1, 1) \ |
361 F(IsAccessAllowedForObserver, 3, 1) \ | 361 F(IsAccessAllowedForObserver, 3, 1) \ |
362 \ | 362 \ |
363 /* Harmony typed arrays */ \ | 363 /* Harmony typed arrays */ \ |
364 F(ArrayBufferInitialize, 2, 1)\ | 364 F(ArrayBufferInitialize, 2, 1)\ |
365 F(ArrayBufferGetByteLength, 1, 1)\ | 365 F(ArrayBufferGetByteLength, 1, 1)\ |
366 F(ArrayBufferSliceImpl, 3, 1) \ | 366 F(ArrayBufferSliceImpl, 3, 1) \ |
367 F(ArrayBufferIsView, 1, 1) \ | 367 F(ArrayBufferIsView, 1, 1) \ |
| 368 F(ArrayBufferNeuter, 1, 1) \ |
368 \ | 369 \ |
369 F(TypedArrayInitialize, 5, 1) \ | 370 F(TypedArrayInitialize, 5, 1) \ |
370 F(TypedArrayInitializeFromArrayLike, 4, 1) \ | 371 F(TypedArrayInitializeFromArrayLike, 4, 1) \ |
371 F(TypedArrayGetBuffer, 1, 1) \ | 372 F(TypedArrayGetBuffer, 1, 1) \ |
372 F(TypedArrayGetByteLength, 1, 1) \ | 373 F(TypedArrayGetByteLength, 1, 1) \ |
373 F(TypedArrayGetByteOffset, 1, 1) \ | 374 F(TypedArrayGetByteOffset, 1, 1) \ |
374 F(TypedArrayGetLength, 1, 1) \ | 375 F(TypedArrayGetLength, 1, 1) \ |
375 F(TypedArraySetFastCases, 3, 1) \ | 376 F(TypedArraySetFastCases, 3, 1) \ |
376 \ | 377 \ |
377 F(DataViewInitialize, 4, 1) \ | 378 F(DataViewInitialize, 4, 1) \ |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
821 bool is_external, | 822 bool is_external, |
822 void* data, | 823 void* data, |
823 size_t allocated_length); | 824 size_t allocated_length); |
824 | 825 |
825 static bool SetupArrayBufferAllocatingData( | 826 static bool SetupArrayBufferAllocatingData( |
826 Isolate* isolate, | 827 Isolate* isolate, |
827 Handle<JSArrayBuffer> array_buffer, | 828 Handle<JSArrayBuffer> array_buffer, |
828 size_t allocated_length, | 829 size_t allocated_length, |
829 bool initialize = true); | 830 bool initialize = true); |
830 | 831 |
| 832 static void NeuterArrayBuffer(Handle<JSArrayBuffer> array_buffer); |
| 833 |
831 static void FreeArrayBuffer( | 834 static void FreeArrayBuffer( |
832 Isolate* isolate, | 835 Isolate* isolate, |
833 JSArrayBuffer* phantom_array_buffer); | 836 JSArrayBuffer* phantom_array_buffer); |
834 | 837 |
835 enum TypedArrayId { | 838 enum TypedArrayId { |
836 // arrayIds below should be synchromized with typedarray.js natives. | 839 // arrayIds below should be synchromized with typedarray.js natives. |
837 ARRAY_ID_UINT8 = 1, | 840 ARRAY_ID_UINT8 = 1, |
838 ARRAY_ID_INT8 = 2, | 841 ARRAY_ID_INT8 = 2, |
839 ARRAY_ID_UINT16 = 3, | 842 ARRAY_ID_UINT16 = 3, |
840 ARRAY_ID_INT16 = 4, | 843 ARRAY_ID_INT16 = 4, |
(...skipping 24 matching lines...) Expand all Loading... |
865 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; | 868 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; |
866 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; | 869 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; |
867 | 870 |
868 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; | 871 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; |
869 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; | 872 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; |
870 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {}; | 873 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {}; |
871 | 874 |
872 } } // namespace v8::internal | 875 } } // namespace v8::internal |
873 | 876 |
874 #endif // V8_RUNTIME_H_ | 877 #endif // V8_RUNTIME_H_ |
OLD | NEW |