| OLD | NEW |
| 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 2568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2579 /** Returns the global object of the context. */ | 2579 /** Returns the global object of the context. */ |
| 2580 Local<Object> Global(); | 2580 Local<Object> Global(); |
| 2581 | 2581 |
| 2582 /** | 2582 /** |
| 2583 * Detaches the global object from its context before | 2583 * Detaches the global object from its context before |
| 2584 * the global object can be reused to create a new context. | 2584 * the global object can be reused to create a new context. |
| 2585 */ | 2585 */ |
| 2586 void DetachGlobal(); | 2586 void DetachGlobal(); |
| 2587 | 2587 |
| 2588 /** Creates a new context. */ | 2588 /** Creates a new context. */ |
| 2589 static Persistent<Context> New(); | |
| 2590 static Persistent<Context> New( | 2589 static Persistent<Context> New( |
| 2591 ExtensionConfiguration* extensions, | 2590 ExtensionConfiguration* extensions = NULL, |
| 2592 Handle<ObjectTemplate> global_template = Handle<ObjectTemplate>(), | 2591 Handle<ObjectTemplate> global_template = Handle<ObjectTemplate>(), |
| 2593 Handle<Value> global_object = Handle<Value>()); | 2592 Handle<Value> global_object = Handle<Value>()); |
| 2594 | 2593 |
| 2595 /** Returns the last entered context. */ | 2594 /** Returns the last entered context. */ |
| 2596 static Local<Context> GetEntered(); | 2595 static Local<Context> GetEntered(); |
| 2597 | 2596 |
| 2598 /** Returns the context that is on the top of the stack. */ | 2597 /** Returns the context that is on the top of the stack. */ |
| 2599 static Local<Context> GetCurrent(); | 2598 static Local<Context> GetCurrent(); |
| 2600 | 2599 |
| 2601 /** | 2600 /** |
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3228 | 3227 |
| 3229 } // namespace v8 | 3228 } // namespace v8 |
| 3230 | 3229 |
| 3231 | 3230 |
| 3232 #undef V8EXPORT | 3231 #undef V8EXPORT |
| 3233 #undef V8EXPORT_INLINE | 3232 #undef V8EXPORT_INLINE |
| 3234 #undef TYPE_CHECK | 3233 #undef TYPE_CHECK |
| 3235 | 3234 |
| 3236 | 3235 |
| 3237 #endif // V8_H_ | 3236 #endif // V8_H_ |
| OLD | NEW |