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 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
810 bool is_external, void* data, | 810 bool is_external, void* data, |
811 size_t allocated_length); | 811 size_t allocated_length); |
812 | 812 |
813 static bool SetupArrayBufferAllocatingData(Isolate* isolate, | 813 static bool SetupArrayBufferAllocatingData(Isolate* isolate, |
814 Handle<JSArrayBuffer> array_buffer, | 814 Handle<JSArrayBuffer> array_buffer, |
815 size_t allocated_length, | 815 size_t allocated_length, |
816 bool initialize = true); | 816 bool initialize = true); |
817 | 817 |
818 static void NeuterArrayBuffer(Handle<JSArrayBuffer> array_buffer); | 818 static void NeuterArrayBuffer(Handle<JSArrayBuffer> array_buffer); |
819 | 819 |
820 static void FreeArrayBuffer(Isolate* isolate, | |
821 JSArrayBuffer* phantom_array_buffer); | |
822 | |
823 static int FindIndexedNonNativeFrame(JavaScriptFrameIterator* it, int index); | 820 static int FindIndexedNonNativeFrame(JavaScriptFrameIterator* it, int index); |
824 | 821 |
825 enum TypedArrayId { | 822 enum TypedArrayId { |
826 // arrayIds below should be synchromized with typedarray.js natives. | 823 // arrayIds below should be synchromized with typedarray.js natives. |
827 ARRAY_ID_UINT8 = 1, | 824 ARRAY_ID_UINT8 = 1, |
828 ARRAY_ID_INT8 = 2, | 825 ARRAY_ID_INT8 = 2, |
829 ARRAY_ID_UINT16 = 3, | 826 ARRAY_ID_UINT16 = 3, |
830 ARRAY_ID_INT16 = 4, | 827 ARRAY_ID_INT16 = 4, |
831 ARRAY_ID_UINT32 = 5, | 828 ARRAY_ID_UINT32 = 5, |
832 ARRAY_ID_INT32 = 6, | 829 ARRAY_ID_INT32 = 6, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
866 | 863 |
867 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 864 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
868 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 865 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
869 STATIC_ASSERT(LANGUAGE_END == 3); | 866 STATIC_ASSERT(LANGUAGE_END == 3); |
870 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 867 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
871 | 868 |
872 } // namespace internal | 869 } // namespace internal |
873 } // namespace v8 | 870 } // namespace v8 |
874 | 871 |
875 #endif // V8_RUNTIME_RUNTIME_H_ | 872 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |