OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 142 |
143 | 143 |
144 | 144 |
145 class RegisteredExtension { | 145 class RegisteredExtension { |
146 public: | 146 public: |
147 explicit RegisteredExtension(Extension* extension); | 147 explicit RegisteredExtension(Extension* extension); |
148 static void Register(RegisteredExtension* that); | 148 static void Register(RegisteredExtension* that); |
149 static void UnregisterAll(); | 149 static void UnregisterAll(); |
150 Extension* extension() { return extension_; } | 150 Extension* extension() { return extension_; } |
151 RegisteredExtension* next() { return next_; } | 151 RegisteredExtension* next() { return next_; } |
152 RegisteredExtension* next_auto() { return next_auto_; } | |
153 static RegisteredExtension* first_extension() { return first_extension_; } | 152 static RegisteredExtension* first_extension() { return first_extension_; } |
154 private: | 153 private: |
155 Extension* extension_; | 154 Extension* extension_; |
156 RegisteredExtension* next_; | 155 RegisteredExtension* next_; |
157 RegisteredExtension* next_auto_; | |
158 static RegisteredExtension* first_extension_; | 156 static RegisteredExtension* first_extension_; |
159 }; | 157 }; |
160 | 158 |
161 | 159 |
162 #define OPEN_HANDLE_LIST(V) \ | 160 #define OPEN_HANDLE_LIST(V) \ |
163 V(Template, TemplateInfo) \ | 161 V(Template, TemplateInfo) \ |
164 V(FunctionTemplate, FunctionTemplateInfo) \ | 162 V(FunctionTemplate, FunctionTemplateInfo) \ |
165 V(ObjectTemplate, ObjectTemplateInfo) \ | 163 V(ObjectTemplate, ObjectTemplateInfo) \ |
166 V(Signature, SignatureInfo) \ | 164 V(Signature, SignatureInfo) \ |
167 V(AccessorSignature, FunctionTemplateInfo) \ | 165 V(AccessorSignature, FunctionTemplateInfo) \ |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 stress_type_ = stress_type; | 663 stress_type_ = stress_type; |
666 } | 664 } |
667 | 665 |
668 private: | 666 private: |
669 static v8::Testing::StressType stress_type_; | 667 static v8::Testing::StressType stress_type_; |
670 }; | 668 }; |
671 | 669 |
672 } } // namespace v8::internal | 670 } } // namespace v8::internal |
673 | 671 |
674 #endif // V8_API_H_ | 672 #endif // V8_API_H_ |
OLD | NEW |