Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Side by Side Diff: include/v8.h

Issue 1883043003: Add RegisterExternallyReferencedObject to PersistenValueMap (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Leave RegisterExternallyReferencedObject private Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | include/v8-util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 6614 matching lines...) Expand 10 before | Expand all | Expand 10 after
6625 static void ShutdownPlatform(); 6625 static void ShutdownPlatform();
6626 6626
6627 private: 6627 private:
6628 V8(); 6628 V8();
6629 6629
6630 static internal::Object** GlobalizeReference(internal::Isolate* isolate, 6630 static internal::Object** GlobalizeReference(internal::Isolate* isolate,
6631 internal::Object** handle); 6631 internal::Object** handle);
6632 static internal::Object** CopyPersistent(internal::Object** handle); 6632 static internal::Object** CopyPersistent(internal::Object** handle);
6633 static void DisposeGlobal(internal::Object** global_handle); 6633 static void DisposeGlobal(internal::Object** global_handle);
6634 typedef WeakCallbackData<Value, void>::Callback WeakCallback; 6634 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, 6635 static void MakeWeak(internal::Object** global_handle, void* data,
6638 WeakCallback weak_callback); 6636 WeakCallback weak_callback);
6639 static void MakeWeak(internal::Object** global_handle, void* data, 6637 static void MakeWeak(internal::Object** global_handle, void* data,
6640 WeakCallbackInfo<void>::Callback weak_callback, 6638 WeakCallbackInfo<void>::Callback weak_callback,
6641 WeakCallbackType type); 6639 WeakCallbackType type);
6642 static void MakeWeak(internal::Object** global_handle, void* data, 6640 static void MakeWeak(internal::Object** global_handle, void* data,
6643 // Must be 0 or -1. 6641 // Must be 0 or -1.
6644 int internal_field_index1, 6642 int internal_field_index1,
6645 // Must be 1 or -1. 6643 // Must be 1 or -1.
6646 int internal_field_index2, 6644 int internal_field_index2,
6647 WeakCallbackInfo<void>::Callback weak_callback); 6645 WeakCallbackInfo<void>::Callback weak_callback);
6648 static void* ClearWeak(internal::Object** global_handle); 6646 static void* ClearWeak(internal::Object** global_handle);
6649 static void Eternalize(Isolate* isolate, 6647 static void Eternalize(Isolate* isolate,
6650 Value* handle, 6648 Value* handle,
6651 int* index); 6649 int* index);
6652 static Local<Value> GetEternal(Isolate* isolate, int index); 6650 static Local<Value> GetEternal(Isolate* isolate, int index);
6653 6651
6652 static void RegisterExternallyReferencedObject(internal::Object** object,
6653 internal::Isolate* isolate);
6654 template <class K, class V, class T>
6655 friend class PersistentValueMapBase;
6656
6654 static void FromJustIsNothing(); 6657 static void FromJustIsNothing();
6655 static void ToLocalEmpty(); 6658 static void ToLocalEmpty();
6656 static void InternalFieldOutOfBounds(int index); 6659 static void InternalFieldOutOfBounds(int index);
6657 template <class T> friend class Local; 6660 template <class T> friend class Local;
6658 template <class T> 6661 template <class T>
6659 friend class MaybeLocal; 6662 friend class MaybeLocal;
6660 template <class T> 6663 template <class T>
6661 friend class Maybe; 6664 friend class Maybe;
6662 template <class T> 6665 template <class T>
6663 friend class WeakCallbackInfo; 6666 friend class WeakCallbackInfo;
(...skipping 2078 matching lines...) Expand 10 before | Expand all | Expand 10 after
8742 */ 8745 */
8743 8746
8744 8747
8745 } // namespace v8 8748 } // namespace v8
8746 8749
8747 8750
8748 #undef TYPE_CHECK 8751 #undef TYPE_CHECK
8749 8752
8750 8753
8751 #endif // INCLUDE_V8_H_ 8754 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « no previous file | include/v8-util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698