| 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 4728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4739 static void AddMemoryAllocationCallback(MemoryAllocationCallback callback, | 4739 static void AddMemoryAllocationCallback(MemoryAllocationCallback callback, |
| 4740 ObjectSpace space, | 4740 ObjectSpace space, |
| 4741 AllocationAction action); | 4741 AllocationAction action); |
| 4742 | 4742 |
| 4743 /** | 4743 /** |
| 4744 * Removes callback that was installed by AddMemoryAllocationCallback. | 4744 * Removes callback that was installed by AddMemoryAllocationCallback. |
| 4745 */ | 4745 */ |
| 4746 static void RemoveMemoryAllocationCallback(MemoryAllocationCallback callback); | 4746 static void RemoveMemoryAllocationCallback(MemoryAllocationCallback callback); |
| 4747 | 4747 |
| 4748 /** | 4748 /** |
| 4749 * Adds a callback to notify the host application when a script finished | |
| 4750 * running. If a script re-enters the runtime during executing, the | |
| 4751 * CallCompletedCallback is only invoked when the outer-most script | |
| 4752 * execution ends. Executing scripts inside the callback do not trigger | |
| 4753 * further callbacks. | |
| 4754 * | |
| 4755 * Will be deprecated soon. Use Isolate::AddCallCompletedCallback. | |
| 4756 */ | |
| 4757 static void AddCallCompletedCallback(CallCompletedCallback callback); | |
| 4758 | |
| 4759 /** | |
| 4760 * Removes callback that was installed by AddCallCompletedCallback. | |
| 4761 * | |
| 4762 * Will be deprecated soon. Use Isolate::RemoveCallCompletedCallback. | |
| 4763 */ | |
| 4764 static void RemoveCallCompletedCallback(CallCompletedCallback callback); | |
| 4765 | |
| 4766 /** | |
| 4767 * Experimental: Runs the Microtask Work Queue until empty | 4749 * Experimental: Runs the Microtask Work Queue until empty |
| 4768 */ | 4750 */ |
| 4769 static void RunMicrotasks(Isolate* isolate); | 4751 static void RunMicrotasks(Isolate* isolate); |
| 4770 | 4752 |
| 4771 /** | 4753 /** |
| 4772 * Experimental: Enqueues the callback to the Microtask Work Queue | 4754 * Experimental: Enqueues the callback to the Microtask Work Queue |
| 4773 */ | 4755 */ |
| 4774 static void EnqueueMicrotask(Isolate* isolate, Handle<Function> microtask); | 4756 static void EnqueueMicrotask(Isolate* isolate, Handle<Function> microtask); |
| 4775 | 4757 |
| 4776 /** | 4758 /** |
| (...skipping 1853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6630 */ | 6612 */ |
| 6631 | 6613 |
| 6632 | 6614 |
| 6633 } // namespace v8 | 6615 } // namespace v8 |
| 6634 | 6616 |
| 6635 | 6617 |
| 6636 #undef TYPE_CHECK | 6618 #undef TYPE_CHECK |
| 6637 | 6619 |
| 6638 | 6620 |
| 6639 #endif // V8_H_ | 6621 #endif // V8_H_ |
| OLD | NEW |