Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Side by Side Diff: src/runtime/runtime.h

Issue 1115853004: Reland "Remove the weak list of array buffers" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: ignore empty array buffers Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« src/heap/heap.cc ('K') | « src/objects-inl.h ('k') | src/runtime/runtime-typedarray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698