[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:
parent
2568174d23
commit
9d14f87da3
@ -10119,8 +10119,8 @@ class V8_EXPORT SnapshotCreator {
|
||||
|
||||
/**
|
||||
* Attach arbitrary V8::Data to the context snapshot, which can be retrieved
|
||||
* via Context::GetDataFromSnapshot after deserialization. This data does not
|
||||
* survive when a new snapshot is created from an existing snapshot.
|
||||
* via Context::GetDataFromSnapshotOnce after deserialization. This data does
|
||||
* not survive when a new snapshot is created from an existing snapshot.
|
||||
* \returns the index for retrieval.
|
||||
*/
|
||||
template <class T>
|
||||
@ -10128,8 +10128,8 @@ class V8_EXPORT SnapshotCreator {
|
||||
|
||||
/**
|
||||
* Attach arbitrary V8::Data to the isolate snapshot, which can be retrieved
|
||||
* via Isolate::GetDataFromSnapshot after deserialization. This data does not
|
||||
* survive when a new snapshot is created from an existing snapshot.
|
||||
* via Isolate::GetDataFromSnapshotOnce after deserialization. This data does
|
||||
* not survive when a new snapshot is created from an existing snapshot.
|
||||
* \returns the index for retrieval.
|
||||
*/
|
||||
template <class T>
|
||||
|
Loading…
Reference in New Issue
Block a user