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 3018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3029 * is initialized. | 3029 * is initialized. |
3030 */ | 3030 */ |
3031 HeapProfiler* GetHeapProfiler(); | 3031 HeapProfiler* GetHeapProfiler(); |
3032 | 3032 |
3033 /** | 3033 /** |
3034 * Returns CPU profiler for this isolate. Will return NULL until the isolate | 3034 * Returns CPU profiler for this isolate. Will return NULL until the isolate |
3035 * is initialized. | 3035 * is initialized. |
3036 */ | 3036 */ |
3037 CpuProfiler* GetCpuProfiler(); | 3037 CpuProfiler* GetCpuProfiler(); |
3038 | 3038 |
| 3039 /** Returns the context that is on the top of the stack. */ |
| 3040 Local<Context> GetCurrentContext(); |
| 3041 |
3039 private: | 3042 private: |
3040 Isolate(); | 3043 Isolate(); |
3041 Isolate(const Isolate&); | 3044 Isolate(const Isolate&); |
3042 ~Isolate(); | 3045 ~Isolate(); |
3043 Isolate& operator=(const Isolate&); | 3046 Isolate& operator=(const Isolate&); |
3044 void* operator new(size_t size); | 3047 void* operator new(size_t size); |
3045 void operator delete(void*, size_t); | 3048 void operator delete(void*, size_t); |
3046 }; | 3049 }; |
3047 | 3050 |
3048 | 3051 |
(...skipping 1989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5038 | 5041 |
5039 | 5042 |
5040 } // namespace v8 | 5043 } // namespace v8 |
5041 | 5044 |
5042 | 5045 |
5043 #undef V8EXPORT | 5046 #undef V8EXPORT |
5044 #undef TYPE_CHECK | 5047 #undef TYPE_CHECK |
5045 | 5048 |
5046 | 5049 |
5047 #endif // V8_H_ | 5050 #endif // V8_H_ |
OLD | NEW |