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

Side by Side Diff: Source/bindings/tests/results/V8TestInterface.cpp

Issue 537403002: bindings: Renames from/toInternalPointer, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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 #if ENABLE(CONDITION) 8 #if ENABLE(CONDITION)
9 #include "V8TestInterface.h" 9 #include "V8TestInterface.h"
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // bindings/core/v8/ScriptWrappable.h. 57 // bindings/core/v8/ScriptWrappable.h.
58 const WrapperTypeInfo& TestInterfaceImplementation::s_wrapperTypeInfo = V8TestIn terface::wrapperTypeInfo; 58 const WrapperTypeInfo& TestInterfaceImplementation::s_wrapperTypeInfo = V8TestIn terface::wrapperTypeInfo;
59 59
60 namespace TestInterfaceImplementationV8Internal { 60 namespace TestInterfaceImplementationV8Internal {
61 61
62 template <typename T> void V8_USE(T) { } 62 template <typename T> void V8_USE(T) { }
63 63
64 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 64 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
65 { 65 {
66 v8::Handle<v8::Object> holder = info.Holder(); 66 v8::Handle<v8::Object> holder = info.Holder();
67 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 67 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
68 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl ); 68 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl );
69 } 69 }
70 70
71 static void testInterfaceAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 71 static void testInterfaceAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
72 { 72 {
73 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 73 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
74 TestInterfaceImplementationV8Internal::testInterfaceAttributeAttributeGetter (info); 74 TestInterfaceImplementationV8Internal::testInterfaceAttributeAttributeGetter (info);
75 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 75 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
76 } 76 }
77 77
78 static void testInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 78 static void testInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
79 { 79 {
80 v8::Handle<v8::Object> holder = info.Holder(); 80 v8::Handle<v8::Object> holder = info.Holder();
81 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceA ttribute", "TestInterface", holder, info.GetIsolate()); 81 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceA ttribute", "TestInterface", holder, info.GetIsolate());
82 if (!V8TestInterface::hasInstance(v8Value, info.GetIsolate())) { 82 if (!V8TestInterface::hasInstance(v8Value, info.GetIsolate())) {
83 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'."); 83 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'.");
84 exceptionState.throwIfNeeded(); 84 exceptionState.throwIfNeeded();
85 return; 85 return;
86 } 86 }
87 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 87 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
88 TONATIVE_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toNat iveWithTypeCheck(info.GetIsolate(), v8Value)); 88 TONATIVE_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toImp lWithTypeCheck(info.GetIsolate(), v8Value));
89 impl->setTestInterfaceAttribute(WTF::getPtr(cppValue)); 89 impl->setTestInterfaceAttribute(WTF::getPtr(cppValue));
90 } 90 }
91 91
92 static void testInterfaceAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 92 static void testInterfaceAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
93 { 93 {
94 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 94 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
95 TestInterfaceImplementationV8Internal::testInterfaceAttributeAttributeSetter (v8Value, info); 95 TestInterfaceImplementationV8Internal::testInterfaceAttributeAttributeSetter (v8Value, info);
96 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 96 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
97 } 97 }
98 98
99 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info) 99 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info)
100 { 100 {
101 v8::Handle<v8::Object> holder = info.Holder(); 101 v8::Handle<v8::Object> holder = info.Holder();
102 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 102 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
103 v8SetReturnValue(info, impl->doubleAttribute()); 103 v8SetReturnValue(info, impl->doubleAttribute());
104 } 104 }
105 105
106 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 106 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
107 { 107 {
108 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 108 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
109 TestInterfaceImplementationV8Internal::doubleAttributeAttributeGetter(info); 109 TestInterfaceImplementationV8Internal::doubleAttributeAttributeGetter(info);
110 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 110 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
111 } 111 }
112 112
113 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info) 113 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info)
114 { 114 {
115 v8::Handle<v8::Object> holder = info.Holder(); 115 v8::Handle<v8::Object> holder = info.Holder();
116 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut e", "TestInterface", holder, info.GetIsolate()); 116 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut e", "TestInterface", holder, info.GetIsolate());
117 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 117 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
118 TONATIVE_VOID(double, cppValue, static_cast<double>(v8Value->NumberValue())) ; 118 TONATIVE_VOID(double, cppValue, static_cast<double>(v8Value->NumberValue())) ;
119 if (!std::isfinite(cppValue)) { 119 if (!std::isfinite(cppValue)) {
120 exceptionState.throwTypeError("The provided double value is non-finite." ); 120 exceptionState.throwTypeError("The provided double value is non-finite." );
121 exceptionState.throwIfNeeded(); 121 exceptionState.throwIfNeeded();
122 return; 122 return;
123 } 123 }
124 impl->setDoubleAttribute(cppValue); 124 impl->setDoubleAttribute(cppValue);
125 } 125 }
126 126
127 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 127 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
128 { 128 {
129 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 129 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
130 TestInterfaceImplementationV8Internal::doubleAttributeAttributeSetter(v8Valu e, info); 130 TestInterfaceImplementationV8Internal::doubleAttributeAttributeSetter(v8Valu e, info);
131 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 131 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
132 } 132 }
133 133
134 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 134 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
135 { 135 {
136 v8::Handle<v8::Object> holder = info.Holder(); 136 v8::Handle<v8::Object> holder = info.Holder();
137 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 137 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
138 v8SetReturnValue(info, impl->floatAttribute()); 138 v8SetReturnValue(info, impl->floatAttribute());
139 } 139 }
140 140
141 static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 141 static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info)
142 { 142 {
143 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 143 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
144 TestInterfaceImplementationV8Internal::floatAttributeAttributeGetter(info); 144 TestInterfaceImplementationV8Internal::floatAttributeAttributeGetter(info);
145 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 145 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
146 } 146 }
147 147
148 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 148 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info)
149 { 149 {
150 v8::Handle<v8::Object> holder = info.Holder(); 150 v8::Handle<v8::Object> holder = info.Holder();
151 ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute ", "TestInterface", holder, info.GetIsolate()); 151 ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute ", "TestInterface", holder, info.GetIsolate());
152 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 152 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
153 TONATIVE_VOID(float, cppValue, static_cast<float>(v8Value->NumberValue())); 153 TONATIVE_VOID(float, cppValue, static_cast<float>(v8Value->NumberValue()));
154 if (!std::isfinite(cppValue)) { 154 if (!std::isfinite(cppValue)) {
155 exceptionState.throwTypeError("The provided float value is non-finite.") ; 155 exceptionState.throwTypeError("The provided float value is non-finite.") ;
156 exceptionState.throwIfNeeded(); 156 exceptionState.throwIfNeeded();
157 return; 157 return;
158 } 158 }
159 impl->setFloatAttribute(cppValue); 159 impl->setFloatAttribute(cppValue);
160 } 160 }
161 161
162 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 162 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
163 { 163 {
164 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 164 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
165 TestInterfaceImplementationV8Internal::floatAttributeAttributeSetter(v8Value , info); 165 TestInterfaceImplementationV8Internal::floatAttributeAttributeSetter(v8Value , info);
166 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 166 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
167 } 167 }
168 168
169 static void unrestrictedDoubleAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 169 static void unrestrictedDoubleAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
170 { 170 {
171 v8::Handle<v8::Object> holder = info.Holder(); 171 v8::Handle<v8::Object> holder = info.Holder();
172 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 172 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
173 v8SetReturnValue(info, impl->unrestrictedDoubleAttribute()); 173 v8SetReturnValue(info, impl->unrestrictedDoubleAttribute());
174 } 174 }
175 175
176 static void unrestrictedDoubleAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 176 static void unrestrictedDoubleAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info)
177 { 177 {
178 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 178 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
179 TestInterfaceImplementationV8Internal::unrestrictedDoubleAttributeAttributeG etter(info); 179 TestInterfaceImplementationV8Internal::unrestrictedDoubleAttributeAttributeG etter(info);
180 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 180 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
181 } 181 }
182 182
183 static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 183 static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
184 { 184 {
185 v8::Handle<v8::Object> holder = info.Holder(); 185 v8::Handle<v8::Object> holder = info.Holder();
186 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 186 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
187 TONATIVE_VOID(double, cppValue, static_cast<double>(v8Value->NumberValue())) ; 187 TONATIVE_VOID(double, cppValue, static_cast<double>(v8Value->NumberValue())) ;
188 impl->setUnrestrictedDoubleAttribute(cppValue); 188 impl->setUnrestrictedDoubleAttribute(cppValue);
189 } 189 }
190 190
191 static void unrestrictedDoubleAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 191 static void unrestrictedDoubleAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
192 { 192 {
193 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 193 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
194 TestInterfaceImplementationV8Internal::unrestrictedDoubleAttributeAttributeS etter(v8Value, info); 194 TestInterfaceImplementationV8Internal::unrestrictedDoubleAttributeAttributeS etter(v8Value, info);
195 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 195 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
196 } 196 }
197 197
198 static void unrestrictedFloatAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info) 198 static void unrestrictedFloatAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info)
199 { 199 {
200 v8::Handle<v8::Object> holder = info.Holder(); 200 v8::Handle<v8::Object> holder = info.Holder();
201 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 201 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
202 v8SetReturnValue(info, impl->unrestrictedFloatAttribute()); 202 v8SetReturnValue(info, impl->unrestrictedFloatAttribute());
203 } 203 }
204 204
205 static void unrestrictedFloatAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info) 205 static void unrestrictedFloatAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info)
206 { 206 {
207 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 207 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
208 TestInterfaceImplementationV8Internal::unrestrictedFloatAttributeAttributeGe tter(info); 208 TestInterfaceImplementationV8Internal::unrestrictedFloatAttributeAttributeGe tter(info);
209 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 209 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
210 } 210 }
211 211
212 static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info) 212 static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info)
213 { 213 {
214 v8::Handle<v8::Object> holder = info.Holder(); 214 v8::Handle<v8::Object> holder = info.Holder();
215 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 215 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
216 TONATIVE_VOID(float, cppValue, static_cast<float>(v8Value->NumberValue())); 216 TONATIVE_VOID(float, cppValue, static_cast<float>(v8Value->NumberValue()));
217 impl->setUnrestrictedFloatAttribute(cppValue); 217 impl->setUnrestrictedFloatAttribute(cppValue);
218 } 218 }
219 219
220 static void unrestrictedFloatAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 220 static void unrestrictedFloatAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
221 { 221 {
222 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 222 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
223 TestInterfaceImplementationV8Internal::unrestrictedFloatAttributeAttributeSe tter(v8Value, info); 223 TestInterfaceImplementationV8Internal::unrestrictedFloatAttributeAttributeSe tter(v8Value, info);
224 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 224 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
225 } 225 }
(...skipping 19 matching lines...) Expand all
245 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 245 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
246 { 246 {
247 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 247 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
248 TestInterfaceImplementationV8Internal::staticStringAttributeAttributeSetter( v8Value, info); 248 TestInterfaceImplementationV8Internal::staticStringAttributeAttributeSetter( v8Value, info);
249 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 249 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
250 } 250 }
251 251
252 static void alwaysExposedAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 252 static void alwaysExposedAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
253 { 253 {
254 v8::Handle<v8::Object> holder = info.Holder(); 254 v8::Handle<v8::Object> holder = info.Holder();
255 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 255 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
256 v8SetReturnValueInt(info, impl->alwaysExposedAttribute()); 256 v8SetReturnValueInt(info, impl->alwaysExposedAttribute());
257 } 257 }
258 258
259 static void alwaysExposedAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 259 static void alwaysExposedAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
260 { 260 {
261 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 261 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
262 TestInterfaceImplementationV8Internal::alwaysExposedAttributeAttributeGetter (info); 262 TestInterfaceImplementationV8Internal::alwaysExposedAttributeAttributeGetter (info);
263 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 263 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
264 } 264 }
265 265
266 static void alwaysExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 266 static void alwaysExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
267 { 267 {
268 v8::Handle<v8::Object> holder = info.Holder(); 268 v8::Handle<v8::Object> holder = info.Holder();
269 ExceptionState exceptionState(ExceptionState::SetterContext, "alwaysExposedA ttribute", "TestInterface", holder, info.GetIsolate()); 269 ExceptionState exceptionState(ExceptionState::SetterContext, "alwaysExposedA ttribute", "TestInterface", holder, info.GetIsolate());
270 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 270 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
271 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 271 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
272 impl->setAlwaysExposedAttribute(cppValue); 272 impl->setAlwaysExposedAttribute(cppValue);
273 } 273 }
274 274
275 static void alwaysExposedAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 275 static void alwaysExposedAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
276 { 276 {
277 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 277 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
278 TestInterfaceImplementationV8Internal::alwaysExposedAttributeAttributeSetter (v8Value, info); 278 TestInterfaceImplementationV8Internal::alwaysExposedAttributeAttributeSetter (v8Value, info);
279 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 279 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
280 } 280 }
281 281
282 static void workerExposedAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 282 static void workerExposedAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
283 { 283 {
284 v8::Handle<v8::Object> holder = info.Holder(); 284 v8::Handle<v8::Object> holder = info.Holder();
285 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 285 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
286 v8SetReturnValueInt(info, impl->workerExposedAttribute()); 286 v8SetReturnValueInt(info, impl->workerExposedAttribute());
287 } 287 }
288 288
289 static void workerExposedAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 289 static void workerExposedAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
290 { 290 {
291 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 291 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
292 TestInterfaceImplementationV8Internal::workerExposedAttributeAttributeGetter (info); 292 TestInterfaceImplementationV8Internal::workerExposedAttributeAttributeGetter (info);
293 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 293 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
294 } 294 }
295 295
296 static void workerExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 296 static void workerExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
297 { 297 {
298 v8::Handle<v8::Object> holder = info.Holder(); 298 v8::Handle<v8::Object> holder = info.Holder();
299 ExceptionState exceptionState(ExceptionState::SetterContext, "workerExposedA ttribute", "TestInterface", holder, info.GetIsolate()); 299 ExceptionState exceptionState(ExceptionState::SetterContext, "workerExposedA ttribute", "TestInterface", holder, info.GetIsolate());
300 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 300 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
301 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 301 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
302 impl->setWorkerExposedAttribute(cppValue); 302 impl->setWorkerExposedAttribute(cppValue);
303 } 303 }
304 304
305 static void workerExposedAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 305 static void workerExposedAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
306 { 306 {
307 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 307 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
308 TestInterfaceImplementationV8Internal::workerExposedAttributeAttributeSetter (v8Value, info); 308 TestInterfaceImplementationV8Internal::workerExposedAttributeAttributeSetter (v8Value, info);
309 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 309 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
310 } 310 }
311 311
312 static void windowExposedAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 312 static void windowExposedAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
313 { 313 {
314 v8::Handle<v8::Object> holder = info.Holder(); 314 v8::Handle<v8::Object> holder = info.Holder();
315 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 315 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
316 v8SetReturnValueInt(info, impl->windowExposedAttribute()); 316 v8SetReturnValueInt(info, impl->windowExposedAttribute());
317 } 317 }
318 318
319 static void windowExposedAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 319 static void windowExposedAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
320 { 320 {
321 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 321 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
322 TestInterfaceImplementationV8Internal::windowExposedAttributeAttributeGetter (info); 322 TestInterfaceImplementationV8Internal::windowExposedAttributeAttributeGetter (info);
323 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 323 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
324 } 324 }
325 325
326 static void windowExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 326 static void windowExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
327 { 327 {
328 v8::Handle<v8::Object> holder = info.Holder(); 328 v8::Handle<v8::Object> holder = info.Holder();
329 ExceptionState exceptionState(ExceptionState::SetterContext, "windowExposedA ttribute", "TestInterface", holder, info.GetIsolate()); 329 ExceptionState exceptionState(ExceptionState::SetterContext, "windowExposedA ttribute", "TestInterface", holder, info.GetIsolate());
330 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 330 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
331 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 331 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
332 impl->setWindowExposedAttribute(cppValue); 332 impl->setWindowExposedAttribute(cppValue);
333 } 333 }
334 334
335 static void windowExposedAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 335 static void windowExposedAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
336 { 336 {
337 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 337 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
338 TestInterfaceImplementationV8Internal::windowExposedAttributeAttributeSetter (v8Value, info); 338 TestInterfaceImplementationV8Internal::windowExposedAttributeAttributeSetter (v8Value, info);
339 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 339 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
340 } 340 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 static void implementsStaticStringAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 372 static void implementsStaticStringAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
373 { 373 {
374 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 374 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
375 TestInterfaceImplementationV8Internal::implementsStaticStringAttributeAttrib uteSetter(v8Value, info); 375 TestInterfaceImplementationV8Internal::implementsStaticStringAttributeAttrib uteSetter(v8Value, info);
376 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 376 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
377 } 377 }
378 378
379 static void implementsReadonlyStringAttributeAttributeGetter(const v8::PropertyC allbackInfo<v8::Value>& info) 379 static void implementsReadonlyStringAttributeAttributeGetter(const v8::PropertyC allbackInfo<v8::Value>& info)
380 { 380 {
381 v8::Handle<v8::Object> holder = info.Holder(); 381 v8::Handle<v8::Object> holder = info.Holder();
382 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 382 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
383 v8SetReturnValueString(info, impl->implementsReadonlyStringAttribute(), info .GetIsolate()); 383 v8SetReturnValueString(info, impl->implementsReadonlyStringAttribute(), info .GetIsolate());
384 } 384 }
385 385
386 static void implementsReadonlyStringAttributeAttributeGetterCallback(v8::Local<v 8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 386 static void implementsReadonlyStringAttributeAttributeGetterCallback(v8::Local<v 8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
387 { 387 {
388 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 388 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
389 TestInterfaceImplementationV8Internal::implementsReadonlyStringAttributeAttr ibuteGetter(info); 389 TestInterfaceImplementationV8Internal::implementsReadonlyStringAttributeAttr ibuteGetter(info);
390 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 390 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
391 } 391 }
392 392
393 static void implementsStringAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 393 static void implementsStringAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
394 { 394 {
395 v8::Handle<v8::Object> holder = info.Holder(); 395 v8::Handle<v8::Object> holder = info.Holder();
396 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 396 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
397 v8SetReturnValueString(info, impl->implementsStringAttribute(), info.GetIsol ate()); 397 v8SetReturnValueString(info, impl->implementsStringAttribute(), info.GetIsol ate());
398 } 398 }
399 399
400 static void implementsStringAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 400 static void implementsStringAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
401 { 401 {
402 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 402 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
403 TestInterfaceImplementationV8Internal::implementsStringAttributeAttributeGet ter(info); 403 TestInterfaceImplementationV8Internal::implementsStringAttributeAttributeGet ter(info);
404 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 404 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
405 } 405 }
406 406
407 static void implementsStringAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 407 static void implementsStringAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
408 { 408 {
409 v8::Handle<v8::Object> holder = info.Holder(); 409 v8::Handle<v8::Object> holder = info.Holder();
410 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 410 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
411 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 411 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
412 impl->setImplementsStringAttribute(cppValue); 412 impl->setImplementsStringAttribute(cppValue);
413 } 413 }
414 414
415 static void implementsStringAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 415 static void implementsStringAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
416 { 416 {
417 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 417 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
418 TestInterfaceImplementationV8Internal::implementsStringAttributeAttributeSet ter(v8Value, info); 418 TestInterfaceImplementationV8Internal::implementsStringAttributeAttributeSet ter(v8Value, info);
419 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 419 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
420 } 420 }
421 421
422 static void implementsNodeAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 422 static void implementsNodeAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
423 { 423 {
424 v8::Handle<v8::Object> holder = info.Holder(); 424 v8::Handle<v8::Object> holder = info.Holder();
425 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 425 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
426 v8SetReturnValueFast(info, WTF::getPtr(impl->implementsNodeAttribute()), imp l); 426 v8SetReturnValueFast(info, WTF::getPtr(impl->implementsNodeAttribute()), imp l);
427 } 427 }
428 428
429 static void implementsNodeAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 429 static void implementsNodeAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info)
430 { 430 {
431 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 431 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
432 TestInterfaceImplementationV8Internal::implementsNodeAttributeAttributeGette r(info); 432 TestInterfaceImplementationV8Internal::implementsNodeAttributeAttributeGette r(info);
433 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 433 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
434 } 434 }
435 435
436 static void implementsNodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 436 static void implementsNodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
437 { 437 {
438 v8::Handle<v8::Object> holder = info.Holder(); 438 v8::Handle<v8::Object> holder = info.Holder();
439 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsNode Attribute", "TestInterface", holder, info.GetIsolate()); 439 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsNode Attribute", "TestInterface", holder, info.GetIsolate());
440 if (!V8Node::hasInstance(v8Value, info.GetIsolate())) { 440 if (!V8Node::hasInstance(v8Value, info.GetIsolate())) {
441 exceptionState.throwTypeError("The provided value is not of type 'Node'. "); 441 exceptionState.throwTypeError("The provided value is not of type 'Node'. ");
442 exceptionState.throwIfNeeded(); 442 exceptionState.throwIfNeeded();
443 return; 443 return;
444 } 444 }
445 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 445 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
446 TONATIVE_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsolate (), v8Value)); 446 TONATIVE_VOID(Node*, cppValue, V8Node::toImplWithTypeCheck(info.GetIsolate() , v8Value));
447 impl->setImplementsNodeAttribute(WTF::getPtr(cppValue)); 447 impl->setImplementsNodeAttribute(WTF::getPtr(cppValue));
448 } 448 }
449 449
450 static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 450 static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
451 { 451 {
452 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 452 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
453 TestInterfaceImplementationV8Internal::implementsNodeAttributeAttributeSette r(v8Value, info); 453 TestInterfaceImplementationV8Internal::implementsNodeAttributeAttributeSette r(v8Value, info);
454 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 454 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
455 } 455 }
456 456
457 static void implementsEventHandlerAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info) 457 static void implementsEventHandlerAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info)
458 { 458 {
459 v8::Handle<v8::Object> holder = info.Holder(); 459 v8::Handle<v8::Object> holder = info.Holder();
460 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 460 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
461 EventListener* cppValue(impl->implementsEventHandlerAttribute()); 461 EventListener* cppValue(impl->implementsEventHandlerAttribute());
462 v8SetReturnValue(info, cppValue ? v8::Handle<v8::Value>(V8AbstractEventListe ner::cast(cppValue)->getListenerObject(impl->executionContext())) : v8::Handle<v 8::Value>(v8::Null(info.GetIsolate()))); 462 v8SetReturnValue(info, cppValue ? v8::Handle<v8::Value>(V8AbstractEventListe ner::cast(cppValue)->getListenerObject(impl->executionContext())) : v8::Handle<v 8::Value>(v8::Null(info.GetIsolate())));
463 } 463 }
464 464
465 static void implementsEventHandlerAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info) 465 static void implementsEventHandlerAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info)
466 { 466 {
467 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 467 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
468 TestInterfaceImplementationV8Internal::implementsEventHandlerAttributeAttrib uteGetter(info); 468 TestInterfaceImplementationV8Internal::implementsEventHandlerAttributeAttrib uteGetter(info);
469 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 469 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
470 } 470 }
471 471
472 static void implementsEventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 472 static void implementsEventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
473 { 473 {
474 v8::Handle<v8::Object> holder = info.Holder(); 474 v8::Handle<v8::Object> holder = info.Holder();
475 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 475 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
476 moveEventListenerToNewWrapper(holder, impl->implementsEventHandlerAttribute( ), v8Value, V8TestInterface::eventListenerCacheIndex, info.GetIsolate()); 476 moveEventListenerToNewWrapper(holder, impl->implementsEventHandlerAttribute( ), v8Value, V8TestInterface::eventListenerCacheIndex, info.GetIsolate());
477 impl->setImplementsEventHandlerAttribute(V8EventListenerList::getEventListen er(ScriptState::current(info.GetIsolate()), v8Value, true, ListenerFindOrCreate) ); 477 impl->setImplementsEventHandlerAttribute(V8EventListenerList::getEventListen er(ScriptState::current(info.GetIsolate()), v8Value, true, ListenerFindOrCreate) );
478 } 478 }
479 479
480 static void implementsEventHandlerAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 480 static void implementsEventHandlerAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
481 { 481 {
482 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 482 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
483 TestInterfaceImplementationV8Internal::implementsEventHandlerAttributeAttrib uteSetter(v8Value, info); 483 TestInterfaceImplementationV8Internal::implementsEventHandlerAttributeAttrib uteSetter(v8Value, info);
484 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 484 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
485 } 485 }
486 486
487 static void implementsRuntimeEnabledNodeAttributeAttributeGetter(const v8::Prope rtyCallbackInfo<v8::Value>& info) 487 static void implementsRuntimeEnabledNodeAttributeAttributeGetter(const v8::Prope rtyCallbackInfo<v8::Value>& info)
488 { 488 {
489 v8::Handle<v8::Object> holder = info.Holder(); 489 v8::Handle<v8::Object> holder = info.Holder();
490 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 490 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
491 v8SetReturnValueFast(info, WTF::getPtr(impl->implementsRuntimeEnabledNodeAtt ribute()), impl); 491 v8SetReturnValueFast(info, WTF::getPtr(impl->implementsRuntimeEnabledNodeAtt ribute()), impl);
492 } 492 }
493 493
494 static void implementsRuntimeEnabledNodeAttributeAttributeGetterCallback(v8::Loc al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 494 static void implementsRuntimeEnabledNodeAttributeAttributeGetterCallback(v8::Loc al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
495 { 495 {
496 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 496 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
497 TestInterfaceImplementationV8Internal::implementsRuntimeEnabledNodeAttribute AttributeGetter(info); 497 TestInterfaceImplementationV8Internal::implementsRuntimeEnabledNodeAttribute AttributeGetter(info);
498 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 498 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
499 } 499 }
500 500
501 static void implementsRuntimeEnabledNodeAttributeAttributeSetter(v8::Local<v8::V alue> v8Value, const v8::PropertyCallbackInfo<void>& info) 501 static void implementsRuntimeEnabledNodeAttributeAttributeSetter(v8::Local<v8::V alue> v8Value, const v8::PropertyCallbackInfo<void>& info)
502 { 502 {
503 v8::Handle<v8::Object> holder = info.Holder(); 503 v8::Handle<v8::Object> holder = info.Holder();
504 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsRunt imeEnabledNodeAttribute", "TestInterface", holder, info.GetIsolate()); 504 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsRunt imeEnabledNodeAttribute", "TestInterface", holder, info.GetIsolate());
505 if (!V8Node::hasInstance(v8Value, info.GetIsolate())) { 505 if (!V8Node::hasInstance(v8Value, info.GetIsolate())) {
506 exceptionState.throwTypeError("The provided value is not of type 'Node'. "); 506 exceptionState.throwTypeError("The provided value is not of type 'Node'. ");
507 exceptionState.throwIfNeeded(); 507 exceptionState.throwIfNeeded();
508 return; 508 return;
509 } 509 }
510 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 510 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
511 TONATIVE_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsolate (), v8Value)); 511 TONATIVE_VOID(Node*, cppValue, V8Node::toImplWithTypeCheck(info.GetIsolate() , v8Value));
512 impl->setImplementsRuntimeEnabledNodeAttribute(WTF::getPtr(cppValue)); 512 impl->setImplementsRuntimeEnabledNodeAttribute(WTF::getPtr(cppValue));
513 } 513 }
514 514
515 static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(v8::Loc al<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<voi d>& info) 515 static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(v8::Loc al<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<voi d>& info)
516 { 516 {
517 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 517 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
518 TestInterfaceImplementationV8Internal::implementsRuntimeEnabledNodeAttribute AttributeSetter(v8Value, info); 518 TestInterfaceImplementationV8Internal::implementsRuntimeEnabledNodeAttribute AttributeSetter(v8Value, info);
519 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 519 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
520 } 520 }
521 521
522 static void implementsPerContextEnabledNodeAttributeAttributeGetter(const v8::Pr opertyCallbackInfo<v8::Value>& info) 522 static void implementsPerContextEnabledNodeAttributeAttributeGetter(const v8::Pr opertyCallbackInfo<v8::Value>& info)
523 { 523 {
524 v8::Handle<v8::Object> holder = info.Holder(); 524 v8::Handle<v8::Object> holder = info.Holder();
525 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 525 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
526 v8SetReturnValueFast(info, WTF::getPtr(impl->implementsPerContextEnabledNode Attribute()), impl); 526 v8SetReturnValueFast(info, WTF::getPtr(impl->implementsPerContextEnabledNode Attribute()), impl);
527 } 527 }
528 528
529 static void implementsPerContextEnabledNodeAttributeAttributeGetterCallback(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 529 static void implementsPerContextEnabledNodeAttributeAttributeGetterCallback(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
530 { 530 {
531 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 531 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
532 TestInterfaceImplementationV8Internal::implementsPerContextEnabledNodeAttrib uteAttributeGetter(info); 532 TestInterfaceImplementationV8Internal::implementsPerContextEnabledNodeAttrib uteAttributeGetter(info);
533 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 533 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
534 } 534 }
535 535
536 static void implementsPerContextEnabledNodeAttributeAttributeSetter(v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 536 static void implementsPerContextEnabledNodeAttributeAttributeSetter(v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
537 { 537 {
538 v8::Handle<v8::Object> holder = info.Holder(); 538 v8::Handle<v8::Object> holder = info.Holder();
539 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsPerC ontextEnabledNodeAttribute", "TestInterface", holder, info.GetIsolate()); 539 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsPerC ontextEnabledNodeAttribute", "TestInterface", holder, info.GetIsolate());
540 if (!V8Node::hasInstance(v8Value, info.GetIsolate())) { 540 if (!V8Node::hasInstance(v8Value, info.GetIsolate())) {
541 exceptionState.throwTypeError("The provided value is not of type 'Node'. "); 541 exceptionState.throwTypeError("The provided value is not of type 'Node'. ");
542 exceptionState.throwIfNeeded(); 542 exceptionState.throwIfNeeded();
543 return; 543 return;
544 } 544 }
545 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 545 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
546 TONATIVE_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsolate (), v8Value)); 546 TONATIVE_VOID(Node*, cppValue, V8Node::toImplWithTypeCheck(info.GetIsolate() , v8Value));
547 impl->setImplementsPerContextEnabledNodeAttribute(WTF::getPtr(cppValue)); 547 impl->setImplementsPerContextEnabledNodeAttribute(WTF::getPtr(cppValue));
548 } 548 }
549 549
550 static void implementsPerContextEnabledNodeAttributeAttributeSetterCallback(v8:: Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo< void>& info) 550 static void implementsPerContextEnabledNodeAttributeAttributeSetterCallback(v8:: Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo< void>& info)
551 { 551 {
552 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 552 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
553 TestInterfaceImplementationV8Internal::implementsPerContextEnabledNodeAttrib uteAttributeSetter(v8Value, info); 553 TestInterfaceImplementationV8Internal::implementsPerContextEnabledNodeAttrib uteAttributeSetter(v8Value, info);
554 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 554 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
555 } 555 }
556 556
(...skipping 18 matching lines...) Expand all
575 static void implements2StaticStringAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo) 575 static void implements2StaticStringAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo)
576 { 576 {
577 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 577 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
578 TestInterfaceImplementationV8Internal::implements2StaticStringAttributeAttri buteSetter(v8Value, info); 578 TestInterfaceImplementationV8Internal::implements2StaticStringAttributeAttri buteSetter(v8Value, info);
579 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 579 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
580 } 580 }
581 581
582 static void implements2StringAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info) 582 static void implements2StringAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info)
583 { 583 {
584 v8::Handle<v8::Object> holder = info.Holder(); 584 v8::Handle<v8::Object> holder = info.Holder();
585 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 585 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
586 v8SetReturnValueString(info, TestImplements2::implements2StringAttribute(*im pl), info.GetIsolate()); 586 v8SetReturnValueString(info, TestImplements2::implements2StringAttribute(*im pl), info.GetIsolate());
587 } 587 }
588 588
589 static void implements2StringAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info) 589 static void implements2StringAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info)
590 { 590 {
591 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 591 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
592 TestInterfaceImplementationV8Internal::implements2StringAttributeAttributeGe tter(info); 592 TestInterfaceImplementationV8Internal::implements2StringAttributeAttributeGe tter(info);
593 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 593 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
594 } 594 }
595 595
596 static void implements2StringAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info) 596 static void implements2StringAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info)
597 { 597 {
598 v8::Handle<v8::Object> holder = info.Holder(); 598 v8::Handle<v8::Object> holder = info.Holder();
599 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 599 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
600 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 600 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
601 TestImplements2::setImplements2StringAttribute(*impl, cppValue); 601 TestImplements2::setImplements2StringAttribute(*impl, cppValue);
602 } 602 }
603 603
604 static void implements2StringAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 604 static void implements2StringAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
605 { 605 {
606 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 606 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
607 TestInterfaceImplementationV8Internal::implements2StringAttributeAttributeSe tter(v8Value, info); 607 TestInterfaceImplementationV8Internal::implements2StringAttributeAttributeSe tter(v8Value, info);
608 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 608 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
609 } 609 }
610 610
611 static void implements3StringAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info) 611 static void implements3StringAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info)
612 { 612 {
613 v8::Handle<v8::Object> holder = info.Holder(); 613 v8::Handle<v8::Object> holder = info.Holder();
614 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 614 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
615 v8SetReturnValueString(info, TestImplements3Implementation::implements3Strin gAttribute(*impl), info.GetIsolate()); 615 v8SetReturnValueString(info, TestImplements3Implementation::implements3Strin gAttribute(*impl), info.GetIsolate());
616 } 616 }
617 617
618 static void implements3StringAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info) 618 static void implements3StringAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info)
619 { 619 {
620 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 620 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
621 TestInterfaceImplementationV8Internal::implements3StringAttributeAttributeGe tter(info); 621 TestInterfaceImplementationV8Internal::implements3StringAttributeAttributeGe tter(info);
622 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 622 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
623 } 623 }
624 624
625 static void implements3StringAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info) 625 static void implements3StringAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info)
626 { 626 {
627 v8::Handle<v8::Object> holder = info.Holder(); 627 v8::Handle<v8::Object> holder = info.Holder();
628 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 628 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
629 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 629 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
630 TestImplements3Implementation::setImplements3StringAttribute(*impl, cppValue ); 630 TestImplements3Implementation::setImplements3StringAttribute(*impl, cppValue );
631 } 631 }
632 632
633 static void implements3StringAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 633 static void implements3StringAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
634 { 634 {
635 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 635 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
636 TestInterfaceImplementationV8Internal::implements3StringAttributeAttributeSe tter(v8Value, info); 636 TestInterfaceImplementationV8Internal::implements3StringAttributeAttributeSe tter(v8Value, info);
637 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 637 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
638 } 638 }
(...skipping 20 matching lines...) Expand all
659 { 659 {
660 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 660 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
661 TestInterfaceImplementationV8Internal::implements3StaticStringAttributeAttri buteSetter(v8Value, info); 661 TestInterfaceImplementationV8Internal::implements3StaticStringAttributeAttri buteSetter(v8Value, info);
662 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 662 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
663 } 663 }
664 664
665 #if ENABLE(PARTIAL_CONDITION) 665 #if ENABLE(PARTIAL_CONDITION)
666 static void partialLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 666 static void partialLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
667 { 667 {
668 v8::Handle<v8::Object> holder = info.Holder(); 668 v8::Handle<v8::Object> holder = info.Holder();
669 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 669 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
670 v8SetReturnValueInt(info, TestPartialInterface::partialLongAttribute(*impl)) ; 670 v8SetReturnValueInt(info, TestPartialInterface::partialLongAttribute(*impl)) ;
671 } 671 }
672 #endif // ENABLE(PARTIAL_CONDITION) 672 #endif // ENABLE(PARTIAL_CONDITION)
673 673
674 #if ENABLE(PARTIAL_CONDITION) 674 #if ENABLE(PARTIAL_CONDITION)
675 static void partialLongAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 675 static void partialLongAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
676 { 676 {
677 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 677 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
678 TestInterfaceImplementationV8Internal::partialLongAttributeAttributeGetter(i nfo); 678 TestInterfaceImplementationV8Internal::partialLongAttributeAttributeGetter(i nfo);
679 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 679 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
680 } 680 }
681 #endif // ENABLE(PARTIAL_CONDITION) 681 #endif // ENABLE(PARTIAL_CONDITION)
682 682
683 #if ENABLE(PARTIAL_CONDITION) 683 #if ENABLE(PARTIAL_CONDITION)
684 static void partialLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 684 static void partialLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
685 { 685 {
686 v8::Handle<v8::Object> holder = info.Holder(); 686 v8::Handle<v8::Object> holder = info.Holder();
687 ExceptionState exceptionState(ExceptionState::SetterContext, "partialLongAtt ribute", "TestInterface", holder, info.GetIsolate()); 687 ExceptionState exceptionState(ExceptionState::SetterContext, "partialLongAtt ribute", "TestInterface", holder, info.GetIsolate());
688 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 688 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
689 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 689 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
690 TestPartialInterface::setPartialLongAttribute(*impl, cppValue); 690 TestPartialInterface::setPartialLongAttribute(*impl, cppValue);
691 } 691 }
692 #endif // ENABLE(PARTIAL_CONDITION) 692 #endif // ENABLE(PARTIAL_CONDITION)
693 693
694 #if ENABLE(PARTIAL_CONDITION) 694 #if ENABLE(PARTIAL_CONDITION)
695 static void partialLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 695 static void partialLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
696 { 696 {
697 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 697 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
698 TestInterfaceImplementationV8Internal::partialLongAttributeAttributeSetter(v 8Value, info); 698 TestInterfaceImplementationV8Internal::partialLongAttributeAttributeSetter(v 8Value, info);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 731 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
732 TestInterfaceImplementationV8Internal::partialStaticLongAttributeAttributeSe tter(v8Value, info); 732 TestInterfaceImplementationV8Internal::partialStaticLongAttributeAttributeSe tter(v8Value, info);
733 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 733 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
734 } 734 }
735 #endif // ENABLE(PARTIAL_CONDITION) 735 #endif // ENABLE(PARTIAL_CONDITION)
736 736
737 #if ENABLE(PARTIAL_CONDITION) 737 #if ENABLE(PARTIAL_CONDITION)
738 static void partialCallWithExecutionContextLongAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info) 738 static void partialCallWithExecutionContextLongAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info)
739 { 739 {
740 v8::Handle<v8::Object> holder = info.Holder(); 740 v8::Handle<v8::Object> holder = info.Holder();
741 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 741 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
742 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 742 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
743 v8SetReturnValueInt(info, TestPartialInterface::partialCallWithExecutionCont extLongAttribute(executionContext, *impl)); 743 v8SetReturnValueInt(info, TestPartialInterface::partialCallWithExecutionCont extLongAttribute(executionContext, *impl));
744 } 744 }
745 #endif // ENABLE(PARTIAL_CONDITION) 745 #endif // ENABLE(PARTIAL_CONDITION)
746 746
747 #if ENABLE(PARTIAL_CONDITION) 747 #if ENABLE(PARTIAL_CONDITION)
748 static void partialCallWithExecutionContextLongAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 748 static void partialCallWithExecutionContextLongAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
749 { 749 {
750 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 750 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
751 TestInterfaceImplementationV8Internal::partialCallWithExecutionContextLongAt tributeAttributeGetter(info); 751 TestInterfaceImplementationV8Internal::partialCallWithExecutionContextLongAt tributeAttributeGetter(info);
752 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 752 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
753 } 753 }
754 #endif // ENABLE(PARTIAL_CONDITION) 754 #endif // ENABLE(PARTIAL_CONDITION)
755 755
756 #if ENABLE(PARTIAL_CONDITION) 756 #if ENABLE(PARTIAL_CONDITION)
757 static void partialCallWithExecutionContextLongAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 757 static void partialCallWithExecutionContextLongAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
758 { 758 {
759 v8::Handle<v8::Object> holder = info.Holder(); 759 v8::Handle<v8::Object> holder = info.Holder();
760 ExceptionState exceptionState(ExceptionState::SetterContext, "partialCallWit hExecutionContextLongAttribute", "TestInterface", holder, info.GetIsolate()); 760 ExceptionState exceptionState(ExceptionState::SetterContext, "partialCallWit hExecutionContextLongAttribute", "TestInterface", holder, info.GetIsolate());
761 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 761 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
762 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 762 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
763 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 763 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
764 TestPartialInterface::setPartialCallWithExecutionContextLongAttribute(execut ionContext, *impl, cppValue); 764 TestPartialInterface::setPartialCallWithExecutionContextLongAttribute(execut ionContext, *impl, cppValue);
765 } 765 }
766 #endif // ENABLE(PARTIAL_CONDITION) 766 #endif // ENABLE(PARTIAL_CONDITION)
767 767
768 #if ENABLE(PARTIAL_CONDITION) 768 #if ENABLE(PARTIAL_CONDITION)
769 static void partialCallWithExecutionContextLongAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info) 769 static void partialCallWithExecutionContextLongAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info)
770 { 770 {
771 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 771 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
772 TestInterfaceImplementationV8Internal::partialCallWithExecutionContextLongAt tributeAttributeSetter(v8Value, info); 772 TestInterfaceImplementationV8Internal::partialCallWithExecutionContextLongAt tributeAttributeSetter(v8Value, info);
773 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 773 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
774 } 774 }
775 #endif // ENABLE(PARTIAL_CONDITION) 775 #endif // ENABLE(PARTIAL_CONDITION)
776 776
777 #if ENABLE(PARTIAL_CONDITION) 777 #if ENABLE(PARTIAL_CONDITION)
778 static void partialPartialEnumTypeAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info) 778 static void partialPartialEnumTypeAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info)
779 { 779 {
780 v8::Handle<v8::Object> holder = info.Holder(); 780 v8::Handle<v8::Object> holder = info.Holder();
781 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 781 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
782 v8SetReturnValueString(info, TestPartialInterface::partialPartialEnumTypeAtt ribute(*impl), info.GetIsolate()); 782 v8SetReturnValueString(info, TestPartialInterface::partialPartialEnumTypeAtt ribute(*impl), info.GetIsolate());
783 } 783 }
784 #endif // ENABLE(PARTIAL_CONDITION) 784 #endif // ENABLE(PARTIAL_CONDITION)
785 785
786 #if ENABLE(PARTIAL_CONDITION) 786 #if ENABLE(PARTIAL_CONDITION)
787 static void partialPartialEnumTypeAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info) 787 static void partialPartialEnumTypeAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info)
788 { 788 {
789 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 789 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
790 TestInterfaceImplementationV8Internal::partialPartialEnumTypeAttributeAttrib uteGetter(info); 790 TestInterfaceImplementationV8Internal::partialPartialEnumTypeAttributeAttrib uteGetter(info);
791 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 791 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
792 } 792 }
793 #endif // ENABLE(PARTIAL_CONDITION) 793 #endif // ENABLE(PARTIAL_CONDITION)
794 794
795 #if ENABLE(PARTIAL_CONDITION) 795 #if ENABLE(PARTIAL_CONDITION)
796 static void partialPartialEnumTypeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 796 static void partialPartialEnumTypeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
797 { 797 {
798 v8::Handle<v8::Object> holder = info.Holder(); 798 v8::Handle<v8::Object> holder = info.Holder();
799 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 799 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
800 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 800 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
801 String string = cppValue; 801 String string = cppValue;
802 if (!(string == "foo" || string == "bar")) 802 if (!(string == "foo" || string == "bar"))
803 return; 803 return;
804 TestPartialInterface::setPartialPartialEnumTypeAttribute(*impl, cppValue); 804 TestPartialInterface::setPartialPartialEnumTypeAttribute(*impl, cppValue);
805 } 805 }
806 #endif // ENABLE(PARTIAL_CONDITION) 806 #endif // ENABLE(PARTIAL_CONDITION)
807 807
808 #if ENABLE(PARTIAL_CONDITION) 808 #if ENABLE(PARTIAL_CONDITION)
809 static void partialPartialEnumTypeAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 809 static void partialPartialEnumTypeAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
810 { 810 {
811 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 811 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
812 TestInterfaceImplementationV8Internal::partialPartialEnumTypeAttributeAttrib uteSetter(v8Value, info); 812 TestInterfaceImplementationV8Internal::partialPartialEnumTypeAttributeAttrib uteSetter(v8Value, info);
813 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 813 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
814 } 814 }
815 #endif // ENABLE(PARTIAL_CONDITION) 815 #endif // ENABLE(PARTIAL_CONDITION)
816 816
817 #if ENABLE(PARTIAL_CONDITION) 817 #if ENABLE(PARTIAL_CONDITION)
818 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info) 818 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info)
819 { 819 {
820 v8::Handle<v8::Object> holder = info.Holder(); 820 v8::Handle<v8::Object> holder = info.Holder();
821 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 821 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
822 String result; 822 String result;
823 if (!V8TestInterface::PrivateScript::stringAttributeAttributeGetter(toFrameI fNotDetached(info.GetIsolate()->GetCurrentContext()), impl, &result)) 823 if (!V8TestInterface::PrivateScript::stringAttributeAttributeGetter(toFrameI fNotDetached(info.GetIsolate()->GetCurrentContext()), impl, &result))
824 return; 824 return;
825 v8SetReturnValueString(info, result, info.GetIsolate()); 825 v8SetReturnValueString(info, result, info.GetIsolate());
826 } 826 }
827 #endif // ENABLE(PARTIAL_CONDITION) 827 #endif // ENABLE(PARTIAL_CONDITION)
828 828
829 #if ENABLE(PARTIAL_CONDITION) 829 #if ENABLE(PARTIAL_CONDITION)
830 static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 830 static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
831 { 831 {
832 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 832 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
833 TestInterfaceImplementationV8Internal::stringAttributeAttributeGetter(info); 833 TestInterfaceImplementationV8Internal::stringAttributeAttributeGetter(info);
834 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 834 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
835 } 835 }
836 #endif // ENABLE(PARTIAL_CONDITION) 836 #endif // ENABLE(PARTIAL_CONDITION)
837 837
838 #if ENABLE(PARTIAL_CONDITION) 838 #if ENABLE(PARTIAL_CONDITION)
839 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info) 839 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info)
840 { 840 {
841 v8::Handle<v8::Object> holder = info.Holder(); 841 v8::Handle<v8::Object> holder = info.Holder();
842 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 842 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
843 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 843 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
844 V8TestInterface::PrivateScript::stringAttributeAttributeSetter(toFrameIfNotD etached(info.GetIsolate()->GetCurrentContext()), impl, cppValue); 844 V8TestInterface::PrivateScript::stringAttributeAttributeSetter(toFrameIfNotD etached(info.GetIsolate()->GetCurrentContext()), impl, cppValue);
845 } 845 }
846 #endif // ENABLE(PARTIAL_CONDITION) 846 #endif // ENABLE(PARTIAL_CONDITION)
847 847
848 #if ENABLE(PARTIAL_CONDITION) 848 #if ENABLE(PARTIAL_CONDITION)
849 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 849 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
850 { 850 {
851 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 851 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
852 TestInterfaceImplementationV8Internal::stringAttributeAttributeSetter(v8Valu e, info); 852 TestInterfaceImplementationV8Internal::stringAttributeAttributeSetter(v8Valu e, info);
853 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 853 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
854 } 854 }
855 #endif // ENABLE(PARTIAL_CONDITION) 855 #endif // ENABLE(PARTIAL_CONDITION)
856 856
857 static void partial2LongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 857 static void partial2LongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
858 { 858 {
859 v8::Handle<v8::Object> holder = info.Holder(); 859 v8::Handle<v8::Object> holder = info.Holder();
860 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 860 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
861 v8SetReturnValueInt(info, TestPartialInterfaceImplementation::partial2LongAt tribute(*impl)); 861 v8SetReturnValueInt(info, TestPartialInterfaceImplementation::partial2LongAt tribute(*impl));
862 } 862 }
863 863
864 static void partial2LongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 864 static void partial2LongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
865 { 865 {
866 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 866 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
867 TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeGetter( info); 867 TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeGetter( info);
868 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 868 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
869 } 869 }
870 870
871 static void partial2LongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 871 static void partial2LongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
872 { 872 {
873 v8::Handle<v8::Object> holder = info.Holder(); 873 v8::Handle<v8::Object> holder = info.Holder();
874 ExceptionState exceptionState(ExceptionState::SetterContext, "partial2LongAt tribute", "TestInterface", holder, info.GetIsolate()); 874 ExceptionState exceptionState(ExceptionState::SetterContext, "partial2LongAt tribute", "TestInterface", holder, info.GetIsolate());
875 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 875 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
876 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 876 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
877 TestPartialInterfaceImplementation::setPartial2LongAttribute(*impl, cppValue ); 877 TestPartialInterfaceImplementation::setPartial2LongAttribute(*impl, cppValue );
878 } 878 }
879 879
880 static void partial2LongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 880 static void partial2LongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
881 { 881 {
882 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 882 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
883 TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeSetter( v8Value, info); 883 TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeSetter( v8Value, info);
884 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 884 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
885 } 885 }
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 { 930 {
931 TestInterfaceImplementationV8Internal::TestInterfaceImplementationForceSetAt tributeOnThis(name, v8Value, info); 931 TestInterfaceImplementationV8Internal::TestInterfaceImplementationForceSetAt tributeOnThis(name, v8Value, info);
932 } 932 }
933 933
934 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 934 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
935 { 935 {
936 if (UNLIKELY(info.Length() < 1)) { 936 if (UNLIKELY(info.Length() < 1)) {
937 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodTestInterfaceEmptyArg", "TestInterface", 1, info.Length(), info.GetIsol ate()), info.GetIsolate()); 937 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodTestInterfaceEmptyArg", "TestInterface", 1, info.Length(), info.GetIsol ate()), info.GetIsolate());
938 return; 938 return;
939 } 939 }
940 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 940 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
941 TestInterfaceEmpty* testInterfaceEmptyArg; 941 TestInterfaceEmpty* testInterfaceEmptyArg;
942 { 942 {
943 v8::TryCatch block; 943 v8::TryCatch block;
944 V8RethrowTryCatchScope rethrow(block); 944 V8RethrowTryCatchScope rethrow(block);
945 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], inf o.GetIsolate())) { 945 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], inf o.GetIsolate())) {
946 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "voidMethodTestInterfaceEmptyArg", "TestInterface", "parameter 1 is not of type 'TestInterfaceEmpty'."), info.GetIsolate()); 946 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "voidMethodTestInterfaceEmptyArg", "TestInterface", "parameter 1 is not of type 'TestInterfaceEmpty'."), info.GetIsolate());
947 return; 947 return;
948 } 948 }
949 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[0])); 949 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toIm plWithTypeCheck(info.GetIsolate(), info[0]));
950 } 950 }
951 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); 951 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg);
952 } 952 }
953 953
954 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 954 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
955 { 955 {
956 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 956 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
957 TestInterfaceImplementationV8Internal::voidMethodTestInterfaceEmptyArgMethod (info); 957 TestInterfaceImplementationV8Internal::voidMethodTestInterfaceEmptyArgMethod (info);
958 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 958 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
959 } 959 }
960 960
961 static void voidMethodDoubleArgFloatArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 961 static void voidMethodDoubleArgFloatArgMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
962 { 962 {
963 if (UNLIKELY(info.Length() < 2)) { 963 if (UNLIKELY(info.Length() < 2)) {
964 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodDoubleArgFloatArg", "TestInterface", 2, info.Length(), info.GetIsolate( )), info.GetIsolate()); 964 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodDoubleArgFloatArg", "TestInterface", 2, info.Length(), info.GetIsolate( )), info.GetIsolate());
965 return; 965 return;
966 } 966 }
967 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 967 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
968 double doubleArg; 968 double doubleArg;
969 float floatArg; 969 float floatArg;
970 { 970 {
971 v8::TryCatch block; 971 v8::TryCatch block;
972 V8RethrowTryCatchScope rethrow(block); 972 V8RethrowTryCatchScope rethrow(block);
973 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[0]->NumberVal ue())); 973 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[0]->NumberVal ue()));
974 if (!std::isfinite(doubleArg)) { 974 if (!std::isfinite(doubleArg)) {
975 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "voidMethodDoubleArgFloatArg", "TestInterface", "double parameter 1 is non-finit e."), info.GetIsolate()); 975 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "voidMethodDoubleArgFloatArg", "TestInterface", "double parameter 1 is non-finit e."), info.GetIsolate());
976 return; 976 return;
977 } 977 }
(...skipping 12 matching lines...) Expand all
990 TestInterfaceImplementationV8Internal::voidMethodDoubleArgFloatArgMethod(inf o); 990 TestInterfaceImplementationV8Internal::voidMethodDoubleArgFloatArgMethod(inf o);
991 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 991 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
992 } 992 }
993 993
994 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethod(const v8:: FunctionCallbackInfo<v8::Value>& info) 994 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethod(const v8:: FunctionCallbackInfo<v8::Value>& info)
995 { 995 {
996 if (UNLIKELY(info.Length() < 2)) { 996 if (UNLIKELY(info.Length() < 2)) {
997 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", "TestInterface", 2, info.Le ngth(), info.GetIsolate()), info.GetIsolate()); 997 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", "TestInterface", 2, info.Le ngth(), info.GetIsolate()), info.GetIsolate());
998 return; 998 return;
999 } 999 }
1000 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1000 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1001 double unrestrictedDoubleArg; 1001 double unrestrictedDoubleArg;
1002 float unrestrictedFloatArg; 1002 float unrestrictedFloatArg;
1003 { 1003 {
1004 v8::TryCatch block; 1004 v8::TryCatch block;
1005 V8RethrowTryCatchScope rethrow(block); 1005 V8RethrowTryCatchScope rethrow(block);
1006 TONATIVE_VOID_INTERNAL(unrestrictedDoubleArg, static_cast<double>(info[0 ]->NumberValue())); 1006 TONATIVE_VOID_INTERNAL(unrestrictedDoubleArg, static_cast<double>(info[0 ]->NumberValue()));
1007 TONATIVE_VOID_INTERNAL(unrestrictedFloatArg, static_cast<float>(info[1]- >NumberValue())); 1007 TONATIVE_VOID_INTERNAL(unrestrictedFloatArg, static_cast<float>(info[1]- >NumberValue()));
1008 } 1008 }
1009 impl->voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg(unrestrictedDouble Arg, unrestrictedFloatArg); 1009 impl->voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg(unrestrictedDouble Arg, unrestrictedFloatArg);
1010 } 1010 }
1011 1011
1012 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info) 1012 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCallback(co nst v8::FunctionCallbackInfo<v8::Value>& info)
1013 { 1013 {
1014 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1014 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1015 TestInterfaceImplementationV8Internal::voidMethodUnrestrictedDoubleArgUnrest rictedFloatArgMethod(info); 1015 TestInterfaceImplementationV8Internal::voidMethodUnrestrictedDoubleArgUnrest rictedFloatArgMethod(info);
1016 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1016 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1017 } 1017 }
1018 1018
1019 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 1019 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
1020 { 1020 {
1021 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1021 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1022 impl->voidMethod(); 1022 impl->voidMethod();
1023 } 1023 }
1024 1024
1025 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 1025 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
1026 { 1026 {
1027 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1027 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1028 TestInterfaceImplementationV8Internal::voidMethodMethod(info); 1028 TestInterfaceImplementationV8Internal::voidMethodMethod(info);
1029 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1029 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1030 } 1030 }
1031 1031
1032 static void voidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Valu e>& info) 1032 static void voidMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Valu e>& info)
1033 { 1033 {
1034 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1034 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1035 impl->voidMethod(); 1035 impl->voidMethod();
1036 } 1036 }
1037 1037
1038 static void voidMethodMethodCallbackForMainWorld(const v8::FunctionCallbackInfo< v8::Value>& info) 1038 static void voidMethodMethodCallbackForMainWorld(const v8::FunctionCallbackInfo< v8::Value>& info)
1039 { 1039 {
1040 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1040 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1041 TestInterfaceImplementationV8Internal::voidMethodMethodForMainWorld(info); 1041 TestInterfaceImplementationV8Internal::voidMethodMethodForMainWorld(info);
1042 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1042 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1043 } 1043 }
1044 1044
1045 static void alwaysExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 1045 static void alwaysExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
1046 { 1046 {
1047 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1047 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1048 impl->alwaysExposedMethod(); 1048 impl->alwaysExposedMethod();
1049 } 1049 }
1050 1050
1051 static void alwaysExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 1051 static void alwaysExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
1052 { 1052 {
1053 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1053 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1054 TestInterfaceImplementationV8Internal::alwaysExposedMethodMethod(info); 1054 TestInterfaceImplementationV8Internal::alwaysExposedMethodMethod(info);
1055 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1055 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1056 } 1056 }
1057 1057
1058 static void workerExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 1058 static void workerExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
1059 { 1059 {
1060 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1060 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1061 impl->workerExposedMethod(); 1061 impl->workerExposedMethod();
1062 } 1062 }
1063 1063
1064 static void workerExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 1064 static void workerExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
1065 { 1065 {
1066 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1066 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1067 TestInterfaceImplementationV8Internal::workerExposedMethodMethod(info); 1067 TestInterfaceImplementationV8Internal::workerExposedMethodMethod(info);
1068 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1068 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1069 } 1069 }
1070 1070
1071 static void windowExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 1071 static void windowExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
1072 { 1072 {
1073 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1073 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1074 impl->windowExposedMethod(); 1074 impl->windowExposedMethod();
1075 } 1075 }
1076 1076
1077 static void windowExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 1077 static void windowExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
1078 { 1078 {
1079 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1079 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1080 TestInterfaceImplementationV8Internal::windowExposedMethodMethod(info); 1080 TestInterfaceImplementationV8Internal::windowExposedMethodMethod(info);
1081 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1081 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1082 } 1082 }
1083 1083
(...skipping 28 matching lines...) Expand all
1112 1112
1113 static void windowExposedStaticMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 1113 static void windowExposedStaticMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
1114 { 1114 {
1115 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1115 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1116 TestInterfaceImplementationV8Internal::windowExposedStaticMethodMethod(info) ; 1116 TestInterfaceImplementationV8Internal::windowExposedStaticMethodMethod(info) ;
1117 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1117 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1118 } 1118 }
1119 1119
1120 static void windowAndServiceWorkerExposedMethodMethod(const v8::FunctionCallback Info<v8::Value>& info) 1120 static void windowAndServiceWorkerExposedMethodMethod(const v8::FunctionCallback Info<v8::Value>& info)
1121 { 1121 {
1122 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1122 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1123 impl->windowAndServiceWorkerExposedMethod(); 1123 impl->windowAndServiceWorkerExposedMethod();
1124 } 1124 }
1125 1125
1126 static void windowAndServiceWorkerExposedMethodMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) 1126 static void windowAndServiceWorkerExposedMethodMethodCallback(const v8::Function CallbackInfo<v8::Value>& info)
1127 { 1127 {
1128 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1128 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1129 TestInterfaceImplementationV8Internal::windowAndServiceWorkerExposedMethodMe thod(info); 1129 TestInterfaceImplementationV8Internal::windowAndServiceWorkerExposedMethodMe thod(info);
1130 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1130 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1131 } 1131 }
1132 1132
1133 static void implementsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 1133 static void implementsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
1134 { 1134 {
1135 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1135 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1136 impl->implementsVoidMethod(); 1136 impl->implementsVoidMethod();
1137 } 1137 }
1138 1138
1139 static void implementsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 1139 static void implementsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
1140 { 1140 {
1141 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1141 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1142 TestInterfaceImplementationV8Internal::implementsVoidMethodMethod(info); 1142 TestInterfaceImplementationV8Internal::implementsVoidMethodMethod(info);
1143 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1143 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1144 } 1144 }
1145 1145
1146 static void implementsComplexMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 1146 static void implementsComplexMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
1147 { 1147 {
1148 ExceptionState exceptionState(ExceptionState::ExecutionContext, "implementsC omplexMethod", "TestInterface", info.Holder(), info.GetIsolate()); 1148 ExceptionState exceptionState(ExceptionState::ExecutionContext, "implementsC omplexMethod", "TestInterface", info.Holder(), info.GetIsolate());
1149 if (UNLIKELY(info.Length() < 2)) { 1149 if (UNLIKELY(info.Length() < 2)) {
1150 setMinimumArityTypeError(exceptionState, 2, info.Length()); 1150 setMinimumArityTypeError(exceptionState, 2, info.Length());
1151 exceptionState.throwIfNeeded(); 1151 exceptionState.throwIfNeeded();
1152 return; 1152 return;
1153 } 1153 }
1154 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1154 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1155 V8StringResource<> strArg; 1155 V8StringResource<> strArg;
1156 TestInterfaceEmpty* testInterfaceEmptyArg; 1156 TestInterfaceEmpty* testInterfaceEmptyArg;
1157 { 1157 {
1158 v8::TryCatch block; 1158 v8::TryCatch block;
1159 V8RethrowTryCatchScope rethrow(block); 1159 V8RethrowTryCatchScope rethrow(block);
1160 TOSTRING_VOID_INTERNAL(strArg, info[0]); 1160 TOSTRING_VOID_INTERNAL(strArg, info[0]);
1161 if (info.Length() > 1 && !V8TestInterfaceEmpty::hasInstance(info[1], inf o.GetIsolate())) { 1161 if (info.Length() > 1 && !V8TestInterfaceEmpty::hasInstance(info[1], inf o.GetIsolate())) {
1162 exceptionState.throwTypeError("parameter 2 is not of type 'TestInter faceEmpty'."); 1162 exceptionState.throwTypeError("parameter 2 is not of type 'TestInter faceEmpty'.");
1163 exceptionState.throwIfNeeded(); 1163 exceptionState.throwIfNeeded();
1164 return; 1164 return;
1165 } 1165 }
1166 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa tiveWithTypeCheck(info.GetIsolate(), info[1])); 1166 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toIm plWithTypeCheck(info.GetIsolate(), info[1]));
1167 } 1167 }
1168 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 1168 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
1169 RefPtr<TestInterfaceEmpty> result = impl->implementsComplexMethod(executionC ontext, strArg, testInterfaceEmptyArg, exceptionState); 1169 RefPtr<TestInterfaceEmpty> result = impl->implementsComplexMethod(executionC ontext, strArg, testInterfaceEmptyArg, exceptionState);
1170 if (exceptionState.hadException()) { 1170 if (exceptionState.hadException()) {
1171 exceptionState.throwIfNeeded(); 1171 exceptionState.throwIfNeeded();
1172 return; 1172 return;
1173 } 1173 }
1174 v8SetReturnValue(info, result.release()); 1174 v8SetReturnValue(info, result.release());
1175 } 1175 }
1176 1176
(...skipping 18 matching lines...) Expand all
1195 1195
1196 static void implementsStaticVoidMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 1196 static void implementsStaticVoidMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
1197 { 1197 {
1198 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1198 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1199 TestInterfaceImplementationV8Internal::implementsStaticVoidMethodMethod(info ); 1199 TestInterfaceImplementationV8Internal::implementsStaticVoidMethodMethod(info );
1200 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1200 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1201 } 1201 }
1202 1202
1203 static void implements2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 1203 static void implements2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
1204 { 1204 {
1205 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1205 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1206 TestImplements2::implements2VoidMethod(*impl); 1206 TestImplements2::implements2VoidMethod(*impl);
1207 } 1207 }
1208 1208
1209 static void implements2VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 1209 static void implements2VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
1210 { 1210 {
1211 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1211 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1212 TestInterfaceImplementationV8Internal::implements2VoidMethodMethod(info); 1212 TestInterfaceImplementationV8Internal::implements2VoidMethodMethod(info);
1213 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1213 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1214 } 1214 }
1215 1215
1216 static void implements3VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 1216 static void implements3VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
1217 { 1217 {
1218 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1218 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1219 TestImplements3Implementation::implements3VoidMethod(*impl); 1219 TestImplements3Implementation::implements3VoidMethod(*impl);
1220 } 1220 }
1221 1221
1222 static void implements3VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 1222 static void implements3VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
1223 { 1223 {
1224 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1224 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1225 TestInterfaceImplementationV8Internal::implements3VoidMethodMethod(info); 1225 TestInterfaceImplementationV8Internal::implements3VoidMethodMethod(info);
1226 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1226 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1227 } 1227 }
1228 1228
1229 static void implements3StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 1229 static void implements3StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
1230 { 1230 {
1231 TestImplements3Implementation::implements3StaticVoidMethod(); 1231 TestImplements3Implementation::implements3StaticVoidMethod();
1232 } 1232 }
1233 1233
1234 static void implements3StaticVoidMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 1234 static void implements3StaticVoidMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
1235 { 1235 {
1236 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1236 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1237 TestInterfaceImplementationV8Internal::implements3StaticVoidMethodMethod(inf o); 1237 TestInterfaceImplementationV8Internal::implements3StaticVoidMethodMethod(inf o);
1238 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1238 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1239 } 1239 }
1240 1240
1241 #if ENABLE(PARTIAL_CONDITION) 1241 #if ENABLE(PARTIAL_CONDITION)
1242 static void partialVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 1242 static void partialVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
1243 { 1243 {
1244 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1244 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1245 TestPartialInterface::partialVoidMethod(*impl); 1245 TestPartialInterface::partialVoidMethod(*impl);
1246 } 1246 }
1247 #endif // ENABLE(PARTIAL_CONDITION) 1247 #endif // ENABLE(PARTIAL_CONDITION)
1248 1248
1249 #if ENABLE(PARTIAL_CONDITION) 1249 #if ENABLE(PARTIAL_CONDITION)
1250 static void partialVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 1250 static void partialVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
1251 { 1251 {
1252 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1252 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1253 TestInterfaceImplementationV8Internal::partialVoidMethodMethod(info); 1253 TestInterfaceImplementationV8Internal::partialVoidMethodMethod(info);
1254 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1254 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 18 matching lines...) Expand all
1273 1273
1274 #if ENABLE(PARTIAL_CONDITION) 1274 #if ENABLE(PARTIAL_CONDITION)
1275 static void partialVoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 1275 static void partialVoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
1276 { 1276 {
1277 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partialVoid MethodLongArg", "TestInterface", info.Holder(), info.GetIsolate()); 1277 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partialVoid MethodLongArg", "TestInterface", info.Holder(), info.GetIsolate());
1278 if (UNLIKELY(info.Length() < 1)) { 1278 if (UNLIKELY(info.Length() < 1)) {
1279 setMinimumArityTypeError(exceptionState, 1, info.Length()); 1279 setMinimumArityTypeError(exceptionState, 1, info.Length());
1280 exceptionState.throwIfNeeded(); 1280 exceptionState.throwIfNeeded();
1281 return; 1281 return;
1282 } 1282 }
1283 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1283 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1284 int longArg; 1284 int longArg;
1285 { 1285 {
1286 v8::TryCatch block; 1286 v8::TryCatch block;
1287 V8RethrowTryCatchScope rethrow(block); 1287 V8RethrowTryCatchScope rethrow(block);
1288 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState); 1288 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[0], exceptio nState), exceptionState);
1289 } 1289 }
1290 TestPartialInterface::partialVoidMethodLongArg(*impl, longArg); 1290 TestPartialInterface::partialVoidMethodLongArg(*impl, longArg);
1291 } 1291 }
1292 #endif // ENABLE(PARTIAL_CONDITION) 1292 #endif // ENABLE(PARTIAL_CONDITION)
1293 1293
1294 #if ENABLE(PARTIAL_CONDITION) 1294 #if ENABLE(PARTIAL_CONDITION)
1295 static void partialVoidMethodLongArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 1295 static void partialVoidMethodLongArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
1296 { 1296 {
1297 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1297 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1298 TestInterfaceImplementationV8Internal::partialVoidMethodLongArgMethod(info); 1298 TestInterfaceImplementationV8Internal::partialVoidMethodLongArgMethod(info);
1299 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1299 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1300 } 1300 }
1301 #endif // ENABLE(PARTIAL_CONDITION) 1301 #endif // ENABLE(PARTIAL_CONDITION)
1302 1302
1303 #if ENABLE(PARTIAL_CONDITION) 1303 #if ENABLE(PARTIAL_CONDITION)
1304 static void partialCallWithExecutionContextRaisesExceptionVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 1304 static void partialCallWithExecutionContextRaisesExceptionVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
1305 { 1305 {
1306 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partialCall WithExecutionContextRaisesExceptionVoidMethod", "TestInterface", info.Holder(), info.GetIsolate()); 1306 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partialCall WithExecutionContextRaisesExceptionVoidMethod", "TestInterface", info.Holder(), info.GetIsolate());
1307 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1307 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1308 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 1308 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
1309 TestPartialInterface::partialCallWithExecutionContextRaisesExceptionVoidMeth od(executionContext, *impl, exceptionState); 1309 TestPartialInterface::partialCallWithExecutionContextRaisesExceptionVoidMeth od(executionContext, *impl, exceptionState);
1310 if (exceptionState.hadException()) { 1310 if (exceptionState.hadException()) {
1311 exceptionState.throwIfNeeded(); 1311 exceptionState.throwIfNeeded();
1312 return; 1312 return;
1313 } 1313 }
1314 } 1314 }
1315 #endif // ENABLE(PARTIAL_CONDITION) 1315 #endif // ENABLE(PARTIAL_CONDITION)
1316 1316
1317 #if ENABLE(PARTIAL_CONDITION) 1317 #if ENABLE(PARTIAL_CONDITION)
1318 static void partialCallWithExecutionContextRaisesExceptionVoidMethodMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info) 1318 static void partialCallWithExecutionContextRaisesExceptionVoidMethodMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info)
1319 { 1319 {
1320 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1320 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1321 TestInterfaceImplementationV8Internal::partialCallWithExecutionContextRaises ExceptionVoidMethodMethod(info); 1321 TestInterfaceImplementationV8Internal::partialCallWithExecutionContextRaises ExceptionVoidMethodMethod(info);
1322 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1322 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1323 } 1323 }
1324 #endif // ENABLE(PARTIAL_CONDITION) 1324 #endif // ENABLE(PARTIAL_CONDITION)
1325 1325
1326 #if ENABLE(PARTIAL_CONDITION) 1326 #if ENABLE(PARTIAL_CONDITION)
1327 static void partialVoidMethodPartialCallbackTypeArgMethod(const v8::FunctionCall backInfo<v8::Value>& info) 1327 static void partialVoidMethodPartialCallbackTypeArgMethod(const v8::FunctionCall backInfo<v8::Value>& info)
1328 { 1328 {
1329 if (UNLIKELY(info.Length() < 1)) { 1329 if (UNLIKELY(info.Length() < 1)) {
1330 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("p artialVoidMethodPartialCallbackTypeArg", "TestInterface", 1, info.Length(), info .GetIsolate()), info.GetIsolate()); 1330 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("p artialVoidMethodPartialCallbackTypeArg", "TestInterface", 1, info.Length(), info .GetIsolate()), info.GetIsolate());
1331 return; 1331 return;
1332 } 1332 }
1333 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1333 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1334 ScriptValue partialCallbackTypeArg; 1334 ScriptValue partialCallbackTypeArg;
1335 { 1335 {
1336 v8::TryCatch block; 1336 v8::TryCatch block;
1337 V8RethrowTryCatchScope rethrow(block); 1337 V8RethrowTryCatchScope rethrow(block);
1338 TONATIVE_VOID_INTERNAL(partialCallbackTypeArg, ScriptValue(ScriptState:: current(info.GetIsolate()), info[0])); 1338 TONATIVE_VOID_INTERNAL(partialCallbackTypeArg, ScriptValue(ScriptState:: current(info.GetIsolate()), info[0]));
1339 } 1339 }
1340 TestPartialInterface::partialVoidMethodPartialCallbackTypeArg(*impl, partial CallbackTypeArg); 1340 TestPartialInterface::partialVoidMethodPartialCallbackTypeArg(*impl, partial CallbackTypeArg);
1341 } 1341 }
1342 #endif // ENABLE(PARTIAL_CONDITION) 1342 #endif // ENABLE(PARTIAL_CONDITION)
1343 1343
1344 #if ENABLE(PARTIAL_CONDITION) 1344 #if ENABLE(PARTIAL_CONDITION)
1345 static void partialVoidMethodPartialCallbackTypeArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 1345 static void partialVoidMethodPartialCallbackTypeArgMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
1346 { 1346 {
1347 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1347 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1348 TestInterfaceImplementationV8Internal::partialVoidMethodPartialCallbackTypeA rgMethod(info); 1348 TestInterfaceImplementationV8Internal::partialVoidMethodPartialCallbackTypeA rgMethod(info);
1349 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1349 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1350 } 1350 }
1351 #endif // ENABLE(PARTIAL_CONDITION) 1351 #endif // ENABLE(PARTIAL_CONDITION)
1352 1352
1353 #if ENABLE(PARTIAL_CONDITION) 1353 #if ENABLE(PARTIAL_CONDITION)
1354 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethod(const v 8::FunctionCallbackInfo<v8::Value>& info) 1354 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethod(const v 8::FunctionCallbackInfo<v8::Value>& info)
1355 { 1355 {
1356 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod WithShortArgumentImplementedInPrivateScript", "TestInterface", info.Holder(), in fo.GetIsolate()); 1356 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod WithShortArgumentImplementedInPrivateScript", "TestInterface", info.Holder(), in fo.GetIsolate());
1357 if (UNLIKELY(info.Length() < 1)) { 1357 if (UNLIKELY(info.Length() < 1)) {
1358 setMinimumArityTypeError(exceptionState, 1, info.Length()); 1358 setMinimumArityTypeError(exceptionState, 1, info.Length());
1359 exceptionState.throwIfNeeded(); 1359 exceptionState.throwIfNeeded();
1360 return; 1360 return;
1361 } 1361 }
1362 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1362 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1363 int value; 1363 int value;
1364 { 1364 {
1365 v8::TryCatch block; 1365 v8::TryCatch block;
1366 V8RethrowTryCatchScope rethrow(block); 1366 V8RethrowTryCatchScope rethrow(block);
1367 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value, toInt16(info[0], exceptionS tate), exceptionState); 1367 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(value, toInt16(info[0], exceptionS tate), exceptionState);
1368 } 1368 }
1369 int result = 0; 1369 int result = 0;
1370 if (!V8TestInterface::PrivateScript::shortMethodWithShortArgumentImplemented InPrivateScriptMethod(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext( )), impl, value, &result)) 1370 if (!V8TestInterface::PrivateScript::shortMethodWithShortArgumentImplemented InPrivateScriptMethod(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext( )), impl, value, &result))
1371 return; 1371 return;
1372 v8SetReturnValueInt(info, result); 1372 v8SetReturnValueInt(info, result);
1373 } 1373 }
1374 #endif // ENABLE(PARTIAL_CONDITION) 1374 #endif // ENABLE(PARTIAL_CONDITION)
1375 1375
1376 #if ENABLE(PARTIAL_CONDITION) 1376 #if ENABLE(PARTIAL_CONDITION)
1377 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback (const v8::FunctionCallbackInfo<v8::Value>& info) 1377 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback (const v8::FunctionCallbackInfo<v8::Value>& info)
1378 { 1378 {
1379 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1379 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1380 TestInterfaceImplementationV8Internal::shortMethodWithShortArgumentImplement edInPrivateScriptMethod(info); 1380 TestInterfaceImplementationV8Internal::shortMethodWithShortArgumentImplement edInPrivateScriptMethod(info);
1381 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1381 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1382 } 1382 }
1383 #endif // ENABLE(PARTIAL_CONDITION) 1383 #endif // ENABLE(PARTIAL_CONDITION)
1384 1384
1385 static void partial2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 1385 static void partial2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
1386 { 1386 {
1387 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1387 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1388 TestPartialInterfaceImplementation::partial2VoidMethod(*impl); 1388 TestPartialInterfaceImplementation::partial2VoidMethod(*impl);
1389 } 1389 }
1390 1390
1391 static void partial2VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 1391 static void partial2VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
1392 { 1392 {
1393 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1393 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1394 TestInterfaceImplementationV8Internal::partial2VoidMethodMethod(info); 1394 TestInterfaceImplementationV8Internal::partial2VoidMethodMethod(info);
1395 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1395 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1396 } 1396 }
1397 1397
1398 static void partial2StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 1398 static void partial2StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
1399 { 1399 {
1400 TestPartialInterfaceImplementation::partial2StaticVoidMethod(); 1400 TestPartialInterfaceImplementation::partial2StaticVoidMethod();
1401 } 1401 }
1402 1402
1403 static void partial2StaticVoidMethodMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 1403 static void partial2StaticVoidMethodMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
1404 { 1404 {
1405 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1405 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1406 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethod(info); 1406 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethod(info);
1407 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1407 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1408 } 1408 }
1409 1409
1410 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 1410 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
1411 { 1411 {
1412 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1412 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1413 v8SetReturnValueString(info, impl->toString(), info.GetIsolate()); 1413 v8SetReturnValueString(info, impl->toString(), info.GetIsolate());
1414 } 1414 }
1415 1415
1416 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo) 1416 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo)
1417 { 1417 {
1418 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1418 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1419 TestInterfaceImplementationV8Internal::toStringMethod(info); 1419 TestInterfaceImplementationV8Internal::toStringMethod(info);
1420 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1420 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1421 } 1421 }
1422 1422
1423 static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 1423 static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
1424 { 1424 {
1425 ExceptionState exceptionState(ExceptionState::ExecutionContext, "iterator", "TestInterface", info.Holder(), info.GetIsolate()); 1425 ExceptionState exceptionState(ExceptionState::ExecutionContext, "iterator", "TestInterface", info.Holder(), info.GetIsolate());
1426 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1426 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1427 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 1427 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
1428 RawPtr<Iterator> result = impl->iterator(scriptState, exceptionState); 1428 RawPtr<Iterator> result = impl->iterator(scriptState, exceptionState);
1429 if (exceptionState.hadException()) { 1429 if (exceptionState.hadException()) {
1430 exceptionState.throwIfNeeded(); 1430 exceptionState.throwIfNeeded();
1431 return; 1431 return;
1432 } 1432 }
1433 v8SetReturnValue(info, result.release()); 1433 v8SetReturnValue(info, result.release());
1434 } 1434 }
1435 1435
1436 static void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo) 1436 static void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo)
1437 { 1437 {
1438 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 1438 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
1439 TestInterfaceImplementationV8Internal::iteratorMethod(info); 1439 TestInterfaceImplementationV8Internal::iteratorMethod(info);
1440 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1440 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1441 } 1441 }
1442 1442
1443 static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo <v8::Value>& info) 1443 static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo <v8::Value>& info)
1444 { 1444 {
1445 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1445 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1446 String result = impl->anonymousIndexedGetter(index); 1446 String result = impl->anonymousIndexedGetter(index);
1447 if (result.isNull()) 1447 if (result.isNull())
1448 return; 1448 return;
1449 v8SetReturnValueString(info, result, info.GetIsolate()); 1449 v8SetReturnValueString(info, result, info.GetIsolate());
1450 } 1450 }
1451 1451
1452 static void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCall backInfo<v8::Value>& info) 1452 static void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCall backInfo<v8::Value>& info)
1453 { 1453 {
1454 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMIndexedProperty"); 1454 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMIndexedProperty");
1455 TestInterfaceImplementationV8Internal::indexedPropertyGetter(index, info); 1455 TestInterfaceImplementationV8Internal::indexedPropertyGetter(index, info);
1456 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1456 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1457 } 1457 }
1458 1458
1459 static void indexedPropertySetter(uint32_t index, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) 1459 static void indexedPropertySetter(uint32_t index, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info)
1460 { 1460 {
1461 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1461 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1462 TOSTRING_VOID(V8StringResource<>, propertyValue, v8Value); 1462 TOSTRING_VOID(V8StringResource<>, propertyValue, v8Value);
1463 bool result = impl->anonymousIndexedSetter(index, propertyValue); 1463 bool result = impl->anonymousIndexedSetter(index, propertyValue);
1464 if (!result) 1464 if (!result)
1465 return; 1465 return;
1466 v8SetReturnValue(info, v8Value); 1466 v8SetReturnValue(info, v8Value);
1467 } 1467 }
1468 1468
1469 static void indexedPropertySetterCallback(uint32_t index, v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<v8::Value>& info) 1469 static void indexedPropertySetterCallback(uint32_t index, v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<v8::Value>& info)
1470 { 1470 {
1471 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMIndexedProperty"); 1471 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMIndexedProperty");
1472 TestInterfaceImplementationV8Internal::indexedPropertySetter(index, v8Value, info); 1472 TestInterfaceImplementationV8Internal::indexedPropertySetter(index, v8Value, info);
1473 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1473 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1474 } 1474 }
1475 1475
1476 static void indexedPropertyDeleter(uint32_t index, const v8::PropertyCallbackInf o<v8::Boolean>& info) 1476 static void indexedPropertyDeleter(uint32_t index, const v8::PropertyCallbackInf o<v8::Boolean>& info)
1477 { 1477 {
1478 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1478 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1479 DeleteResult result = impl->anonymousIndexedDeleter(index); 1479 DeleteResult result = impl->anonymousIndexedDeleter(index);
1480 if (result != DeleteUnknownProperty) 1480 if (result != DeleteUnknownProperty)
1481 return v8SetReturnValueBool(info, result == DeleteSuccess); 1481 return v8SetReturnValueBool(info, result == DeleteSuccess);
1482 } 1482 }
1483 1483
1484 static void indexedPropertyDeleterCallback(uint32_t index, const v8::PropertyCal lbackInfo<v8::Boolean>& info) 1484 static void indexedPropertyDeleterCallback(uint32_t index, const v8::PropertyCal lbackInfo<v8::Boolean>& info)
1485 { 1485 {
1486 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMIndexedProperty"); 1486 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMIndexedProperty");
1487 TestInterfaceImplementationV8Internal::indexedPropertyDeleter(index, info); 1487 TestInterfaceImplementationV8Internal::indexedPropertyDeleter(index, info);
1488 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1488 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1489 } 1489 }
1490 1490
1491 static void namedPropertyGetter(v8::Local<v8::String> name, const v8::PropertyCa llbackInfo<v8::Value>& info) 1491 static void namedPropertyGetter(v8::Local<v8::String> name, const v8::PropertyCa llbackInfo<v8::Value>& info)
1492 { 1492 {
1493 if (info.Holder()->HasRealNamedProperty(name)) 1493 if (info.Holder()->HasRealNamedProperty(name))
1494 return; 1494 return;
1495 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) 1495 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty())
1496 return; 1496 return;
1497 1497
1498 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1498 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1499 AtomicString propertyName = toCoreAtomicString(name); 1499 AtomicString propertyName = toCoreAtomicString(name);
1500 String result = impl->anonymousNamedGetter(propertyName); 1500 String result = impl->anonymousNamedGetter(propertyName);
1501 if (result.isNull()) 1501 if (result.isNull())
1502 return; 1502 return;
1503 v8SetReturnValueString(info, result, info.GetIsolate()); 1503 v8SetReturnValueString(info, result, info.GetIsolate());
1504 } 1504 }
1505 1505
1506 static void namedPropertyGetterCallback(v8::Local<v8::String> name, const v8::Pr opertyCallbackInfo<v8::Value>& info) 1506 static void namedPropertyGetterCallback(v8::Local<v8::String> name, const v8::Pr opertyCallbackInfo<v8::Value>& info)
1507 { 1507 {
1508 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); 1508 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty");
1509 TestInterfaceImplementationV8Internal::namedPropertyGetter(name, info); 1509 TestInterfaceImplementationV8Internal::namedPropertyGetter(name, info);
1510 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1510 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1511 } 1511 }
1512 1512
1513 static void namedPropertySetter(v8::Local<v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) 1513 static void namedPropertySetter(v8::Local<v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info)
1514 { 1514 {
1515 if (info.Holder()->HasRealNamedProperty(name)) 1515 if (info.Holder()->HasRealNamedProperty(name))
1516 return; 1516 return;
1517 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) 1517 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty())
1518 return; 1518 return;
1519 1519
1520 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1520 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1521 TOSTRING_VOID(V8StringResource<>, propertyName, name); 1521 TOSTRING_VOID(V8StringResource<>, propertyName, name);
1522 TOSTRING_VOID(V8StringResource<>, propertyValue, v8Value); 1522 TOSTRING_VOID(V8StringResource<>, propertyValue, v8Value);
1523 bool result = impl->anonymousNamedSetter(propertyName, propertyValue); 1523 bool result = impl->anonymousNamedSetter(propertyName, propertyValue);
1524 if (!result) 1524 if (!result)
1525 return; 1525 return;
1526 v8SetReturnValue(info, v8Value); 1526 v8SetReturnValue(info, v8Value);
1527 } 1527 }
1528 1528
1529 static void namedPropertySetterCallback(v8::Local<v8::String> name, v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) 1529 static void namedPropertySetterCallback(v8::Local<v8::String> name, v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info)
1530 { 1530 {
1531 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); 1531 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty");
1532 TestInterfaceImplementationV8Internal::namedPropertySetter(name, v8Value, in fo); 1532 TestInterfaceImplementationV8Internal::namedPropertySetter(name, v8Value, in fo);
1533 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1533 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1534 } 1534 }
1535 1535
1536 static void namedPropertyQuery(v8::Local<v8::String> name, const v8::PropertyCal lbackInfo<v8::Integer>& info) 1536 static void namedPropertyQuery(v8::Local<v8::String> name, const v8::PropertyCal lbackInfo<v8::Integer>& info)
1537 { 1537 {
1538 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1538 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1539 AtomicString propertyName = toCoreAtomicString(name); 1539 AtomicString propertyName = toCoreAtomicString(name);
1540 v8::String::Utf8Value namedProperty(name); 1540 v8::String::Utf8Value namedProperty(name);
1541 ExceptionState exceptionState(ExceptionState::GetterContext, *namedProperty, "TestInterface", info.Holder(), info.GetIsolate()); 1541 ExceptionState exceptionState(ExceptionState::GetterContext, *namedProperty, "TestInterface", info.Holder(), info.GetIsolate());
1542 bool result = impl->namedPropertyQuery(propertyName, exceptionState); 1542 bool result = impl->namedPropertyQuery(propertyName, exceptionState);
1543 if (exceptionState.throwIfNeeded()) 1543 if (exceptionState.throwIfNeeded())
1544 return; 1544 return;
1545 if (!result) 1545 if (!result)
1546 return; 1546 return;
1547 v8SetReturnValueInt(info, v8::None); 1547 v8SetReturnValueInt(info, v8::None);
1548 } 1548 }
1549 1549
1550 static void namedPropertyQueryCallback(v8::Local<v8::String> name, const v8::Pro pertyCallbackInfo<v8::Integer>& info) 1550 static void namedPropertyQueryCallback(v8::Local<v8::String> name, const v8::Pro pertyCallbackInfo<v8::Integer>& info)
1551 { 1551 {
1552 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); 1552 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty");
1553 TestInterfaceImplementationV8Internal::namedPropertyQuery(name, info); 1553 TestInterfaceImplementationV8Internal::namedPropertyQuery(name, info);
1554 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1554 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1555 } 1555 }
1556 1556
1557 static void namedPropertyDeleter(v8::Local<v8::String> name, const v8::PropertyC allbackInfo<v8::Boolean>& info) 1557 static void namedPropertyDeleter(v8::Local<v8::String> name, const v8::PropertyC allbackInfo<v8::Boolean>& info)
1558 { 1558 {
1559 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1559 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1560 AtomicString propertyName = toCoreAtomicString(name); 1560 AtomicString propertyName = toCoreAtomicString(name);
1561 DeleteResult result = impl->anonymousNamedDeleter(propertyName); 1561 DeleteResult result = impl->anonymousNamedDeleter(propertyName);
1562 if (result != DeleteUnknownProperty) 1562 if (result != DeleteUnknownProperty)
1563 return v8SetReturnValueBool(info, result == DeleteSuccess); 1563 return v8SetReturnValueBool(info, result == DeleteSuccess);
1564 } 1564 }
1565 1565
1566 static void namedPropertyDeleterCallback(v8::Local<v8::String> name, const v8::P ropertyCallbackInfo<v8::Boolean>& info) 1566 static void namedPropertyDeleterCallback(v8::Local<v8::String> name, const v8::P ropertyCallbackInfo<v8::Boolean>& info)
1567 { 1567 {
1568 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); 1568 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty");
1569 TestInterfaceImplementationV8Internal::namedPropertyDeleter(name, info); 1569 TestInterfaceImplementationV8Internal::namedPropertyDeleter(name, info);
1570 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1570 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1571 } 1571 }
1572 1572
1573 static void namedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& i nfo) 1573 static void namedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& i nfo)
1574 { 1574 {
1575 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()) ; 1575 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1576 Vector<String> names; 1576 Vector<String> names;
1577 ExceptionState exceptionState(ExceptionState::EnumerationContext, "TestInter face", info.Holder(), info.GetIsolate()); 1577 ExceptionState exceptionState(ExceptionState::EnumerationContext, "TestInter face", info.Holder(), info.GetIsolate());
1578 impl->namedPropertyEnumerator(names, exceptionState); 1578 impl->namedPropertyEnumerator(names, exceptionState);
1579 if (exceptionState.throwIfNeeded()) 1579 if (exceptionState.throwIfNeeded())
1580 return; 1580 return;
1581 v8::Handle<v8::Array> v8names = v8::Array::New(info.GetIsolate(), names.size ()); 1581 v8::Handle<v8::Array> v8names = v8::Array::New(info.GetIsolate(), names.size ());
1582 for (size_t i = 0; i < names.size(); ++i) 1582 for (size_t i = 0; i < names.size(); ++i)
1583 v8names->Set(v8::Integer::New(info.GetIsolate(), i), v8String(info.GetIs olate(), names[i])); 1583 v8names->Set(v8::Integer::New(info.GetIsolate(), i), v8String(info.GetIs olate(), names[i]));
1584 v8SetReturnValue(info, v8names); 1584 v8SetReturnValue(info, v8names);
1585 } 1585 }
1586 1586
1587 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A rray>& info) 1587 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A rray>& info)
1588 { 1588 {
1589 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); 1589 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty");
1590 TestInterfaceImplementationV8Internal::namedPropertyEnumerator(info); 1590 TestInterfaceImplementationV8Internal::namedPropertyEnumerator(info);
1591 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1591 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1592 } 1592 }
1593 1593
1594 } // namespace TestInterfaceImplementationV8Internal 1594 } // namespace TestInterfaceImplementationV8Internal
1595 1595
1596 void V8TestInterface::visitDOMWrapper(ScriptWrappableBase* internalPointer, cons t v8::Persistent<v8::Object>& wrapper, v8::Isolate* isolate) 1596 void V8TestInterface::visitDOMWrapper(ScriptWrappableBase* internalPointer, cons t v8::Persistent<v8::Object>& wrapper, v8::Isolate* isolate)
1597 { 1597 {
1598 TestInterfaceImplementation* impl = fromInternalPointer(internalPointer); 1598 TestInterfaceImplementation* impl = internalPointer->toImpl<TestInterfaceImp lementation>();
1599 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate, wrapper); 1599 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate, wrapper);
1600 V8WrapperInstantiationScope scope(creationContext, isolate); 1600 V8WrapperInstantiationScope scope(creationContext, isolate);
1601 TestInterfaceImplementation* referencedName = impl->referencedName(); 1601 TestInterfaceImplementation* referencedName = impl->referencedName();
1602 if (referencedName) { 1602 if (referencedName) {
1603 if (!DOMDataStore::containsWrapper<V8TestInterface>(referencedName, isol ate)) 1603 if (!DOMDataStore::containsWrapper<V8TestInterface>(referencedName, isol ate))
1604 wrap(referencedName, creationContext, isolate); 1604 wrap(referencedName, creationContext, isolate);
1605 DOMDataStore::setWrapperReference<V8TestInterface>(wrapper, referencedNa me, isolate); 1605 DOMDataStore::setWrapperReference<V8TestInterface>(wrapper, referencedNa me, isolate);
1606 } 1606 }
1607 setObjectGroup(internalPointer, wrapper, isolate); 1607 setObjectGroup(internalPointer, wrapper, isolate);
1608 } 1608 }
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1796 bool V8TestInterface::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* is olate) 1796 bool V8TestInterface::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* is olate)
1797 { 1797 {
1798 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu e); 1798 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu e);
1799 } 1799 }
1800 1800
1801 v8::Handle<v8::Object> V8TestInterface::findInstanceInPrototypeChain(v8::Handle< v8::Value> v8Value, v8::Isolate* isolate) 1801 v8::Handle<v8::Object> V8TestInterface::findInstanceInPrototypeChain(v8::Handle< v8::Value> v8Value, v8::Isolate* isolate)
1802 { 1802 {
1803 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value); 1803 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value);
1804 } 1804 }
1805 1805
1806 TestInterfaceImplementation* V8TestInterface::toNativeWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value) 1806 TestInterfaceImplementation* V8TestInterface::toImplWithTypeCheck(v8::Isolate* i solate, v8::Handle<v8::Value> value)
1807 { 1807 {
1808 return hasInstance(value, isolate) ? fromInternalPointer(blink::toInternalPo inter(v8::Handle<v8::Object>::Cast(value))) : 0; 1808 return hasInstance(value, isolate) ? blink::toScriptWrappableBase(v8::Handle <v8::Object>::Cast(value))->toImpl<TestInterfaceImplementation>() : 0;
1809 } 1809 }
1810 1810
1811 void V8TestInterface::installConditionallyEnabledProperties(v8::Handle<v8::Objec t> instanceObject, v8::Isolate* isolate) 1811 void V8TestInterface::installConditionallyEnabledProperties(v8::Handle<v8::Objec t> instanceObject, v8::Isolate* isolate)
1812 { 1812 {
1813 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance Object->GetPrototype()); 1813 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance Object->GetPrototype());
1814 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext()); 1814 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext());
1815 1815
1816 if (context && (context->isWorkerGlobalScope())) { 1816 if (context && (context->isWorkerGlobalScope())) {
1817 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 1817 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
1818 {"workerExposedAttribute", TestInterfaceImplementationV8Internal::worker ExposedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal:: workerExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur ation::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; 1818 {"workerExposedAttribute", TestInterfaceImplementationV8Internal::worker ExposedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal:: workerExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur ation::ExposedToAllScripts, V8DOMConfiguration::OnInstance};
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
1864 if (context && context->isDocument() && ContextFeatures::partialContextNameE nabled(toDocument(context))) { 1864 if (context && context->isDocument() && ContextFeatures::partialContextNameE nabled(toDocument(context))) {
1865 prototypeObject->Set(v8AtomicString(isolate, "partial2VoidMethod"), v8:: FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::partial2Vo idMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); 1865 prototypeObject->Set(v8AtomicString(isolate, "partial2VoidMethod"), v8:: FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::partial2Vo idMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction());
1866 } 1866 }
1867 if (context && context->isDocument() && ContextFeatures::partialContextNameE nabled(toDocument(context))) { 1867 if (context && context->isDocument() && ContextFeatures::partialContextNameE nabled(toDocument(context))) {
1868 prototypeObject->Set(v8AtomicString(isolate, "partial2StaticVoidMethod") , v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::part ial2StaticVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunc tion()); 1868 prototypeObject->Set(v8AtomicString(isolate, "partial2StaticVoidMethod") , v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::part ial2StaticVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunc tion());
1869 } 1869 }
1870 } 1870 }
1871 1871
1872 ActiveDOMObject* V8TestInterface::toActiveDOMObject(v8::Handle<v8::Object> wrapp er) 1872 ActiveDOMObject* V8TestInterface::toActiveDOMObject(v8::Handle<v8::Object> wrapp er)
1873 { 1873 {
1874 return toNative(wrapper); 1874 return toImpl(wrapper);
1875 } 1875 }
1876 1876
1877 1877
1878 void V8TestInterface::refObject(ScriptWrappableBase* internalPointer) 1878 void V8TestInterface::refObject(ScriptWrappableBase* internalPointer)
1879 { 1879 {
1880 fromInternalPointer(internalPointer)->ref(); 1880 internalPointer->toImpl<TestInterfaceImplementation>()->ref();
1881 } 1881 }
1882 1882
1883 void V8TestInterface::derefObject(ScriptWrappableBase* internalPointer) 1883 void V8TestInterface::derefObject(ScriptWrappableBase* internalPointer)
1884 { 1884 {
1885 fromInternalPointer(internalPointer)->deref(); 1885 internalPointer->toImpl<TestInterfaceImplementation>()->deref();
1886 } 1886 }
1887 1887
1888 WrapperPersistentNode* V8TestInterface::createPersistentHandle(ScriptWrappableBa se* internalPointer) 1888 WrapperPersistentNode* V8TestInterface::createPersistentHandle(ScriptWrappableBa se* internalPointer)
1889 { 1889 {
1890 ASSERT_NOT_REACHED(); 1890 ASSERT_NOT_REACHED();
1891 return 0; 1891 return 0;
1892 } 1892 }
1893 1893
1894 template<> 1894 template<>
1895 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle <v8::Object> creationContext, v8::Isolate* isolate) 1895 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle <v8::Object> creationContext, v8::Isolate* isolate)
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
1981 if (block.HasCaught()) { 1981 if (block.HasCaught()) {
1982 PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->isolat e(), exceptionState, block); 1982 PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->isolat e(), exceptionState, block);
1983 block.ReThrow(); 1983 block.ReThrow();
1984 return false; 1984 return false;
1985 } 1985 }
1986 return true; 1986 return true;
1987 } 1987 }
1988 1988
1989 } // namespace blink 1989 } // namespace blink
1990 #endif // ENABLE(CONDITION) 1990 #endif // ENABLE(CONDITION)
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterface.h ('k') | Source/bindings/tests/results/V8TestInterface2.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698