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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 class HeapProfiler; | 98 class HeapProfiler; |
99 class ImplementationUtilities; | 99 class ImplementationUtilities; |
100 class Int32; | 100 class Int32; |
101 class Integer; | 101 class Integer; |
102 class Isolate; | 102 class Isolate; |
103 class Number; | 103 class Number; |
104 class NumberObject; | 104 class NumberObject; |
105 class Object; | 105 class Object; |
106 class ObjectOperationDescriptor; | 106 class ObjectOperationDescriptor; |
107 class ObjectTemplate; | 107 class ObjectTemplate; |
| 108 class Platform; |
108 class Primitive; | 109 class Primitive; |
109 class RawOperationDescriptor; | 110 class RawOperationDescriptor; |
110 class Signature; | 111 class Signature; |
111 class StackFrame; | 112 class StackFrame; |
112 class StackTrace; | 113 class StackTrace; |
113 class String; | 114 class String; |
114 class StringObject; | 115 class StringObject; |
115 class Symbol; | 116 class Symbol; |
116 class SymbolObject; | 117 class SymbolObject; |
117 class Private; | 118 class Private; |
(...skipping 4673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4791 * V8 had a chance to clean up. | 4792 * V8 had a chance to clean up. |
4792 */ | 4793 */ |
4793 static int ContextDisposedNotification(); | 4794 static int ContextDisposedNotification(); |
4794 | 4795 |
4795 /** | 4796 /** |
4796 * Initialize the ICU library bundled with V8. The embedder should only | 4797 * Initialize the ICU library bundled with V8. The embedder should only |
4797 * invoke this method when using the bundled ICU. Returns true on success. | 4798 * invoke this method when using the bundled ICU. Returns true on success. |
4798 */ | 4799 */ |
4799 static bool InitializeICU(); | 4800 static bool InitializeICU(); |
4800 | 4801 |
| 4802 /** |
| 4803 * Sets the v8::Platform to use. This should be invoked before V8 is |
| 4804 * initialized. |
| 4805 */ |
| 4806 static void InitializePlatform(Platform* platform); |
| 4807 |
| 4808 /** |
| 4809 * Clears all references to the v8::Platform. This should be invoked after |
| 4810 * V8 was disposed. |
| 4811 */ |
| 4812 static void ShutdownPlatform(); |
| 4813 |
4801 private: | 4814 private: |
4802 V8(); | 4815 V8(); |
4803 | 4816 |
4804 static internal::Object** GlobalizeReference(internal::Isolate* isolate, | 4817 static internal::Object** GlobalizeReference(internal::Isolate* isolate, |
4805 internal::Object** handle); | 4818 internal::Object** handle); |
4806 static internal::Object** CopyPersistent(internal::Object** handle); | 4819 static internal::Object** CopyPersistent(internal::Object** handle); |
4807 static void DisposeGlobal(internal::Object** global_handle); | 4820 static void DisposeGlobal(internal::Object** global_handle); |
4808 typedef WeakReferenceCallbacks<Value, void>::Revivable RevivableCallback; | 4821 typedef WeakReferenceCallbacks<Value, void>::Revivable RevivableCallback; |
4809 typedef WeakCallbackData<Value, void>::Callback WeakCallback; | 4822 typedef WeakCallbackData<Value, void>::Callback WeakCallback; |
4810 static void MakeWeak(internal::Object** global_handle, | 4823 static void MakeWeak(internal::Object** global_handle, |
(...skipping 1775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6586 */ | 6599 */ |
6587 | 6600 |
6588 | 6601 |
6589 } // namespace v8 | 6602 } // namespace v8 |
6590 | 6603 |
6591 | 6604 |
6592 #undef TYPE_CHECK | 6605 #undef TYPE_CHECK |
6593 | 6606 |
6594 | 6607 |
6595 #endif // V8_H_ | 6608 #endif // V8_H_ |
OLD | NEW |