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

Side by Side Diff: include/v8.h

Issue 1406303008: Introduce new API for detecting when the embedder is in foreground/background. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix comment Created 5 years, 2 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
« 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 // 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 5773 matching lines...) Expand 10 before | Expand all | Expand 10 after
5784 * these notifications to guide the GC heuristic. Returns the number 5784 * these notifications to guide the GC heuristic. Returns the number
5785 * of context disposals - including this one - since the last time 5785 * of context disposals - including this one - since the last time
5786 * V8 had a chance to clean up. 5786 * V8 had a chance to clean up.
5787 * 5787 *
5788 * The optional parameter |dependant_context| specifies whether the disposed 5788 * The optional parameter |dependant_context| specifies whether the disposed
5789 * context was depending on state from other contexts or not. 5789 * context was depending on state from other contexts or not.
5790 */ 5790 */
5791 int ContextDisposedNotification(bool dependant_context = true); 5791 int ContextDisposedNotification(bool dependant_context = true);
5792 5792
5793 /** 5793 /**
5794 * Optional notification that the isolate switched to the foreground.
5795 * V8 uses these notifications to guide heuristics.
5796 */
5797 void IsolateInForegroundNotification();
5798
5799 /**
5800 * Optional notification that the isolate switched to the background.
5801 * V8 uses these notifications to guide heuristics.
5802 */
5803 void IsolateInBackgroundNotification();
5804
5805 /**
5794 * Allows the host application to provide the address of a function that is 5806 * Allows the host application to provide the address of a function that is
5795 * notified each time code is added, moved or removed. 5807 * notified each time code is added, moved or removed.
5796 * 5808 *
5797 * \param options options for the JIT code event handler. 5809 * \param options options for the JIT code event handler.
5798 * \param event_handler the JIT code event handler, which will be invoked 5810 * \param event_handler the JIT code event handler, which will be invoked
5799 * each time code is added, moved or removed. 5811 * each time code is added, moved or removed.
5800 * \note \p event_handler won't get notified of existent code. 5812 * \note \p event_handler won't get notified of existent code.
5801 * \note since code removal notifications are not currently issued, the 5813 * \note since code removal notifications are not currently issued, the
5802 * \p event_handler may get notifications of code that overlaps earlier 5814 * \p event_handler may get notifications of code that overlaps earlier
5803 * code notifications. This happens when code areas are reused, and the 5815 * code notifications. This happens when code areas are reused, and the
(...skipping 2564 matching lines...) Expand 10 before | Expand all | Expand 10 after
8368 */ 8380 */
8369 8381
8370 8382
8371 } // namespace v8 8383 } // namespace v8
8372 8384
8373 8385
8374 #undef TYPE_CHECK 8386 #undef TYPE_CHECK
8375 8387
8376 8388
8377 #endif // V8_H_ 8389 #endif // V8_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