OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 3860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3871 static Persistent<Context> New( | 3871 static Persistent<Context> New( |
3872 ExtensionConfiguration* extensions = NULL, | 3872 ExtensionConfiguration* extensions = NULL, |
3873 Handle<ObjectTemplate> global_template = Handle<ObjectTemplate>(), | 3873 Handle<ObjectTemplate> global_template = Handle<ObjectTemplate>(), |
3874 Handle<Value> global_object = Handle<Value>()); | 3874 Handle<Value> global_object = Handle<Value>()); |
3875 | 3875 |
3876 /** Returns the last entered context. */ | 3876 /** Returns the last entered context. */ |
3877 static Local<Context> GetEntered(); | 3877 static Local<Context> GetEntered(); |
3878 | 3878 |
3879 /** Returns the context that is on the top of the stack. */ | 3879 /** Returns the context that is on the top of the stack. */ |
3880 static Local<Context> GetCurrent(); | 3880 static Local<Context> GetCurrent(); |
| 3881 static Local<Context> GetCurrent(Isolate* isolate); |
3881 | 3882 |
3882 /** | 3883 /** |
3883 * Returns the context of the calling JavaScript code. That is the | 3884 * Returns the context of the calling JavaScript code. That is the |
3884 * context of the top-most JavaScript frame. If there are no | 3885 * context of the top-most JavaScript frame. If there are no |
3885 * JavaScript frames an empty handle is returned. | 3886 * JavaScript frames an empty handle is returned. |
3886 */ | 3887 */ |
3887 static Local<Context> GetCalling(); | 3888 static Local<Context> GetCalling(); |
3888 | 3889 |
3889 /** | 3890 /** |
3890 * Sets the security token for the context. To access an object in | 3891 * Sets the security token for the context. To access an object in |
(...skipping 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5024 | 5025 |
5025 | 5026 |
5026 } // namespace v8 | 5027 } // namespace v8 |
5027 | 5028 |
5028 | 5029 |
5029 #undef V8EXPORT | 5030 #undef V8EXPORT |
5030 #undef TYPE_CHECK | 5031 #undef TYPE_CHECK |
5031 | 5032 |
5032 | 5033 |
5033 #endif // V8_H_ | 5034 #endif // V8_H_ |
OLD | NEW |