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 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
924 F(DataViewGetFloat64, 3, 1) \ | 924 F(DataViewGetFloat64, 3, 1) \ |
925 F(DataViewSetUint8, 4, 1) \ | 925 F(DataViewSetUint8, 4, 1) \ |
926 F(DataViewSetInt8, 4, 1) \ | 926 F(DataViewSetInt8, 4, 1) \ |
927 F(DataViewSetUint16, 4, 1) \ | 927 F(DataViewSetUint16, 4, 1) \ |
928 F(DataViewSetInt16, 4, 1) \ | 928 F(DataViewSetInt16, 4, 1) \ |
929 F(DataViewSetUint32, 4, 1) \ | 929 F(DataViewSetUint32, 4, 1) \ |
930 F(DataViewSetInt32, 4, 1) \ | 930 F(DataViewSetInt32, 4, 1) \ |
931 F(DataViewSetFloat32, 4, 1) \ | 931 F(DataViewSetFloat32, 4, 1) \ |
932 F(DataViewSetFloat64, 4, 1) | 932 F(DataViewSetFloat64, 4, 1) |
933 | 933 |
| 934 #define FOR_EACH_INTRINSIC_WASM(F) F(WasmGrowMemory, 1, 1) |
934 | 935 |
935 #define FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ | 936 #define FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ |
936 F(LoadLookupSlotForCall, 1, 2) | 937 F(LoadLookupSlotForCall, 1, 2) |
937 | 938 |
938 #define FOR_EACH_INTRINSIC_RETURN_TRIPLE(F) \ | 939 #define FOR_EACH_INTRINSIC_RETURN_TRIPLE(F) \ |
939 F(ForInPrepare, 1, 3) | 940 F(ForInPrepare, 1, 3) |
940 | 941 |
941 // Most intrinsics are implemented in the runtime/ directory, but ICs are | 942 // Most intrinsics are implemented in the runtime/ directory, but ICs are |
942 // implemented in ic.cc for now. | 943 // implemented in ic.cc for now. |
943 #define FOR_EACH_INTRINSIC_IC(F) \ | 944 #define FOR_EACH_INTRINSIC_IC(F) \ |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
987 FOR_EACH_INTRINSIC_NUMBERS(F) \ | 988 FOR_EACH_INTRINSIC_NUMBERS(F) \ |
988 FOR_EACH_INTRINSIC_OBJECT(F) \ | 989 FOR_EACH_INTRINSIC_OBJECT(F) \ |
989 FOR_EACH_INTRINSIC_OPERATORS(F) \ | 990 FOR_EACH_INTRINSIC_OPERATORS(F) \ |
990 FOR_EACH_INTRINSIC_PROXY(F) \ | 991 FOR_EACH_INTRINSIC_PROXY(F) \ |
991 FOR_EACH_INTRINSIC_REGEXP(F) \ | 992 FOR_EACH_INTRINSIC_REGEXP(F) \ |
992 FOR_EACH_INTRINSIC_SCOPES(F) \ | 993 FOR_EACH_INTRINSIC_SCOPES(F) \ |
993 FOR_EACH_INTRINSIC_SIMD(F) \ | 994 FOR_EACH_INTRINSIC_SIMD(F) \ |
994 FOR_EACH_INTRINSIC_STRINGS(F) \ | 995 FOR_EACH_INTRINSIC_STRINGS(F) \ |
995 FOR_EACH_INTRINSIC_SYMBOL(F) \ | 996 FOR_EACH_INTRINSIC_SYMBOL(F) \ |
996 FOR_EACH_INTRINSIC_TEST(F) \ | 997 FOR_EACH_INTRINSIC_TEST(F) \ |
997 FOR_EACH_INTRINSIC_TYPEDARRAY(F) | 998 FOR_EACH_INTRINSIC_TYPEDARRAY(F) \ |
| 999 FOR_EACH_INTRINSIC_WASM(F) |
998 | 1000 |
999 // FOR_EACH_INTRINSIC defines the list of all intrinsics, coming in 2 flavors, | 1001 // FOR_EACH_INTRINSIC defines the list of all intrinsics, coming in 2 flavors, |
1000 // either returning an object or a pair. | 1002 // either returning an object or a pair. |
1001 #define FOR_EACH_INTRINSIC(F) \ | 1003 #define FOR_EACH_INTRINSIC(F) \ |
1002 FOR_EACH_INTRINSIC_RETURN_TRIPLE(F) \ | 1004 FOR_EACH_INTRINSIC_RETURN_TRIPLE(F) \ |
1003 FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ | 1005 FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ |
1004 FOR_EACH_INTRINSIC_RETURN_OBJECT(F) | 1006 FOR_EACH_INTRINSIC_RETURN_OBJECT(F) |
1005 | 1007 |
1006 | 1008 |
1007 #define F(name, nargs, ressize) \ | 1009 #define F(name, nargs, ressize) \ |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1142 | 1144 |
1143 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 1145 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
1144 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 1146 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
1145 STATIC_ASSERT(LANGUAGE_END == 3); | 1147 STATIC_ASSERT(LANGUAGE_END == 3); |
1146 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 1148 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
1147 | 1149 |
1148 } // namespace internal | 1150 } // namespace internal |
1149 } // namespace v8 | 1151 } // namespace v8 |
1150 | 1152 |
1151 #endif // V8_RUNTIME_RUNTIME_H_ | 1153 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |