| 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 3058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3069 * object that was associated with this context before a call to | 3069 * object that was associated with this context before a call to |
| 3070 * DetachGlobal. | 3070 * DetachGlobal. |
| 3071 */ | 3071 */ |
| 3072 void ReattachGlobal(Handle<Object> global_object); | 3072 void ReattachGlobal(Handle<Object> global_object); |
| 3073 | 3073 |
| 3074 /** Creates a new context. | 3074 /** Creates a new context. |
| 3075 * | 3075 * |
| 3076 * Returns a persistent handle to the newly allocated context. This | 3076 * Returns a persistent handle to the newly allocated context. This |
| 3077 * persistent handle has to be disposed when the context is no | 3077 * persistent handle has to be disposed when the context is no |
| 3078 * longer used so the context can be garbage collected. | 3078 * longer used so the context can be garbage collected. |
| 3079 * |
| 3080 * \param extensions An optional extension configuration containing |
| 3081 * the extensions to be installed in the newly created context. |
| 3082 * |
| 3083 * \param global_template An optional object template from which the |
| 3084 * global object for the newly created context will be created. |
| 3085 * |
| 3086 * \param global_object An optional global object to be reused for |
| 3087 * the newly created context. This global object must have been |
| 3088 * created by a previous call to Context::New with the same global |
| 3089 * template. The state of the global object will be completely reset |
| 3090 * and only object identify will remain. |
| 3079 */ | 3091 */ |
| 3080 static Persistent<Context> New( | 3092 static Persistent<Context> New( |
| 3081 ExtensionConfiguration* extensions = NULL, | 3093 ExtensionConfiguration* extensions = NULL, |
| 3082 Handle<ObjectTemplate> global_template = Handle<ObjectTemplate>(), | 3094 Handle<ObjectTemplate> global_template = Handle<ObjectTemplate>(), |
| 3083 Handle<Value> global_object = Handle<Value>()); | 3095 Handle<Value> global_object = Handle<Value>()); |
| 3084 | 3096 |
| 3085 /** Returns the last entered context. */ | 3097 /** Returns the last entered context. */ |
| 3086 static Local<Context> GetEntered(); | 3098 static Local<Context> GetEntered(); |
| 3087 | 3099 |
| 3088 /** Returns the context that is on the top of the stack. */ | 3100 /** Returns the context that is on the top of the stack. */ |
| (...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3782 | 3794 |
| 3783 | 3795 |
| 3784 } // namespace v8 | 3796 } // namespace v8 |
| 3785 | 3797 |
| 3786 | 3798 |
| 3787 #undef V8EXPORT | 3799 #undef V8EXPORT |
| 3788 #undef TYPE_CHECK | 3800 #undef TYPE_CHECK |
| 3789 | 3801 |
| 3790 | 3802 |
| 3791 #endif // V8_H_ | 3803 #endif // V8_H_ |
| OLD | NEW |