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

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

Issue 447523003: Move most DOM attributes to prototype chains Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 51 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
52 impl->setHref(cppValue); 52 impl->setHref(cppValue);
53 } 53 }
54 54
55 static void hrefAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val ue> v8Value, const v8::PropertyCallbackInfo<void>& info) 55 static void hrefAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value >& info)
56 { 56 {
57 v8::Local<v8::Value> v8Value = info[0];
57 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 58 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
58 TestNodeV8Internal::hrefAttributeSetter(v8Value, info); 59 TestNodeV8Internal::hrefAttributeSetter(v8Value, info);
59 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 60 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
60 } 61 }
61 62
62 static void hrefThrowsAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 63 static void hrefThrowsAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
63 { 64 {
64 v8::Local<v8::Object> holder = info.Holder(); 65 v8::Local<v8::Object> holder = info.Holder();
65 TestNode* impl = V8TestNode::toImpl(holder); 66 TestNode* impl = V8TestNode::toImpl(holder);
66 v8SetReturnValueString(info, impl->hrefThrows(), info.GetIsolate()); 67 v8SetReturnValueString(info, impl->hrefThrows(), info.GetIsolate());
67 } 68 }
68 69
69 static void hrefThrowsAttributeGetterCallback(v8::Local<v8::String>, const v8::P ropertyCallbackInfo<v8::Value>& info) 70 static void hrefThrowsAttributeGetterCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
70 { 71 {
71 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 72 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
72 TestNodeV8Internal::hrefThrowsAttributeGetter(info); 73 TestNodeV8Internal::hrefThrowsAttributeGetter(info);
73 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 74 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
74 } 75 }
75 76
76 static void hrefThrowsAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Pr opertyCallbackInfo<void>& info) 77 static void hrefThrowsAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Fu nctionCallbackInfo<v8::Value>& info)
77 { 78 {
78 v8::Local<v8::Object> holder = info.Holder(); 79 v8::Local<v8::Object> holder = info.Holder();
79 ExceptionState exceptionState(ExceptionState::SetterContext, "hrefThrows", " TestNode", holder, info.GetIsolate()); 80 ExceptionState exceptionState(ExceptionState::SetterContext, "hrefThrows", " TestNode", holder, info.GetIsolate());
80 TestNode* impl = V8TestNode::toImpl(holder); 81 TestNode* impl = V8TestNode::toImpl(holder);
81 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 82 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
82 impl->setHrefThrows(cppValue, exceptionState); 83 impl->setHrefThrows(cppValue, exceptionState);
83 exceptionState.throwIfNeeded(); 84 exceptionState.throwIfNeeded();
84 } 85 }
85 86
86 static void hrefThrowsAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 87 static void hrefThrowsAttributeSetterCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
87 { 88 {
89 v8::Local<v8::Value> v8Value = info[0];
88 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 90 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
89 TestNodeV8Internal::hrefThrowsAttributeSetter(v8Value, info); 91 TestNodeV8Internal::hrefThrowsAttributeSetter(v8Value, info);
90 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 92 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
91 } 93 }
92 94
93 static void hrefCallWithAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 95 static void hrefCallWithAttributeGetter(const v8::FunctionCallbackInfo<v8::Value >& info)
94 { 96 {
95 v8::Local<v8::Object> holder = info.Holder(); 97 v8::Local<v8::Object> holder = info.Holder();
96 TestNode* impl = V8TestNode::toImpl(holder); 98 TestNode* impl = V8TestNode::toImpl(holder);
97 v8SetReturnValueString(info, impl->hrefCallWith(), info.GetIsolate()); 99 v8SetReturnValueString(info, impl->hrefCallWith(), info.GetIsolate());
98 } 100 }
99 101
100 static void hrefCallWithAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info) 102 static void hrefCallWithAttributeGetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
101 { 103 {
102 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 104 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
103 TestNodeV8Internal::hrefCallWithAttributeGetter(info); 105 TestNodeV8Internal::hrefCallWithAttributeGetter(info);
104 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 106 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
105 } 107 }
106 108
107 static void hrefCallWithAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 109 static void hrefCallWithAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: FunctionCallbackInfo<v8::Value>& info)
108 { 110 {
109 v8::Local<v8::Object> holder = info.Holder(); 111 v8::Local<v8::Object> holder = info.Holder();
110 TestNode* impl = V8TestNode::toImpl(holder); 112 TestNode* impl = V8TestNode::toImpl(holder);
111 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 113 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
112 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 114 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
113 impl->setHrefCallWith(executionContext, callingDOMWindow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); 115 impl->setHrefCallWith(executionContext, callingDOMWindow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue);
114 } 116 }
115 117
116 static void hrefCallWithAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 118 static void hrefCallWithAttributeSetterCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
117 { 119 {
120 v8::Local<v8::Value> v8Value = info[0];
118 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 121 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
119 TestNodeV8Internal::hrefCallWithAttributeSetter(v8Value, info); 122 TestNodeV8Internal::hrefCallWithAttributeSetter(v8Value, info);
120 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 123 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
121 } 124 }
122 125
123 static void hrefByteStringAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 126 static void hrefByteStringAttributeGetter(const v8::FunctionCallbackInfo<v8::Val ue>& info)
124 { 127 {
125 v8::Local<v8::Object> holder = info.Holder(); 128 v8::Local<v8::Object> holder = info.Holder();
126 TestNode* impl = V8TestNode::toImpl(holder); 129 TestNode* impl = V8TestNode::toImpl(holder);
127 v8SetReturnValueString(info, impl->hrefByteString(), info.GetIsolate()); 130 v8SetReturnValueString(info, impl->hrefByteString(), info.GetIsolate());
128 } 131 }
129 132
130 static void hrefByteStringAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 133 static void hrefByteStringAttributeGetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
131 { 134 {
132 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 135 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
133 TestNodeV8Internal::hrefByteStringAttributeGetter(info); 136 TestNodeV8Internal::hrefByteStringAttributeGetter(info);
134 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 137 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
135 } 138 }
136 139
137 static void hrefByteStringAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 140 static void hrefByteStringAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::FunctionCallbackInfo<v8::Value>& info)
138 { 141 {
139 v8::Local<v8::Object> holder = info.Holder(); 142 v8::Local<v8::Object> holder = info.Holder();
140 ExceptionState exceptionState(ExceptionState::SetterContext, "hrefByteString ", "TestNode", holder, info.GetIsolate()); 143 ExceptionState exceptionState(ExceptionState::SetterContext, "hrefByteString ", "TestNode", holder, info.GetIsolate());
141 TestNode* impl = V8TestNode::toImpl(holder); 144 TestNode* impl = V8TestNode::toImpl(holder);
142 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va lue, exceptionState), exceptionState); 145 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va lue, exceptionState), exceptionState);
143 impl->setHrefByteString(cppValue); 146 impl->setHrefByteString(cppValue);
144 } 147 }
145 148
146 static void hrefByteStringAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 149 static void hrefByteStringAttributeSetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
147 { 150 {
151 v8::Local<v8::Value> v8Value = info[0];
148 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 152 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
149 TestNodeV8Internal::hrefByteStringAttributeSetter(v8Value, info); 153 TestNodeV8Internal::hrefByteStringAttributeSetter(v8Value, info);
150 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 154 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
151 } 155 }
152 156
153 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) 157 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
154 { 158 {
155 RefPtrWillBeRawPtr<TestNode> impl = TestNode::create(); 159 RefPtrWillBeRawPtr<TestNode> impl = TestNode::create();
156 v8::Local<v8::Object> wrapper = info.Holder(); 160 v8::Local<v8::Object> wrapper = info.Holder();
157 impl->associateWithWrapper(info.GetIsolate(), &V8TestNode::wrapperTypeInfo, wrapper); 161 impl->associateWithWrapper(info.GetIsolate(), &V8TestNode::wrapperTypeInfo, wrapper);
158 v8SetReturnValue(info, wrapper); 162 v8SetReturnValue(info, wrapper);
159 } 163 }
160 164
161 } // namespace TestNodeV8Internal 165 } // namespace TestNodeV8Internal
162 166
163 static const V8DOMConfiguration::AttributeConfiguration V8TestNodeAttributes[] = { 167 static const V8DOMConfiguration::AccessorConfiguration V8TestNodeAccessors[] = {
164 {"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}, 168 {"href", TestNodeV8Internal::hrefAttributeGetterCallback, TestNodeV8Internal ::hrefAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU LT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedTo AllScripts},
165 {"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}, 169 {"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},
166 {"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}, 170 {"hrefCallWith", TestNodeV8Internal::hrefCallWithAttributeGetterCallback, Te stNodeV8Internal::hrefCallWithAttributeSetterCallback, 0, 0, 0, static_cast<v8:: AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOM Configuration::ExposedToAllScripts},
167 {"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}, 171 {"hrefByteString", TestNodeV8Internal::hrefByteStringAttributeGetterCallback , TestNodeV8Internal::hrefByteStringAttributeSetterCallback, 0, 0, 0, static_cas t<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts},
168 }; 172 };
169 173
170 void V8TestNode::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 174 void V8TestNode::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
171 { 175 {
172 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); 176 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor");
173 if (!info.IsConstructCall()) { 177 if (!info.IsConstructCall()) {
174 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c onstructorNotCallableAsFunction("TestNode")); 178 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c onstructorNotCallableAsFunction("TestNode"));
175 return; 179 return;
176 } 180 }
177 181
178 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis tingObject) { 182 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis tingObject) {
179 v8SetReturnValue(info, info.Holder()); 183 v8SetReturnValue(info, info.Holder());
180 return; 184 return;
181 } 185 }
182 186
183 TestNodeV8Internal::constructor(info); 187 TestNodeV8Internal::constructor(info);
184 } 188 }
185 189
186 static void installV8TestNodeTemplate(v8::Local<v8::FunctionTemplate> functionTe mplate, v8::Isolate* isolate) 190 static void installV8TestNodeTemplate(v8::Local<v8::FunctionTemplate> functionTe mplate, v8::Isolate* isolate)
187 { 191 {
188 functionTemplate->ReadOnlyPrototype(); 192 functionTemplate->ReadOnlyPrototype();
189 193
190 v8::Local<v8::Signature> defaultSignature; 194 v8::Local<v8::Signature> defaultSignature;
191 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func tionTemplate, "TestNode", V8Node::domTemplate(isolate), V8TestNode::internalFiel dCount, 195 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func tionTemplate, "TestNode", V8Node::domTemplate(isolate), V8TestNode::internalFiel dCount,
192 V8TestNodeAttributes, WTF_ARRAY_LENGTH(V8TestNodeAttributes),
193 0, 0, 196 0, 0,
197 V8TestNodeAccessors, WTF_ARRAY_LENGTH(V8TestNodeAccessors),
194 0, 0); 198 0, 0);
195 functionTemplate->SetCallHandler(V8TestNode::constructorCallback); 199 functionTemplate->SetCallHandler(V8TestNode::constructorCallback);
196 functionTemplate->SetLength(0); 200 functionTemplate->SetLength(0);
197 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate(); 201 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate();
198 ALLOW_UNUSED_LOCAL(instanceTemplate); 202 ALLOW_UNUSED_LOCAL(instanceTemplate);
199 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate(); 203 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate();
200 ALLOW_UNUSED_LOCAL(prototypeTemplate); 204 ALLOW_UNUSED_LOCAL(prototypeTemplate);
201 205
202 // Custom toString template 206 // Custom toString template
203 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); 207 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate());
(...skipping 27 matching lines...) Expand all
231 } 235 }
232 236
233 void V8TestNode::derefObject(ScriptWrappable* scriptWrappable) 237 void V8TestNode::derefObject(ScriptWrappable* scriptWrappable)
234 { 238 {
235 #if !ENABLE(OILPAN) 239 #if !ENABLE(OILPAN)
236 scriptWrappable->toImpl<TestNode>()->deref(); 240 scriptWrappable->toImpl<TestNode>()->deref();
237 #endif 241 #endif
238 } 242 }
239 243
240 } // namespace blink 244 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698