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

Side by Side Diff: include/v8.h

Issue 1522703002: Add Isolate::DiscardThreadSpecificMetadata method to embedder API. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove rocketsoftware wildcard from AUTHORS Created 5 years 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 | « AUTHORS ('k') | 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 5472 matching lines...) Expand 10 before | Expand all | Expand 10 after
5483 */ 5483 */
5484 void Exit(); 5484 void Exit();
5485 5485
5486 /** 5486 /**
5487 * Disposes the isolate. The isolate must not be entered by any 5487 * Disposes the isolate. The isolate must not be entered by any
5488 * thread to be disposable. 5488 * thread to be disposable.
5489 */ 5489 */
5490 void Dispose(); 5490 void Dispose();
5491 5491
5492 /** 5492 /**
5493 * Discards all V8 thread-specific data for the Isolate. Should be used
5494 * if a thread is terminating and it has used an Isolate that will outlive
5495 * the thread -- all thread-specific data for an Isolate is discarded when
5496 * an Isolate is disposed so this call is pointless if an Isolate is about
5497 * to be Disposed.
5498 */
5499 void DiscardThreadSpecificMetadata();
5500
5501 /**
5493 * Associate embedder-specific data with the isolate. |slot| has to be 5502 * Associate embedder-specific data with the isolate. |slot| has to be
5494 * between 0 and GetNumberOfDataSlots() - 1. 5503 * between 0 and GetNumberOfDataSlots() - 1.
5495 */ 5504 */
5496 V8_INLINE void SetData(uint32_t slot, void* data); 5505 V8_INLINE void SetData(uint32_t slot, void* data);
5497 5506
5498 /** 5507 /**
5499 * Retrieve embedder-specific data from the isolate. 5508 * Retrieve embedder-specific data from the isolate.
5500 * Returns NULL if SetData has never been called for the given |slot|. 5509 * Returns NULL if SetData has never been called for the given |slot|.
5501 */ 5510 */
5502 V8_INLINE void* GetData(uint32_t slot); 5511 V8_INLINE void* GetData(uint32_t slot);
(...skipping 2971 matching lines...) Expand 10 before | Expand all | Expand 10 after
8474 */ 8483 */
8475 8484
8476 8485
8477 } // namespace v8 8486 } // namespace v8
8478 8487
8479 8488
8480 #undef TYPE_CHECK 8489 #undef TYPE_CHECK
8481 8490
8482 8491
8483 #endif // INCLUDE_V8_H_ 8492 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « AUTHORS ('k') | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698