| 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 7134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7145 Local<ObjectTemplate> global_template = Local<ObjectTemplate>(), | 7145 Local<ObjectTemplate> global_template = Local<ObjectTemplate>(), |
| 7146 Local<Value> global_object = Local<Value>()); | 7146 Local<Value> global_object = Local<Value>()); |
| 7147 | 7147 |
| 7148 static MaybeLocal<Context> FromSnapshot( | 7148 static MaybeLocal<Context> FromSnapshot( |
| 7149 Isolate* isolate, size_t context_snapshot_index, | 7149 Isolate* isolate, size_t context_snapshot_index, |
| 7150 ExtensionConfiguration* extensions = NULL, | 7150 ExtensionConfiguration* extensions = NULL, |
| 7151 Local<ObjectTemplate> global_template = Local<ObjectTemplate>(), | 7151 Local<ObjectTemplate> global_template = Local<ObjectTemplate>(), |
| 7152 Local<Value> global_object = Local<Value>()); | 7152 Local<Value> global_object = Local<Value>()); |
| 7153 | 7153 |
| 7154 /** | 7154 /** |
| 7155 * Returns an detached global that can be passed into Context::New. |
| 7156 * |
| 7157 * The global template needs to have access checks with handlers installed. |
| 7158 */ |
| 7159 static Local<Object> NewDetachedGlobal(Isolate* isolate, |
| 7160 Local<ObjectTemplate> global_template); |
| 7161 |
| 7162 /** |
| 7155 * Sets the security token for the context. To access an object in | 7163 * Sets the security token for the context. To access an object in |
| 7156 * another context, the security tokens must match. | 7164 * another context, the security tokens must match. |
| 7157 */ | 7165 */ |
| 7158 void SetSecurityToken(Local<Value> token); | 7166 void SetSecurityToken(Local<Value> token); |
| 7159 | 7167 |
| 7160 /** Restores the security token to the default value. */ | 7168 /** Restores the security token to the default value. */ |
| 7161 void UseDefaultSecurityToken(); | 7169 void UseDefaultSecurityToken(); |
| 7162 | 7170 |
| 7163 /** Returns the security token of this context.*/ | 7171 /** Returns the security token of this context.*/ |
| 7164 Local<Value> GetSecurityToken(); | 7172 Local<Value> GetSecurityToken(); |
| (...skipping 1733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8898 */ | 8906 */ |
| 8899 | 8907 |
| 8900 | 8908 |
| 8901 } // namespace v8 | 8909 } // namespace v8 |
| 8902 | 8910 |
| 8903 | 8911 |
| 8904 #undef TYPE_CHECK | 8912 #undef TYPE_CHECK |
| 8905 | 8913 |
| 8906 | 8914 |
| 8907 #endif // INCLUDE_V8_H_ | 8915 #endif // INCLUDE_V8_H_ |
| OLD | NEW |