| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |