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

Side by Side Diff: src/api.h

Issue 15564002: Make sure we register extensions only once. Removed unused member variable. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/bootstrapper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/bootstrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698