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

Side by Side Diff: include/v8.h

Issue 1233373003: Version 4.6.10.1 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.6.10
Patch Set: Created 5 years, 5 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 | « BUILD.gn ('k') | 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 class AccessorSignature; 68 class AccessorSignature;
69 class Array; 69 class Array;
70 class Boolean; 70 class Boolean;
71 class BooleanObject; 71 class BooleanObject;
72 class Context; 72 class Context;
73 class CpuProfiler; 73 class CpuProfiler;
74 class Data; 74 class Data;
75 class Date; 75 class Date;
76 class External; 76 class External;
77 class Float32x4Object;
78 class Function; 77 class Function;
79 class FunctionTemplate; 78 class FunctionTemplate;
80 class HeapProfiler; 79 class HeapProfiler;
81 class ImplementationUtilities; 80 class ImplementationUtilities;
82 class Int32; 81 class Int32;
83 class Integer; 82 class Integer;
84 class Isolate; 83 class Isolate;
85 template <class T> 84 template <class T>
86 class Maybe; 85 class Maybe;
87 class Name; 86 class Name;
(...skipping 1707 matching lines...) Expand 10 before | Expand all | Expand 10 after
1795 */ 1794 */
1796 bool IsStringObject() const; 1795 bool IsStringObject() const;
1797 1796
1798 /** 1797 /**
1799 * Returns true if this value is a Symbol object. 1798 * Returns true if this value is a Symbol object.
1800 * This is an experimental feature. 1799 * This is an experimental feature.
1801 */ 1800 */
1802 bool IsSymbolObject() const; 1801 bool IsSymbolObject() const;
1803 1802
1804 /** 1803 /**
1805 * Returns true if this value is a Float32x4 object.
1806 * This is an experimental feature.
1807 */
1808 bool IsFloat32x4Object() const;
1809
1810 /**
1811 * Returns true if this value is a NativeError. 1804 * Returns true if this value is a NativeError.
1812 */ 1805 */
1813 bool IsNativeError() const; 1806 bool IsNativeError() const;
1814 1807
1815 /** 1808 /**
1816 * Returns true if this value is a RegExp. 1809 * Returns true if this value is a RegExp.
1817 */ 1810 */
1818 bool IsRegExp() const; 1811 bool IsRegExp() const;
1819 1812
1820 /** 1813 /**
(...skipping 2026 matching lines...) Expand 10 before | Expand all | Expand 10 after
3847 3840
3848 static const int kInternalFieldCount = V8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT; 3841 static const int kInternalFieldCount = V8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT;
3849 3842
3850 private: 3843 private:
3851 SharedArrayBuffer(); 3844 SharedArrayBuffer();
3852 static void CheckCast(Value* obj); 3845 static void CheckCast(Value* obj);
3853 }; 3846 };
3854 3847
3855 3848
3856 /** 3849 /**
3857 * An instance of Float32x4 constructor.
3858 * (ES7 draft http://littledan.github.io/simd.html).
3859 * This API is experimental and may change significantly.
3860 */
3861 class V8_EXPORT Float32x4 : public Value {
3862 public:
3863 static Local<Float32x4> New(Isolate* isolate, float w, float x, float y,
3864 float z);
3865 V8_INLINE static Float32x4* Cast(Value* obj);
3866
3867 private:
3868 Float32x4();
3869 static void CheckCast(Value* obj);
3870 };
3871
3872
3873 /**
3874 * An instance of the built-in Date constructor (ECMA-262, 15.9). 3850 * An instance of the built-in Date constructor (ECMA-262, 15.9).
3875 */ 3851 */
3876 class V8_EXPORT Date : public Object { 3852 class V8_EXPORT Date : public Object {
3877 public: 3853 public:
3878 static V8_DEPRECATE_SOON("Use maybe version.", 3854 static V8_DEPRECATE_SOON("Use maybe version.",
3879 Local<Value> New(Isolate* isolate, double time)); 3855 Local<Value> New(Isolate* isolate, double time));
3880 static V8_WARN_UNUSED_RESULT MaybeLocal<Value> New(Local<Context> context, 3856 static V8_WARN_UNUSED_RESULT MaybeLocal<Value> New(Local<Context> context,
3881 double time); 3857 double time);
3882 3858
3883 /** 3859 /**
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
3967 Local<Symbol> ValueOf() const; 3943 Local<Symbol> ValueOf() const;
3968 3944
3969 V8_INLINE static SymbolObject* Cast(v8::Value* obj); 3945 V8_INLINE static SymbolObject* Cast(v8::Value* obj);
3970 3946
3971 private: 3947 private:
3972 static void CheckCast(v8::Value* obj); 3948 static void CheckCast(v8::Value* obj);
3973 }; 3949 };
3974 3950
3975 3951
3976 /** 3952 /**
3977 * A Float32x4 object.
3978 * (ES7 draft http://littledan.github.io/simd.html).
3979 * This is an experimental feature. Use at your own risk.
3980 */
3981 class V8_EXPORT Float32x4Object : public Object {
3982 public:
3983 static Local<Value> New(Isolate* isolate, Local<Float32x4> value);
3984
3985 Local<Float32x4> ValueOf() const;
3986
3987 V8_INLINE static Float32x4Object* Cast(v8::Value* obj);
3988
3989 private:
3990 static void CheckCast(v8::Value* obj);
3991 };
3992
3993
3994 /**
3995 * An instance of the built-in RegExp constructor (ECMA-262, 15.10). 3953 * An instance of the built-in RegExp constructor (ECMA-262, 15.10).
3996 */ 3954 */
3997 class V8_EXPORT RegExp : public Object { 3955 class V8_EXPORT RegExp : public Object {
3998 public: 3956 public:
3999 /** 3957 /**
4000 * Regular expression flag bits. They can be or'ed to enable a set 3958 * Regular expression flag bits. They can be or'ed to enable a set
4001 * of flags. 3959 * of flags.
4002 */ 3960 */
4003 enum Flags { 3961 enum Flags {
4004 kNone = 0, 3962 kNone = 0,
(...skipping 2975 matching lines...) Expand 10 before | Expand all | Expand 10 after
6980 static const int kHeapObjectMapOffset = 0; 6938 static const int kHeapObjectMapOffset = 0;
6981 static const int kMapInstanceTypeAndBitFieldOffset = 6939 static const int kMapInstanceTypeAndBitFieldOffset =
6982 1 * kApiPointerSize + kApiIntSize; 6940 1 * kApiPointerSize + kApiIntSize;
6983 static const int kStringResourceOffset = 3 * kApiPointerSize; 6941 static const int kStringResourceOffset = 3 * kApiPointerSize;
6984 6942
6985 static const int kOddballKindOffset = 3 * kApiPointerSize; 6943 static const int kOddballKindOffset = 3 * kApiPointerSize;
6986 static const int kForeignAddressOffset = kApiPointerSize; 6944 static const int kForeignAddressOffset = kApiPointerSize;
6987 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; 6945 static const int kJSObjectHeaderSize = 3 * kApiPointerSize;
6988 static const int kFixedArrayHeaderSize = 2 * kApiPointerSize; 6946 static const int kFixedArrayHeaderSize = 2 * kApiPointerSize;
6989 static const int kContextHeaderSize = 2 * kApiPointerSize; 6947 static const int kContextHeaderSize = 2 * kApiPointerSize;
6990 static const int kContextEmbedderDataIndex = 82; 6948 static const int kContextEmbedderDataIndex = 81;
6991 static const int kFullStringRepresentationMask = 0x07; 6949 static const int kFullStringRepresentationMask = 0x07;
6992 static const int kStringEncodingMask = 0x4; 6950 static const int kStringEncodingMask = 0x4;
6993 static const int kExternalTwoByteRepresentationTag = 0x02; 6951 static const int kExternalTwoByteRepresentationTag = 0x02;
6994 static const int kExternalOneByteRepresentationTag = 0x06; 6952 static const int kExternalOneByteRepresentationTag = 0x06;
6995 6953
6996 static const int kIsolateEmbedderDataOffset = 0 * kApiPointerSize; 6954 static const int kIsolateEmbedderDataOffset = 0 * kApiPointerSize;
6997 static const int kAmountOfExternalAllocatedMemoryOffset = 6955 static const int kAmountOfExternalAllocatedMemoryOffset =
6998 4 * kApiPointerSize; 6956 4 * kApiPointerSize;
6999 static const int kAmountOfExternalAllocatedMemoryAtLastGlobalGCOffset = 6957 static const int kAmountOfExternalAllocatedMemoryAtLastGlobalGCOffset =
7000 kAmountOfExternalAllocatedMemoryOffset + kApiInt64Size; 6958 kAmountOfExternalAllocatedMemoryOffset + kApiInt64Size;
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
7897 7855
7898 7856
7899 SymbolObject* SymbolObject::Cast(v8::Value* value) { 7857 SymbolObject* SymbolObject::Cast(v8::Value* value) {
7900 #ifdef V8_ENABLE_CHECKS 7858 #ifdef V8_ENABLE_CHECKS
7901 CheckCast(value); 7859 CheckCast(value);
7902 #endif 7860 #endif
7903 return static_cast<SymbolObject*>(value); 7861 return static_cast<SymbolObject*>(value);
7904 } 7862 }
7905 7863
7906 7864
7907 Float32x4Object* Float32x4Object::Cast(v8::Value* value) {
7908 #ifdef V8_ENABLE_CHECKS
7909 CheckCast(value);
7910 #endif
7911 return static_cast<Float32x4Object*>(value);
7912 }
7913
7914
7915 NumberObject* NumberObject::Cast(v8::Value* value) { 7865 NumberObject* NumberObject::Cast(v8::Value* value) {
7916 #ifdef V8_ENABLE_CHECKS 7866 #ifdef V8_ENABLE_CHECKS
7917 CheckCast(value); 7867 CheckCast(value);
7918 #endif 7868 #endif
7919 return static_cast<NumberObject*>(value); 7869 return static_cast<NumberObject*>(value);
7920 } 7870 }
7921 7871
7922 7872
7923 BooleanObject* BooleanObject::Cast(v8::Value* value) { 7873 BooleanObject* BooleanObject::Cast(v8::Value* value) {
7924 #ifdef V8_ENABLE_CHECKS 7874 #ifdef V8_ENABLE_CHECKS
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
8394 */ 8344 */
8395 8345
8396 8346
8397 } // namespace v8 8347 } // namespace v8
8398 8348
8399 8349
8400 #undef TYPE_CHECK 8350 #undef TYPE_CHECK
8401 8351
8402 8352
8403 #endif // V8_H_ 8353 #endif // V8_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | include/v8-version.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698