Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 3811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3822 | 3822 |
| 3823 static const int kInternalFieldCount = V8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT; | 3823 static const int kInternalFieldCount = V8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT; |
| 3824 | 3824 |
| 3825 private: | 3825 private: |
| 3826 SharedArrayBuffer(); | 3826 SharedArrayBuffer(); |
| 3827 static void CheckCast(Value* obj); | 3827 static void CheckCast(Value* obj); |
| 3828 }; | 3828 }; |
| 3829 | 3829 |
| 3830 | 3830 |
| 3831 /** | 3831 /** |
| 3832 * An instance of Float32x4 constructor. | |
| 3833 * (ES7 draft http://littledan.github.io/simd.html). | |
| 3834 * This API is experimental and may change significantly. | |
| 3835 */ | |
| 3836 class V8_EXPORT Float32x4 : public Object { | |
|
rossberg
2015/06/12 11:48:03
SIMDs aren't objects, so this needs to derive from
| |
| 3837 public: | |
| 3838 static Local<Float32x4> New(Isolate* isolate, float w, float x, float y, | |
| 3839 float z); | |
| 3840 V8_INLINE static Float32x4* Cast(Value* obj); | |
| 3841 | |
| 3842 private: | |
| 3843 Float32x4(); | |
| 3844 static void CheckCast(Value* obj); | |
| 3845 }; | |
| 3846 | |
| 3847 | |
| 3848 /** | |
| 3832 * An instance of the built-in Date constructor (ECMA-262, 15.9). | 3849 * An instance of the built-in Date constructor (ECMA-262, 15.9). |
| 3833 */ | 3850 */ |
| 3834 class V8_EXPORT Date : public Object { | 3851 class V8_EXPORT Date : public Object { |
| 3835 public: | 3852 public: |
| 3836 static V8_DEPRECATE_SOON("Use maybe version.", | 3853 static V8_DEPRECATE_SOON("Use maybe version.", |
| 3837 Local<Value> New(Isolate* isolate, double time)); | 3854 Local<Value> New(Isolate* isolate, double time)); |
| 3838 static V8_WARN_UNUSED_RESULT MaybeLocal<Value> New(Local<Context> context, | 3855 static V8_WARN_UNUSED_RESULT MaybeLocal<Value> New(Local<Context> context, |
| 3839 double time); | 3856 double time); |
| 3840 | 3857 |
| 3841 /** | 3858 /** |
| (...skipping 3095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6937 static const int kHeapObjectMapOffset = 0; | 6954 static const int kHeapObjectMapOffset = 0; |
| 6938 static const int kMapInstanceTypeAndBitFieldOffset = | 6955 static const int kMapInstanceTypeAndBitFieldOffset = |
| 6939 1 * kApiPointerSize + kApiIntSize; | 6956 1 * kApiPointerSize + kApiIntSize; |
| 6940 static const int kStringResourceOffset = 3 * kApiPointerSize; | 6957 static const int kStringResourceOffset = 3 * kApiPointerSize; |
| 6941 | 6958 |
| 6942 static const int kOddballKindOffset = 3 * kApiPointerSize; | 6959 static const int kOddballKindOffset = 3 * kApiPointerSize; |
| 6943 static const int kForeignAddressOffset = kApiPointerSize; | 6960 static const int kForeignAddressOffset = kApiPointerSize; |
| 6944 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; | 6961 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; |
| 6945 static const int kFixedArrayHeaderSize = 2 * kApiPointerSize; | 6962 static const int kFixedArrayHeaderSize = 2 * kApiPointerSize; |
| 6946 static const int kContextHeaderSize = 2 * kApiPointerSize; | 6963 static const int kContextHeaderSize = 2 * kApiPointerSize; |
| 6947 static const int kContextEmbedderDataIndex = 80; | 6964 static const int kContextEmbedderDataIndex = 81; |
| 6948 static const int kFullStringRepresentationMask = 0x07; | 6965 static const int kFullStringRepresentationMask = 0x07; |
| 6949 static const int kStringEncodingMask = 0x4; | 6966 static const int kStringEncodingMask = 0x4; |
| 6950 static const int kExternalTwoByteRepresentationTag = 0x02; | 6967 static const int kExternalTwoByteRepresentationTag = 0x02; |
| 6951 static const int kExternalOneByteRepresentationTag = 0x06; | 6968 static const int kExternalOneByteRepresentationTag = 0x06; |
| 6952 | 6969 |
| 6953 static const int kIsolateEmbedderDataOffset = 0 * kApiPointerSize; | 6970 static const int kIsolateEmbedderDataOffset = 0 * kApiPointerSize; |
| 6954 static const int kAmountOfExternalAllocatedMemoryOffset = | 6971 static const int kAmountOfExternalAllocatedMemoryOffset = |
| 6955 4 * kApiPointerSize; | 6972 4 * kApiPointerSize; |
| 6956 static const int kAmountOfExternalAllocatedMemoryAtLastGlobalGCOffset = | 6973 static const int kAmountOfExternalAllocatedMemoryAtLastGlobalGCOffset = |
| 6957 kAmountOfExternalAllocatedMemoryOffset + kApiInt64Size; | 6974 kAmountOfExternalAllocatedMemoryOffset + kApiInt64Size; |
| (...skipping 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 8347 */ | 8364 */ |
| 8348 | 8365 |
| 8349 | 8366 |
| 8350 } // namespace v8 | 8367 } // namespace v8 |
| 8351 | 8368 |
| 8352 | 8369 |
| 8353 #undef TYPE_CHECK | 8370 #undef TYPE_CHECK |
| 8354 | 8371 |
| 8355 | 8372 |
| 8356 #endif // V8_H_ | 8373 #endif // V8_H_ |
| OLD | NEW |