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 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 static bool SetupArrayBufferAllocatingData(Isolate* isolate, | 844 static bool SetupArrayBufferAllocatingData(Isolate* isolate, |
845 Handle<JSArrayBuffer> array_buffer, | 845 Handle<JSArrayBuffer> array_buffer, |
846 size_t allocated_length, | 846 size_t allocated_length, |
847 bool initialize = true); | 847 bool initialize = true); |
848 | 848 |
849 static void NeuterArrayBuffer(Handle<JSArrayBuffer> array_buffer); | 849 static void NeuterArrayBuffer(Handle<JSArrayBuffer> array_buffer); |
850 | 850 |
851 static void FreeArrayBuffer(Isolate* isolate, | 851 static void FreeArrayBuffer(Isolate* isolate, |
852 JSArrayBuffer* phantom_array_buffer); | 852 JSArrayBuffer* phantom_array_buffer); |
853 | 853 |
| 854 static Handle<JSArray> StringToArray(Isolate* isolate, Handle<String> string, |
| 855 uint32_t limit = 0xFFFFFFFF); |
| 856 |
854 static int FindIndexedNonNativeFrame(JavaScriptFrameIterator* it, int index); | 857 static int FindIndexedNonNativeFrame(JavaScriptFrameIterator* it, int index); |
855 | 858 |
856 enum TypedArrayId { | 859 enum TypedArrayId { |
857 // arrayIds below should be synchromized with typedarray.js natives. | 860 // arrayIds below should be synchromized with typedarray.js natives. |
858 ARRAY_ID_UINT8 = 1, | 861 ARRAY_ID_UINT8 = 1, |
859 ARRAY_ID_INT8 = 2, | 862 ARRAY_ID_INT8 = 2, |
860 ARRAY_ID_UINT16 = 3, | 863 ARRAY_ID_UINT16 = 3, |
861 ARRAY_ID_INT16 = 4, | 864 ARRAY_ID_INT16 = 4, |
862 ARRAY_ID_UINT32 = 5, | 865 ARRAY_ID_UINT32 = 5, |
863 ARRAY_ID_INT32 = 6, | 866 ARRAY_ID_INT32 = 6, |
(...skipping 25 matching lines...) Expand all Loading... |
889 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; | 892 class AllocateTargetSpace : public BitField<AllocationSpace, 1, 3> {}; |
890 | 893 |
891 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 894 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
892 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 895 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
893 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {}; | 896 class DeclareGlobalsStrictMode : public BitField<StrictMode, 2, 1> {}; |
894 | 897 |
895 } // namespace internal | 898 } // namespace internal |
896 } // namespace v8 | 899 } // namespace v8 |
897 | 900 |
898 #endif // V8_RUNTIME_RUNTIME_H_ | 901 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |