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/handles.h" | 9 #include "src/handles.h" |
10 | 10 |
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 // Disassembler support. | 710 // Disassembler support. |
711 const char* Lookup(byte* pc); | 711 const char* Lookup(byte* pc); |
712 | 712 |
713 enum Name { | 713 enum Name { |
714 #define DEF_ENUM(Name, ...) k##Name, | 714 #define DEF_ENUM(Name, ...) k##Name, |
715 BUILTIN_LIST_ALL(DEF_ENUM) | 715 BUILTIN_LIST_ALL(DEF_ENUM) |
716 #undef DEF_ENUM | 716 #undef DEF_ENUM |
717 builtin_count | 717 builtin_count |
718 }; | 718 }; |
719 | 719 |
720 #define DECLARE_BUILTIN_ACCESSOR(Name, ...) Handle<Code> Name(); | 720 #define DECLARE_BUILTIN_ACCESSOR(Name, ...) \ |
| 721 V8_EXPORT_PRIVATE Handle<Code> Name(); |
721 BUILTIN_LIST_ALL(DECLARE_BUILTIN_ACCESSOR) | 722 BUILTIN_LIST_ALL(DECLARE_BUILTIN_ACCESSOR) |
722 #undef DECLARE_BUILTIN_ACCESSOR | 723 #undef DECLARE_BUILTIN_ACCESSOR |
723 | 724 |
724 // Convenience wrappers. | 725 // Convenience wrappers. |
725 Handle<Code> CallFunction( | 726 Handle<Code> CallFunction( |
726 ConvertReceiverMode = ConvertReceiverMode::kAny, | 727 ConvertReceiverMode = ConvertReceiverMode::kAny, |
727 TailCallMode tail_call_mode = TailCallMode::kDisallow); | 728 TailCallMode tail_call_mode = TailCallMode::kDisallow); |
728 Handle<Code> Call(ConvertReceiverMode = ConvertReceiverMode::kAny, | 729 Handle<Code> Call(ConvertReceiverMode = ConvertReceiverMode::kAny, |
729 TailCallMode tail_call_mode = TailCallMode::kDisallow); | 730 TailCallMode tail_call_mode = TailCallMode::kDisallow); |
730 Handle<Code> CallBoundFunction(TailCallMode tail_call_mode); | 731 Handle<Code> CallBoundFunction(TailCallMode tail_call_mode); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 | 817 |
817 friend class Isolate; | 818 friend class Isolate; |
818 | 819 |
819 DISALLOW_COPY_AND_ASSIGN(Builtins); | 820 DISALLOW_COPY_AND_ASSIGN(Builtins); |
820 }; | 821 }; |
821 | 822 |
822 } // namespace internal | 823 } // namespace internal |
823 } // namespace v8 | 824 } // namespace v8 |
824 | 825 |
825 #endif // V8_BUILTINS_BUILTINS_H_ | 826 #endif // V8_BUILTINS_BUILTINS_H_ |
OLD | NEW |