| 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 2997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3008 /** | 3008 /** |
| 3009 * Creates a new empty Map. | 3009 * Creates a new empty Map. |
| 3010 */ | 3010 */ |
| 3011 static Local<Map> New(Isolate* isolate); | 3011 static Local<Map> New(Isolate* isolate); |
| 3012 | 3012 |
| 3013 /** | 3013 /** |
| 3014 * Creates a new Map containing the elements of array, which must be formatted | 3014 * Creates a new Map containing the elements of array, which must be formatted |
| 3015 * in the same manner as the array returned from AsArray(). | 3015 * in the same manner as the array returned from AsArray(). |
| 3016 * Guaranteed to be side-effect free if the array contains no holes. | 3016 * Guaranteed to be side-effect free if the array contains no holes. |
| 3017 */ | 3017 */ |
| 3018 static V8_WARN_UNUSED_RESULT MaybeLocal<Map> FromArray(Local<Context> context, | 3018 static V8_WARN_UNUSED_RESULT V8_DEPRECATED( |
| 3019 Local<Array> array); | 3019 "Use mutation methods instead", |
| 3020 MaybeLocal<Map> FromArray(Local<Context> context, Local<Array> array)); |
| 3020 | 3021 |
| 3021 V8_INLINE static Map* Cast(Value* obj); | 3022 V8_INLINE static Map* Cast(Value* obj); |
| 3022 | 3023 |
| 3023 private: | 3024 private: |
| 3024 Map(); | 3025 Map(); |
| 3025 static void CheckCast(Value* obj); | 3026 static void CheckCast(Value* obj); |
| 3026 }; | 3027 }; |
| 3027 | 3028 |
| 3028 | 3029 |
| 3029 /** | 3030 /** |
| (...skipping 17 matching lines...) Expand all Loading... |
| 3047 | 3048 |
| 3048 /** | 3049 /** |
| 3049 * Creates a new empty Set. | 3050 * Creates a new empty Set. |
| 3050 */ | 3051 */ |
| 3051 static Local<Set> New(Isolate* isolate); | 3052 static Local<Set> New(Isolate* isolate); |
| 3052 | 3053 |
| 3053 /** | 3054 /** |
| 3054 * Creates a new Set containing the items in array. | 3055 * Creates a new Set containing the items in array. |
| 3055 * Guaranteed to be side-effect free if the array contains no holes. | 3056 * Guaranteed to be side-effect free if the array contains no holes. |
| 3056 */ | 3057 */ |
| 3057 static V8_WARN_UNUSED_RESULT MaybeLocal<Set> FromArray(Local<Context> context, | 3058 static V8_WARN_UNUSED_RESULT V8_DEPRECATED( |
| 3058 Local<Array> array); | 3059 "Use mutation methods instead", |
| 3060 MaybeLocal<Set> FromArray(Local<Context> context, Local<Array> array)); |
| 3059 | 3061 |
| 3060 V8_INLINE static Set* Cast(Value* obj); | 3062 V8_INLINE static Set* Cast(Value* obj); |
| 3061 | 3063 |
| 3062 private: | 3064 private: |
| 3063 Set(); | 3065 Set(); |
| 3064 static void CheckCast(Value* obj); | 3066 static void CheckCast(Value* obj); |
| 3065 }; | 3067 }; |
| 3066 | 3068 |
| 3067 | 3069 |
| 3068 template<typename T> | 3070 template<typename T> |
| (...skipping 5323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8392 */ | 8394 */ |
| 8393 | 8395 |
| 8394 | 8396 |
| 8395 } // namespace v8 | 8397 } // namespace v8 |
| 8396 | 8398 |
| 8397 | 8399 |
| 8398 #undef TYPE_CHECK | 8400 #undef TYPE_CHECK |
| 8399 | 8401 |
| 8400 | 8402 |
| 8401 #endif // V8_H_ | 8403 #endif // V8_H_ |
| OLD | NEW |