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

Side by Side Diff: include/v8.h

Issue 63093004: Deprecate v8::External::New without Isolate parameter (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 3056 matching lines...) Expand 10 before | Expand all | Expand 10 after
3067 }; 3067 };
3068 3068
3069 3069
3070 /** 3070 /**
3071 * A JavaScript value that wraps a C++ void*. This type of value is mainly used 3071 * A JavaScript value that wraps a C++ void*. This type of value is mainly used
3072 * to associate C++ data structures with JavaScript objects. 3072 * to associate C++ data structures with JavaScript objects.
3073 */ 3073 */
3074 class V8_EXPORT External : public Value { 3074 class V8_EXPORT External : public Value {
3075 public: 3075 public:
3076 static Local<External> New(Isolate* isolate, void* value); 3076 static Local<External> New(Isolate* isolate, void* value);
3077 // Deprecated, do not use. 3077 V8_DEPRECATED("Will be removed", static Local<External> New(void *value));
3078 static Local<External> New(void* value);
3079 V8_INLINE static External* Cast(Value* obj); 3078 V8_INLINE static External* Cast(Value* obj);
3080 void* Value() const; 3079 void* Value() const;
3081 private: 3080 private:
3082 static void CheckCast(v8::Value* obj); 3081 static void CheckCast(v8::Value* obj);
3083 }; 3082 };
3084 3083
3085 3084
3086 // --- Templates --- 3085 // --- Templates ---
3087 3086
3088 3087
(...skipping 3450 matching lines...) Expand 10 before | Expand all | Expand 10 after
6539 */ 6538 */
6540 6539
6541 6540
6542 } // namespace v8 6541 } // namespace v8
6543 6542
6544 6543
6545 #undef TYPE_CHECK 6544 #undef TYPE_CHECK
6546 6545
6547 6546
6548 #endif // V8_H_ 6547 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698