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; | |
109 class Primitive; | 108 class Primitive; |
110 class RawOperationDescriptor; | 109 class RawOperationDescriptor; |
111 class Signature; | 110 class Signature; |
112 class StackFrame; | 111 class StackFrame; |
113 class StackTrace; | 112 class StackTrace; |
114 class String; | 113 class String; |
115 class StringObject; | 114 class StringObject; |
116 class Symbol; | 115 class Symbol; |
117 class SymbolObject; | 116 class SymbolObject; |
118 class Private; | 117 class Private; |
(...skipping 4658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4777 * V8 had a chance to clean up. | 4776 * V8 had a chance to clean up. |
4778 */ | 4777 */ |
4779 static int ContextDisposedNotification(); | 4778 static int ContextDisposedNotification(); |
4780 | 4779 |
4781 /** | 4780 /** |
4782 * Initialize the ICU library bundled with V8. The embedder should only | 4781 * Initialize the ICU library bundled with V8. The embedder should only |
4783 * invoke this method when using the bundled ICU. Returns true on success. | 4782 * invoke this method when using the bundled ICU. Returns true on success. |
4784 */ | 4783 */ |
4785 static bool InitializeICU(); | 4784 static bool InitializeICU(); |
4786 | 4785 |
4787 /** | |
4788 * Sets the v8::Platform to use. This should be invoked before V8 is | |
4789 * initialized. | |
4790 */ | |
4791 static void InitializePlatform(Platform* platform); | |
4792 | |
4793 /** | |
4794 * Clears all references to the v8::Platform. This should be invoked after | |
4795 * V8 was disposed. | |
4796 */ | |
4797 static void ShutdownPlatform(); | |
4798 | |
4799 private: | 4786 private: |
4800 V8(); | 4787 V8(); |
4801 | 4788 |
4802 static internal::Object** GlobalizeReference(internal::Isolate* isolate, | 4789 static internal::Object** GlobalizeReference(internal::Isolate* isolate, |
4803 internal::Object** handle); | 4790 internal::Object** handle); |
4804 static internal::Object** CopyPersistent(internal::Object** handle); | 4791 static internal::Object** CopyPersistent(internal::Object** handle); |
4805 static void DisposeGlobal(internal::Object** global_handle); | 4792 static void DisposeGlobal(internal::Object** global_handle); |
4806 typedef WeakReferenceCallbacks<Value, void>::Revivable RevivableCallback; | 4793 typedef WeakReferenceCallbacks<Value, void>::Revivable RevivableCallback; |
4807 typedef WeakCallbackData<Value, void>::Callback WeakCallback; | 4794 typedef WeakCallbackData<Value, void>::Callback WeakCallback; |
4808 static void MakeWeak(internal::Object** global_handle, | 4795 static void MakeWeak(internal::Object** global_handle, |
(...skipping 1753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6562 */ | 6549 */ |
6563 | 6550 |
6564 | 6551 |
6565 } // namespace v8 | 6552 } // namespace v8 |
6566 | 6553 |
6567 | 6554 |
6568 #undef TYPE_CHECK | 6555 #undef TYPE_CHECK |
6569 | 6556 |
6570 | 6557 |
6571 #endif // V8_H_ | 6558 #endif // V8_H_ |
OLD | NEW |