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

Side by Side Diff: include/v8.h

Issue 2220003: Update comment in the API to explicitly state that the handle returned... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 7 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 | 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 2007-2009 the V8 project authors. All rights reserved. 1 // Copyright 2007-2009 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 2883 matching lines...) Expand 10 before | Expand all | Expand 10 after
2894 * restore the connection between a global object and a context 2894 * restore the connection between a global object and a context
2895 * after DetachGlobal has been called. 2895 * after DetachGlobal has been called.
2896 * 2896 *
2897 * \param global_object The global object to reattach to the 2897 * \param global_object The global object to reattach to the
2898 * context. For this to work, the global object must be the global 2898 * context. For this to work, the global object must be the global
2899 * object that was associated with this context before a call to 2899 * object that was associated with this context before a call to
2900 * DetachGlobal. 2900 * DetachGlobal.
2901 */ 2901 */
2902 void ReattachGlobal(Handle<Object> global_object); 2902 void ReattachGlobal(Handle<Object> global_object);
2903 2903
2904 /** Creates a new context. */ 2904 /** Creates a new context.
2905 *
2906 * Returns a persistent handle to the newly allocated context. This
2907 * persistent handle has to be disposed when the context is no
2908 * longer used so the context can be garbage collected.
2909 */
2905 static Persistent<Context> New( 2910 static Persistent<Context> New(
2906 ExtensionConfiguration* extensions = NULL, 2911 ExtensionConfiguration* extensions = NULL,
2907 Handle<ObjectTemplate> global_template = Handle<ObjectTemplate>(), 2912 Handle<ObjectTemplate> global_template = Handle<ObjectTemplate>(),
2908 Handle<Value> global_object = Handle<Value>()); 2913 Handle<Value> global_object = Handle<Value>());
2909 2914
2910 /** Returns the last entered context. */ 2915 /** Returns the last entered context. */
2911 static Local<Context> GetEntered(); 2916 static Local<Context> GetEntered();
2912 2917
2913 /** Returns the context that is on the top of the stack. */ 2918 /** Returns the context that is on the top of the stack. */
2914 static Local<Context> GetCurrent(); 2919 static Local<Context> GetCurrent();
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
3543 3548
3544 } // namespace v8 3549 } // namespace v8
3545 3550
3546 3551
3547 #undef V8EXPORT 3552 #undef V8EXPORT
3548 #undef V8EXPORT_INLINE 3553 #undef V8EXPORT_INLINE
3549 #undef TYPE_CHECK 3554 #undef TYPE_CHECK
3550 3555
3551 3556
3552 #endif // V8_H_ 3557 #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