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

Side by Side Diff: include/v8.h

Issue 1110713004: Version 4.3.61.16 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.3
Patch Set: Created 5 years, 7 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 | include/v8-version.h » ('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 3436 matching lines...) Expand 10 before | Expand all | Expand 10 after
3447 * Copy the contents of the ArrayBufferView's buffer to an embedder defined 3447 * Copy the contents of the ArrayBufferView's buffer to an embedder defined
3448 * memory without additional overhead that calling ArrayBufferView::Buffer 3448 * memory without additional overhead that calling ArrayBufferView::Buffer
3449 * might incur. 3449 * might incur.
3450 * 3450 *
3451 * Will write at most min(|byte_length|, ByteLength) bytes starting at 3451 * Will write at most min(|byte_length|, ByteLength) bytes starting at
3452 * ByteOffset of the underling buffer to the memory starting at |dest|. 3452 * ByteOffset of the underling buffer to the memory starting at |dest|.
3453 * Returns the number of bytes actually written. 3453 * Returns the number of bytes actually written.
3454 */ 3454 */
3455 size_t CopyContents(void* dest, size_t byte_length); 3455 size_t CopyContents(void* dest, size_t byte_length);
3456 3456
3457 /**
3458 * Returns true if ArrayBufferView's backing ArrayBuffer has already been
3459 * allocated.
3460 */
3461 bool HasBuffer() const;
3462
3457 V8_INLINE static ArrayBufferView* Cast(Value* obj); 3463 V8_INLINE static ArrayBufferView* Cast(Value* obj);
3458 3464
3459 static const int kInternalFieldCount = 3465 static const int kInternalFieldCount =
3460 V8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT; 3466 V8_ARRAY_BUFFER_VIEW_INTERNAL_FIELD_COUNT;
3461 3467
3462 private: 3468 private:
3463 ArrayBufferView(); 3469 ArrayBufferView();
3464 static void CheckCast(Value* obj); 3470 static void CheckCast(Value* obj);
3465 }; 3471 };
3466 3472
(...skipping 4558 matching lines...) Expand 10 before | Expand all | Expand 10 after
8025 */ 8031 */
8026 8032
8027 8033
8028 } // namespace v8 8034 } // namespace v8
8029 8035
8030 8036
8031 #undef TYPE_CHECK 8037 #undef TYPE_CHECK
8032 8038
8033 8039
8034 #endif // V8_H_ 8040 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | include/v8-version.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698