OLD | NEW |
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 7164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7175 * If an existing global object is passed in, the global object is detached | 7175 * If an existing global object is passed in, the global object is detached |
7176 * from its context. | 7176 * from its context. |
7177 * | 7177 * |
7178 * Note that this is different from a detached context where all accesses to | 7178 * Note that this is different from a detached context where all accesses to |
7179 * the global proxy will fail. Instead, the access check handlers are invoked. | 7179 * the global proxy will fail. Instead, the access check handlers are invoked. |
7180 * | 7180 * |
7181 * It is also not possible to detach an object returned by this method. | 7181 * It is also not possible to detach an object returned by this method. |
7182 * Instead, the access check handlers need to return nothing to achieve the | 7182 * Instead, the access check handlers need to return nothing to achieve the |
7183 * same effect. | 7183 * same effect. |
7184 * | 7184 * |
7185 * It is possible, however, the create a new context from the global object | 7185 * It is possible, however, to create a new context from the global object |
7186 * returned by this method. | 7186 * returned by this method. |
7187 */ | 7187 */ |
7188 static MaybeLocal<Object> NewRemoteContext( | 7188 static MaybeLocal<Object> NewRemoteContext( |
7189 Isolate* isolate, Local<ObjectTemplate> global_template, | 7189 Isolate* isolate, Local<ObjectTemplate> global_template, |
7190 MaybeLocal<Value> global_object = MaybeLocal<Value>()); | 7190 MaybeLocal<Value> global_object = MaybeLocal<Value>()); |
7191 | 7191 |
7192 /** | 7192 /** |
7193 * Sets the security token for the context. To access an object in | 7193 * Sets the security token for the context. To access an object in |
7194 * another context, the security tokens must match. | 7194 * another context, the security tokens must match. |
7195 */ | 7195 */ |
(...skipping 1740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8936 */ | 8936 */ |
8937 | 8937 |
8938 | 8938 |
8939 } // namespace v8 | 8939 } // namespace v8 |
8940 | 8940 |
8941 | 8941 |
8942 #undef TYPE_CHECK | 8942 #undef TYPE_CHECK |
8943 | 8943 |
8944 | 8944 |
8945 #endif // INCLUDE_V8_H_ | 8945 #endif // INCLUDE_V8_H_ |
OLD | NEW |