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 2665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2676 Local<Object> Global(); | 2676 Local<Object> Global(); |
2677 | 2677 |
2678 /** | 2678 /** |
2679 * Detaches the global object from its context before | 2679 * Detaches the global object from its context before |
2680 * the global object can be reused to create a new context. | 2680 * the global object can be reused to create a new context. |
2681 */ | 2681 */ |
2682 void DetachGlobal(); | 2682 void DetachGlobal(); |
2683 | 2683 |
2684 /** Creates a new context. */ | 2684 /** Creates a new context. */ |
2685 static Persistent<Context> New( | 2685 static Persistent<Context> New( |
2686 ExtensionConfiguration* extensions = 0, | 2686 ExtensionConfiguration* extensions = NULL, |
2687 Handle<ObjectTemplate> global_template = Handle<ObjectTemplate>(), | 2687 Handle<ObjectTemplate> global_template = Handle<ObjectTemplate>(), |
2688 Handle<Value> global_object = Handle<Value>()); | 2688 Handle<Value> global_object = Handle<Value>()); |
2689 | 2689 |
2690 /** Returns the last entered context. */ | 2690 /** Returns the last entered context. */ |
2691 static Local<Context> GetEntered(); | 2691 static Local<Context> GetEntered(); |
2692 | 2692 |
2693 /** Returns the context that is on the top of the stack. */ | 2693 /** Returns the context that is on the top of the stack. */ |
2694 static Local<Context> GetCurrent(); | 2694 static Local<Context> GetCurrent(); |
2695 | 2695 |
2696 /** | 2696 /** |
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3323 | 3323 |
3324 } // namespace v8 | 3324 } // namespace v8 |
3325 | 3325 |
3326 | 3326 |
3327 #undef V8EXPORT | 3327 #undef V8EXPORT |
3328 #undef V8EXPORT_INLINE | 3328 #undef V8EXPORT_INLINE |
3329 #undef TYPE_CHECK | 3329 #undef TYPE_CHECK |
3330 | 3330 |
3331 | 3331 |
3332 #endif // V8_H_ | 3332 #endif // V8_H_ |
OLD | NEW |