Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** \mainpage V8 API Reference Guide | 5 /** \mainpage V8 API Reference Guide |
| 6 * | 6 * |
| 7 * V8 is Google's open source JavaScript engine. | 7 * V8 is Google's open source JavaScript engine. |
| 8 * | 8 * |
| 9 * This set of documents provides reference material generated from the | 9 * This set of documents provides reference material generated from the |
| 10 * V8 header file, include/v8.h. | 10 * V8 header file, include/v8.h. |
| (...skipping 6606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6617 * initialized. | 6617 * initialized. |
| 6618 */ | 6618 */ |
| 6619 static void InitializePlatform(Platform* platform); | 6619 static void InitializePlatform(Platform* platform); |
| 6620 | 6620 |
| 6621 /** | 6621 /** |
| 6622 * Clears all references to the v8::Platform. This should be invoked after | 6622 * Clears all references to the v8::Platform. This should be invoked after |
| 6623 * V8 was disposed. | 6623 * V8 was disposed. |
| 6624 */ | 6624 */ |
| 6625 static void ShutdownPlatform(); | 6625 static void ShutdownPlatform(); |
| 6626 | 6626 |
| 6627 /** | |
| 6628 * Allows the embedder to tell the v8 garbage collector that a certain object | |
| 6629 * is alive. Only allowed when the embedder is asked to trace its heap by | |
| 6630 * EmbedderHeapTracer. | |
| 6631 */ | |
| 6632 static void RegisterExternallyReferencedObject(internal::Object** object, | |
|
jochen (gone - plz use gerrit)
2016/04/14 14:28:09
this should stay private. Can you make the map a f
Marcel Hlopko
2016/04/14 14:50:42
Done.
| |
| 6633 internal::Isolate* isolate); | |
| 6634 | |
| 6627 private: | 6635 private: |
| 6628 V8(); | 6636 V8(); |
| 6629 | 6637 |
| 6630 static internal::Object** GlobalizeReference(internal::Isolate* isolate, | 6638 static internal::Object** GlobalizeReference(internal::Isolate* isolate, |
| 6631 internal::Object** handle); | 6639 internal::Object** handle); |
| 6632 static internal::Object** CopyPersistent(internal::Object** handle); | 6640 static internal::Object** CopyPersistent(internal::Object** handle); |
| 6633 static void DisposeGlobal(internal::Object** global_handle); | 6641 static void DisposeGlobal(internal::Object** global_handle); |
| 6634 typedef WeakCallbackData<Value, void>::Callback WeakCallback; | 6642 typedef WeakCallbackData<Value, void>::Callback WeakCallback; |
| 6635 static void RegisterExternallyReferencedObject(internal::Object** object, | |
| 6636 internal::Isolate* isolate); | |
| 6637 static void MakeWeak(internal::Object** global_handle, void* data, | 6643 static void MakeWeak(internal::Object** global_handle, void* data, |
| 6638 WeakCallback weak_callback); | 6644 WeakCallback weak_callback); |
| 6639 static void MakeWeak(internal::Object** global_handle, void* data, | 6645 static void MakeWeak(internal::Object** global_handle, void* data, |
| 6640 WeakCallbackInfo<void>::Callback weak_callback, | 6646 WeakCallbackInfo<void>::Callback weak_callback, |
| 6641 WeakCallbackType type); | 6647 WeakCallbackType type); |
| 6642 static void MakeWeak(internal::Object** global_handle, void* data, | 6648 static void MakeWeak(internal::Object** global_handle, void* data, |
| 6643 // Must be 0 or -1. | 6649 // Must be 0 or -1. |
| 6644 int internal_field_index1, | 6650 int internal_field_index1, |
| 6645 // Must be 1 or -1. | 6651 // Must be 1 or -1. |
| 6646 int internal_field_index2, | 6652 int internal_field_index2, |
| (...skipping 2095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 8742 */ | 8748 */ |
| 8743 | 8749 |
| 8744 | 8750 |
| 8745 } // namespace v8 | 8751 } // namespace v8 |
| 8746 | 8752 |
| 8747 | 8753 |
| 8748 #undef TYPE_CHECK | 8754 #undef TYPE_CHECK |
| 8749 | 8755 |
| 8750 | 8756 |
| 8751 #endif // INCLUDE_V8_H_ | 8757 #endif // INCLUDE_V8_H_ |
| OLD | NEW |