Commit d52b403f authored by daniel.bevenius's avatar daniel.bevenius Committed by Commit bot

Minor typos in v8.h code documentation.

When reading through the source code (v8.h) I found some minor typos
which I wanted to report.

BUG=

Review-Url: https://codereview.chromium.org/2130513002
Cr-Commit-Position: refs/heads/master@{#37835}
parent 3cd82879
...@@ -3589,7 +3589,7 @@ class V8_EXPORT ArrayBuffer : public Object { ...@@ -3589,7 +3589,7 @@ class V8_EXPORT ArrayBuffer : public Object {
/** /**
* Make this ArrayBuffer external. The pointer to underlying memory block * Make this ArrayBuffer external. The pointer to underlying memory block
* and byte length are returned as |Contents| structure. After ArrayBuffer * and byte length are returned as |Contents| structure. After ArrayBuffer
* had been etxrenalized, it does no longer owns the memory block. The caller * had been externalized, it does no longer own the memory block. The caller
* should take steps to free memory when it is no longer needed. * should take steps to free memory when it is no longer needed.
* *
* The memory block is guaranteed to be allocated with |Allocator::Allocate| * The memory block is guaranteed to be allocated with |Allocator::Allocate|
...@@ -3600,7 +3600,7 @@ class V8_EXPORT ArrayBuffer : public Object { ...@@ -3600,7 +3600,7 @@ class V8_EXPORT ArrayBuffer : public Object {
/** /**
* Get a pointer to the ArrayBuffer's underlying memory block without * Get a pointer to the ArrayBuffer's underlying memory block without
* externalizing it. If the ArrayBuffer is not externalized, this pointer * externalizing it. If the ArrayBuffer is not externalized, this pointer
* will become invalid as soon as the ArrayBuffer became garbage collected. * will become invalid as soon as the ArrayBuffer gets garbage collected.
* *
* The embedder should make sure to hold a strong reference to the * The embedder should make sure to hold a strong reference to the
* ArrayBuffer while accessing this pointer. * ArrayBuffer while accessing this pointer.
...@@ -3652,7 +3652,7 @@ class V8_EXPORT ArrayBufferView : public Object { ...@@ -3652,7 +3652,7 @@ class V8_EXPORT ArrayBufferView : public Object {
* might incur. * might incur.
* *
* Will write at most min(|byte_length|, ByteLength) bytes starting at * Will write at most min(|byte_length|, ByteLength) bytes starting at
* ByteOffset of the underling buffer to the memory starting at |dest|. * ByteOffset of the underlying buffer to the memory starting at |dest|.
* Returns the number of bytes actually written. * Returns the number of bytes actually written.
*/ */
size_t CopyContents(void* dest, size_t byte_length); size_t CopyContents(void* dest, size_t byte_length);
...@@ -3939,7 +3939,7 @@ class V8_EXPORT SharedArrayBuffer : public Object { ...@@ -3939,7 +3939,7 @@ class V8_EXPORT SharedArrayBuffer : public Object {
/** /**
* Make this SharedArrayBuffer external. The pointer to underlying memory * Make this SharedArrayBuffer external. The pointer to underlying memory
* block and byte length are returned as |Contents| structure. After * block and byte length are returned as |Contents| structure. After
* SharedArrayBuffer had been etxrenalized, it does no longer owns the memory * SharedArrayBuffer had been externalized, it does no longer own the memory
* block. The caller should take steps to free memory when it is no longer * block. The caller should take steps to free memory when it is no longer
* needed. * needed.
* *
...@@ -4402,7 +4402,7 @@ typedef bool (*AccessCheckCallback)(Local<Context> accessing_context, ...@@ -4402,7 +4402,7 @@ typedef bool (*AccessCheckCallback)(Local<Context> accessing_context,
* preferred. * preferred.
* *
* Any modification of a FunctionTemplate after first instantiation will trigger * Any modification of a FunctionTemplate after first instantiation will trigger
*a crash. * a crash.
* *
* A FunctionTemplate can have properties, these properties are added to the * A FunctionTemplate can have properties, these properties are added to the
* function object when it is created. * function object when it is created.
...@@ -7259,7 +7259,7 @@ class V8_EXPORT Context { ...@@ -7259,7 +7259,7 @@ class V8_EXPORT Context {
/** /**
* Gets a 2-byte-aligned native pointer from the embedder data with the given * Gets a 2-byte-aligned native pointer from the embedder data with the given
* index, which must have bees set by a previous call to * index, which must have been set by a previous call to
* SetAlignedPointerInEmbedderData with the same index. Note that index 0 * SetAlignedPointerInEmbedderData with the same index. Note that index 0
* currently has a special meaning for Chrome's debugger. * currently has a special meaning for Chrome's debugger.
*/ */
...@@ -7339,7 +7339,7 @@ class V8_EXPORT Context { ...@@ -7339,7 +7339,7 @@ class V8_EXPORT Context {
* It is up to the user of V8 to ensure, perhaps with locking, that this * It is up to the user of V8 to ensure, perhaps with locking, that this
* constraint is not violated. In addition to any other synchronization * constraint is not violated. In addition to any other synchronization
* mechanism that may be used, the v8::Locker and v8::Unlocker classes must be * mechanism that may be used, the v8::Locker and v8::Unlocker classes must be
* used to signal thead switches to V8. * used to signal thread switches to V8.
* *
* v8::Locker is a scoped lock object. While it's active, i.e. between its * v8::Locker is a scoped lock object. While it's active, i.e. between its
* construction and destruction, the current thread is allowed to use the locked * construction and destruction, the current thread is allowed to use the locked
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment