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/base/platform/time.h" | 9 #include "src/base/platform/time.h" |
10 #include "src/objects.h" | 10 #include "src/objects.h" |
(...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
929 F(DataViewSetUint8, 4, 1) \ | 929 F(DataViewSetUint8, 4, 1) \ |
930 F(DataViewSetInt8, 4, 1) \ | 930 F(DataViewSetInt8, 4, 1) \ |
931 F(DataViewSetUint16, 4, 1) \ | 931 F(DataViewSetUint16, 4, 1) \ |
932 F(DataViewSetInt16, 4, 1) \ | 932 F(DataViewSetInt16, 4, 1) \ |
933 F(DataViewSetUint32, 4, 1) \ | 933 F(DataViewSetUint32, 4, 1) \ |
934 F(DataViewSetInt32, 4, 1) \ | 934 F(DataViewSetInt32, 4, 1) \ |
935 F(DataViewSetFloat32, 4, 1) \ | 935 F(DataViewSetFloat32, 4, 1) \ |
936 F(DataViewSetFloat64, 4, 1) | 936 F(DataViewSetFloat64, 4, 1) |
937 | 937 |
938 | 938 |
939 #define FOR_EACH_INTRINSIC_URI(F) \ | |
940 F(URIEscape, 1, 1) \ | |
941 F(URIUnescape, 1, 1) | |
942 | |
943 #define FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ | 939 #define FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ |
944 F(LoadLookupSlotForCall, 1, 2) | 940 F(LoadLookupSlotForCall, 1, 2) |
945 | 941 |
946 #define FOR_EACH_INTRINSIC_RETURN_TRIPLE(F) \ | 942 #define FOR_EACH_INTRINSIC_RETURN_TRIPLE(F) \ |
947 F(ForInPrepare, 1, 3) | 943 F(ForInPrepare, 1, 3) |
948 | 944 |
949 // Most intrinsics are implemented in the runtime/ directory, but ICs are | 945 // Most intrinsics are implemented in the runtime/ directory, but ICs are |
950 // implemented in ic.cc for now. | 946 // implemented in ic.cc for now. |
951 #define FOR_EACH_INTRINSIC_IC(F) \ | 947 #define FOR_EACH_INTRINSIC_IC(F) \ |
952 F(BinaryOpIC_Miss, 2, 1) \ | 948 F(BinaryOpIC_Miss, 2, 1) \ |
(...skipping 12 matching lines...) Expand all Loading... |
965 F(LoadPropertyWithInterceptor, 3, 1) \ | 961 F(LoadPropertyWithInterceptor, 3, 1) \ |
966 F(LoadPropertyWithInterceptorOnly, 3, 1) \ | 962 F(LoadPropertyWithInterceptorOnly, 3, 1) \ |
967 F(StoreCallbackProperty, 6, 1) \ | 963 F(StoreCallbackProperty, 6, 1) \ |
968 F(StoreIC_Miss, 5, 1) \ | 964 F(StoreIC_Miss, 5, 1) \ |
969 F(StoreIC_MissFromStubFailure, 5, 1) \ | 965 F(StoreIC_MissFromStubFailure, 5, 1) \ |
970 F(StoreIC_Slow, 5, 1) \ | 966 F(StoreIC_Slow, 5, 1) \ |
971 F(StorePropertyWithInterceptor, 3, 1) \ | 967 F(StorePropertyWithInterceptor, 3, 1) \ |
972 F(ToBooleanIC_Miss, 1, 1) \ | 968 F(ToBooleanIC_Miss, 1, 1) \ |
973 F(Unreachable, 0, 1) | 969 F(Unreachable, 0, 1) |
974 | 970 |
975 | |
976 #define FOR_EACH_INTRINSIC_RETURN_OBJECT(F) \ | 971 #define FOR_EACH_INTRINSIC_RETURN_OBJECT(F) \ |
977 FOR_EACH_INTRINSIC_IC(F) \ | 972 FOR_EACH_INTRINSIC_IC(F) \ |
978 FOR_EACH_INTRINSIC_ARRAY(F) \ | 973 FOR_EACH_INTRINSIC_ARRAY(F) \ |
979 FOR_EACH_INTRINSIC_ATOMICS(F) \ | 974 FOR_EACH_INTRINSIC_ATOMICS(F) \ |
980 FOR_EACH_INTRINSIC_CLASSES(F) \ | 975 FOR_EACH_INTRINSIC_CLASSES(F) \ |
981 FOR_EACH_INTRINSIC_COLLECTIONS(F) \ | 976 FOR_EACH_INTRINSIC_COLLECTIONS(F) \ |
982 FOR_EACH_INTRINSIC_COMPILER(F) \ | 977 FOR_EACH_INTRINSIC_COMPILER(F) \ |
983 FOR_EACH_INTRINSIC_DATE(F) \ | 978 FOR_EACH_INTRINSIC_DATE(F) \ |
984 FOR_EACH_INTRINSIC_DEBUG(F) \ | 979 FOR_EACH_INTRINSIC_DEBUG(F) \ |
985 FOR_EACH_INTRINSIC_FORIN(F) \ | 980 FOR_EACH_INTRINSIC_FORIN(F) \ |
986 FOR_EACH_INTRINSIC_INTERPRETER(F) \ | 981 FOR_EACH_INTRINSIC_INTERPRETER(F) \ |
987 FOR_EACH_INTRINSIC_FUNCTION(F) \ | 982 FOR_EACH_INTRINSIC_FUNCTION(F) \ |
988 FOR_EACH_INTRINSIC_FUTEX(F) \ | 983 FOR_EACH_INTRINSIC_FUTEX(F) \ |
989 FOR_EACH_INTRINSIC_GENERATOR(F) \ | 984 FOR_EACH_INTRINSIC_GENERATOR(F) \ |
990 FOR_EACH_INTRINSIC_I18N(F) \ | 985 FOR_EACH_INTRINSIC_I18N(F) \ |
991 FOR_EACH_INTRINSIC_INTERNAL(F) \ | 986 FOR_EACH_INTRINSIC_INTERNAL(F) \ |
992 FOR_EACH_INTRINSIC_LITERALS(F) \ | 987 FOR_EACH_INTRINSIC_LITERALS(F) \ |
993 FOR_EACH_INTRINSIC_LIVEEDIT(F) \ | 988 FOR_EACH_INTRINSIC_LIVEEDIT(F) \ |
994 FOR_EACH_INTRINSIC_MATHS(F) \ | 989 FOR_EACH_INTRINSIC_MATHS(F) \ |
995 FOR_EACH_INTRINSIC_NUMBERS(F) \ | 990 FOR_EACH_INTRINSIC_NUMBERS(F) \ |
996 FOR_EACH_INTRINSIC_OBJECT(F) \ | 991 FOR_EACH_INTRINSIC_OBJECT(F) \ |
997 FOR_EACH_INTRINSIC_OPERATORS(F) \ | 992 FOR_EACH_INTRINSIC_OPERATORS(F) \ |
998 FOR_EACH_INTRINSIC_PROXY(F) \ | 993 FOR_EACH_INTRINSIC_PROXY(F) \ |
999 FOR_EACH_INTRINSIC_REGEXP(F) \ | 994 FOR_EACH_INTRINSIC_REGEXP(F) \ |
1000 FOR_EACH_INTRINSIC_SCOPES(F) \ | 995 FOR_EACH_INTRINSIC_SCOPES(F) \ |
1001 FOR_EACH_INTRINSIC_SIMD(F) \ | 996 FOR_EACH_INTRINSIC_SIMD(F) \ |
1002 FOR_EACH_INTRINSIC_STRINGS(F) \ | 997 FOR_EACH_INTRINSIC_STRINGS(F) \ |
1003 FOR_EACH_INTRINSIC_SYMBOL(F) \ | 998 FOR_EACH_INTRINSIC_SYMBOL(F) \ |
1004 FOR_EACH_INTRINSIC_TEST(F) \ | 999 FOR_EACH_INTRINSIC_TEST(F) \ |
1005 FOR_EACH_INTRINSIC_TYPEDARRAY(F) \ | 1000 FOR_EACH_INTRINSIC_TYPEDARRAY(F) |
1006 FOR_EACH_INTRINSIC_URI(F) | |
1007 | 1001 |
1008 // FOR_EACH_INTRINSIC defines the list of all intrinsics, coming in 2 flavors, | 1002 // FOR_EACH_INTRINSIC defines the list of all intrinsics, coming in 2 flavors, |
1009 // either returning an object or a pair. | 1003 // either returning an object or a pair. |
1010 #define FOR_EACH_INTRINSIC(F) \ | 1004 #define FOR_EACH_INTRINSIC(F) \ |
1011 FOR_EACH_INTRINSIC_RETURN_TRIPLE(F) \ | 1005 FOR_EACH_INTRINSIC_RETURN_TRIPLE(F) \ |
1012 FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ | 1006 FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ |
1013 FOR_EACH_INTRINSIC_RETURN_OBJECT(F) | 1007 FOR_EACH_INTRINSIC_RETURN_OBJECT(F) |
1014 | 1008 |
1015 | 1009 |
1016 #define F(name, nargs, ressize) \ | 1010 #define F(name, nargs, ressize) \ |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1151 | 1145 |
1152 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 1146 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
1153 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 1147 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
1154 STATIC_ASSERT(LANGUAGE_END == 3); | 1148 STATIC_ASSERT(LANGUAGE_END == 3); |
1155 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 1149 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
1156 | 1150 |
1157 } // namespace internal | 1151 } // namespace internal |
1158 } // namespace v8 | 1152 } // namespace v8 |
1159 | 1153 |
1160 #endif // V8_RUNTIME_RUNTIME_H_ | 1154 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |