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

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

Issue 1124813005: WIP Atomics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix AtomicsLoad type in typer.cc 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.h ('k') | src/runtime/runtime-atomics.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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 F(HasComplexElements, 1, 1) \ 47 F(HasComplexElements, 1, 1) \
48 F(ForInCacheArrayLength, 2, 1) /* TODO(turbofan): Only temporary */ \ 48 F(ForInCacheArrayLength, 2, 1) /* TODO(turbofan): Only temporary */ \
49 F(IsArray, 1, 1) \ 49 F(IsArray, 1, 1) \
50 F(HasCachedArrayIndex, 1, 1) \ 50 F(HasCachedArrayIndex, 1, 1) \
51 F(GetCachedArrayIndex, 1, 1) \ 51 F(GetCachedArrayIndex, 1, 1) \
52 F(FixedArrayGet, 2, 1) \ 52 F(FixedArrayGet, 2, 1) \
53 F(FixedArraySet, 3, 1) \ 53 F(FixedArraySet, 3, 1) \
54 F(FastOneByteArrayJoin, 2, 1) 54 F(FastOneByteArrayJoin, 2, 1)
55 55
56 56
57 #define FOR_EACH_INTRINSIC_ATOMICS(F) \
58 F(AtomicsCompareExchange, 4, 1) \
59 F(AtomicsLoad, 2, 1) \
60 F(AtomicsStore, 3, 1) \
61 F(AtomicsAdd, 3, 1) \
62 F(AtomicsSub, 3, 1) \
63 F(AtomicsAnd, 3, 1) \
64 F(AtomicsOr, 3, 1) \
65 F(AtomicsXor, 3, 1) \
66 F(AtomicsExchange, 3, 1) \
67 F(AtomicsIsLockFree, 1, 1)
68
69
57 #define FOR_EACH_INTRINSIC_CLASSES(F) \ 70 #define FOR_EACH_INTRINSIC_CLASSES(F) \
58 F(ThrowNonMethodError, 0, 1) \ 71 F(ThrowNonMethodError, 0, 1) \
59 F(ThrowUnsupportedSuperError, 0, 1) \ 72 F(ThrowUnsupportedSuperError, 0, 1) \
60 F(ThrowConstructorNonCallableError, 0, 1) \ 73 F(ThrowConstructorNonCallableError, 0, 1) \
61 F(ThrowArrayNotSubclassableError, 0, 1) \ 74 F(ThrowArrayNotSubclassableError, 0, 1) \
62 F(ThrowStaticPrototypeError, 0, 1) \ 75 F(ThrowStaticPrototypeError, 0, 1) \
63 F(ThrowIfStaticPrototype, 1, 1) \ 76 F(ThrowIfStaticPrototype, 1, 1) \
64 F(ToMethod, 2, 1) \ 77 F(ToMethod, 2, 1) \
65 F(HomeObjectSymbol, 0, 1) \ 78 F(HomeObjectSymbol, 0, 1) \
66 F(DefineClass, 6, 1) \ 79 F(DefineClass, 6, 1) \
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 F(TypedArrayInitialize, 5, 1) \ 653 F(TypedArrayInitialize, 5, 1) \
641 F(TypedArrayInitializeFromArrayLike, 4, 1) \ 654 F(TypedArrayInitializeFromArrayLike, 4, 1) \
642 F(ArrayBufferViewGetByteLength, 1, 1) \ 655 F(ArrayBufferViewGetByteLength, 1, 1) \
643 F(ArrayBufferViewGetByteOffset, 1, 1) \ 656 F(ArrayBufferViewGetByteOffset, 1, 1) \
644 F(TypedArrayGetLength, 1, 1) \ 657 F(TypedArrayGetLength, 1, 1) \
645 F(DataViewGetBuffer, 1, 1) \ 658 F(DataViewGetBuffer, 1, 1) \
646 F(TypedArrayGetBuffer, 1, 1) \ 659 F(TypedArrayGetBuffer, 1, 1) \
647 F(TypedArraySetFastCases, 3, 1) \ 660 F(TypedArraySetFastCases, 3, 1) \
648 F(TypedArrayMaxSizeInHeap, 0, 1) \ 661 F(TypedArrayMaxSizeInHeap, 0, 1) \
649 F(IsTypedArray, 1, 1) \ 662 F(IsTypedArray, 1, 1) \
663 F(IsSharedTypedArray, 1, 1) \
664 F(IsSharedIntegerTypedArray, 1, 1) \
650 F(DataViewInitialize, 4, 1) \ 665 F(DataViewInitialize, 4, 1) \
651 F(DataViewGetUint8, 3, 1) \ 666 F(DataViewGetUint8, 3, 1) \
652 F(DataViewGetInt8, 3, 1) \ 667 F(DataViewGetInt8, 3, 1) \
653 F(DataViewGetUint16, 3, 1) \ 668 F(DataViewGetUint16, 3, 1) \
654 F(DataViewGetInt16, 3, 1) \ 669 F(DataViewGetInt16, 3, 1) \
655 F(DataViewGetUint32, 3, 1) \ 670 F(DataViewGetUint32, 3, 1) \
656 F(DataViewGetInt32, 3, 1) \ 671 F(DataViewGetInt32, 3, 1) \
657 F(DataViewGetFloat32, 3, 1) \ 672 F(DataViewGetFloat32, 3, 1) \
658 F(DataViewGetFloat64, 3, 1) \ 673 F(DataViewGetFloat64, 3, 1) \
659 F(DataViewSetUint8, 4, 1) \ 674 F(DataViewSetUint8, 4, 1) \
(...skipping 14 matching lines...) Expand all
674 #define FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ 689 #define FOR_EACH_INTRINSIC_RETURN_PAIR(F) \
675 F(LoadLookupSlot, 2, 2) \ 690 F(LoadLookupSlot, 2, 2) \
676 F(LoadLookupSlotNoReferenceError, 2, 2) \ 691 F(LoadLookupSlotNoReferenceError, 2, 2) \
677 F(ResolvePossiblyDirectEval, 6, 2) \ 692 F(ResolvePossiblyDirectEval, 6, 2) \
678 F(ForInInit, 2, 2) /* TODO(turbofan): Only temporary */ \ 693 F(ForInInit, 2, 2) /* TODO(turbofan): Only temporary */ \
679 F(ForInNext, 4, 2) /* TODO(turbofan): Only temporary */ 694 F(ForInNext, 4, 2) /* TODO(turbofan): Only temporary */
680 695
681 696
682 #define FOR_EACH_INTRINSIC_RETURN_OBJECT(F) \ 697 #define FOR_EACH_INTRINSIC_RETURN_OBJECT(F) \
683 FOR_EACH_INTRINSIC_ARRAY(F) \ 698 FOR_EACH_INTRINSIC_ARRAY(F) \
699 FOR_EACH_INTRINSIC_ATOMICS(F) \
684 FOR_EACH_INTRINSIC_CLASSES(F) \ 700 FOR_EACH_INTRINSIC_CLASSES(F) \
685 FOR_EACH_INTRINSIC_COLLECTIONS(F) \ 701 FOR_EACH_INTRINSIC_COLLECTIONS(F) \
686 FOR_EACH_INTRINSIC_COMPILER(F) \ 702 FOR_EACH_INTRINSIC_COMPILER(F) \
687 FOR_EACH_INTRINSIC_DATE(F) \ 703 FOR_EACH_INTRINSIC_DATE(F) \
688 FOR_EACH_INTRINSIC_DEBUG(F) \ 704 FOR_EACH_INTRINSIC_DEBUG(F) \
689 FOR_EACH_INTRINSIC_FUNCTION(F) \ 705 FOR_EACH_INTRINSIC_FUNCTION(F) \
690 FOR_EACH_INTRINSIC_GENERATOR(F) \ 706 FOR_EACH_INTRINSIC_GENERATOR(F) \
691 FOR_EACH_INTRINSIC_I18N(F) \ 707 FOR_EACH_INTRINSIC_I18N(F) \
692 FOR_EACH_INTRINSIC_INTERNAL(F) \ 708 FOR_EACH_INTRINSIC_INTERNAL(F) \
693 FOR_EACH_INTRINSIC_JSON(F) \ 709 FOR_EACH_INTRINSIC_JSON(F) \
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 888
873 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 889 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
874 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 890 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
875 STATIC_ASSERT(LANGUAGE_END == 3); 891 STATIC_ASSERT(LANGUAGE_END == 3);
876 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; 892 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {};
877 893
878 } // namespace internal 894 } // namespace internal
879 } // namespace v8 895 } // namespace v8
880 896
881 #endif // V8_RUNTIME_RUNTIME_H_ 897 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/runtime/runtime-atomics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698