V8 Project
|
#include <api.h>
Public Member Functions | |
void | RecordWrite (Handle< String > string) |
bool | IsFreshUnusedString (Handle< String > string) |
Private Member Functions | |
StringTracker () | |
bool | IsUseCountLow (Address top) |
void | IncrementUseCount (Address top) |
DISALLOW_COPY_AND_ASSIGN (StringTracker) | |
Static Private Member Functions | |
static bool | IsFreshString (Address string, Address top) |
Private Attributes | |
int | use_count_ |
Address | last_top_ |
Isolate * | isolate_ |
Static Private Attributes | |
static const int | kFreshnessLimit = 1024 |
static const int | kUseLimit = 32 |
Friends | |
class | Isolate |
|
inlineprivate |
Definition at line 418 of file api.h.
|
private |
|
inlineprivate |
Definition at line 429 of file api.h.
References last_top_, and use_count_.
Referenced by RecordWrite().
|
inlinestaticprivate |
Definition at line 420 of file api.h.
References kFreshnessLimit.
Referenced by IsFreshUnusedString(), and RecordWrite().
Definition at line 411 of file api.h.
References v8::internal::Isolate::heap(), IsFreshString(), isolate_, IsUseCountLow(), and v8::internal::Heap::NewSpaceTop().
Referenced by v8::String::CanMakeExternal(), and v8::String::MakeExternal().
Definition at line 424 of file api.h.
References kUseLimit, last_top_, and use_count_.
Referenced by IsFreshUnusedString().
Definition at line 400 of file api.h.
References v8::internal::Isolate::heap(), IncrementUseCount(), IsFreshString(), isolate_, and v8::internal::Heap::NewSpaceTop().
Referenced by v8::WriteHelper().
|
private |
Definition at line 443 of file api.h.
Referenced by v8::internal::Isolate::Init(), IsFreshUnusedString(), and RecordWrite().
|
staticprivate |
Definition at line 446 of file api.h.
Referenced by IsFreshString().
|
staticprivate |
Definition at line 449 of file api.h.
Referenced by IsUseCountLow().
|
private |
Definition at line 441 of file api.h.
Referenced by IncrementUseCount(), and IsUseCountLow().
|
private |
Definition at line 438 of file api.h.
Referenced by IncrementUseCount(), and IsUseCountLow().