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

Side by Side Diff: include/v8.h

Issue 986463005: Add MoveOnlyTypeForCPP03 to UniquePersistent for compatibility with Chromium. (Closed) Base URL: https://github.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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 | 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 // 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 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 } 786 }
787 /** 787 /**
788 * Cast operator for moves. 788 * Cast operator for moves.
789 */ 789 */
790 V8_INLINE operator RValue() { return RValue(this); } 790 V8_INLINE operator RValue() { return RValue(this); }
791 /** 791 /**
792 * Pass allows returning uniques from functions, etc. 792 * Pass allows returning uniques from functions, etc.
793 */ 793 */
794 UniquePersistent Pass() { return UniquePersistent(RValue(this)); } 794 UniquePersistent Pass() { return UniquePersistent(RValue(this)); }
795 795
796 /*
797 * For compatibility with Chromium's base::Bind (base::Passed).
798 */
799 typedef void MoveOnlyTypeForCPP03;
800
796 private: 801 private:
797 UniquePersistent(UniquePersistent&); 802 UniquePersistent(UniquePersistent&);
798 void operator=(UniquePersistent&); 803 void operator=(UniquePersistent&);
799 }; 804 };
800 805
801 806
802 /** 807 /**
803 * A stack-allocated class that governs a number of local handles. 808 * A stack-allocated class that governs a number of local handles.
804 * After a handle scope has been created, all local handles will be 809 * After a handle scope has been created, all local handles will be
805 * allocated within that handle scope until either the handle scope is 810 * allocated within that handle scope until either the handle scope is
(...skipping 6601 matching lines...) Expand 10 before | Expand all | Expand 10 after
7407 */ 7412 */
7408 7413
7409 7414
7410 } // namespace v8 7415 } // namespace v8
7411 7416
7412 7417
7413 #undef TYPE_CHECK 7418 #undef TYPE_CHECK
7414 7419
7415 7420
7416 #endif // V8_H_ 7421 #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