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 4653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4771 * V8 had a chance to clean up. | 4772 * V8 had a chance to clean up. |
4772 */ | 4773 */ |
4773 static int ContextDisposedNotification(); | 4774 static int ContextDisposedNotification(); |
4774 | 4775 |
4775 /** | 4776 /** |
4776 * Initialize the ICU library bundled with V8. The embedder should only | 4777 * Initialize the ICU library bundled with V8. The embedder should only |
4777 * invoke this method when using the bundled ICU. Returns true on success. | 4778 * invoke this method when using the bundled ICU. Returns true on success. |
4778 */ | 4779 */ |
4779 static bool InitializeICU(); | 4780 static bool InitializeICU(); |
4780 | 4781 |
| 4782 /** |
| 4783 * Sets the v8::Platform to use. This should be invoked before V8 is |
| 4784 * initialized. |
| 4785 */ |
| 4786 static void InitializePlatform(Platform* platform); |
| 4787 |
| 4788 /** |
| 4789 * Clears all references to the v8::Platform. This should be invoked after |
| 4790 * V8 was disposed. |
| 4791 */ |
| 4792 static void ShutdownPlatform(); |
| 4793 |
4781 private: | 4794 private: |
4782 V8(); | 4795 V8(); |
4783 | 4796 |
4784 static internal::Object** GlobalizeReference(internal::Isolate* isolate, | 4797 static internal::Object** GlobalizeReference(internal::Isolate* isolate, |
4785 internal::Object** handle); | 4798 internal::Object** handle); |
4786 static internal::Object** CopyPersistent(internal::Object** handle); | 4799 static internal::Object** CopyPersistent(internal::Object** handle); |
4787 static void DisposeGlobal(internal::Object** global_handle); | 4800 static void DisposeGlobal(internal::Object** global_handle); |
4788 typedef WeakReferenceCallbacks<Value, void>::Revivable RevivableCallback; | 4801 typedef WeakReferenceCallbacks<Value, void>::Revivable RevivableCallback; |
4789 typedef WeakCallbackData<Value, void>::Callback WeakCallback; | 4802 typedef WeakCallbackData<Value, void>::Callback WeakCallback; |
4790 static void MakeWeak(internal::Object** global_handle, | 4803 static void MakeWeak(internal::Object** global_handle, |
(...skipping 1753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6544 */ | 6557 */ |
6545 | 6558 |
6546 | 6559 |
6547 } // namespace v8 | 6560 } // namespace v8 |
6548 | 6561 |
6549 | 6562 |
6550 #undef TYPE_CHECK | 6563 #undef TYPE_CHECK |
6551 | 6564 |
6552 | 6565 |
6553 #endif // V8_H_ | 6566 #endif // V8_H_ |
OLD | NEW |