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

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

Issue 1149203003: Revert of Implement SharedArrayBuffer (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime-typedarray.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 F(HasFixedUint16Elements, 1, 1) \ 626 F(HasFixedUint16Elements, 1, 1) \
627 F(HasFixedInt16Elements, 1, 1) \ 627 F(HasFixedInt16Elements, 1, 1) \
628 F(HasFixedUint32Elements, 1, 1) \ 628 F(HasFixedUint32Elements, 1, 1) \
629 F(HasFixedInt32Elements, 1, 1) \ 629 F(HasFixedInt32Elements, 1, 1) \
630 F(HasFixedFloat32Elements, 1, 1) \ 630 F(HasFixedFloat32Elements, 1, 1) \
631 F(HasFixedFloat64Elements, 1, 1) \ 631 F(HasFixedFloat64Elements, 1, 1) \
632 F(HasFixedUint8ClampedElements, 1, 1) 632 F(HasFixedUint8ClampedElements, 1, 1)
633 633
634 634
635 #define FOR_EACH_INTRINSIC_TYPEDARRAY(F) \ 635 #define FOR_EACH_INTRINSIC_TYPEDARRAY(F) \
636 F(ArrayBufferInitialize, 3, 1) \ 636 F(ArrayBufferInitialize, 2, 1) \
637 F(ArrayBufferGetByteLength, 1, 1) \ 637 F(ArrayBufferGetByteLength, 1, 1) \
638 F(ArrayBufferSliceImpl, 3, 1) \ 638 F(ArrayBufferSliceImpl, 3, 1) \
639 F(ArrayBufferIsView, 1, 1) \ 639 F(ArrayBufferIsView, 1, 1) \
640 F(ArrayBufferNeuter, 1, 1) \ 640 F(ArrayBufferNeuter, 1, 1) \
641 F(TypedArrayInitialize, 5, 1) \ 641 F(TypedArrayInitialize, 5, 1) \
642 F(TypedArrayInitializeFromArrayLike, 4, 1) \ 642 F(TypedArrayInitializeFromArrayLike, 4, 1) \
643 F(ArrayBufferViewGetByteLength, 1, 1) \ 643 F(ArrayBufferViewGetByteLength, 1, 1) \
644 F(ArrayBufferViewGetByteOffset, 1, 1) \ 644 F(ArrayBufferViewGetByteOffset, 1, 1) \
645 F(TypedArrayGetLength, 1, 1) \ 645 F(TypedArrayGetLength, 1, 1) \
646 F(DataViewGetBuffer, 1, 1) \ 646 F(DataViewGetBuffer, 1, 1) \
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 808
809 MUST_USE_RESULT static MaybeHandle<Object> GetPrototype( 809 MUST_USE_RESULT static MaybeHandle<Object> GetPrototype(
810 Isolate* isolate, Handle<Object> object); 810 Isolate* isolate, Handle<Object> object);
811 811
812 MUST_USE_RESULT static MaybeHandle<Name> ToName(Isolate* isolate, 812 MUST_USE_RESULT static MaybeHandle<Name> ToName(Isolate* isolate,
813 Handle<Object> key); 813 Handle<Object> key);
814 814
815 static void SetupArrayBuffer(Isolate* isolate, 815 static void SetupArrayBuffer(Isolate* isolate,
816 Handle<JSArrayBuffer> array_buffer, 816 Handle<JSArrayBuffer> array_buffer,
817 bool is_external, void* data, 817 bool is_external, void* data,
818 size_t allocated_length, 818 size_t allocated_length);
819 SharedFlag shared = SharedFlag::kNotShared);
820 819
821 static bool SetupArrayBufferAllocatingData( 820 static bool SetupArrayBufferAllocatingData(Isolate* isolate,
822 Isolate* isolate, Handle<JSArrayBuffer> array_buffer, 821 Handle<JSArrayBuffer> array_buffer,
823 size_t allocated_length, bool initialize = true, 822 size_t allocated_length,
824 SharedFlag shared = SharedFlag::kNotShared); 823 bool initialize = true);
825 824
826 static void NeuterArrayBuffer(Handle<JSArrayBuffer> array_buffer); 825 static void NeuterArrayBuffer(Handle<JSArrayBuffer> array_buffer);
827 826
828 static int FindIndexedNonNativeFrame(JavaScriptFrameIterator* it, int index); 827 static int FindIndexedNonNativeFrame(JavaScriptFrameIterator* it, int index);
829 828
830 enum TypedArrayId { 829 enum TypedArrayId {
831 // arrayIds below should be synchromized with typedarray.js natives. 830 // arrayIds below should be synchromized with typedarray.js natives.
832 ARRAY_ID_UINT8 = 1, 831 ARRAY_ID_UINT8 = 1,
833 ARRAY_ID_INT8 = 2, 832 ARRAY_ID_INT8 = 2,
834 ARRAY_ID_UINT16 = 3, 833 ARRAY_ID_UINT16 = 3,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 873
875 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 874 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
876 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 875 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
877 STATIC_ASSERT(LANGUAGE_END == 3); 876 STATIC_ASSERT(LANGUAGE_END == 3);
878 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; 877 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {};
879 878
880 } // namespace internal 879 } // namespace internal
881 } // namespace v8 880 } // namespace v8
882 881
883 #endif // V8_RUNTIME_RUNTIME_H_ 882 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« no previous file with comments | « 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