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

Side by Side Diff: include/v8.h

Issue 2051103002: Move EmbedderHeapTracer::TracePrologue call to the beginning of full gc (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add abort Created 4 years, 6 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/heap/incremental-marking.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 5461 matching lines...) Expand 10 before | Expand all | Expand 10 after
5472 virtual bool AdvanceTracing(double deadline_in_ms, 5472 virtual bool AdvanceTracing(double deadline_in_ms,
5473 AdvanceTracingActions actions) { 5473 AdvanceTracingActions actions) {
5474 return false; 5474 return false;
5475 } 5475 }
5476 /** 5476 /**
5477 * V8 will call this method at the end of the gc cycle. Allocation is *not* 5477 * V8 will call this method at the end of the gc cycle. Allocation is *not*
5478 * allowed in the TraceEpilogue. 5478 * allowed in the TraceEpilogue.
5479 */ 5479 */
5480 virtual void TraceEpilogue() = 0; 5480 virtual void TraceEpilogue() = 0;
5481 5481
5482 /**
5483 * Throw away all intermediate data and reset to the initial state.
5484 */
5485 virtual void AbortTracing() {}
5486
5482 protected: 5487 protected:
5483 virtual ~EmbedderHeapTracer() = default; 5488 virtual ~EmbedderHeapTracer() = default;
5484 }; 5489 };
5485 5490
5486 /** 5491 /**
5487 * Isolate represents an isolated instance of the V8 engine. V8 isolates have 5492 * Isolate represents an isolated instance of the V8 engine. V8 isolates have
5488 * completely separate states. Objects from one isolate must not be used in 5493 * completely separate states. Objects from one isolate must not be used in
5489 * other isolates. The embedder can create multiple isolates and use them in 5494 * other isolates. The embedder can create multiple isolates and use them in
5490 * parallel in multiple threads. An isolate can be entered by at most one 5495 * parallel in multiple threads. An isolate can be entered by at most one
5491 * thread at any given time. The Locker/Unlocker API must be used to 5496 * thread at any given time. The Locker/Unlocker API must be used to
(...skipping 3322 matching lines...) Expand 10 before | Expand all | Expand 10 after
8814 */ 8819 */
8815 8820
8816 8821
8817 } // namespace v8 8822 } // namespace v8
8818 8823
8819 8824
8820 #undef TYPE_CHECK 8825 #undef TYPE_CHECK
8821 8826
8822 8827
8823 #endif // INCLUDE_V8_H_ 8828 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/incremental-marking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698