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 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
928 F(DataViewGetFloat64, 3, 1) \ | 928 F(DataViewGetFloat64, 3, 1) \ |
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 #define FOR_EACH_INTRINSIC_WASM(F) F(WasmGrowMemory, 2, 1) |
938 | 939 |
939 #define FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ | 940 #define FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ |
940 F(LoadLookupSlotForCall, 1, 2) | 941 F(LoadLookupSlotForCall, 1, 2) |
941 | 942 |
942 #define FOR_EACH_INTRINSIC_RETURN_TRIPLE(F) \ | 943 #define FOR_EACH_INTRINSIC_RETURN_TRIPLE(F) \ |
943 F(ForInPrepare, 1, 3) | 944 F(ForInPrepare, 1, 3) |
944 | 945 |
945 // Most intrinsics are implemented in the runtime/ directory, but ICs are | 946 // Most intrinsics are implemented in the runtime/ directory, but ICs are |
946 // implemented in ic.cc for now. | 947 // implemented in ic.cc for now. |
947 #define FOR_EACH_INTRINSIC_IC(F) \ | 948 #define FOR_EACH_INTRINSIC_IC(F) \ |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
990 FOR_EACH_INTRINSIC_NUMBERS(F) \ | 991 FOR_EACH_INTRINSIC_NUMBERS(F) \ |
991 FOR_EACH_INTRINSIC_OBJECT(F) \ | 992 FOR_EACH_INTRINSIC_OBJECT(F) \ |
992 FOR_EACH_INTRINSIC_OPERATORS(F) \ | 993 FOR_EACH_INTRINSIC_OPERATORS(F) \ |
993 FOR_EACH_INTRINSIC_PROXY(F) \ | 994 FOR_EACH_INTRINSIC_PROXY(F) \ |
994 FOR_EACH_INTRINSIC_REGEXP(F) \ | 995 FOR_EACH_INTRINSIC_REGEXP(F) \ |
995 FOR_EACH_INTRINSIC_SCOPES(F) \ | 996 FOR_EACH_INTRINSIC_SCOPES(F) \ |
996 FOR_EACH_INTRINSIC_SIMD(F) \ | 997 FOR_EACH_INTRINSIC_SIMD(F) \ |
997 FOR_EACH_INTRINSIC_STRINGS(F) \ | 998 FOR_EACH_INTRINSIC_STRINGS(F) \ |
998 FOR_EACH_INTRINSIC_SYMBOL(F) \ | 999 FOR_EACH_INTRINSIC_SYMBOL(F) \ |
999 FOR_EACH_INTRINSIC_TEST(F) \ | 1000 FOR_EACH_INTRINSIC_TEST(F) \ |
1000 FOR_EACH_INTRINSIC_TYPEDARRAY(F) | 1001 FOR_EACH_INTRINSIC_TYPEDARRAY(F) \ |
| 1002 FOR_EACH_INTRINSIC_WASM(F) |
1001 | 1003 |
1002 // FOR_EACH_INTRINSIC defines the list of all intrinsics, coming in 2 flavors, | 1004 // FOR_EACH_INTRINSIC defines the list of all intrinsics, coming in 2 flavors, |
1003 // either returning an object or a pair. | 1005 // either returning an object or a pair. |
1004 #define FOR_EACH_INTRINSIC(F) \ | 1006 #define FOR_EACH_INTRINSIC(F) \ |
1005 FOR_EACH_INTRINSIC_RETURN_TRIPLE(F) \ | 1007 FOR_EACH_INTRINSIC_RETURN_TRIPLE(F) \ |
1006 FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ | 1008 FOR_EACH_INTRINSIC_RETURN_PAIR(F) \ |
1007 FOR_EACH_INTRINSIC_RETURN_OBJECT(F) | 1009 FOR_EACH_INTRINSIC_RETURN_OBJECT(F) |
1008 | 1010 |
1009 | 1011 |
1010 #define F(name, nargs, ressize) \ | 1012 #define F(name, nargs, ressize) \ |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1145 | 1147 |
1146 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; | 1148 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; |
1147 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; | 1149 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; |
1148 STATIC_ASSERT(LANGUAGE_END == 3); | 1150 STATIC_ASSERT(LANGUAGE_END == 3); |
1149 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; | 1151 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; |
1150 | 1152 |
1151 } // namespace internal | 1153 } // namespace internal |
1152 } // namespace v8 | 1154 } // namespace v8 |
1153 | 1155 |
1154 #endif // V8_RUNTIME_RUNTIME_H_ | 1156 #endif // V8_RUNTIME_RUNTIME_H_ |
OLD | NEW |