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

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

Issue 1144393003: Also allocate small typed arrays on heap when initialized from an array-like (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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/layout-descriptor-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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 F(HasFixedFloat64Elements, 1, 1) \ 637 F(HasFixedFloat64Elements, 1, 1) \
638 F(HasFixedUint8ClampedElements, 1, 1) 638 F(HasFixedUint8ClampedElements, 1, 1)
639 639
640 640
641 #define FOR_EACH_INTRINSIC_TYPEDARRAY(F) \ 641 #define FOR_EACH_INTRINSIC_TYPEDARRAY(F) \
642 F(ArrayBufferInitialize, 3, 1) \ 642 F(ArrayBufferInitialize, 3, 1) \
643 F(ArrayBufferGetByteLength, 1, 1) \ 643 F(ArrayBufferGetByteLength, 1, 1) \
644 F(ArrayBufferSliceImpl, 3, 1) \ 644 F(ArrayBufferSliceImpl, 3, 1) \
645 F(ArrayBufferIsView, 1, 1) \ 645 F(ArrayBufferIsView, 1, 1) \
646 F(ArrayBufferNeuter, 1, 1) \ 646 F(ArrayBufferNeuter, 1, 1) \
647 F(TypedArrayInitialize, 5, 1) \ 647 F(TypedArrayInitialize, 6, 1) \
648 F(TypedArrayInitializeFromArrayLike, 4, 1) \ 648 F(TypedArrayInitializeFromArrayLike, 4, 1) \
649 F(ArrayBufferViewGetByteLength, 1, 1) \ 649 F(ArrayBufferViewGetByteLength, 1, 1) \
650 F(ArrayBufferViewGetByteOffset, 1, 1) \ 650 F(ArrayBufferViewGetByteOffset, 1, 1) \
651 F(TypedArrayGetLength, 1, 1) \ 651 F(TypedArrayGetLength, 1, 1) \
652 F(DataViewGetBuffer, 1, 1) \ 652 F(DataViewGetBuffer, 1, 1) \
653 F(TypedArrayGetBuffer, 1, 1) \ 653 F(TypedArrayGetBuffer, 1, 1) \
654 F(TypedArraySetFastCases, 3, 1) \ 654 F(TypedArraySetFastCases, 3, 1) \
655 F(TypedArrayMaxSizeInHeap, 0, 1) \ 655 F(TypedArrayMaxSizeInHeap, 0, 1) \
656 F(IsTypedArray, 1, 1) \ 656 F(IsTypedArray, 1, 1) \
657 F(DataViewInitialize, 4, 1) \ 657 F(DataViewInitialize, 4, 1) \
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 886
887 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 887 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
888 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 888 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
889 STATIC_ASSERT(LANGUAGE_END == 3); 889 STATIC_ASSERT(LANGUAGE_END == 3);
890 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; 890 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {};
891 891
892 } // namespace internal 892 } // namespace internal
893 } // namespace v8 893 } // namespace v8
894 894
895 #endif // V8_RUNTIME_RUNTIME_H_ 895 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/layout-descriptor-inl.h ('k') | src/runtime/runtime-typedarray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698