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 2990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3001 /** | 3001 /** |
3002 * Creates a new empty Map. | 3002 * Creates a new empty Map. |
3003 */ | 3003 */ |
3004 static Local<Map> New(Isolate* isolate); | 3004 static Local<Map> New(Isolate* isolate); |
3005 | 3005 |
3006 /** | 3006 /** |
3007 * Creates a new Map containing the elements of array, which must be formatted | 3007 * Creates a new Map containing the elements of array, which must be formatted |
3008 * in the same manner as the array returned from AsArray(). | 3008 * in the same manner as the array returned from AsArray(). |
3009 * Guaranteed to be side-effect free if the array contains no holes. | 3009 * Guaranteed to be side-effect free if the array contains no holes. |
3010 */ | 3010 */ |
3011 static V8_WARN_UNUSED_RESULT MaybeLocal<Map> FromArray(Local<Context> context, | 3011 static V8_WARN_UNUSED_RESULT V8_DEPRECATE_SOON( |
jochen (gone - plz use gerrit)
2015/07/15 13:35:37
can you mark them as V8_DEPRECATED() right away?
| |
3012 Local<Array> array); | 3012 "Use mutation methods instead", |
3013 MaybeLocal<Map> FromArray(Local<Context> context, Local<Array> array)); | |
3013 | 3014 |
3014 V8_INLINE static Map* Cast(Value* obj); | 3015 V8_INLINE static Map* Cast(Value* obj); |
3015 | 3016 |
3016 private: | 3017 private: |
3017 Map(); | 3018 Map(); |
3018 static void CheckCast(Value* obj); | 3019 static void CheckCast(Value* obj); |
3019 }; | 3020 }; |
3020 | 3021 |
3021 | 3022 |
3022 /** | 3023 /** |
(...skipping 17 matching lines...) Expand all Loading... | |
3040 | 3041 |
3041 /** | 3042 /** |
3042 * Creates a new empty Set. | 3043 * Creates a new empty Set. |
3043 */ | 3044 */ |
3044 static Local<Set> New(Isolate* isolate); | 3045 static Local<Set> New(Isolate* isolate); |
3045 | 3046 |
3046 /** | 3047 /** |
3047 * Creates a new Set containing the items in array. | 3048 * Creates a new Set containing the items in array. |
3048 * Guaranteed to be side-effect free if the array contains no holes. | 3049 * Guaranteed to be side-effect free if the array contains no holes. |
3049 */ | 3050 */ |
3050 static V8_WARN_UNUSED_RESULT MaybeLocal<Set> FromArray(Local<Context> context, | 3051 static V8_WARN_UNUSED_RESULT V8_DEPRECATE_SOON( |
3051 Local<Array> array); | 3052 "Use mutation methods instead", |
3053 MaybeLocal<Set> FromArray(Local<Context> context, Local<Array> array)); | |
3052 | 3054 |
3053 V8_INLINE static Set* Cast(Value* obj); | 3055 V8_INLINE static Set* Cast(Value* obj); |
3054 | 3056 |
3055 private: | 3057 private: |
3056 Set(); | 3058 Set(); |
3057 static void CheckCast(Value* obj); | 3059 static void CheckCast(Value* obj); |
3058 }; | 3060 }; |
3059 | 3061 |
3060 | 3062 |
3061 template<typename T> | 3063 template<typename T> |
(...skipping 5280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
8342 */ | 8344 */ |
8343 | 8345 |
8344 | 8346 |
8345 } // namespace v8 | 8347 } // namespace v8 |
8346 | 8348 |
8347 | 8349 |
8348 #undef TYPE_CHECK | 8350 #undef TYPE_CHECK |
8349 | 8351 |
8350 | 8352 |
8351 #endif // V8_H_ | 8353 #endif // V8_H_ |
OLD | NEW |