OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:UnsafePersistent
(Results
1 - 25
of
45
) sorted by null
1
2
/external/chromium_org/chrome/renderer/extensions/
unsafe_persistent.h
13
// what you're doing.
UnsafePersistent
is only safe to use when we know that the
15
//
UnsafePersistent
is alive or 2) when there is a strong Persistent keeping the
16
// memory alive while the
UnsafePersistent
is alive.
17
template<typename T> class
UnsafePersistent
{
19
UnsafePersistent
() : value_(0) { }
21
explicit
UnsafePersistent
(v8::Persistent<T>* handle) {
25
UnsafePersistent
(v8::Isolate* isolate, const v8::Handle<T>& handle) {
v8_schema_registry.h
46
// by the
UnsafePersistent
alive. It's not made weak or disposed, and nobody
48
typedef std::map<std::string,
UnsafePersistent
<v8::Object> > SchemaCache;
object_backed_native_handler.h
68
// pointed by the
UnsafePersistent
alive. It's not made weak or disposed, and
71
typedef std::vector<
UnsafePersistent
<v8::Object> > RouterData;
object_backed_native_handler.cc
5
// TODO(dcarney): Remove this when
UnsafePersistent
is removed.
74
router_data_.push_back(
UnsafePersistent
<v8::Object>(&data));
v8_schema_registry.cc
5
// TODO(dcarney): Remove this when
UnsafePersistent
is removed.
103
schema_cache_[api] =
UnsafePersistent
<v8::Object>(&v8_schema);
/external/chromium_org/third_party/WebKit/Source/bindings/v8/
UnsafePersistent.h
43
// what you're doing.
UnsafePersistent
is only safe to use when we know that the
45
// the
UnsafePersistent
is alive or 2) when there is a strong Persistent keeping
46
// the memory alive while the
UnsafePersistent
is alive.
47
template<typename T> class
UnsafePersistent
{
49
UnsafePersistent
() : m_value(0) { }
50
explicit
UnsafePersistent
(T* value) : m_value(value) { }
51
explicit
UnsafePersistent
(v8::Persistent<T>& handle)
56
UnsafePersistent
(v8::Isolate* isolate, v8::Handle<T>& handle)
84
//
UnsafePersistent
is alive and valid (see class level comment).
CustomElementBinding.h
34
#include "bindings/v8/
UnsafePersistent
.h"
55
UnsafePersistent
<v8::Object> m_prototype;
V8ValueCache.h
29
#include "bindings/v8/
UnsafePersistent
.h"
66
HashMap<StringImpl*,
UnsafePersistent
<v8::String> > m_stringCache;
67
UnsafePersistent
<v8::String> m_lastV8String;
ScriptWrappable.h
34
#include "bindings/v8/
UnsafePersistent
.h"
80
return
unsafePersistent
().newLocal(isolate);
89
return toWrapperTypeInfo(*(
unsafePersistent
().persistent()));
154
// For calling
unsafePersistent
and getWrapperFromObject.
158
UnsafePersistent
<v8::Object>
unsafePersistent
() const
161
return
UnsafePersistent
<v8::Object>(object);
164
static
UnsafePersistent
<v8::Object> getUnsafeWrapperFromObject(void*)
167
return
UnsafePersistent
<v8::Object>();
170
static
UnsafePersistent
<v8::Object> getUnsafeWrapperFromObject(ScriptWrappable* object
[
all
...]
V8ValueCache.cpp
57
UnsafePersistent
<v8::String> cachedV8String = m_stringCache.get(stringImpl);
74
UnsafePersistent
<v8::String> cachedV8String = m_stringCache.get(stringImpl);
99
m_lastV8String =
UnsafePersistent
<v8::String>(wrapper);
ScheduledAction.h
36
#include "bindings/v8/
UnsafePersistent
.h"
63
Vector<
UnsafePersistent
<v8::Value> > m_info;
V8PerContextData.h
36
#include "bindings/v8/
UnsafePersistent
.h"
129
UnsafePersistent
<v8::Object> boilerplate = m_wrapperBoilerplates.get(type);
135
UnsafePersistent
<v8::Function> function = m_constructorMap.get(type);
178
typedef WTF::HashMap<const WrapperTypeInfo*,
UnsafePersistent
<v8::Object> > WrapperBoilerplateMap;
181
typedef WTF::HashMap<const WrapperTypeInfo*,
UnsafePersistent
<v8::Function> > ConstructorMap;
DOMWrapperMap.h
34
#include "bindings/v8/
UnsafePersistent
.h"
45
typedef HashMap<KeyType*,
UnsafePersistent
<v8::Object> > MapType;
90
typename MapType::AddResult result = m_map.add(key,
UnsafePersistent
<v8::Object>());
95
result.iterator->value =
UnsafePersistent
<v8::Object>(persistent);
V8PerIsolateData.cpp
102
templates.add(privatePointer,
UnsafePersistent
<v8::FunctionTemplate>(m_isolate, templ));
117
templateMap(currentWorldType).add(privatePointer,
UnsafePersistent
<v8::FunctionTemplate>(m_isolate, templ));
129
templates.add(info,
UnsafePersistent
<v8::FunctionTemplate>(m_isolate, templ));
DOMDataStore.h
108
UnsafePersistent
<v8::Object>
unsafePersistent
= ScriptWrappable::getUnsafeWrapperFromObject(child);
110
RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(
unsafePersistent
.isEmpty() ||
unsafePersistent
.value()->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex) == V8T::toInternalPointer(child));
111
unsafePersistent
.setReferenceFrom(parent, isolate);
195
UnsafePersistent
<v8::Object>
unsafePersistent
= wrappable->
unsafePersistent
();
196
ASSERT(
unsafePersistent
.isEmpty() || !(holder == *
unsafePersistent
.persistent()) || current(v8::Isolate::GetCurrent()).m_type == MainWorld)
[
all
...]
ScheduledAction.cpp
56
m_info.append(
UnsafePersistent
<v8::Value>(m_isolate, argv[i]));
V8NPObject.cpp
39
#include "bindings/v8/
UnsafePersistent
.h"
174
typedef HashMap<PrivateIdentifier*,
UnsafePersistent
<v8::FunctionTemplate> > MapType;
176
UnsafePersistent
<v8::FunctionTemplate> get(PrivateIdentifier* key)
186
m_map.set(key,
UnsafePersistent
<v8::FunctionTemplate>(wrapper));
254
UnsafePersistent
<v8::FunctionTemplate> functionTemplate = V8NPTemplateMap::sharedInstance(isolate).get(id);
V8PerIsolateData.h
30
#include "bindings/v8/
UnsafePersistent
.h"
67
typedef HashMap<const void*,
UnsafePersistent
<v8::FunctionTemplate> > TemplateMap;
V8PerContextData.cpp
102
m_wrapperBoilerplates.set(type,
UnsafePersistent
<v8::Object>(m_isolate, instanceTemplate));
138
m_constructorMap.set(type,
UnsafePersistent
<v8::Function>(m_isolate, function));
/external/chromium_org/third_party/WebKit/Source/bindings/tests/results/
V8TestInterfaceDoNotCheckConstants.cpp
107
data->templateMap(currentWorldType).add(&wrapperTypeInfo,
UnsafePersistent
<v8::FunctionTemplate>(isolate, templ));
V8TestInterfaceEmpty.cpp
102
data->templateMap(currentWorldType).add(&wrapperTypeInfo,
UnsafePersistent
<v8::FunctionTemplate>(isolate, templ));
V8TestInterfaceEventTarget.cpp
102
data->templateMap(currentWorldType).add(&wrapperTypeInfo,
UnsafePersistent
<v8::FunctionTemplate>(isolate, templ));
V8TestException.cpp
119
data->templateMap(currentWorldType).add(&wrapperTypeInfo,
UnsafePersistent
<v8::FunctionTemplate>(isolate, templ));
V8TestInterfaceConstructor3.cpp
135
data->templateMap(currentWorldType).add(&wrapperTypeInfo,
UnsafePersistent
<v8::FunctionTemplate>(isolate, templ));
V8TestInterfaceCustomConstructor.cpp
121
data->templateMap(currentWorldType).add(&wrapperTypeInfo,
UnsafePersistent
<v8::FunctionTemplate>(isolate, templ));
Completed in 257 milliseconds
1
2