OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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_BUILTINS_BUILTINS_H_ | 5 #ifndef V8_BUILTINS_BUILTINS_H_ |
6 #define V8_BUILTINS_BUILTINS_H_ | 6 #define V8_BUILTINS_BUILTINS_H_ |
7 | 7 |
8 #include "src/base/flags.h" | 8 #include "src/base/flags.h" |
9 #include "src/globals.h" | 9 #include "src/globals.h" |
10 | 10 |
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 TFS(ThrowWasmTrapMemOutOfBounds, BUILTIN, kNoExtraICState, WasmRuntimeCall, \ | 839 TFS(ThrowWasmTrapMemOutOfBounds, BUILTIN, kNoExtraICState, WasmRuntimeCall, \ |
840 1) \ | 840 1) \ |
841 TFS(ThrowWasmTrapDivByZero, BUILTIN, kNoExtraICState, WasmRuntimeCall, 1) \ | 841 TFS(ThrowWasmTrapDivByZero, BUILTIN, kNoExtraICState, WasmRuntimeCall, 1) \ |
842 TFS(ThrowWasmTrapDivUnrepresentable, BUILTIN, kNoExtraICState, \ | 842 TFS(ThrowWasmTrapDivUnrepresentable, BUILTIN, kNoExtraICState, \ |
843 WasmRuntimeCall, 1) \ | 843 WasmRuntimeCall, 1) \ |
844 TFS(ThrowWasmTrapRemByZero, BUILTIN, kNoExtraICState, WasmRuntimeCall, 1) \ | 844 TFS(ThrowWasmTrapRemByZero, BUILTIN, kNoExtraICState, WasmRuntimeCall, 1) \ |
845 TFS(ThrowWasmTrapFloatUnrepresentable, BUILTIN, kNoExtraICState, \ | 845 TFS(ThrowWasmTrapFloatUnrepresentable, BUILTIN, kNoExtraICState, \ |
846 WasmRuntimeCall, 1) \ | 846 WasmRuntimeCall, 1) \ |
847 TFS(ThrowWasmTrapFuncInvalid, BUILTIN, kNoExtraICState, WasmRuntimeCall, 1) \ | 847 TFS(ThrowWasmTrapFuncInvalid, BUILTIN, kNoExtraICState, WasmRuntimeCall, 1) \ |
848 TFS(ThrowWasmTrapFuncSigMismatch, BUILTIN, kNoExtraICState, WasmRuntimeCall, \ | 848 TFS(ThrowWasmTrapFuncSigMismatch, BUILTIN, kNoExtraICState, WasmRuntimeCall, \ |
849 1) | 849 1) \ |
| 850 \ |
| 851 /* Async-from-Sync Iterator */ \ |
| 852 \ |
| 853 /* %AsyncFromSyncIteratorPrototype% */ \ |
| 854 /* (proposal-async-iteration/#sec-%asyncfromsynciteratorprototype%-object)*/ \ |
| 855 TFJ(AsyncFromSyncIteratorPrototypeNext, 1) \ |
| 856 TFJ(AsyncFromSyncIteratorPrototypeThrow, 1) \ |
| 857 TFJ(AsyncFromSyncIteratorPrototypeReturn, 1) \ |
| 858 \ |
| 859 /* proposal-async-iteration/#sec-async-iterator-value-unwrap-functions */ \ |
| 860 TFJ(AsyncIteratorValueUnwrap, 1) |
850 | 861 |
851 #define IGNORE_BUILTIN(...) | 862 #define IGNORE_BUILTIN(...) |
852 | 863 |
853 #define BUILTIN_LIST_ALL(V) BUILTIN_LIST(V, V, V, V, V, V, V) | 864 #define BUILTIN_LIST_ALL(V) BUILTIN_LIST(V, V, V, V, V, V, V) |
854 | 865 |
855 #define BUILTIN_LIST_C(V) \ | 866 #define BUILTIN_LIST_C(V) \ |
856 BUILTIN_LIST(V, V, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, \ | 867 BUILTIN_LIST(V, V, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, \ |
857 IGNORE_BUILTIN, IGNORE_BUILTIN) | 868 IGNORE_BUILTIN, IGNORE_BUILTIN) |
858 | 869 |
859 #define BUILTIN_LIST_A(V) \ | 870 #define BUILTIN_LIST_A(V) \ |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
994 | 1005 |
995 friend class Isolate; | 1006 friend class Isolate; |
996 | 1007 |
997 DISALLOW_COPY_AND_ASSIGN(Builtins); | 1008 DISALLOW_COPY_AND_ASSIGN(Builtins); |
998 }; | 1009 }; |
999 | 1010 |
1000 } // namespace internal | 1011 } // namespace internal |
1001 } // namespace v8 | 1012 } // namespace v8 |
1002 | 1013 |
1003 #endif // V8_BUILTINS_BUILTINS_H_ | 1014 #endif // V8_BUILTINS_BUILTINS_H_ |
OLD | NEW |