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