OLD | NEW |
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2008 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 2233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2244 Handle<ObjectTemplate> global_template = Handle<ObjectTemplate>(), | 2244 Handle<ObjectTemplate> global_template = Handle<ObjectTemplate>(), |
2245 Handle<Value> global_object = Handle<Value>()); | 2245 Handle<Value> global_object = Handle<Value>()); |
2246 | 2246 |
2247 /** Returns the last entered context. */ | 2247 /** Returns the last entered context. */ |
2248 static Local<Context> GetEntered(); | 2248 static Local<Context> GetEntered(); |
2249 | 2249 |
2250 /** Returns the context that is on the top of the stack. */ | 2250 /** Returns the context that is on the top of the stack. */ |
2251 static Local<Context> GetCurrent(); | 2251 static Local<Context> GetCurrent(); |
2252 | 2252 |
2253 /** | 2253 /** |
| 2254 * Returns the context of the calling JavaScript code. That is the |
| 2255 * context of the top-most JavaScript frame. If there are no |
| 2256 * JavaScript frames an empty handle is returned. |
| 2257 */ |
| 2258 static Local<Context> GetCalling(); |
| 2259 |
| 2260 /** |
2254 * Sets the security token for the context. To access an object in | 2261 * Sets the security token for the context. To access an object in |
2255 * another context, the security tokens must match. | 2262 * another context, the security tokens must match. |
2256 */ | 2263 */ |
2257 void SetSecurityToken(Handle<Value> token); | 2264 void SetSecurityToken(Handle<Value> token); |
2258 | 2265 |
2259 /** Restores the security token to the default value. */ | 2266 /** Restores the security token to the default value. */ |
2260 void UseDefaultSecurityToken(); | 2267 void UseDefaultSecurityToken(); |
2261 | 2268 |
2262 /** Returns the security token of this context.*/ | 2269 /** Returns the security token of this context.*/ |
2263 Handle<Value> GetSecurityToken(); | 2270 Handle<Value> GetSecurityToken(); |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2597 | 2604 |
2598 } // namespace v8 | 2605 } // namespace v8 |
2599 | 2606 |
2600 | 2607 |
2601 #undef V8EXPORT | 2608 #undef V8EXPORT |
2602 #undef V8EXPORT_INLINE | 2609 #undef V8EXPORT_INLINE |
2603 #undef TYPE_CHECK | 2610 #undef TYPE_CHECK |
2604 | 2611 |
2605 | 2612 |
2606 #endif // V8_H_ | 2613 #endif // V8_H_ |
OLD | NEW |