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

Side by Side Diff: include/v8.h

Issue 6386021: Push version 3.1.0 to trunk. Commit will include changelog additions as SVN ... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 years, 10 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
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 3035 matching lines...) Expand 10 before | Expand all | Expand 10 after
3046 const char** names_; 3046 const char** names_;
3047 }; 3047 };
3048 3048
3049 3049
3050 /** 3050 /**
3051 * A sandboxed execution context with its own set of built-in objects 3051 * A sandboxed execution context with its own set of built-in objects
3052 * and functions. 3052 * and functions.
3053 */ 3053 */
3054 class V8EXPORT Context { 3054 class V8EXPORT Context {
3055 public: 3055 public:
3056 /** Returns the global object of the context. */ 3056 /**
3057 * Returns the global proxy object or global object itself for
3058 * detached contexts.
3059 *
3060 * Global proxy object is a thin wrapper whose prototype points to
3061 * actual context's global object with the properties like Object, etc.
3062 * This is done that way for security reasons (for more details see
3063 * https://wiki.mozilla.org/Gecko:SplitWindow).
3064 *
3065 * Please note that changes to global proxy object prototype most probably
3066 * would break VM---v8 expects only global object as a prototype of
3067 * global proxy object.
3068 *
3069 * If DetachGlobal() has been invoked, Global() would return actual global
3070 * object until global is reattached with ReattachGlobal().
3071 */
3057 Local<Object> Global(); 3072 Local<Object> Global();
3058 3073
3059 /** 3074 /**
3060 * Detaches the global object from its context before 3075 * Detaches the global object from its context before
3061 * the global object can be reused to create a new context. 3076 * the global object can be reused to create a new context.
3062 */ 3077 */
3063 void DetachGlobal(); 3078 void DetachGlobal();
3064 3079
3065 /** 3080 /**
3066 * Reattaches a global object to a context. This can be used to 3081 * Reattaches a global object to a context. This can be used to
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
3823 3838
3824 3839
3825 } // namespace v8 3840 } // namespace v8
3826 3841
3827 3842
3828 #undef V8EXPORT 3843 #undef V8EXPORT
3829 #undef TYPE_CHECK 3844 #undef TYPE_CHECK
3830 3845
3831 3846
3832 #endif // V8_H_ 3847 #endif // V8_H_
OLDNEW
« ChangeLog ('K') | « ChangeLog ('k') | src/arm/assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698