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

Side by Side Diff: include/v8.h

Issue 23530045: Remove HandleScope default ctor. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/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 // 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 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 * place in the new handle scope until it is deleted. After that, 806 * place in the new handle scope until it is deleted. After that,
807 * new handles will again be allocated in the original handle scope. 807 * new handles will again be allocated in the original handle scope.
808 * 808 *
809 * After the handle scope of a local handle has been deleted the 809 * After the handle scope of a local handle has been deleted the
810 * garbage collector will no longer track the object stored in the 810 * garbage collector will no longer track the object stored in the
811 * handle and may deallocate it. The behavior of accessing a handle 811 * handle and may deallocate it. The behavior of accessing a handle
812 * for which the handle scope has been deleted is undefined. 812 * for which the handle scope has been deleted is undefined.
813 */ 813 */
814 class V8_EXPORT HandleScope { 814 class V8_EXPORT HandleScope {
815 public: 815 public:
816 // TODO(svenpanne) Deprecate me when Chrome is fixed!
817 HandleScope();
818
819 HandleScope(Isolate* isolate); 816 HandleScope(Isolate* isolate);
820 817
821 ~HandleScope(); 818 ~HandleScope();
822 819
823 /** 820 /**
824 * Closes the handle scope and returns the value as a handle in the 821 * Closes the handle scope and returns the value as a handle in the
825 * previous scope, which is the new current scope after the call. 822 * previous scope, which is the new current scope after the call.
826 */ 823 */
827 template <class T> Local<T> Close(Handle<T> value); 824 template <class T> Local<T> Close(Handle<T> value);
828 825
(...skipping 5705 matching lines...) Expand 10 before | Expand all | Expand 10 after
6534 */ 6531 */
6535 6532
6536 6533
6537 } // namespace v8 6534 } // namespace v8
6538 6535
6539 6536
6540 #undef TYPE_CHECK 6537 #undef TYPE_CHECK
6541 6538
6542 6539
6543 #endif // V8_H_ 6540 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698