#include <v8-primitive.h>
◆ ~ExternalStringResourceBase()
virtual v8::String::ExternalStringResourceBase::~ExternalStringResourceBase |
( |
| ) |
|
|
virtualdefault |
◆ ExternalStringResourceBase() [1/2]
◆ ExternalStringResourceBase() [2/2]
v8::String::ExternalStringResourceBase::ExternalStringResourceBase |
( |
| ) |
|
|
protecteddefault |
◆ Dispose()
virtual void v8::String::ExternalStringResourceBase::Dispose |
( |
| ) |
|
|
inlineprotectedvirtual |
Internally V8 will call this Dispose method when the external string resource is no longer needed. The default implementation will use the delete operator. This method can be overridden in subclasses to control how allocated external string resources are disposed.
◆ IsCacheable()
virtual bool v8::String::ExternalStringResourceBase::IsCacheable |
( |
| ) |
const |
|
inlinevirtual |
If a string is cacheable, the value returned by ExternalStringResource::data() may be cached, otherwise it is not expected to be stable beyond the current top-level task.
◆ Lock()
virtual void v8::String::ExternalStringResourceBase::Lock |
( |
| ) |
const |
|
inlineprotectedvirtual |
For a non-cacheable string, the value returned by |ExternalStringResource::data()| has to be stable between |Lock()| and |Unlock()|, that is the string must behave as is |IsCacheable()| returned true.
These two functions must be thread-safe, and can be called from anywhere. They also must handle lock depth, in the sense that each can be called several times, from different threads, and unlocking should only happen when the balance of Lock() and Unlock() calls is 0.
◆ operator=()
◆ Unaccount()
virtual void v8::String::ExternalStringResourceBase::Unaccount |
( |
Isolate * |
isolate | ) |
|
|
inlinevirtual |
Internally V8 will call this Unaccount method when the external string resource should be unaccounted for. This method can be overridden in subclasses to control how allocated external bytes are accounted.
◆ Unlock()
virtual void v8::String::ExternalStringResourceBase::Unlock |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ internal::ExternalString
friend class internal::ExternalString |
|
friend |
◆ internal::ScopedExternalStringLock
friend class internal::ScopedExternalStringLock |
|
friend |
◆ internal::StringForwardingTable
friend class internal::StringForwardingTable |
|
friend |
◆ v8::String
The documentation for this class was generated from the following file: