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

Side by Side Diff: Source/bindings/tests/results/core/V8TestNode.cpp

Issue 984523003: bindings: Moves most of DOM attributes to prototype chains. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated test results. Created 5 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium 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 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestNode.h" 8 #include "V8TestNode.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 12 matching lines...) Expand all
23 23
24 const WrapperTypeInfo V8TestNode::wrapperTypeInfo = { gin::kEmbedderBlink, V8Tes tNode::domTemplate, V8TestNode::refObject, V8TestNode::derefObject, V8TestNode:: trace, 0, 0, V8TestNode::installConditionallyEnabledMethods, V8TestNode::install ConditionallyEnabledProperties, &V8Node::wrapperTypeInfo, WrapperTypeInfo::Wrapp erTypeObjectPrototype, WrapperTypeInfo::NodeClassId, WrapperTypeInfo::InheritFro mEventTarget, WrapperTypeInfo::Dependent, WrapperTypeInfo::WillBeGarbageCollecte dObject }; 24 const WrapperTypeInfo V8TestNode::wrapperTypeInfo = { gin::kEmbedderBlink, V8Tes tNode::domTemplate, V8TestNode::refObject, V8TestNode::derefObject, V8TestNode:: trace, 0, 0, V8TestNode::installConditionallyEnabledMethods, V8TestNode::install ConditionallyEnabledProperties, &V8Node::wrapperTypeInfo, WrapperTypeInfo::Wrapp erTypeObjectPrototype, WrapperTypeInfo::NodeClassId, WrapperTypeInfo::InheritFro mEventTarget, WrapperTypeInfo::Dependent, WrapperTypeInfo::WillBeGarbageCollecte dObject };
25 25
26 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestNode.h. 26 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestNode.h.
27 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in 27 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in
28 // bindings/core/v8/ScriptWrappable.h. 28 // bindings/core/v8/ScriptWrappable.h.
29 const WrapperTypeInfo& TestNode::s_wrapperTypeInfo = V8TestNode::wrapperTypeInfo ; 29 const WrapperTypeInfo& TestNode::s_wrapperTypeInfo = V8TestNode::wrapperTypeInfo ;
30 30
31 namespace TestNodeV8Internal { 31 namespace TestNodeV8Internal {
32 32
33 static void hrefAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 33 static void hrefAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
34 { 34 {
35 v8::Local<v8::Object> holder = info.Holder(); 35 v8::Local<v8::Object> holder = info.Holder();
36 TestNode* impl = V8TestNode::toImpl(holder); 36 TestNode* impl = V8TestNode::toImpl(holder);
37 v8SetReturnValueString(info, impl->href(), info.GetIsolate()); 37 v8SetReturnValueString(info, impl->href(), info.GetIsolate());
38 } 38 }
39 39
40 static void hrefAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert yCallbackInfo<v8::Value>& info) 40 static void hrefAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value >& info)
41 { 41 {
42 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 42 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
43 TestNodeV8Internal::hrefAttributeGetter(info); 43 TestNodeV8Internal::hrefAttributeGetter(info);
44 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 44 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
45 } 45 }
46 46
47 static void hrefAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property CallbackInfo<void>& info) 47 static void hrefAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Function CallbackInfo<v8::Value>& info)
48 { 48 {
49 v8::Local<v8::Object> holder = info.Holder(); 49 v8::Local<v8::Object> holder = info.Holder();
50 TestNode* impl = V8TestNode::toImpl(holder); 50 TestNode* impl = V8TestNode::toImpl(holder);
51 V8StringResource<> cppValue = v8Value; 51 V8StringResource<> cppValue = v8Value;
52 if (!cppValue.prepare()) 52 if (!cppValue.prepare())
53 return; 53 return;
54 impl->setHref(cppValue); 54 impl->setHref(cppValue);
55 } 55 }
56 56
57 static void hrefAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val ue> v8Value, const v8::PropertyCallbackInfo<void>& info) 57 static void hrefAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value >& info)
58 { 58 {
59 v8::Local<v8::Value> v8Value = info[0];
59 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 60 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
60 TestNodeV8Internal::hrefAttributeSetter(v8Value, info); 61 TestNodeV8Internal::hrefAttributeSetter(v8Value, info);
61 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 62 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
62 } 63 }
63 64
64 static void hrefThrowsAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 65 static void hrefThrowsAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
65 { 66 {
66 v8::Local<v8::Object> holder = info.Holder(); 67 v8::Local<v8::Object> holder = info.Holder();
67 TestNode* impl = V8TestNode::toImpl(holder); 68 TestNode* impl = V8TestNode::toImpl(holder);
68 v8SetReturnValueString(info, impl->hrefThrows(), info.GetIsolate()); 69 v8SetReturnValueString(info, impl->hrefThrows(), info.GetIsolate());
69 } 70 }
70 71
71 static void hrefThrowsAttributeGetterCallback(v8::Local<v8::String>, const v8::P ropertyCallbackInfo<v8::Value>& info) 72 static void hrefThrowsAttributeGetterCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
72 { 73 {
73 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 74 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
74 TestNodeV8Internal::hrefThrowsAttributeGetter(info); 75 TestNodeV8Internal::hrefThrowsAttributeGetter(info);
75 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 76 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
76 } 77 }
77 78
78 static void hrefThrowsAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Pr opertyCallbackInfo<void>& info) 79 static void hrefThrowsAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Fu nctionCallbackInfo<v8::Value>& info)
79 { 80 {
80 v8::Local<v8::Object> holder = info.Holder(); 81 v8::Local<v8::Object> holder = info.Holder();
81 ExceptionState exceptionState(ExceptionState::SetterContext, "hrefThrows", " TestNode", holder, info.GetIsolate()); 82 ExceptionState exceptionState(ExceptionState::SetterContext, "hrefThrows", " TestNode", holder, info.GetIsolate());
82 TestNode* impl = V8TestNode::toImpl(holder); 83 TestNode* impl = V8TestNode::toImpl(holder);
83 V8StringResource<> cppValue = v8Value; 84 V8StringResource<> cppValue = v8Value;
84 if (!cppValue.prepare()) 85 if (!cppValue.prepare())
85 return; 86 return;
86 impl->setHrefThrows(cppValue, exceptionState); 87 impl->setHrefThrows(cppValue, exceptionState);
87 exceptionState.throwIfNeeded(); 88 exceptionState.throwIfNeeded();
88 } 89 }
89 90
90 static void hrefThrowsAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 91 static void hrefThrowsAttributeSetterCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
91 { 92 {
93 v8::Local<v8::Value> v8Value = info[0];
92 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 94 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
93 TestNodeV8Internal::hrefThrowsAttributeSetter(v8Value, info); 95 TestNodeV8Internal::hrefThrowsAttributeSetter(v8Value, info);
94 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 96 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
95 } 97 }
96 98
97 static void hrefCallWithAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 99 static void hrefCallWithAttributeGetter(const v8::FunctionCallbackInfo<v8::Value >& info)
98 { 100 {
99 v8::Local<v8::Object> holder = info.Holder(); 101 v8::Local<v8::Object> holder = info.Holder();
100 TestNode* impl = V8TestNode::toImpl(holder); 102 TestNode* impl = V8TestNode::toImpl(holder);
101 v8SetReturnValueString(info, impl->hrefCallWith(), info.GetIsolate()); 103 v8SetReturnValueString(info, impl->hrefCallWith(), info.GetIsolate());
102 } 104 }
103 105
104 static void hrefCallWithAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info) 106 static void hrefCallWithAttributeGetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
105 { 107 {
106 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 108 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
107 TestNodeV8Internal::hrefCallWithAttributeGetter(info); 109 TestNodeV8Internal::hrefCallWithAttributeGetter(info);
108 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 110 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
109 } 111 }
110 112
111 static void hrefCallWithAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 113 static void hrefCallWithAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: FunctionCallbackInfo<v8::Value>& info)
112 { 114 {
113 v8::Local<v8::Object> holder = info.Holder(); 115 v8::Local<v8::Object> holder = info.Holder();
114 TestNode* impl = V8TestNode::toImpl(holder); 116 TestNode* impl = V8TestNode::toImpl(holder);
115 V8StringResource<> cppValue = v8Value; 117 V8StringResource<> cppValue = v8Value;
116 if (!cppValue.prepare()) 118 if (!cppValue.prepare())
117 return; 119 return;
118 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 120 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
119 impl->setHrefCallWith(executionContext, callingDOMWindow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); 121 impl->setHrefCallWith(executionContext, callingDOMWindow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue);
120 } 122 }
121 123
122 static void hrefCallWithAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 124 static void hrefCallWithAttributeSetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
123 { 125 {
126 v8::Local<v8::Value> v8Value = info[0];
124 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 127 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
125 TestNodeV8Internal::hrefCallWithAttributeSetter(v8Value, info); 128 TestNodeV8Internal::hrefCallWithAttributeSetter(v8Value, info);
126 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 129 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
127 } 130 }
128 131
129 static void hrefByteStringAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 132 static void hrefByteStringAttributeGetter(const v8::FunctionCallbackInfo<v8::Val ue>& info)
130 { 133 {
131 v8::Local<v8::Object> holder = info.Holder(); 134 v8::Local<v8::Object> holder = info.Holder();
132 TestNode* impl = V8TestNode::toImpl(holder); 135 TestNode* impl = V8TestNode::toImpl(holder);
133 v8SetReturnValueString(info, impl->hrefByteString(), info.GetIsolate()); 136 v8SetReturnValueString(info, impl->hrefByteString(), info.GetIsolate());
134 } 137 }
135 138
136 static void hrefByteStringAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 139 static void hrefByteStringAttributeGetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
137 { 140 {
138 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 141 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
139 TestNodeV8Internal::hrefByteStringAttributeGetter(info); 142 TestNodeV8Internal::hrefByteStringAttributeGetter(info);
140 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 143 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
141 } 144 }
142 145
143 static void hrefByteStringAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 146 static void hrefByteStringAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::FunctionCallbackInfo<v8::Value>& info)
144 { 147 {
145 v8::Local<v8::Object> holder = info.Holder(); 148 v8::Local<v8::Object> holder = info.Holder();
146 ExceptionState exceptionState(ExceptionState::SetterContext, "hrefByteString ", "TestNode", holder, info.GetIsolate()); 149 ExceptionState exceptionState(ExceptionState::SetterContext, "hrefByteString ", "TestNode", holder, info.GetIsolate());
147 TestNode* impl = V8TestNode::toImpl(holder); 150 TestNode* impl = V8TestNode::toImpl(holder);
148 V8StringResource<> cppValue = toByteString(v8Value, exceptionState); 151 V8StringResource<> cppValue = toByteString(v8Value, exceptionState);
149 if (exceptionState.throwIfNeeded()) 152 if (exceptionState.throwIfNeeded())
150 return; 153 return;
151 impl->setHrefByteString(cppValue); 154 impl->setHrefByteString(cppValue);
152 } 155 }
153 156
154 static void hrefByteStringAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 157 static void hrefByteStringAttributeSetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
155 { 158 {
159 v8::Local<v8::Value> v8Value = info[0];
156 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 160 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
157 TestNodeV8Internal::hrefByteStringAttributeSetter(v8Value, info); 161 TestNodeV8Internal::hrefByteStringAttributeSetter(v8Value, info);
158 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 162 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
159 } 163 }
160 164
161 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) 165 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
162 { 166 {
163 RefPtrWillBeRawPtr<TestNode> impl = TestNode::create(); 167 RefPtrWillBeRawPtr<TestNode> impl = TestNode::create();
164 v8::Local<v8::Object> wrapper = info.Holder(); 168 v8::Local<v8::Object> wrapper = info.Holder();
165 impl->associateWithWrapper(info.GetIsolate(), &V8TestNode::wrapperTypeInfo, wrapper); 169 impl->associateWithWrapper(info.GetIsolate(), &V8TestNode::wrapperTypeInfo, wrapper);
166 v8SetReturnValue(info, wrapper); 170 v8SetReturnValue(info, wrapper);
167 } 171 }
168 172
169 } // namespace TestNodeV8Internal 173 } // namespace TestNodeV8Internal
170 174
171 static const V8DOMConfiguration::AttributeConfiguration V8TestNodeAttributes[] = { 175 static const V8DOMConfiguration::AccessorConfiguration V8TestNodeAccessors[] = {
172 {"href", TestNodeV8Internal::hrefAttributeGetterCallback, TestNodeV8Internal ::hrefAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU LT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedTo AllScripts, V8DOMConfiguration::OnInstance}, 176 {"href", TestNodeV8Internal::hrefAttributeGetterCallback, TestNodeV8Internal ::hrefAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU LT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedTo AllScripts},
173 {"hrefThrows", TestNodeV8Internal::hrefThrowsAttributeGetterCallback, TestNo deV8Internal::hrefThrowsAttributeSetterCallback, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 177 {"hrefThrows", TestNodeV8Internal::hrefThrowsAttributeGetterCallback, TestNo deV8Internal::hrefThrowsAttributeSetterCallback, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig uration::ExposedToAllScripts},
174 {"hrefCallWith", TestNodeV8Internal::hrefCallWithAttributeGetterCallback, Te stNodeV8Internal::hrefCallWithAttributeSetterCallback, 0, 0, 0, static_cast<v8:: AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOM Configuration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 178 {"hrefCallWith", TestNodeV8Internal::hrefCallWithAttributeGetterCallback, Te stNodeV8Internal::hrefCallWithAttributeSetterCallback, 0, 0, 0, static_cast<v8:: AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOM Configuration::ExposedToAllScripts},
175 {"hrefByteString", TestNodeV8Internal::hrefByteStringAttributeGetterCallback , TestNodeV8Internal::hrefByteStringAttributeSetterCallback, 0, 0, 0, static_cas t<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, 179 {"hrefByteString", TestNodeV8Internal::hrefByteStringAttributeGetterCallback , TestNodeV8Internal::hrefByteStringAttributeSetterCallback, 0, 0, 0, static_cas t<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
176 }; 180 };
177 181
178 void V8TestNode::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 182 void V8TestNode::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
179 { 183 {
180 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); 184 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor");
181 if (!info.IsConstructCall()) { 185 if (!info.IsConstructCall()) {
182 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c onstructorNotCallableAsFunction("TestNode")); 186 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c onstructorNotCallableAsFunction("TestNode"));
183 return; 187 return;
184 } 188 }
185 189
186 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis tingObject) { 190 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis tingObject) {
187 v8SetReturnValue(info, info.Holder()); 191 v8SetReturnValue(info, info.Holder());
188 return; 192 return;
189 } 193 }
190 194
191 TestNodeV8Internal::constructor(info); 195 TestNodeV8Internal::constructor(info);
192 } 196 }
193 197
194 static void installV8TestNodeTemplate(v8::Local<v8::FunctionTemplate> functionTe mplate, v8::Isolate* isolate) 198 static void installV8TestNodeTemplate(v8::Local<v8::FunctionTemplate> functionTe mplate, v8::Isolate* isolate)
195 { 199 {
196 functionTemplate->ReadOnlyPrototype(); 200 functionTemplate->ReadOnlyPrototype();
197 201
198 v8::Local<v8::Signature> defaultSignature; 202 v8::Local<v8::Signature> defaultSignature;
199 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func tionTemplate, "TestNode", V8Node::domTemplate(isolate), V8TestNode::internalFiel dCount, 203 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func tionTemplate, "TestNode", V8Node::domTemplate(isolate), V8TestNode::internalFiel dCount,
200 V8TestNodeAttributes, WTF_ARRAY_LENGTH(V8TestNodeAttributes),
201 0, 0, 204 0, 0,
205 V8TestNodeAccessors, WTF_ARRAY_LENGTH(V8TestNodeAccessors),
202 0, 0); 206 0, 0);
203 functionTemplate->SetCallHandler(V8TestNode::constructorCallback); 207 functionTemplate->SetCallHandler(V8TestNode::constructorCallback);
204 functionTemplate->SetLength(0); 208 functionTemplate->SetLength(0);
205 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate(); 209 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate();
206 ALLOW_UNUSED_LOCAL(instanceTemplate); 210 ALLOW_UNUSED_LOCAL(instanceTemplate);
207 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate(); 211 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate();
208 ALLOW_UNUSED_LOCAL(prototypeTemplate); 212 ALLOW_UNUSED_LOCAL(prototypeTemplate);
209 213
210 // Custom toString template 214 // Custom toString template
211 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); 215 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate());
(...skipping 27 matching lines...) Expand all
239 } 243 }
240 244
241 void V8TestNode::derefObject(ScriptWrappable* scriptWrappable) 245 void V8TestNode::derefObject(ScriptWrappable* scriptWrappable)
242 { 246 {
243 #if !ENABLE(OILPAN) 247 #if !ENABLE(OILPAN)
244 scriptWrappable->toImpl<TestNode>()->deref(); 248 scriptWrappable->toImpl<TestNode>()->deref();
245 #endif 249 #endif
246 } 250 }
247 251
248 } // namespace blink 252 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698