[v8] use GetDataFromSnapshotOnce in AddData doc

This commit updates the comment for the AddData methods which currently
refer to GetDataFromSnapshot, and changes them to
GetDataFromSnapshotOnce instead.

Change-Id: Id09d187eccf645338e2c75b8b692c15a904c8357
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2301929
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Commit-Queue: Toon Verwaest <verwaest@chromium.org>
Cr-Commit-Position: refs/heads/master@{#76310}
This commit is contained in:
Daniel Bevenius 2020-07-16 12:37:59 +02:00 committed by V8 LUCI CQ
parent 2568174d23
commit 9d14f87da3

View File

@ -10119,8 +10119,8 @@ class V8_EXPORT SnapshotCreator {
/** /**
* Attach arbitrary V8::Data to the context snapshot, which can be retrieved * Attach arbitrary V8::Data to the context snapshot, which can be retrieved
* via Context::GetDataFromSnapshot after deserialization. This data does not * via Context::GetDataFromSnapshotOnce after deserialization. This data does
* survive when a new snapshot is created from an existing snapshot. * not survive when a new snapshot is created from an existing snapshot.
* \returns the index for retrieval. * \returns the index for retrieval.
*/ */
template <class T> template <class T>
@ -10128,8 +10128,8 @@ class V8_EXPORT SnapshotCreator {
/** /**
* Attach arbitrary V8::Data to the isolate snapshot, which can be retrieved * Attach arbitrary V8::Data to the isolate snapshot, which can be retrieved
* via Isolate::GetDataFromSnapshot after deserialization. This data does not * via Isolate::GetDataFromSnapshotOnce after deserialization. This data does
* survive when a new snapshot is created from an existing snapshot. * not survive when a new snapshot is created from an existing snapshot.
* \returns the index for retrieval. * \returns the index for retrieval.
*/ */
template <class T> template <class T>