OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 2652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2663 * Requires: this == Isolate::GetCurrent(). | 2663 * Requires: this == Isolate::GetCurrent(). |
2664 */ | 2664 */ |
2665 void Exit(); | 2665 void Exit(); |
2666 | 2666 |
2667 /** | 2667 /** |
2668 * Disposes the isolate. The isolate must not be entered by any | 2668 * Disposes the isolate. The isolate must not be entered by any |
2669 * thread to be disposable. | 2669 * thread to be disposable. |
2670 */ | 2670 */ |
2671 void Dispose(); | 2671 void Dispose(); |
2672 | 2672 |
| 2673 /** |
| 2674 * Associate embedder-specific data with the isolate |
| 2675 */ |
| 2676 void SetData(void* data); |
| 2677 |
| 2678 /** |
| 2679 * Retrive embedder-specific data from the isolate. |
| 2680 * Returns NULL if SetData has never been called. |
| 2681 */ |
| 2682 void* GetData(); |
| 2683 |
2673 private: | 2684 private: |
2674 | 2685 |
2675 Isolate(); | 2686 Isolate(); |
2676 Isolate(const Isolate&); | 2687 Isolate(const Isolate&); |
2677 ~Isolate(); | 2688 ~Isolate(); |
2678 Isolate& operator=(const Isolate&); | 2689 Isolate& operator=(const Isolate&); |
2679 void* operator new(size_t size); | 2690 void* operator new(size_t size); |
2680 void operator delete(void*, size_t); | 2691 void operator delete(void*, size_t); |
2681 }; | 2692 }; |
2682 | 2693 |
(...skipping 1421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4104 | 4115 |
4105 | 4116 |
4106 } // namespace v8 | 4117 } // namespace v8 |
4107 | 4118 |
4108 | 4119 |
4109 #undef V8EXPORT | 4120 #undef V8EXPORT |
4110 #undef TYPE_CHECK | 4121 #undef TYPE_CHECK |
4111 | 4122 |
4112 | 4123 |
4113 #endif // V8_H_ | 4124 #endif // V8_H_ |
OLD | NEW |