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

Side by Side Diff: src/api.h

Issue 9864034: Valgrind cleanliness, part 5: Delete extensions on exit. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed extension ownership Created 8 years, 8 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/api.cc » ('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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 private: 139 private:
140 v8::internal::Address addr_; 140 v8::internal::Address addr_;
141 }; 141 };
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 Extension* extension() { return extension_; } 150 Extension* extension() { return extension_; }
150 RegisteredExtension* next() { return next_; } 151 RegisteredExtension* next() { return next_; }
151 RegisteredExtension* next_auto() { return next_auto_; } 152 RegisteredExtension* next_auto() { return next_auto_; }
152 static RegisteredExtension* first_extension() { return first_extension_; } 153 static RegisteredExtension* first_extension() { return first_extension_; }
153 private: 154 private:
154 Extension* extension_; 155 Extension* extension_;
155 RegisteredExtension* next_; 156 RegisteredExtension* next_;
156 RegisteredExtension* next_auto_; 157 RegisteredExtension* next_auto_;
157 static RegisteredExtension* first_extension_; 158 static RegisteredExtension* first_extension_;
158 }; 159 };
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 stress_type_ = stress_type; 560 stress_type_ = stress_type;
560 } 561 }
561 562
562 private: 563 private:
563 static v8::Testing::StressType stress_type_; 564 static v8::Testing::StressType stress_type_;
564 }; 565 };
565 566
566 } } // namespace v8::internal 567 } } // namespace v8::internal
567 568
568 #endif // V8_API_H_ 569 #endif // V8_API_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698