| 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 3024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3035 * Returns an array of length Size() * 2, where index N is the Nth key and | 3035 * Returns an array of length Size() * 2, where index N is the Nth key and |
| 3036 * index N + 1 is the Nth value. | 3036 * index N + 1 is the Nth value. |
| 3037 */ | 3037 */ |
| 3038 Local<Array> AsArray() const; | 3038 Local<Array> AsArray() const; |
| 3039 | 3039 |
| 3040 /** | 3040 /** |
| 3041 * Creates a new empty Map. | 3041 * Creates a new empty Map. |
| 3042 */ | 3042 */ |
| 3043 static Local<Map> New(Isolate* isolate); | 3043 static Local<Map> New(Isolate* isolate); |
| 3044 | 3044 |
| 3045 /** | |
| 3046 * Creates a new Map containing the elements of array, which must be formatted | |
| 3047 * in the same manner as the array returned from AsArray(). | |
| 3048 * Guaranteed to be side-effect free if the array contains no holes. | |
| 3049 */ | |
| 3050 static V8_WARN_UNUSED_RESULT V8_DEPRECATED( | |
| 3051 "Use mutation methods instead", | |
| 3052 MaybeLocal<Map> FromArray(Local<Context> context, Local<Array> array)); | |
| 3053 | |
| 3054 V8_INLINE static Map* Cast(Value* obj); | 3045 V8_INLINE static Map* Cast(Value* obj); |
| 3055 | 3046 |
| 3056 private: | 3047 private: |
| 3057 Map(); | 3048 Map(); |
| 3058 static void CheckCast(Value* obj); | 3049 static void CheckCast(Value* obj); |
| 3059 }; | 3050 }; |
| 3060 | 3051 |
| 3061 | 3052 |
| 3062 /** | 3053 /** |
| 3063 * An instance of the built-in Set constructor (ECMA-262, 6th Edition, 23.2.1). | 3054 * An instance of the built-in Set constructor (ECMA-262, 6th Edition, 23.2.1). |
| (...skipping 12 matching lines...) Expand all Loading... |
| 3076 /** | 3067 /** |
| 3077 * Returns an array of the keys in this Set. | 3068 * Returns an array of the keys in this Set. |
| 3078 */ | 3069 */ |
| 3079 Local<Array> AsArray() const; | 3070 Local<Array> AsArray() const; |
| 3080 | 3071 |
| 3081 /** | 3072 /** |
| 3082 * Creates a new empty Set. | 3073 * Creates a new empty Set. |
| 3083 */ | 3074 */ |
| 3084 static Local<Set> New(Isolate* isolate); | 3075 static Local<Set> New(Isolate* isolate); |
| 3085 | 3076 |
| 3086 /** | |
| 3087 * Creates a new Set containing the items in array. | |
| 3088 * Guaranteed to be side-effect free if the array contains no holes. | |
| 3089 */ | |
| 3090 static V8_WARN_UNUSED_RESULT V8_DEPRECATED( | |
| 3091 "Use mutation methods instead", | |
| 3092 MaybeLocal<Set> FromArray(Local<Context> context, Local<Array> array)); | |
| 3093 | |
| 3094 V8_INLINE static Set* Cast(Value* obj); | 3077 V8_INLINE static Set* Cast(Value* obj); |
| 3095 | 3078 |
| 3096 private: | 3079 private: |
| 3097 Set(); | 3080 Set(); |
| 3098 static void CheckCast(Value* obj); | 3081 static void CheckCast(Value* obj); |
| 3099 }; | 3082 }; |
| 3100 | 3083 |
| 3101 | 3084 |
| 3102 template<typename T> | 3085 template<typename T> |
| 3103 class ReturnValue { | 3086 class ReturnValue { |
| (...skipping 5373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8477 */ | 8460 */ |
| 8478 | 8461 |
| 8479 | 8462 |
| 8480 } // namespace v8 | 8463 } // namespace v8 |
| 8481 | 8464 |
| 8482 | 8465 |
| 8483 #undef TYPE_CHECK | 8466 #undef TYPE_CHECK |
| 8484 | 8467 |
| 8485 | 8468 |
| 8486 #endif // V8_H_ | 8469 #endif // V8_H_ |
| OLD | NEW |