| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 /** \mainpage V8 API Reference Guide | 5 /** \mainpage V8 API Reference Guide |
| 6 * | 6 * |
| 7 * V8 is Google's open source JavaScript engine. | 7 * V8 is Google's open source JavaScript engine. |
| 8 * | 8 * |
| 9 * This set of documents provides reference material generated from the | 9 * This set of documents provides reference material generated from the |
| 10 * V8 header file, include/v8.h. | 10 * V8 header file, include/v8.h. |
| (...skipping 7129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7140 */ | 7140 */ |
| 7141 void AddGCEpilogueCallback(GCCallback callback, | 7141 void AddGCEpilogueCallback(GCCallback callback, |
| 7142 GCType gc_type_filter = kGCTypeAll); | 7142 GCType gc_type_filter = kGCTypeAll); |
| 7143 | 7143 |
| 7144 /** | 7144 /** |
| 7145 * This function removes callback which was installed by | 7145 * This function removes callback which was installed by |
| 7146 * AddGCEpilogueCallback function. | 7146 * AddGCEpilogueCallback function. |
| 7147 */ | 7147 */ |
| 7148 void RemoveGCEpilogueCallback(GCCallback callback); | 7148 void RemoveGCEpilogueCallback(GCCallback callback); |
| 7149 | 7149 |
| 7150 typedef size_t (*GetExternallyAllocatedMemoryInBytesCallback)(); |
| 7151 |
| 7152 /** |
| 7153 * Set the callback that tells V8 how much memory is currently allocated |
| 7154 * externally of the V8 heap. Ideally this memory is somehow connected to V8 |
| 7155 * objects and may get freed-up when the corresponding V8 objects get |
| 7156 * collected by a V8 garbage collection. |
| 7157 */ |
| 7158 void SetGetExternallyAllocatedMemoryInBytesCallback( |
| 7159 GetExternallyAllocatedMemoryInBytesCallback callback); |
| 7160 |
| 7150 /** | 7161 /** |
| 7151 * Forcefully terminate the current thread of JavaScript execution | 7162 * Forcefully terminate the current thread of JavaScript execution |
| 7152 * in the given isolate. | 7163 * in the given isolate. |
| 7153 * | 7164 * |
| 7154 * This method can be used by any thread even if that thread has not | 7165 * This method can be used by any thread even if that thread has not |
| 7155 * acquired the V8 lock with a Locker object. | 7166 * acquired the V8 lock with a Locker object. |
| 7156 */ | 7167 */ |
| 7157 void TerminateExecution(); | 7168 void TerminateExecution(); |
| 7158 | 7169 |
| 7159 /** | 7170 /** |
| (...skipping 3009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10169 */ | 10180 */ |
| 10170 | 10181 |
| 10171 | 10182 |
| 10172 } // namespace v8 | 10183 } // namespace v8 |
| 10173 | 10184 |
| 10174 | 10185 |
| 10175 #undef TYPE_CHECK | 10186 #undef TYPE_CHECK |
| 10176 | 10187 |
| 10177 | 10188 |
| 10178 #endif // INCLUDE_V8_H_ | 10189 #endif // INCLUDE_V8_H_ |
| OLD | NEW |