Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: src/interface-descriptors.h

Issue 2854273004: Reduce binary size of Builtins::CallableFor (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/builtins/builtins.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_CALL_INTERFACE_DESCRIPTOR_H_ 5 #ifndef V8_CALL_INTERFACE_DESCRIPTOR_H_
6 #define V8_CALL_INTERFACE_DESCRIPTOR_H_ 6 #define V8_CALL_INTERFACE_DESCRIPTOR_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "src/assembler.h" 10 #include "src/assembler.h"
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 #define DEFINE_TFS_BUILTIN_DESCRIPTOR(Name, ...) \ 878 #define DEFINE_TFS_BUILTIN_DESCRIPTOR(Name, ...) \
879 class Name##Descriptor : public CallInterfaceDescriptor { \ 879 class Name##Descriptor : public CallInterfaceDescriptor { \
880 public: \ 880 public: \
881 DEFINE_PARAMETERS(__VA_ARGS__) \ 881 DEFINE_PARAMETERS(__VA_ARGS__) \
882 DECLARE_DEFAULT_DESCRIPTOR(Name##Descriptor, CallInterfaceDescriptor, \ 882 DECLARE_DEFAULT_DESCRIPTOR(Name##Descriptor, CallInterfaceDescriptor, \
883 kParameterCount) \ 883 kParameterCount) \
884 }; 884 };
885 BUILTIN_LIST_TFS(DEFINE_TFS_BUILTIN_DESCRIPTOR) 885 BUILTIN_LIST_TFS(DEFINE_TFS_BUILTIN_DESCRIPTOR)
886 #undef DEFINE_TFS_BUILTIN_DESCRIPTOR 886 #undef DEFINE_TFS_BUILTIN_DESCRIPTOR
887 887
888 #undef DECLARE_DEFAULT_DESCRIPTOR
888 #undef DECLARE_DESCRIPTOR_WITH_BASE 889 #undef DECLARE_DESCRIPTOR_WITH_BASE
889 #undef DECLARE_DESCRIPTOR 890 #undef DECLARE_DESCRIPTOR
890 #undef DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE 891 #undef DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE
891 #undef DECLARE_DESCRIPTOR_WITH_BASE_AND_FUNCTION_TYPE_ARG 892 #undef DECLARE_DESCRIPTOR_WITH_BASE_AND_FUNCTION_TYPE_ARG
892 #undef DEFINE_PARAMETERS 893 #undef DEFINE_PARAMETERS
893 894
894 // We define the association between CallDescriptors::Key and the specialized 895 // We define the association between CallDescriptors::Key and the specialized
895 // descriptor here to reduce boilerplate and mistakes. 896 // descriptor here to reduce boilerplate and mistakes.
896 #define DEF_KEY(name, ...) \ 897 #define DEF_KEY(name, ...) \
897 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } 898 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; }
898 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) 899 INTERFACE_DESCRIPTOR_LIST(DEF_KEY)
899 #undef DEF_KEY 900 #undef DEF_KEY
900 } // namespace internal 901 } // namespace internal
901 } // namespace v8 902 } // namespace v8
902 903
903 904
904 #if V8_TARGET_ARCH_ARM64 905 #if V8_TARGET_ARCH_ARM64
905 #include "src/arm64/interface-descriptors-arm64.h" 906 #include "src/arm64/interface-descriptors-arm64.h"
906 #elif V8_TARGET_ARCH_ARM 907 #elif V8_TARGET_ARCH_ARM
907 #include "src/arm/interface-descriptors-arm.h" 908 #include "src/arm/interface-descriptors-arm.h"
908 #endif 909 #endif
909 910
910 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ 911 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_
OLDNEW
« no previous file with comments | « src/builtins/builtins.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698