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/zone.h" | 10 #include "src/zone.h" |
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
895 size_t allocated_length, | 895 size_t allocated_length, |
896 SharedFlag shared = SharedFlag::kNotShared); | 896 SharedFlag shared = SharedFlag::kNotShared); |
897 | 897 |
898 static bool SetupArrayBufferAllocatingData( | 898 static bool SetupArrayBufferAllocatingData( |
899 Isolate* isolate, Handle<JSArrayBuffer> array_buffer, | 899 Isolate* isolate, Handle<JSArrayBuffer> array_buffer, |
900 size_t allocated_length, bool initialize = true, | 900 size_t allocated_length, bool initialize = true, |
901 SharedFlag shared = SharedFlag::kNotShared); | 901 SharedFlag shared = SharedFlag::kNotShared); |
902 | 902 |
903 static void NeuterArrayBuffer(Handle<JSArrayBuffer> array_buffer); | 903 static void NeuterArrayBuffer(Handle<JSArrayBuffer> array_buffer); |
904 | 904 |
905 static int FindIndexedNonNativeFrame(JavaScriptFrameIterator* it, int index); | |
906 | |
907 enum TypedArrayId { | 905 enum TypedArrayId { |
908 // arrayIds below should be synchromized with typedarray.js natives. | 906 // arrayIds below should be synchromized with typedarray.js natives. |
909 ARRAY_ID_UINT8 = 1, | 907 ARRAY_ID_UINT8 = 1, |
910 ARRAY_ID_INT8 = 2, | 908 ARRAY_ID_INT8 = 2, |
911 ARRAY_ID_UINT16 = 3, | 909 ARRAY_ID_UINT16 = 3, |
912 ARRAY_ID_INT16 = 4, | 910 ARRAY_ID_INT16 = 4, |
913 ARRAY_ID_UINT32 = 5, | 911 ARRAY_ID_UINT32 = 5, |
914 ARRAY_ID_INT32 = 6, | 912 ARRAY_ID_INT32 = 6, |
915 ARRAY_ID_FLOAT32 = 7, | 913 ARRAY_ID_FLOAT32 = 7, |
916 ARRAY_ID_FLOAT64 = 8, | 914 ARRAY_ID_FLOAT64 = 8, |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
984 inline bool Runtime::AtomicIsLockFree(uint32_t size) { | 982 inline bool Runtime::AtomicIsLockFree(uint32_t size) { |
985 return size == 1 || size == 2 || size == 4; | 983 return size == 1 || size == 2 || size == 4; |
986 } | 984 } |
987 | 985 |
988 #endif | 986 #endif |
989 | 987 |
990 } // namespace internal | 988 } // namespace internal |
991 } // namespace v8 | 989 } // namespace v8 |
992 | 990 |
993 #endif // V8_RUNTIME_RUNTIME_H_ | 991 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |