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 7127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7138 * template. The state of the global object will be completely reset | 7138 * template. The state of the global object will be completely reset |
7139 * and only object identify will remain. | 7139 * and only object identify will remain. |
7140 */ | 7140 */ |
7141 static Local<Context> New( | 7141 static Local<Context> New( |
7142 Isolate* isolate, ExtensionConfiguration* extensions = NULL, | 7142 Isolate* isolate, ExtensionConfiguration* extensions = NULL, |
7143 Local<ObjectTemplate> global_template = Local<ObjectTemplate>(), | 7143 Local<ObjectTemplate> global_template = Local<ObjectTemplate>(), |
7144 Local<Value> global_object = Local<Value>(), | 7144 Local<Value> global_object = Local<Value>(), |
7145 size_t context_snapshot_index = 0); | 7145 size_t context_snapshot_index = 0); |
7146 | 7146 |
7147 /** | 7147 /** |
| 7148 * Returns an detached global that can be passed into Context::New. |
| 7149 * |
| 7150 * The global template needs to have access checks with handlers installed. |
| 7151 */ |
| 7152 static Local<Object> NewDetachedGlobal(Isolate* isolate, |
| 7153 Local<ObjectTemplate> global_template); |
| 7154 |
| 7155 /** |
7148 * Sets the security token for the context. To access an object in | 7156 * Sets the security token for the context. To access an object in |
7149 * another context, the security tokens must match. | 7157 * another context, the security tokens must match. |
7150 */ | 7158 */ |
7151 void SetSecurityToken(Local<Value> token); | 7159 void SetSecurityToken(Local<Value> token); |
7152 | 7160 |
7153 /** Restores the security token to the default value. */ | 7161 /** Restores the security token to the default value. */ |
7154 void UseDefaultSecurityToken(); | 7162 void UseDefaultSecurityToken(); |
7155 | 7163 |
7156 /** Returns the security token of this context.*/ | 7164 /** Returns the security token of this context.*/ |
7157 Local<Value> GetSecurityToken(); | 7165 Local<Value> GetSecurityToken(); |
(...skipping 1733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8891 */ | 8899 */ |
8892 | 8900 |
8893 | 8901 |
8894 } // namespace v8 | 8902 } // namespace v8 |
8895 | 8903 |
8896 | 8904 |
8897 #undef TYPE_CHECK | 8905 #undef TYPE_CHECK |
8898 | 8906 |
8899 | 8907 |
8900 #endif // INCLUDE_V8_H_ | 8908 #endif // INCLUDE_V8_H_ |
OLD | NEW |