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

Side by Side Diff: include/v8.h

Issue 1236263004: Deprecate unused Map/Set FromArray factory methods (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove calls from cctests 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 | « no previous file | test/cctest/test-api.cc » ('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 2997 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698