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

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

Issue 819853002: [bindings] Translate all assignments in bindings/templates to use Local<> in place of Handle<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 static void MEASURED_CONSTANTConstantGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 91 static void MEASURED_CONSTANTConstantGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
92 { 92 {
93 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 93 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
94 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::Constant); 94 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::Constant);
95 v8SetReturnValueInt(info, 1); 95 v8SetReturnValueInt(info, 1);
96 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 96 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
97 } 97 }
98 98
99 static void stringifierAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 99 static void stringifierAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
100 { 100 {
101 v8::Handle<v8::Object> holder = info.Holder(); 101 v8::Local<v8::Object> holder = info.Holder();
102 TestObject* impl = V8TestObject::toImpl(holder); 102 TestObject* impl = V8TestObject::toImpl(holder);
103 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate() ); 103 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate() );
104 } 104 }
105 105
106 static void stringifierAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 106 static void stringifierAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
107 { 107 {
108 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 108 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
109 TestObjectV8Internal::stringifierAttributeAttributeGetter(info); 109 TestObjectV8Internal::stringifierAttributeAttributeGetter(info);
110 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 110 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
111 } 111 }
112 112
113 static void stringifierAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 113 static void stringifierAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
114 { 114 {
115 v8::Handle<v8::Object> holder = info.Holder(); 115 v8::Local<v8::Object> holder = info.Holder();
116 TestObject* impl = V8TestObject::toImpl(holder); 116 TestObject* impl = V8TestObject::toImpl(holder);
117 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 117 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
118 impl->setStringifierAttribute(cppValue); 118 impl->setStringifierAttribute(cppValue);
119 } 119 }
120 120
121 static void stringifierAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 121 static void stringifierAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
122 { 122 {
123 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 123 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
124 TestObjectV8Internal::stringifierAttributeAttributeSetter(v8Value, info); 124 TestObjectV8Internal::stringifierAttributeAttributeSetter(v8Value, info);
125 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 125 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
126 } 126 }
127 127
128 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 128 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
129 { 129 {
130 v8::Handle<v8::Object> holder = info.Holder(); 130 v8::Local<v8::Object> holder = info.Holder();
131 TestObject* impl = V8TestObject::toImpl(holder); 131 TestObject* impl = V8TestObject::toImpl(holder);
132 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat e()); 132 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat e());
133 } 133 }
134 134
135 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 135 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info)
136 { 136 {
137 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 137 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
138 TestObjectV8Internal::readonlyStringAttributeAttributeGetter(info); 138 TestObjectV8Internal::readonlyStringAttributeAttributeGetter(info);
139 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 139 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
140 } 140 }
141 141
142 static void readonlyTestInterfaceEmptyAttributeAttributeGetter(const v8::Propert yCallbackInfo<v8::Value>& info) 142 static void readonlyTestInterfaceEmptyAttributeAttributeGetter(const v8::Propert yCallbackInfo<v8::Value>& info)
143 { 143 {
144 v8::Handle<v8::Object> holder = info.Holder(); 144 v8::Local<v8::Object> holder = info.Holder();
145 TestObject* impl = V8TestObject::toImpl(holder); 145 TestObject* impl = V8TestObject::toImpl(holder);
146 RefPtr<TestInterfaceEmpty> cppValue(impl->readonlyTestInterfaceEmptyAttribut e()); 146 RefPtr<TestInterfaceEmpty> cppValue(impl->readonlyTestInterfaceEmptyAttribut e());
147 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get())) 147 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get()))
148 return; 148 return;
149 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate ()); 149 v8::Local<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate( ));
150 if (!wrapper.IsEmpty()) { 150 if (!wrapper.IsEmpty()) {
151 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "readonlyTestInterfaceEmptyAttribute"), wrapper); 151 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "readonlyTestInterfaceEmptyAttribute"), wrapper);
152 v8SetReturnValue(info, wrapper); 152 v8SetReturnValue(info, wrapper);
153 } 153 }
154 } 154 }
155 155
156 static void readonlyTestInterfaceEmptyAttributeAttributeGetterCallback(v8::Local <v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 156 static void readonlyTestInterfaceEmptyAttributeAttributeGetterCallback(v8::Local <v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
157 { 157 {
158 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 158 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
159 TestObjectV8Internal::readonlyTestInterfaceEmptyAttributeAttributeGetter(inf o); 159 TestObjectV8Internal::readonlyTestInterfaceEmptyAttributeAttributeGetter(inf o);
160 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 160 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
161 } 161 }
162 162
163 static void readonlyLongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 163 static void readonlyLongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
164 { 164 {
165 v8::Handle<v8::Object> holder = info.Holder(); 165 v8::Local<v8::Object> holder = info.Holder();
166 TestObject* impl = V8TestObject::toImpl(holder); 166 TestObject* impl = V8TestObject::toImpl(holder);
167 v8SetReturnValueInt(info, impl->readonlyLongAttribute()); 167 v8SetReturnValueInt(info, impl->readonlyLongAttribute());
168 } 168 }
169 169
170 static void readonlyLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 170 static void readonlyLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
171 { 171 {
172 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 172 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
173 TestObjectV8Internal::readonlyLongAttributeAttributeGetter(info); 173 TestObjectV8Internal::readonlyLongAttributeAttributeGetter(info);
174 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 174 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
175 } 175 }
176 176
177 static void dateAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 177 static void dateAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info)
178 { 178 {
179 v8::Handle<v8::Object> holder = info.Holder(); 179 v8::Local<v8::Object> holder = info.Holder();
180 TestObject* impl = V8TestObject::toImpl(holder); 180 TestObject* impl = V8TestObject::toImpl(holder);
181 v8SetReturnValue(info, v8DateOrNaN(impl->dateAttribute(), info.GetIsolate()) ); 181 v8SetReturnValue(info, v8DateOrNaN(impl->dateAttribute(), info.GetIsolate()) );
182 } 182 }
183 183
184 static void dateAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 184 static void dateAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info)
185 { 185 {
186 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 186 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
187 TestObjectV8Internal::dateAttributeAttributeGetter(info); 187 TestObjectV8Internal::dateAttributeAttributeGetter(info);
188 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 188 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
189 } 189 }
190 190
191 static void dateAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 191 static void dateAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
192 { 192 {
193 v8::Handle<v8::Object> holder = info.Holder(); 193 v8::Local<v8::Object> holder = info.Holder();
194 TestObject* impl = V8TestObject::toImpl(holder); 194 TestObject* impl = V8TestObject::toImpl(holder);
195 double cppValue = toCoreDate(v8Value); 195 double cppValue = toCoreDate(v8Value);
196 impl->setDateAttribute(cppValue); 196 impl->setDateAttribute(cppValue);
197 } 197 }
198 198
199 static void dateAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 199 static void dateAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
200 { 200 {
201 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 201 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
202 TestObjectV8Internal::dateAttributeAttributeSetter(v8Value, info); 202 TestObjectV8Internal::dateAttributeAttributeSetter(v8Value, info);
203 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 203 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
204 } 204 }
205 205
206 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info) 206 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info)
207 { 207 {
208 v8::Handle<v8::Object> holder = info.Holder(); 208 v8::Local<v8::Object> holder = info.Holder();
209 TestObject* impl = V8TestObject::toImpl(holder); 209 TestObject* impl = V8TestObject::toImpl(holder);
210 v8SetReturnValueString(info, impl->stringAttribute(), info.GetIsolate()); 210 v8SetReturnValueString(info, impl->stringAttribute(), info.GetIsolate());
211 } 211 }
212 212
213 static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 213 static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
214 { 214 {
215 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 215 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
216 TestObjectV8Internal::stringAttributeAttributeGetter(info); 216 TestObjectV8Internal::stringAttributeAttributeGetter(info);
217 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 217 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
218 } 218 }
219 219
220 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info) 220 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info)
221 { 221 {
222 v8::Handle<v8::Object> holder = info.Holder(); 222 v8::Local<v8::Object> holder = info.Holder();
223 TestObject* impl = V8TestObject::toImpl(holder); 223 TestObject* impl = V8TestObject::toImpl(holder);
224 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 224 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
225 impl->setStringAttribute(cppValue); 225 impl->setStringAttribute(cppValue);
226 } 226 }
227 227
228 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 228 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
229 { 229 {
230 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 230 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
231 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); 231 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info);
232 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 232 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
233 } 233 }
234 234
235 static void byteStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 235 static void byteStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
236 { 236 {
237 v8::Handle<v8::Object> holder = info.Holder(); 237 v8::Local<v8::Object> holder = info.Holder();
238 TestObject* impl = V8TestObject::toImpl(holder); 238 TestObject* impl = V8TestObject::toImpl(holder);
239 v8SetReturnValueString(info, impl->byteStringAttribute(), info.GetIsolate()) ; 239 v8SetReturnValueString(info, impl->byteStringAttribute(), info.GetIsolate()) ;
240 } 240 }
241 241
242 static void byteStringAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 242 static void byteStringAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
243 { 243 {
244 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 244 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
245 TestObjectV8Internal::byteStringAttributeAttributeGetter(info); 245 TestObjectV8Internal::byteStringAttributeAttributeGetter(info);
246 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 246 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
247 } 247 }
248 248
249 static void byteStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 249 static void byteStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
250 { 250 {
251 v8::Handle<v8::Object> holder = info.Holder(); 251 v8::Local<v8::Object> holder = info.Holder();
252 ExceptionState exceptionState(ExceptionState::SetterContext, "byteStringAttr ibute", "TestObject", holder, info.GetIsolate()); 252 ExceptionState exceptionState(ExceptionState::SetterContext, "byteStringAttr ibute", "TestObject", holder, info.GetIsolate());
253 TestObject* impl = V8TestObject::toImpl(holder); 253 TestObject* impl = V8TestObject::toImpl(holder);
254 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va lue, exceptionState), exceptionState); 254 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va lue, exceptionState), exceptionState);
255 impl->setByteStringAttribute(cppValue); 255 impl->setByteStringAttribute(cppValue);
256 } 256 }
257 257
258 static void byteStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 258 static void byteStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
259 { 259 {
260 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 260 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
261 TestObjectV8Internal::byteStringAttributeAttributeSetter(v8Value, info); 261 TestObjectV8Internal::byteStringAttributeAttributeSetter(v8Value, info);
262 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 262 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
263 } 263 }
264 264
265 static void usvStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info) 265 static void usvStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info)
266 { 266 {
267 v8::Handle<v8::Object> holder = info.Holder(); 267 v8::Local<v8::Object> holder = info.Holder();
268 TestObject* impl = V8TestObject::toImpl(holder); 268 TestObject* impl = V8TestObject::toImpl(holder);
269 v8SetReturnValueString(info, impl->usvStringAttribute(), info.GetIsolate()); 269 v8SetReturnValueString(info, impl->usvStringAttribute(), info.GetIsolate());
270 } 270 }
271 271
272 static void usvStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con st v8::PropertyCallbackInfo<v8::Value>& info) 272 static void usvStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con st v8::PropertyCallbackInfo<v8::Value>& info)
273 { 273 {
274 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 274 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
275 TestObjectV8Internal::usvStringAttributeAttributeGetter(info); 275 TestObjectV8Internal::usvStringAttributeAttributeGetter(info);
276 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 276 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
277 } 277 }
278 278
279 static void usvStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) 279 static void usvStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info)
280 { 280 {
281 v8::Handle<v8::Object> holder = info.Holder(); 281 v8::Local<v8::Object> holder = info.Holder();
282 ExceptionState exceptionState(ExceptionState::SetterContext, "usvStringAttri bute", "TestObject", holder, info.GetIsolate()); 282 ExceptionState exceptionState(ExceptionState::SetterContext, "usvStringAttri bute", "TestObject", holder, info.GetIsolate());
283 TestObject* impl = V8TestObject::toImpl(holder); 283 TestObject* impl = V8TestObject::toImpl(holder);
284 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toUSVString(v8Val ue, exceptionState), exceptionState); 284 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toUSVString(v8Val ue, exceptionState), exceptionState);
285 impl->setUsvStringAttribute(cppValue); 285 impl->setUsvStringAttribute(cppValue);
286 } 286 }
287 287
288 static void usvStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 288 static void usvStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
289 { 289 {
290 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 290 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
291 TestObjectV8Internal::usvStringAttributeAttributeSetter(v8Value, info); 291 TestObjectV8Internal::usvStringAttributeAttributeSetter(v8Value, info);
292 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 292 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
293 } 293 }
294 294
295 static void domTimeStampAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 295 static void domTimeStampAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
296 { 296 {
297 v8::Handle<v8::Object> holder = info.Holder(); 297 v8::Local<v8::Object> holder = info.Holder();
298 TestObject* impl = V8TestObject::toImpl(holder); 298 TestObject* impl = V8TestObject::toImpl(holder);
299 v8SetReturnValue(info, static_cast<double>(impl->domTimeStampAttribute())); 299 v8SetReturnValue(info, static_cast<double>(impl->domTimeStampAttribute()));
300 } 300 }
301 301
302 static void domTimeStampAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 302 static void domTimeStampAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
303 { 303 {
304 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 304 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
305 TestObjectV8Internal::domTimeStampAttributeAttributeGetter(info); 305 TestObjectV8Internal::domTimeStampAttributeAttributeGetter(info);
306 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 306 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
307 } 307 }
308 308
309 static void domTimeStampAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 309 static void domTimeStampAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
310 { 310 {
311 v8::Handle<v8::Object> holder = info.Holder(); 311 v8::Local<v8::Object> holder = info.Holder();
312 ExceptionState exceptionState(ExceptionState::SetterContext, "domTimeStampAt tribute", "TestObject", holder, info.GetIsolate()); 312 ExceptionState exceptionState(ExceptionState::SetterContext, "domTimeStampAt tribute", "TestObject", holder, info.GetIsolate());
313 TestObject* impl = V8TestObject::toImpl(holder); 313 TestObject* impl = V8TestObject::toImpl(holder);
314 TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, cppValue, toUInt64(v8Value, exceptionState), exceptionState); 314 TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, cppValue, toUInt64(v8Value, exceptionState), exceptionState);
315 impl->setDomTimeStampAttribute(cppValue); 315 impl->setDomTimeStampAttribute(cppValue);
316 } 316 }
317 317
318 static void domTimeStampAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 318 static void domTimeStampAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
319 { 319 {
320 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 320 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
321 TestObjectV8Internal::domTimeStampAttributeAttributeSetter(v8Value, info); 321 TestObjectV8Internal::domTimeStampAttributeAttributeSetter(v8Value, info);
322 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 322 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
323 } 323 }
324 324
325 static void booleanAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 325 static void booleanAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
326 { 326 {
327 v8::Handle<v8::Object> holder = info.Holder(); 327 v8::Local<v8::Object> holder = info.Holder();
328 TestObject* impl = V8TestObject::toImpl(holder); 328 TestObject* impl = V8TestObject::toImpl(holder);
329 v8SetReturnValueBool(info, impl->booleanAttribute()); 329 v8SetReturnValueBool(info, impl->booleanAttribute());
330 } 330 }
331 331
332 static void booleanAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 332 static void booleanAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
333 { 333 {
334 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 334 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
335 TestObjectV8Internal::booleanAttributeAttributeGetter(info); 335 TestObjectV8Internal::booleanAttributeAttributeGetter(info);
336 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 336 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
337 } 337 }
338 338
339 static void booleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 339 static void booleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
340 { 340 {
341 v8::Handle<v8::Object> holder = info.Holder(); 341 v8::Local<v8::Object> holder = info.Holder();
342 TestObject* impl = V8TestObject::toImpl(holder); 342 TestObject* impl = V8TestObject::toImpl(holder);
343 bool cppValue = v8Value->BooleanValue(); 343 bool cppValue = v8Value->BooleanValue();
344 impl->setBooleanAttribute(cppValue); 344 impl->setBooleanAttribute(cppValue);
345 } 345 }
346 346
347 static void booleanAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 347 static void booleanAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
348 { 348 {
349 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 349 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
350 TestObjectV8Internal::booleanAttributeAttributeSetter(v8Value, info); 350 TestObjectV8Internal::booleanAttributeAttributeSetter(v8Value, info);
351 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 351 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
352 } 352 }
353 353
354 static void byteAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 354 static void byteAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info)
355 { 355 {
356 v8::Handle<v8::Object> holder = info.Holder(); 356 v8::Local<v8::Object> holder = info.Holder();
357 TestObject* impl = V8TestObject::toImpl(holder); 357 TestObject* impl = V8TestObject::toImpl(holder);
358 v8SetReturnValueInt(info, impl->byteAttribute()); 358 v8SetReturnValueInt(info, impl->byteAttribute());
359 } 359 }
360 360
361 static void byteAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 361 static void byteAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info)
362 { 362 {
363 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 363 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
364 TestObjectV8Internal::byteAttributeAttributeGetter(info); 364 TestObjectV8Internal::byteAttributeAttributeGetter(info);
365 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 365 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
366 } 366 }
367 367
368 static void byteAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 368 static void byteAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
369 { 369 {
370 v8::Handle<v8::Object> holder = info.Holder(); 370 v8::Local<v8::Object> holder = info.Holder();
371 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute" , "TestObject", holder, info.GetIsolate()); 371 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute" , "TestObject", holder, info.GetIsolate());
372 TestObject* impl = V8TestObject::toImpl(holder); 372 TestObject* impl = V8TestObject::toImpl(holder);
373 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt8(v8Value, exceptionState), exceptionState); 373 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt8(v8Value, exceptionState), exceptionState);
374 impl->setByteAttribute(cppValue); 374 impl->setByteAttribute(cppValue);
375 } 375 }
376 376
377 static void byteAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 377 static void byteAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
378 { 378 {
379 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 379 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
380 TestObjectV8Internal::byteAttributeAttributeSetter(v8Value, info); 380 TestObjectV8Internal::byteAttributeAttributeSetter(v8Value, info);
381 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 381 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
382 } 382 }
383 383
384 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info) 384 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info)
385 { 385 {
386 v8::Handle<v8::Object> holder = info.Holder(); 386 v8::Local<v8::Object> holder = info.Holder();
387 TestObject* impl = V8TestObject::toImpl(holder); 387 TestObject* impl = V8TestObject::toImpl(holder);
388 v8SetReturnValue(info, impl->doubleAttribute()); 388 v8SetReturnValue(info, impl->doubleAttribute());
389 } 389 }
390 390
391 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 391 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
392 { 392 {
393 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 393 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
394 TestObjectV8Internal::doubleAttributeAttributeGetter(info); 394 TestObjectV8Internal::doubleAttributeAttributeGetter(info);
395 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 395 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
396 } 396 }
397 397
398 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info) 398 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info)
399 { 399 {
400 v8::Handle<v8::Object> holder = info.Holder(); 400 v8::Local<v8::Object> holder = info.Holder();
401 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut e", "TestObject", holder, info.GetIsolate()); 401 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut e", "TestObject", holder, info.GetIsolate());
402 TestObject* impl = V8TestObject::toImpl(holder); 402 TestObject* impl = V8TestObject::toImpl(holder);
403 TONATIVE_VOID_EXCEPTIONSTATE(double, cppValue, toDouble(v8Value, exceptionSt ate), exceptionState); 403 TONATIVE_VOID_EXCEPTIONSTATE(double, cppValue, toDouble(v8Value, exceptionSt ate), exceptionState);
404 impl->setDoubleAttribute(cppValue); 404 impl->setDoubleAttribute(cppValue);
405 } 405 }
406 406
407 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 407 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
408 { 408 {
409 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 409 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
410 TestObjectV8Internal::doubleAttributeAttributeSetter(v8Value, info); 410 TestObjectV8Internal::doubleAttributeAttributeSetter(v8Value, info);
411 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 411 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
412 } 412 }
413 413
414 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 414 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
415 { 415 {
416 v8::Handle<v8::Object> holder = info.Holder(); 416 v8::Local<v8::Object> holder = info.Holder();
417 TestObject* impl = V8TestObject::toImpl(holder); 417 TestObject* impl = V8TestObject::toImpl(holder);
418 v8SetReturnValue(info, impl->floatAttribute()); 418 v8SetReturnValue(info, impl->floatAttribute());
419 } 419 }
420 420
421 static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 421 static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info)
422 { 422 {
423 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 423 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
424 TestObjectV8Internal::floatAttributeAttributeGetter(info); 424 TestObjectV8Internal::floatAttributeAttributeGetter(info);
425 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 425 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
426 } 426 }
427 427
428 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 428 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info)
429 { 429 {
430 v8::Handle<v8::Object> holder = info.Holder(); 430 v8::Local<v8::Object> holder = info.Holder();
431 ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute ", "TestObject", holder, info.GetIsolate()); 431 ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute ", "TestObject", holder, info.GetIsolate());
432 TestObject* impl = V8TestObject::toImpl(holder); 432 TestObject* impl = V8TestObject::toImpl(holder);
433 TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toFloat(v8Value, exceptionStat e), exceptionState); 433 TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toFloat(v8Value, exceptionStat e), exceptionState);
434 impl->setFloatAttribute(cppValue); 434 impl->setFloatAttribute(cppValue);
435 } 435 }
436 436
437 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 437 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
438 { 438 {
439 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 439 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
440 TestObjectV8Internal::floatAttributeAttributeSetter(v8Value, info); 440 TestObjectV8Internal::floatAttributeAttributeSetter(v8Value, info);
441 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 441 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
442 } 442 }
443 443
444 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 444 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info)
445 { 445 {
446 v8::Handle<v8::Object> holder = info.Holder(); 446 v8::Local<v8::Object> holder = info.Holder();
447 TestObject* impl = V8TestObject::toImpl(holder); 447 TestObject* impl = V8TestObject::toImpl(holder);
448 v8SetReturnValueInt(info, impl->longAttribute()); 448 v8SetReturnValueInt(info, impl->longAttribute());
449 } 449 }
450 450
451 static void longAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 451 static void longAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info)
452 { 452 {
453 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 453 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
454 TestObjectV8Internal::longAttributeAttributeGetter(info); 454 TestObjectV8Internal::longAttributeAttributeGetter(info);
455 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 455 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
456 } 456 }
457 457
458 static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 458 static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
459 { 459 {
460 v8::Handle<v8::Object> holder = info.Holder(); 460 v8::Local<v8::Object> holder = info.Holder();
461 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute" , "TestObject", holder, info.GetIsolate()); 461 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute" , "TestObject", holder, info.GetIsolate());
462 TestObject* impl = V8TestObject::toImpl(holder); 462 TestObject* impl = V8TestObject::toImpl(holder);
463 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 463 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
464 impl->setLongAttribute(cppValue); 464 impl->setLongAttribute(cppValue);
465 } 465 }
466 466
467 static void longAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 467 static void longAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
468 { 468 {
469 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 469 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
470 TestObjectV8Internal::longAttributeAttributeSetter(v8Value, info); 470 TestObjectV8Internal::longAttributeAttributeSetter(v8Value, info);
471 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 471 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
472 } 472 }
473 473
474 static void longLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info) 474 static void longLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info)
475 { 475 {
476 v8::Handle<v8::Object> holder = info.Holder(); 476 v8::Local<v8::Object> holder = info.Holder();
477 TestObject* impl = V8TestObject::toImpl(holder); 477 TestObject* impl = V8TestObject::toImpl(holder);
478 v8SetReturnValue(info, static_cast<double>(impl->longLongAttribute())); 478 v8SetReturnValue(info, static_cast<double>(impl->longLongAttribute()));
479 } 479 }
480 480
481 static void longLongAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 481 static void longLongAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info)
482 { 482 {
483 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 483 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
484 TestObjectV8Internal::longLongAttributeAttributeGetter(info); 484 TestObjectV8Internal::longLongAttributeAttributeGetter(info);
485 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 485 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
486 } 486 }
487 487
488 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 488 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
489 { 489 {
490 v8::Handle<v8::Object> holder = info.Holder(); 490 v8::Local<v8::Object> holder = info.Holder();
491 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib ute", "TestObject", holder, info.GetIsolate()); 491 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib ute", "TestObject", holder, info.GetIsolate());
492 TestObject* impl = V8TestObject::toImpl(holder); 492 TestObject* impl = V8TestObject::toImpl(holder);
493 TONATIVE_VOID_EXCEPTIONSTATE(long long, cppValue, toInt64(v8Value, exception State), exceptionState); 493 TONATIVE_VOID_EXCEPTIONSTATE(long long, cppValue, toInt64(v8Value, exception State), exceptionState);
494 impl->setLongLongAttribute(cppValue); 494 impl->setLongLongAttribute(cppValue);
495 } 495 }
496 496
497 static void longLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 497 static void longLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
498 { 498 {
499 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 499 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
500 TestObjectV8Internal::longLongAttributeAttributeSetter(v8Value, info); 500 TestObjectV8Internal::longLongAttributeAttributeSetter(v8Value, info);
501 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 501 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
502 } 502 }
503 503
504 static void octetAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 504 static void octetAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
505 { 505 {
506 v8::Handle<v8::Object> holder = info.Holder(); 506 v8::Local<v8::Object> holder = info.Holder();
507 TestObject* impl = V8TestObject::toImpl(holder); 507 TestObject* impl = V8TestObject::toImpl(holder);
508 v8SetReturnValueUnsigned(info, impl->octetAttribute()); 508 v8SetReturnValueUnsigned(info, impl->octetAttribute());
509 } 509 }
510 510
511 static void octetAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 511 static void octetAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info)
512 { 512 {
513 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 513 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
514 TestObjectV8Internal::octetAttributeAttributeGetter(info); 514 TestObjectV8Internal::octetAttributeAttributeGetter(info);
515 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 515 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
516 } 516 }
517 517
518 static void octetAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 518 static void octetAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info)
519 { 519 {
520 v8::Handle<v8::Object> holder = info.Holder(); 520 v8::Local<v8::Object> holder = info.Holder();
521 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute ", "TestObject", holder, info.GetIsolate()); 521 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute ", "TestObject", holder, info.GetIsolate());
522 TestObject* impl = V8TestObject::toImpl(holder); 522 TestObject* impl = V8TestObject::toImpl(holder);
523 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt8(v8Value, exceptionS tate), exceptionState); 523 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt8(v8Value, exceptionS tate), exceptionState);
524 impl->setOctetAttribute(cppValue); 524 impl->setOctetAttribute(cppValue);
525 } 525 }
526 526
527 static void octetAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 527 static void octetAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
528 { 528 {
529 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 529 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
530 TestObjectV8Internal::octetAttributeAttributeSetter(v8Value, info); 530 TestObjectV8Internal::octetAttributeAttributeSetter(v8Value, info);
531 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 531 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
532 } 532 }
533 533
534 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 534 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
535 { 535 {
536 v8::Handle<v8::Object> holder = info.Holder(); 536 v8::Local<v8::Object> holder = info.Holder();
537 TestObject* impl = V8TestObject::toImpl(holder); 537 TestObject* impl = V8TestObject::toImpl(holder);
538 v8SetReturnValueInt(info, impl->shortAttribute()); 538 v8SetReturnValueInt(info, impl->shortAttribute());
539 } 539 }
540 540
541 static void shortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 541 static void shortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info)
542 { 542 {
543 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 543 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
544 TestObjectV8Internal::shortAttributeAttributeGetter(info); 544 TestObjectV8Internal::shortAttributeAttributeGetter(info);
545 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 545 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
546 } 546 }
547 547
548 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 548 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info)
549 { 549 {
550 v8::Handle<v8::Object> holder = info.Holder(); 550 v8::Local<v8::Object> holder = info.Holder();
551 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObject", holder, info.GetIsolate()); 551 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObject", holder, info.GetIsolate());
552 TestObject* impl = V8TestObject::toImpl(holder); 552 TestObject* impl = V8TestObject::toImpl(holder);
553 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionState) , exceptionState); 553 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionState) , exceptionState);
554 impl->setShortAttribute(cppValue); 554 impl->setShortAttribute(cppValue);
555 } 555 }
556 556
557 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 557 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
558 { 558 {
559 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 559 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
560 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); 560 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info);
561 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 561 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
562 } 562 }
563 563
564 static void unrestrictedDoubleAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 564 static void unrestrictedDoubleAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
565 { 565 {
566 v8::Handle<v8::Object> holder = info.Holder(); 566 v8::Local<v8::Object> holder = info.Holder();
567 TestObject* impl = V8TestObject::toImpl(holder); 567 TestObject* impl = V8TestObject::toImpl(holder);
568 v8SetReturnValue(info, impl->unrestrictedDoubleAttribute()); 568 v8SetReturnValue(info, impl->unrestrictedDoubleAttribute());
569 } 569 }
570 570
571 static void unrestrictedDoubleAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 571 static void unrestrictedDoubleAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info)
572 { 572 {
573 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 573 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
574 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeGetter(info); 574 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeGetter(info);
575 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 575 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
576 } 576 }
577 577
578 static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 578 static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
579 { 579 {
580 v8::Handle<v8::Object> holder = info.Holder(); 580 v8::Local<v8::Object> holder = info.Holder();
581 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo ubleAttribute", "TestObject", holder, info.GetIsolate()); 581 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo ubleAttribute", "TestObject", holder, info.GetIsolate());
582 TestObject* impl = V8TestObject::toImpl(holder); 582 TestObject* impl = V8TestObject::toImpl(holder);
583 TONATIVE_VOID_EXCEPTIONSTATE(double, cppValue, toDouble(v8Value, exceptionSt ate), exceptionState); 583 TONATIVE_VOID_EXCEPTIONSTATE(double, cppValue, toDouble(v8Value, exceptionSt ate), exceptionState);
584 impl->setUnrestrictedDoubleAttribute(cppValue); 584 impl->setUnrestrictedDoubleAttribute(cppValue);
585 } 585 }
586 586
587 static void unrestrictedDoubleAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 587 static void unrestrictedDoubleAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
588 { 588 {
589 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 589 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
590 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeSetter(v8Value, in fo); 590 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeSetter(v8Value, in fo);
591 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 591 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
592 } 592 }
593 593
594 static void unrestrictedFloatAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info) 594 static void unrestrictedFloatAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info)
595 { 595 {
596 v8::Handle<v8::Object> holder = info.Holder(); 596 v8::Local<v8::Object> holder = info.Holder();
597 TestObject* impl = V8TestObject::toImpl(holder); 597 TestObject* impl = V8TestObject::toImpl(holder);
598 v8SetReturnValue(info, impl->unrestrictedFloatAttribute()); 598 v8SetReturnValue(info, impl->unrestrictedFloatAttribute());
599 } 599 }
600 600
601 static void unrestrictedFloatAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info) 601 static void unrestrictedFloatAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info)
602 { 602 {
603 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 603 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
604 TestObjectV8Internal::unrestrictedFloatAttributeAttributeGetter(info); 604 TestObjectV8Internal::unrestrictedFloatAttributeAttributeGetter(info);
605 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 605 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
606 } 606 }
607 607
608 static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info) 608 static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info)
609 { 609 {
610 v8::Handle<v8::Object> holder = info.Holder(); 610 v8::Local<v8::Object> holder = info.Holder();
611 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedFl oatAttribute", "TestObject", holder, info.GetIsolate()); 611 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedFl oatAttribute", "TestObject", holder, info.GetIsolate());
612 TestObject* impl = V8TestObject::toImpl(holder); 612 TestObject* impl = V8TestObject::toImpl(holder);
613 TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toFloat(v8Value, exceptionStat e), exceptionState); 613 TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toFloat(v8Value, exceptionStat e), exceptionState);
614 impl->setUnrestrictedFloatAttribute(cppValue); 614 impl->setUnrestrictedFloatAttribute(cppValue);
615 } 615 }
616 616
617 static void unrestrictedFloatAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 617 static void unrestrictedFloatAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
618 { 618 {
619 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 619 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
620 TestObjectV8Internal::unrestrictedFloatAttributeAttributeSetter(v8Value, inf o); 620 TestObjectV8Internal::unrestrictedFloatAttributeAttributeSetter(v8Value, inf o);
621 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 621 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
622 } 622 }
623 623
624 static void unsignedLongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 624 static void unsignedLongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
625 { 625 {
626 v8::Handle<v8::Object> holder = info.Holder(); 626 v8::Local<v8::Object> holder = info.Holder();
627 TestObject* impl = V8TestObject::toImpl(holder); 627 TestObject* impl = V8TestObject::toImpl(holder);
628 v8SetReturnValueUnsigned(info, impl->unsignedLongAttribute()); 628 v8SetReturnValueUnsigned(info, impl->unsignedLongAttribute());
629 } 629 }
630 630
631 static void unsignedLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 631 static void unsignedLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
632 { 632 {
633 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 633 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
634 TestObjectV8Internal::unsignedLongAttributeAttributeGetter(info); 634 TestObjectV8Internal::unsignedLongAttributeAttributeGetter(info);
635 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 635 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
636 } 636 }
637 637
638 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 638 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
639 { 639 {
640 v8::Handle<v8::Object> holder = info.Holder(); 640 v8::Local<v8::Object> holder = info.Holder();
641 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt tribute", "TestObject", holder, info.GetIsolate()); 641 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt tribute", "TestObject", holder, info.GetIsolate());
642 TestObject* impl = V8TestObject::toImpl(holder); 642 TestObject* impl = V8TestObject::toImpl(holder);
643 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt32(v8Value, exception State), exceptionState); 643 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt32(v8Value, exception State), exceptionState);
644 impl->setUnsignedLongAttribute(cppValue); 644 impl->setUnsignedLongAttribute(cppValue);
645 } 645 }
646 646
647 static void unsignedLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 647 static void unsignedLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
648 { 648 {
649 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 649 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
650 TestObjectV8Internal::unsignedLongAttributeAttributeSetter(v8Value, info); 650 TestObjectV8Internal::unsignedLongAttributeAttributeSetter(v8Value, info);
651 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 651 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
652 } 652 }
653 653
654 static void unsignedLongLongAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 654 static void unsignedLongLongAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
655 { 655 {
656 v8::Handle<v8::Object> holder = info.Holder(); 656 v8::Local<v8::Object> holder = info.Holder();
657 TestObject* impl = V8TestObject::toImpl(holder); 657 TestObject* impl = V8TestObject::toImpl(holder);
658 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttribute() )); 658 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttribute() ));
659 } 659 }
660 660
661 static void unsignedLongLongAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 661 static void unsignedLongLongAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
662 { 662 {
663 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 663 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
664 TestObjectV8Internal::unsignedLongLongAttributeAttributeGetter(info); 664 TestObjectV8Internal::unsignedLongLongAttributeAttributeGetter(info);
665 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 665 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
666 } 666 }
667 667
668 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 668 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
669 { 669 {
670 v8::Handle<v8::Object> holder = info.Holder(); 670 v8::Local<v8::Object> holder = info.Holder();
671 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo ngAttribute", "TestObject", holder, info.GetIsolate()); 671 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo ngAttribute", "TestObject", holder, info.GetIsolate());
672 TestObject* impl = V8TestObject::toImpl(holder); 672 TestObject* impl = V8TestObject::toImpl(holder);
673 TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, cppValue, toUInt64(v8Value, exceptionState), exceptionState); 673 TONATIVE_VOID_EXCEPTIONSTATE(unsigned long long, cppValue, toUInt64(v8Value, exceptionState), exceptionState);
674 impl->setUnsignedLongLongAttribute(cppValue); 674 impl->setUnsignedLongLongAttribute(cppValue);
675 } 675 }
676 676
677 static void unsignedLongLongAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 677 static void unsignedLongLongAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
678 { 678 {
679 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 679 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
680 TestObjectV8Internal::unsignedLongLongAttributeAttributeSetter(v8Value, info ); 680 TestObjectV8Internal::unsignedLongLongAttributeAttributeSetter(v8Value, info );
681 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 681 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
682 } 682 }
683 683
684 static void unsignedShortAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 684 static void unsignedShortAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
685 { 685 {
686 v8::Handle<v8::Object> holder = info.Holder(); 686 v8::Local<v8::Object> holder = info.Holder();
687 TestObject* impl = V8TestObject::toImpl(holder); 687 TestObject* impl = V8TestObject::toImpl(holder);
688 v8SetReturnValueUnsigned(info, impl->unsignedShortAttribute()); 688 v8SetReturnValueUnsigned(info, impl->unsignedShortAttribute());
689 } 689 }
690 690
691 static void unsignedShortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 691 static void unsignedShortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
692 { 692 {
693 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 693 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
694 TestObjectV8Internal::unsignedShortAttributeAttributeGetter(info); 694 TestObjectV8Internal::unsignedShortAttributeAttributeGetter(info);
695 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 695 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
696 } 696 }
697 697
698 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 698 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
699 { 699 {
700 v8::Handle<v8::Object> holder = info.Holder(); 700 v8::Local<v8::Object> holder = info.Holder();
701 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA ttribute", "TestObject", holder, info.GetIsolate()); 701 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA ttribute", "TestObject", holder, info.GetIsolate());
702 TestObject* impl = V8TestObject::toImpl(holder); 702 TestObject* impl = V8TestObject::toImpl(holder);
703 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt16(v8Value, exception State), exceptionState); 703 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt16(v8Value, exception State), exceptionState);
704 impl->setUnsignedShortAttribute(cppValue); 704 impl->setUnsignedShortAttribute(cppValue);
705 } 705 }
706 706
707 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 707 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
708 { 708 {
709 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 709 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
710 TestObjectV8Internal::unsignedShortAttributeAttributeSetter(v8Value, info); 710 TestObjectV8Internal::unsignedShortAttributeAttributeSetter(v8Value, info);
711 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 711 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
712 } 712 }
713 713
714 static void testInterfaceEmptyAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 714 static void testInterfaceEmptyAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
715 { 715 {
716 v8::Handle<v8::Object> holder = info.Holder(); 716 v8::Local<v8::Object> holder = info.Holder();
717 TestObject* impl = V8TestObject::toImpl(holder); 717 TestObject* impl = V8TestObject::toImpl(holder);
718 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceEmptyAttribute()), impl); 718 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceEmptyAttribute()), impl);
719 } 719 }
720 720
721 static void testInterfaceEmptyAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 721 static void testInterfaceEmptyAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info)
722 { 722 {
723 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 723 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
724 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeGetter(info); 724 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeGetter(info);
725 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 725 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
726 } 726 }
727 727
728 static void testInterfaceEmptyAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 728 static void testInterfaceEmptyAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
729 { 729 {
730 v8::Handle<v8::Object> holder = info.Holder(); 730 v8::Local<v8::Object> holder = info.Holder();
731 TestObject* impl = V8TestObject::toImpl(holder); 731 TestObject* impl = V8TestObject::toImpl(holder);
732 TestInterfaceEmpty* cppValue = V8TestInterfaceEmpty::toImplWithTypeCheck(inf o.GetIsolate(), v8Value); 732 TestInterfaceEmpty* cppValue = V8TestInterfaceEmpty::toImplWithTypeCheck(inf o.GetIsolate(), v8Value);
733 impl->setTestInterfaceEmptyAttribute(WTF::getPtr(cppValue)); 733 impl->setTestInterfaceEmptyAttribute(WTF::getPtr(cppValue));
734 } 734 }
735 735
736 static void testInterfaceEmptyAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 736 static void testInterfaceEmptyAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
737 { 737 {
738 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 738 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
739 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeSetter(v8Value, in fo); 739 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeSetter(v8Value, in fo);
740 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 740 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
741 } 741 }
742 742
743 static void testObjectAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 743 static void testObjectAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
744 { 744 {
745 v8::Handle<v8::Object> holder = info.Holder(); 745 v8::Local<v8::Object> holder = info.Holder();
746 TestObject* impl = V8TestObject::toImpl(holder); 746 TestObject* impl = V8TestObject::toImpl(holder);
747 v8SetReturnValueFast(info, WTF::getPtr(impl->testObjectAttribute()), impl); 747 v8SetReturnValueFast(info, WTF::getPtr(impl->testObjectAttribute()), impl);
748 } 748 }
749 749
750 static void testObjectAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 750 static void testObjectAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
751 { 751 {
752 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 752 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
753 TestObjectV8Internal::testObjectAttributeAttributeGetter(info); 753 TestObjectV8Internal::testObjectAttributeAttributeGetter(info);
754 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 754 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
755 } 755 }
756 756
757 static void testObjectAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 757 static void testObjectAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
758 { 758 {
759 v8::Handle<v8::Object> holder = info.Holder(); 759 v8::Local<v8::Object> holder = info.Holder();
760 TestObject* impl = V8TestObject::toImpl(holder); 760 TestObject* impl = V8TestObject::toImpl(holder);
761 TestObject* cppValue = V8TestObject::toImplWithTypeCheck(info.GetIsolate(), v8Value); 761 TestObject* cppValue = V8TestObject::toImplWithTypeCheck(info.GetIsolate(), v8Value);
762 impl->setTestObjectAttribute(WTF::getPtr(cppValue)); 762 impl->setTestObjectAttribute(WTF::getPtr(cppValue));
763 } 763 }
764 764
765 static void testObjectAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 765 static void testObjectAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
766 { 766 {
767 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 767 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
768 TestObjectV8Internal::testObjectAttributeAttributeSetter(v8Value, info); 768 TestObjectV8Internal::testObjectAttributeAttributeSetter(v8Value, info);
769 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 769 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
770 } 770 }
771 771
772 static void voidCallbackFunctionAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 772 static void voidCallbackFunctionAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info)
773 { 773 {
774 v8::Handle<v8::Object> holder = info.Holder(); 774 v8::Local<v8::Object> holder = info.Holder();
775 TestObject* impl = V8TestObject::toImpl(holder); 775 TestObject* impl = V8TestObject::toImpl(holder);
776 v8SetReturnValue(info, impl->voidCallbackFunctionAttribute().v8Value()); 776 v8SetReturnValue(info, impl->voidCallbackFunctionAttribute().v8Value());
777 } 777 }
778 778
779 static void voidCallbackFunctionAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info) 779 static void voidCallbackFunctionAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info)
780 { 780 {
781 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 781 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
782 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeGetter(info); 782 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeGetter(info);
783 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 783 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
784 } 784 }
785 785
786 static void voidCallbackFunctionAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info) 786 static void voidCallbackFunctionAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info)
787 { 787 {
788 v8::Handle<v8::Object> holder = info.Holder(); 788 v8::Local<v8::Object> holder = info.Holder();
789 TestObject* impl = V8TestObject::toImpl(holder); 789 TestObject* impl = V8TestObject::toImpl(holder);
790 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 790 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
791 impl->setVoidCallbackFunctionAttribute(cppValue); 791 impl->setVoidCallbackFunctionAttribute(cppValue);
792 } 792 }
793 793
794 static void voidCallbackFunctionAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info ) 794 static void voidCallbackFunctionAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info )
795 { 795 {
796 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 796 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
797 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeSetter(v8Value, info); 797 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeSetter(v8Value, info);
798 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 798 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
799 } 799 }
800 800
801 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info) 801 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info)
802 { 802 {
803 v8::Handle<v8::Object> holder = info.Holder(); 803 v8::Local<v8::Object> holder = info.Holder();
804 TestObject* impl = V8TestObject::toImpl(holder); 804 TestObject* impl = V8TestObject::toImpl(holder);
805 v8SetReturnValue(info, impl->anyCallbackFunctionOptionalAnyArgAttribute().v8 Value()); 805 v8SetReturnValue(info, impl->anyCallbackFunctionOptionalAnyArgAttribute().v8 Value());
806 } 806 }
807 807
808 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetterCallback(v8 ::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 808 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetterCallback(v8 ::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
809 { 809 {
810 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 810 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
811 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeGet ter(info); 811 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeGet ter(info);
812 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 812 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
813 } 813 }
814 814
815 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 815 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
816 { 816 {
817 v8::Handle<v8::Object> holder = info.Holder(); 817 v8::Local<v8::Object> holder = info.Holder();
818 TestObject* impl = V8TestObject::toImpl(holder); 818 TestObject* impl = V8TestObject::toImpl(holder);
819 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 819 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
820 impl->setAnyCallbackFunctionOptionalAnyArgAttribute(cppValue); 820 impl->setAnyCallbackFunctionOptionalAnyArgAttribute(cppValue);
821 } 821 }
822 822
823 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetterCallback(v8 ::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info) 823 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetterCallback(v8 ::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info)
824 { 824 {
825 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 825 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
826 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeSet ter(v8Value, info); 826 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeSet ter(v8Value, info);
827 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 827 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
828 } 828 }
829 829
830 static void cssAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 830 static void cssAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info)
831 { 831 {
832 v8::Handle<v8::Object> holder = info.Holder(); 832 v8::Local<v8::Object> holder = info.Holder();
833 TestObject* impl = V8TestObject::toImpl(holder); 833 TestObject* impl = V8TestObject::toImpl(holder);
834 v8SetReturnValueInt(info, impl->cssAttribute()); 834 v8SetReturnValueInt(info, impl->cssAttribute());
835 } 835 }
836 836
837 static void cssAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info) 837 static void cssAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info)
838 { 838 {
839 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 839 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
840 TestObjectV8Internal::cssAttributeAttributeGetter(info); 840 TestObjectV8Internal::cssAttributeAttributeGetter(info);
841 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 841 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
842 } 842 }
843 843
844 static void cssAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 844 static void cssAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info)
845 { 845 {
846 v8::Handle<v8::Object> holder = info.Holder(); 846 v8::Local<v8::Object> holder = info.Holder();
847 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute", "TestObject", holder, info.GetIsolate()); 847 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute", "TestObject", holder, info.GetIsolate());
848 TestObject* impl = V8TestObject::toImpl(holder); 848 TestObject* impl = V8TestObject::toImpl(holder);
849 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 849 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
850 impl->setCSSAttribute(cppValue); 850 impl->setCSSAttribute(cppValue);
851 } 851 }
852 852
853 static void cssAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 853 static void cssAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
854 { 854 {
855 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 855 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
856 TestObjectV8Internal::cssAttributeAttributeSetter(v8Value, info); 856 TestObjectV8Internal::cssAttributeAttributeSetter(v8Value, info);
857 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 857 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
858 } 858 }
859 859
860 static void imeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 860 static void imeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info)
861 { 861 {
862 v8::Handle<v8::Object> holder = info.Holder(); 862 v8::Local<v8::Object> holder = info.Holder();
863 TestObject* impl = V8TestObject::toImpl(holder); 863 TestObject* impl = V8TestObject::toImpl(holder);
864 v8SetReturnValueInt(info, impl->imeAttribute()); 864 v8SetReturnValueInt(info, impl->imeAttribute());
865 } 865 }
866 866
867 static void imeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info) 867 static void imeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info)
868 { 868 {
869 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 869 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
870 TestObjectV8Internal::imeAttributeAttributeGetter(info); 870 TestObjectV8Internal::imeAttributeAttributeGetter(info);
871 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 871 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
872 } 872 }
873 873
874 static void imeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 874 static void imeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info)
875 { 875 {
876 v8::Handle<v8::Object> holder = info.Holder(); 876 v8::Local<v8::Object> holder = info.Holder();
877 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute", "TestObject", holder, info.GetIsolate()); 877 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute", "TestObject", holder, info.GetIsolate());
878 TestObject* impl = V8TestObject::toImpl(holder); 878 TestObject* impl = V8TestObject::toImpl(holder);
879 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 879 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
880 impl->setIMEAttribute(cppValue); 880 impl->setIMEAttribute(cppValue);
881 } 881 }
882 882
883 static void imeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 883 static void imeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
884 { 884 {
885 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 885 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
886 TestObjectV8Internal::imeAttributeAttributeSetter(v8Value, info); 886 TestObjectV8Internal::imeAttributeAttributeSetter(v8Value, info);
887 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 887 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
888 } 888 }
889 889
890 static void svgAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 890 static void svgAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info)
891 { 891 {
892 v8::Handle<v8::Object> holder = info.Holder(); 892 v8::Local<v8::Object> holder = info.Holder();
893 TestObject* impl = V8TestObject::toImpl(holder); 893 TestObject* impl = V8TestObject::toImpl(holder);
894 v8SetReturnValueInt(info, impl->svgAttribute()); 894 v8SetReturnValueInt(info, impl->svgAttribute());
895 } 895 }
896 896
897 static void svgAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info) 897 static void svgAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info)
898 { 898 {
899 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 899 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
900 TestObjectV8Internal::svgAttributeAttributeGetter(info); 900 TestObjectV8Internal::svgAttributeAttributeGetter(info);
901 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 901 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
902 } 902 }
903 903
904 static void svgAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 904 static void svgAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info)
905 { 905 {
906 v8::Handle<v8::Object> holder = info.Holder(); 906 v8::Local<v8::Object> holder = info.Holder();
907 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute", "TestObject", holder, info.GetIsolate()); 907 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute", "TestObject", holder, info.GetIsolate());
908 TestObject* impl = V8TestObject::toImpl(holder); 908 TestObject* impl = V8TestObject::toImpl(holder);
909 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 909 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
910 impl->setSVGAttribute(cppValue); 910 impl->setSVGAttribute(cppValue);
911 } 911 }
912 912
913 static void svgAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 913 static void svgAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
914 { 914 {
915 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 915 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
916 TestObjectV8Internal::svgAttributeAttributeSetter(v8Value, info); 916 TestObjectV8Internal::svgAttributeAttributeSetter(v8Value, info);
917 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 917 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
918 } 918 }
919 919
920 static void xmlAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 920 static void xmlAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info)
921 { 921 {
922 v8::Handle<v8::Object> holder = info.Holder(); 922 v8::Local<v8::Object> holder = info.Holder();
923 TestObject* impl = V8TestObject::toImpl(holder); 923 TestObject* impl = V8TestObject::toImpl(holder);
924 v8SetReturnValueInt(info, impl->xmlAttribute()); 924 v8SetReturnValueInt(info, impl->xmlAttribute());
925 } 925 }
926 926
927 static void xmlAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info) 927 static void xmlAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info)
928 { 928 {
929 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 929 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
930 TestObjectV8Internal::xmlAttributeAttributeGetter(info); 930 TestObjectV8Internal::xmlAttributeAttributeGetter(info);
931 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 931 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
932 } 932 }
933 933
934 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 934 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info)
935 { 935 {
936 v8::Handle<v8::Object> holder = info.Holder(); 936 v8::Local<v8::Object> holder = info.Holder();
937 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute", "TestObject", holder, info.GetIsolate()); 937 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute", "TestObject", holder, info.GetIsolate());
938 TestObject* impl = V8TestObject::toImpl(holder); 938 TestObject* impl = V8TestObject::toImpl(holder);
939 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 939 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
940 impl->setXMLAttribute(cppValue); 940 impl->setXMLAttribute(cppValue);
941 } 941 }
942 942
943 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 943 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
944 { 944 {
945 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 945 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
946 TestObjectV8Internal::xmlAttributeAttributeSetter(v8Value, info); 946 TestObjectV8Internal::xmlAttributeAttributeSetter(v8Value, info);
947 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 947 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
948 } 948 }
949 949
950 static void nodeFilterAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 950 static void nodeFilterAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
951 { 951 {
952 v8::Handle<v8::Object> holder = info.Holder(); 952 v8::Local<v8::Object> holder = info.Holder();
953 TestObject* impl = V8TestObject::toImpl(holder); 953 TestObject* impl = V8TestObject::toImpl(holder);
954 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeFilterAttribute()), impl); 954 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeFilterAttribute()), impl);
955 } 955 }
956 956
957 static void nodeFilterAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 957 static void nodeFilterAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
958 { 958 {
959 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 959 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
960 TestObjectV8Internal::nodeFilterAttributeAttributeGetter(info); 960 TestObjectV8Internal::nodeFilterAttributeAttributeGetter(info);
961 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 961 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
962 } 962 }
963 963
964 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 964 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
965 { 965 {
966 v8::Handle<v8::Object> holder = info.Holder(); 966 v8::Local<v8::Object> holder = info.Holder();
967 TestObject* impl = V8TestObject::toImpl(holder); 967 TestObject* impl = V8TestObject::toImpl(holder);
968 RefPtrWillBeRawPtr<NodeFilter> cppValue = toNodeFilter(v8Value, info.Holder( ), ScriptState::current(info.GetIsolate())); 968 RefPtrWillBeRawPtr<NodeFilter> cppValue = toNodeFilter(v8Value, info.Holder( ), ScriptState::current(info.GetIsolate()));
969 impl->setNodeFilterAttribute(WTF::getPtr(cppValue)); 969 impl->setNodeFilterAttribute(WTF::getPtr(cppValue));
970 } 970 }
971 971
972 static void nodeFilterAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 972 static void nodeFilterAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
973 { 973 {
974 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 974 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
975 TestObjectV8Internal::nodeFilterAttributeAttributeSetter(v8Value, info); 975 TestObjectV8Internal::nodeFilterAttributeAttributeSetter(v8Value, info);
976 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 976 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
977 } 977 }
978 978
979 static void serializedScriptValueAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info) 979 static void serializedScriptValueAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info)
980 { 980 {
981 v8::Handle<v8::Object> holder = info.Holder(); 981 v8::Local<v8::Object> holder = info.Holder();
982 TestObject* impl = V8TestObject::toImpl(holder); 982 TestObject* impl = V8TestObject::toImpl(holder);
983 v8SetReturnValue(info, impl->serializedScriptValueAttribute() ? impl->serial izedScriptValueAttribute()->deserialize() : v8::Handle<v8::Value>(v8::Null(info. GetIsolate()))); 983 v8SetReturnValue(info, impl->serializedScriptValueAttribute() ? impl->serial izedScriptValueAttribute()->deserialize() : v8::Handle<v8::Value>(v8::Null(info. GetIsolate())));
984 } 984 }
985 985
986 static void serializedScriptValueAttributeAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info) 986 static void serializedScriptValueAttributeAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info)
987 { 987 {
988 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 988 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
989 TestObjectV8Internal::serializedScriptValueAttributeAttributeGetter(info); 989 TestObjectV8Internal::serializedScriptValueAttributeAttributeGetter(info);
990 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 990 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
991 } 991 }
992 992
993 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info) 993 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info)
994 { 994 {
995 v8::Handle<v8::Object> holder = info.Holder(); 995 v8::Local<v8::Object> holder = info.Holder();
996 ExceptionState exceptionState(ExceptionState::SetterContext, "serializedScri ptValueAttribute", "TestObject", holder, info.GetIsolate()); 996 ExceptionState exceptionState(ExceptionState::SetterContext, "serializedScri ptValueAttribute", "TestObject", holder, info.GetIsolate());
997 TestObject* impl = V8TestObject::toImpl(holder); 997 TestObject* impl = V8TestObject::toImpl(holder);
998 TONATIVE_VOID_EXCEPTIONSTATE(RefPtr<SerializedScriptValue>, cppValue, Serial izedScriptValueFactory::instance().create(v8Value, 0, 0, exceptionState, info.Ge tIsolate()), exceptionState); 998 TONATIVE_VOID_EXCEPTIONSTATE(RefPtr<SerializedScriptValue>, cppValue, Serial izedScriptValueFactory::instance().create(v8Value, 0, 0, exceptionState, info.Ge tIsolate()), exceptionState);
999 impl->setSerializedScriptValueAttribute(WTF::getPtr(cppValue)); 999 impl->setSerializedScriptValueAttribute(WTF::getPtr(cppValue));
1000 } 1000 }
1001 1001
1002 static void serializedScriptValueAttributeAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o) 1002 static void serializedScriptValueAttributeAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o)
1003 { 1003 {
1004 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1004 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1005 TestObjectV8Internal::serializedScriptValueAttributeAttributeSetter(v8Value, info); 1005 TestObjectV8Internal::serializedScriptValueAttributeAttributeSetter(v8Value, info);
1006 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1006 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1007 } 1007 }
1008 1008
1009 static void anyAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 1009 static void anyAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info)
1010 { 1010 {
1011 v8::Handle<v8::Object> holder = info.Holder(); 1011 v8::Local<v8::Object> holder = info.Holder();
1012 TestObject* impl = V8TestObject::toImpl(holder); 1012 TestObject* impl = V8TestObject::toImpl(holder);
1013 v8SetReturnValue(info, impl->anyAttribute().v8Value()); 1013 v8SetReturnValue(info, impl->anyAttribute().v8Value());
1014 } 1014 }
1015 1015
1016 static void anyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info) 1016 static void anyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info)
1017 { 1017 {
1018 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1018 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1019 TestObjectV8Internal::anyAttributeAttributeGetter(info); 1019 TestObjectV8Internal::anyAttributeAttributeGetter(info);
1020 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1020 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1021 } 1021 }
1022 1022
1023 static void anyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info) 1023 static void anyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info)
1024 { 1024 {
1025 v8::Handle<v8::Object> holder = info.Holder(); 1025 v8::Local<v8::Object> holder = info.Holder();
1026 TestObject* impl = V8TestObject::toImpl(holder); 1026 TestObject* impl = V8TestObject::toImpl(holder);
1027 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 1027 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
1028 impl->setAnyAttribute(cppValue); 1028 impl->setAnyAttribute(cppValue);
1029 } 1029 }
1030 1030
1031 static void anyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1031 static void anyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1032 { 1032 {
1033 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1033 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1034 TestObjectV8Internal::anyAttributeAttributeSetter(v8Value, info); 1034 TestObjectV8Internal::anyAttributeAttributeSetter(v8Value, info);
1035 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1035 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1036 } 1036 }
1037 1037
1038 static void promiseAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 1038 static void promiseAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
1039 { 1039 {
1040 v8::Handle<v8::Object> holder = info.Holder(); 1040 v8::Local<v8::Object> holder = info.Holder();
1041 TestObject* impl = V8TestObject::toImpl(holder); 1041 TestObject* impl = V8TestObject::toImpl(holder);
1042 v8SetReturnValue(info, impl->promiseAttribute().v8Value()); 1042 v8SetReturnValue(info, impl->promiseAttribute().v8Value());
1043 } 1043 }
1044 1044
1045 static void promiseAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1045 static void promiseAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1046 { 1046 {
1047 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1047 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1048 TestObjectV8Internal::promiseAttributeAttributeGetter(info); 1048 TestObjectV8Internal::promiseAttributeAttributeGetter(info);
1049 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1049 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1050 } 1050 }
1051 1051
1052 static void promiseAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1052 static void promiseAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1053 { 1053 {
1054 v8::Handle<v8::Object> holder = info.Holder(); 1054 v8::Local<v8::Object> holder = info.Holder();
1055 TestObject* impl = V8TestObject::toImpl(holder); 1055 TestObject* impl = V8TestObject::toImpl(holder);
1056 ScriptPromise cppValue = ScriptPromise::cast(ScriptState::current(info.GetIs olate()), v8Value); 1056 ScriptPromise cppValue = ScriptPromise::cast(ScriptState::current(info.GetIs olate()), v8Value);
1057 impl->setPromiseAttribute(cppValue); 1057 impl->setPromiseAttribute(cppValue);
1058 } 1058 }
1059 1059
1060 static void promiseAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1060 static void promiseAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1061 { 1061 {
1062 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1062 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1063 TestObjectV8Internal::promiseAttributeAttributeSetter(v8Value, info); 1063 TestObjectV8Internal::promiseAttributeAttributeSetter(v8Value, info);
1064 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1064 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1065 } 1065 }
1066 1066
1067 static void windowAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info) 1067 static void windowAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info)
1068 { 1068 {
1069 v8::Handle<v8::Object> holder = info.Holder(); 1069 v8::Local<v8::Object> holder = info.Holder();
1070 TestObject* impl = V8TestObject::toImpl(holder); 1070 TestObject* impl = V8TestObject::toImpl(holder);
1071 v8SetReturnValueFast(info, WTF::getPtr(impl->windowAttribute()), impl); 1071 v8SetReturnValueFast(info, WTF::getPtr(impl->windowAttribute()), impl);
1072 } 1072 }
1073 1073
1074 static void windowAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1074 static void windowAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1075 { 1075 {
1076 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1076 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1077 TestObjectV8Internal::windowAttributeAttributeGetter(info); 1077 TestObjectV8Internal::windowAttributeAttributeGetter(info);
1078 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1078 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1079 } 1079 }
1080 1080
1081 static void windowAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info) 1081 static void windowAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info)
1082 { 1082 {
1083 v8::Handle<v8::Object> holder = info.Holder(); 1083 v8::Local<v8::Object> holder = info.Holder();
1084 TestObject* impl = V8TestObject::toImpl(holder); 1084 TestObject* impl = V8TestObject::toImpl(holder);
1085 DOMWindow* cppValue = toDOMWindow(info.GetIsolate(), v8Value); 1085 DOMWindow* cppValue = toDOMWindow(info.GetIsolate(), v8Value);
1086 impl->setWindowAttribute(WTF::getPtr(cppValue)); 1086 impl->setWindowAttribute(WTF::getPtr(cppValue));
1087 } 1087 }
1088 1088
1089 static void windowAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1089 static void windowAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1090 { 1090 {
1091 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1091 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1092 TestObjectV8Internal::windowAttributeAttributeSetter(v8Value, info); 1092 TestObjectV8Internal::windowAttributeAttributeSetter(v8Value, info);
1093 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1093 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1094 } 1094 }
1095 1095
1096 static void documentAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info) 1096 static void documentAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info)
1097 { 1097 {
1098 v8::Handle<v8::Object> holder = info.Holder(); 1098 v8::Local<v8::Object> holder = info.Holder();
1099 TestObject* impl = V8TestObject::toImpl(holder); 1099 TestObject* impl = V8TestObject::toImpl(holder);
1100 v8SetReturnValueFast(info, WTF::getPtr(impl->documentAttribute()), impl); 1100 v8SetReturnValueFast(info, WTF::getPtr(impl->documentAttribute()), impl);
1101 } 1101 }
1102 1102
1103 static void documentAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 1103 static void documentAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info)
1104 { 1104 {
1105 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1105 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1106 TestObjectV8Internal::documentAttributeAttributeGetter(info); 1106 TestObjectV8Internal::documentAttributeAttributeGetter(info);
1107 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1107 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1108 } 1108 }
1109 1109
1110 static void documentAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1110 static void documentAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1111 { 1111 {
1112 v8::Handle<v8::Object> holder = info.Holder(); 1112 v8::Local<v8::Object> holder = info.Holder();
1113 TestObject* impl = V8TestObject::toImpl(holder); 1113 TestObject* impl = V8TestObject::toImpl(holder);
1114 Document* cppValue = V8Document::toImplWithTypeCheck(info.GetIsolate(), v8Va lue); 1114 Document* cppValue = V8Document::toImplWithTypeCheck(info.GetIsolate(), v8Va lue);
1115 impl->setDocumentAttribute(WTF::getPtr(cppValue)); 1115 impl->setDocumentAttribute(WTF::getPtr(cppValue));
1116 } 1116 }
1117 1117
1118 static void documentAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1118 static void documentAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1119 { 1119 {
1120 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1120 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1121 TestObjectV8Internal::documentAttributeAttributeSetter(v8Value, info); 1121 TestObjectV8Internal::documentAttributeAttributeSetter(v8Value, info);
1122 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1122 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1123 } 1123 }
1124 1124
1125 static void documentFragmentAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 1125 static void documentFragmentAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
1126 { 1126 {
1127 v8::Handle<v8::Object> holder = info.Holder(); 1127 v8::Local<v8::Object> holder = info.Holder();
1128 TestObject* impl = V8TestObject::toImpl(holder); 1128 TestObject* impl = V8TestObject::toImpl(holder);
1129 v8SetReturnValueFast(info, WTF::getPtr(impl->documentFragmentAttribute()), i mpl); 1129 v8SetReturnValueFast(info, WTF::getPtr(impl->documentFragmentAttribute()), i mpl);
1130 } 1130 }
1131 1131
1132 static void documentFragmentAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 1132 static void documentFragmentAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
1133 { 1133 {
1134 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1134 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1135 TestObjectV8Internal::documentFragmentAttributeAttributeGetter(info); 1135 TestObjectV8Internal::documentFragmentAttributeAttributeGetter(info);
1136 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1136 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1137 } 1137 }
1138 1138
1139 static void documentFragmentAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 1139 static void documentFragmentAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
1140 { 1140 {
1141 v8::Handle<v8::Object> holder = info.Holder(); 1141 v8::Local<v8::Object> holder = info.Holder();
1142 TestObject* impl = V8TestObject::toImpl(holder); 1142 TestObject* impl = V8TestObject::toImpl(holder);
1143 DocumentFragment* cppValue = V8DocumentFragment::toImplWithTypeCheck(info.Ge tIsolate(), v8Value); 1143 DocumentFragment* cppValue = V8DocumentFragment::toImplWithTypeCheck(info.Ge tIsolate(), v8Value);
1144 impl->setDocumentFragmentAttribute(WTF::getPtr(cppValue)); 1144 impl->setDocumentFragmentAttribute(WTF::getPtr(cppValue));
1145 } 1145 }
1146 1146
1147 static void documentFragmentAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1147 static void documentFragmentAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1148 { 1148 {
1149 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1149 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1150 TestObjectV8Internal::documentFragmentAttributeAttributeSetter(v8Value, info ); 1150 TestObjectV8Internal::documentFragmentAttributeAttributeSetter(v8Value, info );
1151 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1151 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1152 } 1152 }
1153 1153
1154 static void documentTypeAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 1154 static void documentTypeAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
1155 { 1155 {
1156 v8::Handle<v8::Object> holder = info.Holder(); 1156 v8::Local<v8::Object> holder = info.Holder();
1157 TestObject* impl = V8TestObject::toImpl(holder); 1157 TestObject* impl = V8TestObject::toImpl(holder);
1158 v8SetReturnValueFast(info, WTF::getPtr(impl->documentTypeAttribute()), impl) ; 1158 v8SetReturnValueFast(info, WTF::getPtr(impl->documentTypeAttribute()), impl) ;
1159 } 1159 }
1160 1160
1161 static void documentTypeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1161 static void documentTypeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1162 { 1162 {
1163 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1163 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1164 TestObjectV8Internal::documentTypeAttributeAttributeGetter(info); 1164 TestObjectV8Internal::documentTypeAttributeAttributeGetter(info);
1165 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1165 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1166 } 1166 }
1167 1167
1168 static void documentTypeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 1168 static void documentTypeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
1169 { 1169 {
1170 v8::Handle<v8::Object> holder = info.Holder(); 1170 v8::Local<v8::Object> holder = info.Holder();
1171 TestObject* impl = V8TestObject::toImpl(holder); 1171 TestObject* impl = V8TestObject::toImpl(holder);
1172 DocumentType* cppValue = V8DocumentType::toImplWithTypeCheck(info.GetIsolate (), v8Value); 1172 DocumentType* cppValue = V8DocumentType::toImplWithTypeCheck(info.GetIsolate (), v8Value);
1173 impl->setDocumentTypeAttribute(WTF::getPtr(cppValue)); 1173 impl->setDocumentTypeAttribute(WTF::getPtr(cppValue));
1174 } 1174 }
1175 1175
1176 static void documentTypeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1176 static void documentTypeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1177 { 1177 {
1178 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1178 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1179 TestObjectV8Internal::documentTypeAttributeAttributeSetter(v8Value, info); 1179 TestObjectV8Internal::documentTypeAttributeAttributeSetter(v8Value, info);
1180 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1180 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1181 } 1181 }
1182 1182
1183 static void elementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 1183 static void elementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
1184 { 1184 {
1185 v8::Handle<v8::Object> holder = info.Holder(); 1185 v8::Local<v8::Object> holder = info.Holder();
1186 TestObject* impl = V8TestObject::toImpl(holder); 1186 TestObject* impl = V8TestObject::toImpl(holder);
1187 v8SetReturnValueFast(info, WTF::getPtr(impl->elementAttribute()), impl); 1187 v8SetReturnValueFast(info, WTF::getPtr(impl->elementAttribute()), impl);
1188 } 1188 }
1189 1189
1190 static void elementAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1190 static void elementAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1191 { 1191 {
1192 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1192 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1193 TestObjectV8Internal::elementAttributeAttributeGetter(info); 1193 TestObjectV8Internal::elementAttributeAttributeGetter(info);
1194 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1194 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1195 } 1195 }
1196 1196
1197 static void elementAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1197 static void elementAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1198 { 1198 {
1199 v8::Handle<v8::Object> holder = info.Holder(); 1199 v8::Local<v8::Object> holder = info.Holder();
1200 TestObject* impl = V8TestObject::toImpl(holder); 1200 TestObject* impl = V8TestObject::toImpl(holder);
1201 Element* cppValue = V8Element::toImplWithTypeCheck(info.GetIsolate(), v8Valu e); 1201 Element* cppValue = V8Element::toImplWithTypeCheck(info.GetIsolate(), v8Valu e);
1202 impl->setElementAttribute(WTF::getPtr(cppValue)); 1202 impl->setElementAttribute(WTF::getPtr(cppValue));
1203 } 1203 }
1204 1204
1205 static void elementAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1205 static void elementAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1206 { 1206 {
1207 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1207 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1208 TestObjectV8Internal::elementAttributeAttributeSetter(v8Value, info); 1208 TestObjectV8Internal::elementAttributeAttributeSetter(v8Value, info);
1209 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1209 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1210 } 1210 }
1211 1211
1212 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 1212 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info)
1213 { 1213 {
1214 v8::Handle<v8::Object> holder = info.Holder(); 1214 v8::Local<v8::Object> holder = info.Holder();
1215 TestObject* impl = V8TestObject::toImpl(holder); 1215 TestObject* impl = V8TestObject::toImpl(holder);
1216 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeAttribute()), impl); 1216 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeAttribute()), impl);
1217 } 1217 }
1218 1218
1219 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 1219 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info)
1220 { 1220 {
1221 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1221 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1222 TestObjectV8Internal::nodeAttributeAttributeGetter(info); 1222 TestObjectV8Internal::nodeAttributeAttributeGetter(info);
1223 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1223 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1224 } 1224 }
1225 1225
1226 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 1226 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
1227 { 1227 {
1228 v8::Handle<v8::Object> holder = info.Holder(); 1228 v8::Local<v8::Object> holder = info.Holder();
1229 TestObject* impl = V8TestObject::toImpl(holder); 1229 TestObject* impl = V8TestObject::toImpl(holder);
1230 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value); 1230 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value);
1231 impl->setNodeAttribute(WTF::getPtr(cppValue)); 1231 impl->setNodeAttribute(WTF::getPtr(cppValue));
1232 } 1232 }
1233 1233
1234 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1234 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1235 { 1235 {
1236 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1236 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1237 TestObjectV8Internal::nodeAttributeAttributeSetter(v8Value, info); 1237 TestObjectV8Internal::nodeAttributeAttributeSetter(v8Value, info);
1238 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1238 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1239 } 1239 }
1240 1240
1241 static void shadowRootAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1241 static void shadowRootAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
1242 { 1242 {
1243 v8::Handle<v8::Object> holder = info.Holder(); 1243 v8::Local<v8::Object> holder = info.Holder();
1244 TestObject* impl = V8TestObject::toImpl(holder); 1244 TestObject* impl = V8TestObject::toImpl(holder);
1245 v8SetReturnValueFast(info, WTF::getPtr(impl->shadowRootAttribute()), impl); 1245 v8SetReturnValueFast(info, WTF::getPtr(impl->shadowRootAttribute()), impl);
1246 } 1246 }
1247 1247
1248 static void shadowRootAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1248 static void shadowRootAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
1249 { 1249 {
1250 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1250 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1251 TestObjectV8Internal::shadowRootAttributeAttributeGetter(info); 1251 TestObjectV8Internal::shadowRootAttributeAttributeGetter(info);
1252 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1252 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1253 } 1253 }
1254 1254
1255 static void shadowRootAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 1255 static void shadowRootAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
1256 { 1256 {
1257 v8::Handle<v8::Object> holder = info.Holder(); 1257 v8::Local<v8::Object> holder = info.Holder();
1258 TestObject* impl = V8TestObject::toImpl(holder); 1258 TestObject* impl = V8TestObject::toImpl(holder);
1259 ShadowRoot* cppValue = V8ShadowRoot::toImplWithTypeCheck(info.GetIsolate(), v8Value); 1259 ShadowRoot* cppValue = V8ShadowRoot::toImplWithTypeCheck(info.GetIsolate(), v8Value);
1260 impl->setShadowRootAttribute(WTF::getPtr(cppValue)); 1260 impl->setShadowRootAttribute(WTF::getPtr(cppValue));
1261 } 1261 }
1262 1262
1263 static void shadowRootAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1263 static void shadowRootAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1264 { 1264 {
1265 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1265 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1266 TestObjectV8Internal::shadowRootAttributeAttributeSetter(v8Value, info); 1266 TestObjectV8Internal::shadowRootAttributeAttributeSetter(v8Value, info);
1267 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1267 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1268 } 1268 }
1269 1269
1270 static void arrayBufferAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 1270 static void arrayBufferAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
1271 { 1271 {
1272 v8::Handle<v8::Object> holder = info.Holder(); 1272 v8::Local<v8::Object> holder = info.Holder();
1273 TestObject* impl = V8TestObject::toImpl(holder); 1273 TestObject* impl = V8TestObject::toImpl(holder);
1274 v8SetReturnValueFast(info, WTF::getPtr(impl->arrayBufferAttribute()), impl); 1274 v8SetReturnValueFast(info, WTF::getPtr(impl->arrayBufferAttribute()), impl);
1275 } 1275 }
1276 1276
1277 static void arrayBufferAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 1277 static void arrayBufferAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
1278 { 1278 {
1279 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1279 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1280 TestObjectV8Internal::arrayBufferAttributeAttributeGetter(info); 1280 TestObjectV8Internal::arrayBufferAttributeAttributeGetter(info);
1281 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1281 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1282 } 1282 }
1283 1283
1284 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 1284 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
1285 { 1285 {
1286 v8::Handle<v8::Object> holder = info.Holder(); 1286 v8::Local<v8::Object> holder = info.Holder();
1287 TestObject* impl = V8TestObject::toImpl(holder); 1287 TestObject* impl = V8TestObject::toImpl(holder);
1288 TestArrayBuffer* cppValue = v8Value->IsArrayBuffer() ? V8ArrayBuffer::toImpl (v8::Handle<v8::ArrayBuffer>::Cast(v8Value)) : 0; 1288 TestArrayBuffer* cppValue = v8Value->IsArrayBuffer() ? V8ArrayBuffer::toImpl (v8::Handle<v8::ArrayBuffer>::Cast(v8Value)) : 0;
1289 impl->setArrayBufferAttribute(WTF::getPtr(cppValue)); 1289 impl->setArrayBufferAttribute(WTF::getPtr(cppValue));
1290 } 1290 }
1291 1291
1292 static void arrayBufferAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1292 static void arrayBufferAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1293 { 1293 {
1294 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1294 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1295 TestObjectV8Internal::arrayBufferAttributeAttributeSetter(v8Value, info); 1295 TestObjectV8Internal::arrayBufferAttributeAttributeSetter(v8Value, info);
1296 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1296 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1297 } 1297 }
1298 1298
1299 static void float32ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 1299 static void float32ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
1300 { 1300 {
1301 v8::Handle<v8::Object> holder = info.Holder(); 1301 v8::Local<v8::Object> holder = info.Holder();
1302 TestObject* impl = V8TestObject::toImpl(holder); 1302 TestObject* impl = V8TestObject::toImpl(holder);
1303 v8SetReturnValueFast(info, WTF::getPtr(impl->float32ArrayAttribute()), impl) ; 1303 v8SetReturnValueFast(info, WTF::getPtr(impl->float32ArrayAttribute()), impl) ;
1304 } 1304 }
1305 1305
1306 static void float32ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1306 static void float32ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1307 { 1307 {
1308 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1308 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1309 TestObjectV8Internal::float32ArrayAttributeAttributeGetter(info); 1309 TestObjectV8Internal::float32ArrayAttributeAttributeGetter(info);
1310 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1310 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1311 } 1311 }
1312 1312
1313 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 1313 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
1314 { 1314 {
1315 v8::Handle<v8::Object> holder = info.Holder(); 1315 v8::Local<v8::Object> holder = info.Holder();
1316 TestObject* impl = V8TestObject::toImpl(holder); 1316 TestObject* impl = V8TestObject::toImpl(holder);
1317 DOMFloat32Array* cppValue = v8Value->IsFloat32Array() ? V8Float32Array::toIm pl(v8::Handle<v8::Float32Array>::Cast(v8Value)) : 0; 1317 DOMFloat32Array* cppValue = v8Value->IsFloat32Array() ? V8Float32Array::toIm pl(v8::Handle<v8::Float32Array>::Cast(v8Value)) : 0;
1318 impl->setFloat32ArrayAttribute(WTF::getPtr(cppValue)); 1318 impl->setFloat32ArrayAttribute(WTF::getPtr(cppValue));
1319 } 1319 }
1320 1320
1321 static void float32ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1321 static void float32ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1322 { 1322 {
1323 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1323 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1324 TestObjectV8Internal::float32ArrayAttributeAttributeSetter(v8Value, info); 1324 TestObjectV8Internal::float32ArrayAttributeAttributeSetter(v8Value, info);
1325 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1325 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1326 } 1326 }
1327 1327
1328 static void uint8ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1328 static void uint8ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
1329 { 1329 {
1330 v8::Handle<v8::Object> holder = info.Holder(); 1330 v8::Local<v8::Object> holder = info.Holder();
1331 TestObject* impl = V8TestObject::toImpl(holder); 1331 TestObject* impl = V8TestObject::toImpl(holder);
1332 v8SetReturnValueFast(info, WTF::getPtr(impl->uint8ArrayAttribute()), impl); 1332 v8SetReturnValueFast(info, WTF::getPtr(impl->uint8ArrayAttribute()), impl);
1333 } 1333 }
1334 1334
1335 static void uint8ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1335 static void uint8ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
1336 { 1336 {
1337 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1337 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1338 TestObjectV8Internal::uint8ArrayAttributeAttributeGetter(info); 1338 TestObjectV8Internal::uint8ArrayAttributeAttributeGetter(info);
1339 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1339 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1340 } 1340 }
1341 1341
1342 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 1342 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
1343 { 1343 {
1344 v8::Handle<v8::Object> holder = info.Holder(); 1344 v8::Local<v8::Object> holder = info.Holder();
1345 TestObject* impl = V8TestObject::toImpl(holder); 1345 TestObject* impl = V8TestObject::toImpl(holder);
1346 DOMUint8Array* cppValue = v8Value->IsUint8Array() ? V8Uint8Array::toImpl(v8: :Handle<v8::Uint8Array>::Cast(v8Value)) : 0; 1346 DOMUint8Array* cppValue = v8Value->IsUint8Array() ? V8Uint8Array::toImpl(v8: :Handle<v8::Uint8Array>::Cast(v8Value)) : 0;
1347 impl->setUint8ArrayAttribute(WTF::getPtr(cppValue)); 1347 impl->setUint8ArrayAttribute(WTF::getPtr(cppValue));
1348 } 1348 }
1349 1349
1350 static void uint8ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1350 static void uint8ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1351 { 1351 {
1352 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1352 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1353 TestObjectV8Internal::uint8ArrayAttributeAttributeSetter(v8Value, info); 1353 TestObjectV8Internal::uint8ArrayAttributeAttributeSetter(v8Value, info);
1354 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1354 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1355 } 1355 }
1356 1356
1357 static void selfAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 1357 static void selfAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
1358 { 1358 {
1359 v8::Handle<v8::Object> holder = info.Holder(); 1359 v8::Local<v8::Object> holder = info.Holder();
1360 TestObject* impl = V8TestObject::toImpl(holder); 1360 TestObject* impl = V8TestObject::toImpl(holder);
1361 v8SetReturnValueFast(info, WTF::getPtr(impl->self()), impl); 1361 v8SetReturnValueFast(info, WTF::getPtr(impl->self()), impl);
1362 } 1362 }
1363 1363
1364 static void selfAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert yCallbackInfo<v8::Value>& info) 1364 static void selfAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert yCallbackInfo<v8::Value>& info)
1365 { 1365 {
1366 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1366 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1367 TestObjectV8Internal::selfAttributeGetter(info); 1367 TestObjectV8Internal::selfAttributeGetter(info);
1368 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1368 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1369 } 1369 }
1370 1370
1371 static void readonlyEventTargetAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info) 1371 static void readonlyEventTargetAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info)
1372 { 1372 {
1373 v8::Handle<v8::Object> holder = info.Holder(); 1373 v8::Local<v8::Object> holder = info.Holder();
1374 TestObject* impl = V8TestObject::toImpl(holder); 1374 TestObject* impl = V8TestObject::toImpl(holder);
1375 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyEventTargetAttribute()) , impl); 1375 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyEventTargetAttribute()) , impl);
1376 } 1376 }
1377 1377
1378 static void readonlyEventTargetAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info) 1378 static void readonlyEventTargetAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info)
1379 { 1379 {
1380 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1380 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1381 TestObjectV8Internal::readonlyEventTargetAttributeAttributeGetter(info); 1381 TestObjectV8Internal::readonlyEventTargetAttributeAttributeGetter(info);
1382 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1382 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1383 } 1383 }
1384 1384
1385 static void readonlyEventTargetOrNullAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info) 1385 static void readonlyEventTargetOrNullAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info)
1386 { 1386 {
1387 v8::Handle<v8::Object> holder = info.Holder(); 1387 v8::Local<v8::Object> holder = info.Holder();
1388 TestObject* impl = V8TestObject::toImpl(holder); 1388 TestObject* impl = V8TestObject::toImpl(holder);
1389 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyEventTargetOrNullAttrib ute()), impl); 1389 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyEventTargetOrNullAttrib ute()), impl);
1390 } 1390 }
1391 1391
1392 static void readonlyEventTargetOrNullAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1392 static void readonlyEventTargetOrNullAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1393 { 1393 {
1394 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1394 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1395 TestObjectV8Internal::readonlyEventTargetOrNullAttributeAttributeGetter(info ); 1395 TestObjectV8Internal::readonlyEventTargetOrNullAttributeAttributeGetter(info );
1396 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1396 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1397 } 1397 }
1398 1398
1399 static void readonlyWindowAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 1399 static void readonlyWindowAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
1400 { 1400 {
1401 v8::Handle<v8::Object> holder = info.Holder(); 1401 v8::Local<v8::Object> holder = info.Holder();
1402 TestObject* impl = V8TestObject::toImpl(holder); 1402 TestObject* impl = V8TestObject::toImpl(holder);
1403 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyWindowAttribute()), imp l); 1403 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyWindowAttribute()), imp l);
1404 } 1404 }
1405 1405
1406 static void readonlyWindowAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 1406 static void readonlyWindowAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info)
1407 { 1407 {
1408 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1408 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1409 TestObjectV8Internal::readonlyWindowAttributeAttributeGetter(info); 1409 TestObjectV8Internal::readonlyWindowAttributeAttributeGetter(info);
1410 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1410 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1411 } 1411 }
1412 1412
1413 static void htmlCollectionAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 1413 static void htmlCollectionAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
1414 { 1414 {
1415 v8::Handle<v8::Object> holder = info.Holder(); 1415 v8::Local<v8::Object> holder = info.Holder();
1416 TestObject* impl = V8TestObject::toImpl(holder); 1416 TestObject* impl = V8TestObject::toImpl(holder);
1417 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlCollectionAttribute()), imp l); 1417 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlCollectionAttribute()), imp l);
1418 } 1418 }
1419 1419
1420 static void htmlCollectionAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 1420 static void htmlCollectionAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info)
1421 { 1421 {
1422 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1422 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1423 TestObjectV8Internal::htmlCollectionAttributeAttributeGetter(info); 1423 TestObjectV8Internal::htmlCollectionAttributeAttributeGetter(info);
1424 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1424 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1425 } 1425 }
1426 1426
1427 static void htmlElementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 1427 static void htmlElementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
1428 { 1428 {
1429 v8::Handle<v8::Object> holder = info.Holder(); 1429 v8::Local<v8::Object> holder = info.Holder();
1430 TestObject* impl = V8TestObject::toImpl(holder); 1430 TestObject* impl = V8TestObject::toImpl(holder);
1431 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlElementAttribute()), impl); 1431 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlElementAttribute()), impl);
1432 } 1432 }
1433 1433
1434 static void htmlElementAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 1434 static void htmlElementAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
1435 { 1435 {
1436 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1436 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1437 TestObjectV8Internal::htmlElementAttributeAttributeGetter(info); 1437 TestObjectV8Internal::htmlElementAttributeAttributeGetter(info);
1438 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1438 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1439 } 1439 }
1440 1440
1441 static void stringArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 1441 static void stringArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
1442 { 1442 {
1443 v8::Handle<v8::Object> holder = info.Holder(); 1443 v8::Local<v8::Object> holder = info.Holder();
1444 TestObject* impl = V8TestObject::toImpl(holder); 1444 TestObject* impl = V8TestObject::toImpl(holder);
1445 v8SetReturnValue(info, toV8(impl->stringArrayAttribute(), info.Holder(), inf o.GetIsolate())); 1445 v8SetReturnValue(info, toV8(impl->stringArrayAttribute(), info.Holder(), inf o.GetIsolate()));
1446 } 1446 }
1447 1447
1448 static void stringArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 1448 static void stringArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
1449 { 1449 {
1450 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1450 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1451 TestObjectV8Internal::stringArrayAttributeAttributeGetter(info); 1451 TestObjectV8Internal::stringArrayAttributeAttributeGetter(info);
1452 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1452 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1453 } 1453 }
1454 1454
1455 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 1455 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
1456 { 1456 {
1457 v8::Handle<v8::Object> holder = info.Holder(); 1457 v8::Local<v8::Object> holder = info.Holder();
1458 ExceptionState exceptionState(ExceptionState::SetterContext, "stringArrayAtt ribute", "TestObject", holder, info.GetIsolate()); 1458 ExceptionState exceptionState(ExceptionState::SetterContext, "stringArrayAtt ribute", "TestObject", holder, info.GetIsolate());
1459 TestObject* impl = V8TestObject::toImpl(holder); 1459 TestObject* impl = V8TestObject::toImpl(holder);
1460 TONATIVE_VOID_EXCEPTIONSTATE(Vector<String>, cppValue, toImplArray<String>(v 8Value, 0, info.GetIsolate(), exceptionState), exceptionState); 1460 TONATIVE_VOID_EXCEPTIONSTATE(Vector<String>, cppValue, toImplArray<String>(v 8Value, 0, info.GetIsolate(), exceptionState), exceptionState);
1461 impl->setStringArrayAttribute(cppValue); 1461 impl->setStringArrayAttribute(cppValue);
1462 } 1462 }
1463 1463
1464 static void stringArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1464 static void stringArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1465 { 1465 {
1466 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1466 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1467 TestObjectV8Internal::stringArrayAttributeAttributeSetter(v8Value, info); 1467 TestObjectV8Internal::stringArrayAttributeAttributeSetter(v8Value, info);
1468 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1468 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1469 } 1469 }
1470 1470
1471 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info) 1471 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info)
1472 { 1472 {
1473 v8::Handle<v8::Object> holder = info.Holder(); 1473 v8::Local<v8::Object> holder = info.Holder();
1474 TestObject* impl = V8TestObject::toImpl(holder); 1474 TestObject* impl = V8TestObject::toImpl(holder);
1475 v8SetReturnValue(info, toV8(impl->testInterfaceEmptyArrayAttribute(), info.H older(), info.GetIsolate())); 1475 v8SetReturnValue(info, toV8(impl->testInterfaceEmptyArrayAttribute(), info.H older(), info.GetIsolate()));
1476 } 1476 }
1477 1477
1478 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1478 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1479 { 1479 {
1480 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1480 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1481 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(info); 1481 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(info);
1482 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1482 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1483 } 1483 }
1484 1484
1485 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1485 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1486 { 1486 {
1487 v8::Handle<v8::Object> holder = info.Holder(); 1487 v8::Local<v8::Object> holder = info.Holder();
1488 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceE mptyArrayAttribute", "TestObject", holder, info.GetIsolate()); 1488 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceE mptyArrayAttribute", "TestObject", holder, info.GetIsolate());
1489 TestObject* impl = V8TestObject::toImpl(holder); 1489 TestObject* impl = V8TestObject::toImpl(holder);
1490 TONATIVE_VOID_EXCEPTIONSTATE(Vector<RefPtr<TestInterfaceEmpty> >, cppValue, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(v8Value, 0, info. GetIsolate(), exceptionState)), exceptionState); 1490 TONATIVE_VOID_EXCEPTIONSTATE(Vector<RefPtr<TestInterfaceEmpty> >, cppValue, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(v8Value, 0, info. GetIsolate(), exceptionState)), exceptionState);
1491 impl->setTestInterfaceEmptyArrayAttribute(cppValue); 1491 impl->setTestInterfaceEmptyArrayAttribute(cppValue);
1492 } 1492 }
1493 1493
1494 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo) 1494 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo)
1495 { 1495 {
1496 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1496 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1497 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(v8Valu e, info); 1497 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(v8Valu e, info);
1498 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1498 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1499 } 1499 }
1500 1500
1501 static void floatArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1501 static void floatArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
1502 { 1502 {
1503 v8::Handle<v8::Object> holder = info.Holder(); 1503 v8::Local<v8::Object> holder = info.Holder();
1504 TestObject* impl = V8TestObject::toImpl(holder); 1504 TestObject* impl = V8TestObject::toImpl(holder);
1505 v8SetReturnValue(info, toV8(impl->floatArrayAttribute(), info.Holder(), info .GetIsolate())); 1505 v8SetReturnValue(info, toV8(impl->floatArrayAttribute(), info.Holder(), info .GetIsolate()));
1506 } 1506 }
1507 1507
1508 static void floatArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1508 static void floatArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
1509 { 1509 {
1510 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1510 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1511 TestObjectV8Internal::floatArrayAttributeAttributeGetter(info); 1511 TestObjectV8Internal::floatArrayAttributeAttributeGetter(info);
1512 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1512 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1513 } 1513 }
1514 1514
1515 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 1515 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
1516 { 1516 {
1517 v8::Handle<v8::Object> holder = info.Holder(); 1517 v8::Local<v8::Object> holder = info.Holder();
1518 ExceptionState exceptionState(ExceptionState::SetterContext, "floatArrayAttr ibute", "TestObject", holder, info.GetIsolate()); 1518 ExceptionState exceptionState(ExceptionState::SetterContext, "floatArrayAttr ibute", "TestObject", holder, info.GetIsolate());
1519 TestObject* impl = V8TestObject::toImpl(holder); 1519 TestObject* impl = V8TestObject::toImpl(holder);
1520 TONATIVE_VOID_EXCEPTIONSTATE(Vector<float>, cppValue, toImplArray<float>(v8V alue, 0, info.GetIsolate(), exceptionState), exceptionState); 1520 TONATIVE_VOID_EXCEPTIONSTATE(Vector<float>, cppValue, toImplArray<float>(v8V alue, 0, info.GetIsolate(), exceptionState), exceptionState);
1521 impl->setFloatArrayAttribute(cppValue); 1521 impl->setFloatArrayAttribute(cppValue);
1522 } 1522 }
1523 1523
1524 static void floatArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1524 static void floatArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1525 { 1525 {
1526 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1526 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1527 TestObjectV8Internal::floatArrayAttributeAttributeSetter(v8Value, info); 1527 TestObjectV8Internal::floatArrayAttributeAttributeSetter(v8Value, info);
1528 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1528 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1529 } 1529 }
1530 1530
1531 static void stringOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 1531 static void stringOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
1532 { 1532 {
1533 v8::Handle<v8::Object> holder = info.Holder(); 1533 v8::Local<v8::Object> holder = info.Holder();
1534 TestObject* impl = V8TestObject::toImpl(holder); 1534 TestObject* impl = V8TestObject::toImpl(holder);
1535 v8SetReturnValueStringOrNull(info, impl->stringOrNullAttribute(), info.GetIs olate()); 1535 v8SetReturnValueStringOrNull(info, impl->stringOrNullAttribute(), info.GetIs olate());
1536 } 1536 }
1537 1537
1538 static void stringOrNullAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1538 static void stringOrNullAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1539 { 1539 {
1540 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1540 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1541 TestObjectV8Internal::stringOrNullAttributeAttributeGetter(info); 1541 TestObjectV8Internal::stringOrNullAttributeAttributeGetter(info);
1542 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1542 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1543 } 1543 }
1544 1544
1545 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 1545 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
1546 { 1546 {
1547 v8::Handle<v8::Object> holder = info.Holder(); 1547 v8::Local<v8::Object> holder = info.Holder();
1548 TestObject* impl = V8TestObject::toImpl(holder); 1548 TestObject* impl = V8TestObject::toImpl(holder);
1549 TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value); 1549 TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value);
1550 impl->setStringOrNullAttribute(cppValue); 1550 impl->setStringOrNullAttribute(cppValue);
1551 } 1551 }
1552 1552
1553 static void stringOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1553 static void stringOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1554 { 1554 {
1555 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1555 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1556 TestObjectV8Internal::stringOrNullAttributeAttributeSetter(v8Value, info); 1556 TestObjectV8Internal::stringOrNullAttributeAttributeSetter(v8Value, info);
1557 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1557 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1558 } 1558 }
1559 1559
1560 static void longOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1560 static void longOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
1561 { 1561 {
1562 v8::Handle<v8::Object> holder = info.Holder(); 1562 v8::Local<v8::Object> holder = info.Holder();
1563 TestObject* impl = V8TestObject::toImpl(holder); 1563 TestObject* impl = V8TestObject::toImpl(holder);
1564 bool isNull = false; 1564 bool isNull = false;
1565 int cppValue(impl->longOrNullAttribute(isNull)); 1565 int cppValue(impl->longOrNullAttribute(isNull));
1566 if (isNull) { 1566 if (isNull) {
1567 v8SetReturnValueNull(info); 1567 v8SetReturnValueNull(info);
1568 return; 1568 return;
1569 } 1569 }
1570 v8SetReturnValueInt(info, cppValue); 1570 v8SetReturnValueInt(info, cppValue);
1571 } 1571 }
1572 1572
1573 static void longOrNullAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1573 static void longOrNullAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
1574 { 1574 {
1575 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1575 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1576 TestObjectV8Internal::longOrNullAttributeAttributeGetter(info); 1576 TestObjectV8Internal::longOrNullAttributeAttributeGetter(info);
1577 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1577 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1578 } 1578 }
1579 1579
1580 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 1580 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
1581 { 1581 {
1582 v8::Handle<v8::Object> holder = info.Holder(); 1582 v8::Local<v8::Object> holder = info.Holder();
1583 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr ibute", "TestObject", holder, info.GetIsolate()); 1583 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr ibute", "TestObject", holder, info.GetIsolate());
1584 TestObject* impl = V8TestObject::toImpl(holder); 1584 TestObject* impl = V8TestObject::toImpl(holder);
1585 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 1585 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
1586 impl->setLongOrNullAttribute(cppValue); 1586 impl->setLongOrNullAttribute(cppValue);
1587 } 1587 }
1588 1588
1589 static void longOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1589 static void longOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1590 { 1590 {
1591 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1591 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1592 TestObjectV8Internal::longOrNullAttributeAttributeSetter(v8Value, info); 1592 TestObjectV8Internal::longOrNullAttributeAttributeSetter(v8Value, info);
1593 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1593 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1594 } 1594 }
1595 1595
1596 static void testInterfaceOrNullAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info) 1596 static void testInterfaceOrNullAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info)
1597 { 1597 {
1598 v8::Handle<v8::Object> holder = info.Holder(); 1598 v8::Local<v8::Object> holder = info.Holder();
1599 TestObject* impl = V8TestObject::toImpl(holder); 1599 TestObject* impl = V8TestObject::toImpl(holder);
1600 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceOrNullAttribute()) , impl); 1600 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceOrNullAttribute()) , impl);
1601 } 1601 }
1602 1602
1603 static void testInterfaceOrNullAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info) 1603 static void testInterfaceOrNullAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info)
1604 { 1604 {
1605 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1605 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1606 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeGetter(info); 1606 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeGetter(info);
1607 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1607 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1608 } 1608 }
1609 1609
1610 static void testInterfaceOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info) 1610 static void testInterfaceOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info)
1611 { 1611 {
1612 v8::Handle<v8::Object> holder = info.Holder(); 1612 v8::Local<v8::Object> holder = info.Holder();
1613 TestObject* impl = V8TestObject::toImpl(holder); 1613 TestObject* impl = V8TestObject::toImpl(holder);
1614 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 1614 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
1615 impl->setTestInterfaceOrNullAttribute(WTF::getPtr(cppValue)); 1615 impl->setTestInterfaceOrNullAttribute(WTF::getPtr(cppValue));
1616 } 1616 }
1617 1617
1618 static void testInterfaceOrNullAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1618 static void testInterfaceOrNullAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1619 { 1619 {
1620 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1620 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1621 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeSetter(v8Value, i nfo); 1621 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeSetter(v8Value, i nfo);
1622 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1622 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1623 } 1623 }
1624 1624
1625 static void testEnumAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info) 1625 static void testEnumAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info)
1626 { 1626 {
1627 v8::Handle<v8::Object> holder = info.Holder(); 1627 v8::Local<v8::Object> holder = info.Holder();
1628 TestObject* impl = V8TestObject::toImpl(holder); 1628 TestObject* impl = V8TestObject::toImpl(holder);
1629 v8SetReturnValueString(info, impl->testEnumAttribute(), info.GetIsolate()); 1629 v8SetReturnValueString(info, impl->testEnumAttribute(), info.GetIsolate());
1630 } 1630 }
1631 1631
1632 static void testEnumAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 1632 static void testEnumAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info)
1633 { 1633 {
1634 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1634 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1635 TestObjectV8Internal::testEnumAttributeAttributeGetter(info); 1635 TestObjectV8Internal::testEnumAttributeAttributeGetter(info);
1636 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1636 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1637 } 1637 }
1638 1638
1639 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1639 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1640 { 1640 {
1641 v8::Handle<v8::Object> holder = info.Holder(); 1641 v8::Local<v8::Object> holder = info.Holder();
1642 TestObject* impl = V8TestObject::toImpl(holder); 1642 TestObject* impl = V8TestObject::toImpl(holder);
1643 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 1643 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
1644 String string = cppValue; 1644 String string = cppValue;
1645 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st ring == "EnumValue3")) 1645 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st ring == "EnumValue3"))
1646 return; 1646 return;
1647 impl->setTestEnumAttribute(cppValue); 1647 impl->setTestEnumAttribute(cppValue);
1648 } 1648 }
1649 1649
1650 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1650 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1651 { 1651 {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
1700 1700
1701 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1701 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1702 { 1702 {
1703 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1703 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1704 TestObjectV8Internal::staticLongAttributeAttributeSetter(v8Value, info); 1704 TestObjectV8Internal::staticLongAttributeAttributeSetter(v8Value, info);
1705 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1705 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1706 } 1706 }
1707 1707
1708 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 1708 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
1709 { 1709 {
1710 v8::Handle<v8::Object> holder = info.Holder(); 1710 v8::Local<v8::Object> holder = info.Holder();
1711 TestObject* impl = V8TestObject::toImpl(holder); 1711 TestObject* impl = V8TestObject::toImpl(holder);
1712 EventListener* cppValue(impl->eventHandlerAttribute()); 1712 EventListener* cppValue(impl->eventHandlerAttribute());
1713 v8SetReturnValue(info, cppValue ? v8::Handle<v8::Value>(V8AbstractEventListe ner::cast(cppValue)->getListenerObject(impl->executionContext())) : v8::Handle<v 8::Value>(v8::Null(info.GetIsolate()))); 1713 v8SetReturnValue(info, cppValue ? v8::Handle<v8::Value>(V8AbstractEventListe ner::cast(cppValue)->getListenerObject(impl->executionContext())) : v8::Handle<v 8::Value>(v8::Null(info.GetIsolate())));
1714 } 1714 }
1715 1715
1716 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1716 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1717 { 1717 {
1718 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1718 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1719 TestObjectV8Internal::eventHandlerAttributeAttributeGetter(info); 1719 TestObjectV8Internal::eventHandlerAttributeAttributeGetter(info);
1720 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1720 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1721 } 1721 }
1722 1722
1723 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 1723 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
1724 { 1724 {
1725 v8::Handle<v8::Object> holder = info.Holder(); 1725 v8::Local<v8::Object> holder = info.Holder();
1726 TestObject* impl = V8TestObject::toImpl(holder); 1726 TestObject* impl = V8TestObject::toImpl(holder);
1727 moveEventListenerToNewWrapper(info.GetIsolate(), holder, impl->eventHandlerA ttribute(), v8Value, V8TestObject::eventListenerCacheIndex); 1727 moveEventListenerToNewWrapper(info.GetIsolate(), holder, impl->eventHandlerA ttribute(), v8Value, V8TestObject::eventListenerCacheIndex);
1728 impl->setEventHandlerAttribute(V8EventListenerList::getEventListener(ScriptS tate::current(info.GetIsolate()), v8Value, true, ListenerFindOrCreate)); 1728 impl->setEventHandlerAttribute(V8EventListenerList::getEventListener(ScriptS tate::current(info.GetIsolate()), v8Value, true, ListenerFindOrCreate));
1729 } 1729 }
1730 1730
1731 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1731 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1732 { 1732 {
1733 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1733 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1734 TestObjectV8Internal::eventHandlerAttributeAttributeSetter(v8Value, info); 1734 TestObjectV8Internal::eventHandlerAttributeAttributeSetter(v8Value, info);
1735 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1735 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1736 } 1736 }
1737 1737
1738 static void doubleOrStringAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 1738 static void doubleOrStringAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
1739 { 1739 {
1740 v8::Handle<v8::Object> holder = info.Holder(); 1740 v8::Local<v8::Object> holder = info.Holder();
1741 TestObject* impl = V8TestObject::toImpl(holder); 1741 TestObject* impl = V8TestObject::toImpl(holder);
1742 DoubleOrString result; 1742 DoubleOrString result;
1743 impl->doubleOrStringAttribute(result); 1743 impl->doubleOrStringAttribute(result);
1744 v8SetReturnValue(info, result); 1744 v8SetReturnValue(info, result);
1745 } 1745 }
1746 1746
1747 static void doubleOrStringAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 1747 static void doubleOrStringAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info)
1748 { 1748 {
1749 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1749 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1750 TestObjectV8Internal::doubleOrStringAttributeAttributeGetter(info); 1750 TestObjectV8Internal::doubleOrStringAttributeAttributeGetter(info);
1751 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1751 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1752 } 1752 }
1753 1753
1754 static void doubleOrStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1754 static void doubleOrStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1755 { 1755 {
1756 v8::Handle<v8::Object> holder = info.Holder(); 1756 v8::Local<v8::Object> holder = info.Holder();
1757 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString Attribute", "TestObject", holder, info.GetIsolate()); 1757 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString Attribute", "TestObject", holder, info.GetIsolate());
1758 DoubleOrString cppValue; 1758 DoubleOrString cppValue;
1759 TestObject* impl = V8TestObject::toImpl(holder); 1759 TestObject* impl = V8TestObject::toImpl(holder);
1760 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrString::toImpl(info.GetIs olate(), v8Value, cppValue, exceptionState), exceptionState); 1760 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrString::toImpl(info.GetIs olate(), v8Value, cppValue, exceptionState), exceptionState);
1761 impl->setDoubleOrStringAttribute(cppValue); 1761 impl->setDoubleOrStringAttribute(cppValue);
1762 } 1762 }
1763 1763
1764 static void doubleOrStringAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1764 static void doubleOrStringAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1765 { 1765 {
1766 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1766 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1767 TestObjectV8Internal::doubleOrStringAttributeAttributeSetter(v8Value, info); 1767 TestObjectV8Internal::doubleOrStringAttributeAttributeSetter(v8Value, info);
1768 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1768 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1769 } 1769 }
1770 1770
1771 static void doubleOrStringOrNullAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 1771 static void doubleOrStringOrNullAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info)
1772 { 1772 {
1773 v8::Handle<v8::Object> holder = info.Holder(); 1773 v8::Local<v8::Object> holder = info.Holder();
1774 TestObject* impl = V8TestObject::toImpl(holder); 1774 TestObject* impl = V8TestObject::toImpl(holder);
1775 DoubleOrString result; 1775 DoubleOrString result;
1776 impl->doubleOrStringOrNullAttribute(result); 1776 impl->doubleOrStringOrNullAttribute(result);
1777 v8SetReturnValue(info, result); 1777 v8SetReturnValue(info, result);
1778 } 1778 }
1779 1779
1780 static void doubleOrStringOrNullAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info) 1780 static void doubleOrStringOrNullAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info)
1781 { 1781 {
1782 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1782 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1783 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeGetter(info); 1783 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeGetter(info);
1784 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1784 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1785 } 1785 }
1786 1786
1787 static void doubleOrStringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info) 1787 static void doubleOrStringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info)
1788 { 1788 {
1789 v8::Handle<v8::Object> holder = info.Holder(); 1789 v8::Local<v8::Object> holder = info.Holder();
1790 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString OrNullAttribute", "TestObject", holder, info.GetIsolate()); 1790 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString OrNullAttribute", "TestObject", holder, info.GetIsolate());
1791 DoubleOrString cppValue; 1791 DoubleOrString cppValue;
1792 TestObject* impl = V8TestObject::toImpl(holder); 1792 TestObject* impl = V8TestObject::toImpl(holder);
1793 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(info .GetIsolate(), v8Value, cppValue, exceptionState), exceptionState); 1793 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(info .GetIsolate(), v8Value, cppValue, exceptionState), exceptionState);
1794 impl->setDoubleOrStringOrNullAttribute(cppValue); 1794 impl->setDoubleOrStringOrNullAttribute(cppValue);
1795 } 1795 }
1796 1796
1797 static void doubleOrStringOrNullAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info ) 1797 static void doubleOrStringOrNullAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info )
1798 { 1798 {
1799 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1799 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1800 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeSetter(v8Value, info); 1800 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeSetter(v8Value, info);
1801 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1801 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1802 } 1802 }
1803 1803
1804 static void doubleOrNullStringAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 1804 static void doubleOrNullStringAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
1805 { 1805 {
1806 v8::Handle<v8::Object> holder = info.Holder(); 1806 v8::Local<v8::Object> holder = info.Holder();
1807 TestObject* impl = V8TestObject::toImpl(holder); 1807 TestObject* impl = V8TestObject::toImpl(holder);
1808 DoubleOrString result; 1808 DoubleOrString result;
1809 impl->doubleOrNullStringAttribute(result); 1809 impl->doubleOrNullStringAttribute(result);
1810 v8SetReturnValue(info, result); 1810 v8SetReturnValue(info, result);
1811 } 1811 }
1812 1812
1813 static void doubleOrNullStringAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 1813 static void doubleOrNullStringAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info)
1814 { 1814 {
1815 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1815 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1816 TestObjectV8Internal::doubleOrNullStringAttributeAttributeGetter(info); 1816 TestObjectV8Internal::doubleOrNullStringAttributeAttributeGetter(info);
1817 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1817 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1818 } 1818 }
1819 1819
1820 static void doubleOrNullStringAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 1820 static void doubleOrNullStringAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
1821 { 1821 {
1822 v8::Handle<v8::Object> holder = info.Holder(); 1822 v8::Local<v8::Object> holder = info.Holder();
1823 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrNullSt ringAttribute", "TestObject", holder, info.GetIsolate()); 1823 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrNullSt ringAttribute", "TestObject", holder, info.GetIsolate());
1824 DoubleOrString cppValue; 1824 DoubleOrString cppValue;
1825 TestObject* impl = V8TestObject::toImpl(holder); 1825 TestObject* impl = V8TestObject::toImpl(holder);
1826 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(info .GetIsolate(), v8Value, cppValue, exceptionState), exceptionState); 1826 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrStringOrNull::toImpl(info .GetIsolate(), v8Value, cppValue, exceptionState), exceptionState);
1827 impl->setDoubleOrNullStringAttribute(cppValue); 1827 impl->setDoubleOrNullStringAttribute(cppValue);
1828 } 1828 }
1829 1829
1830 static void doubleOrNullStringAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1830 static void doubleOrNullStringAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1831 { 1831 {
1832 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1832 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1833 TestObjectV8Internal::doubleOrNullStringAttributeAttributeSetter(v8Value, in fo); 1833 TestObjectV8Internal::doubleOrNullStringAttributeAttributeSetter(v8Value, in fo);
1834 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1834 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1835 } 1835 }
1836 1836
1837 static void stringOrStringSequenceAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info) 1837 static void stringOrStringSequenceAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info)
1838 { 1838 {
1839 v8::Handle<v8::Object> holder = info.Holder(); 1839 v8::Local<v8::Object> holder = info.Holder();
1840 TestObject* impl = V8TestObject::toImpl(holder); 1840 TestObject* impl = V8TestObject::toImpl(holder);
1841 StringOrStringSequence result; 1841 StringOrStringSequence result;
1842 impl->stringOrStringSequenceAttribute(result); 1842 impl->stringOrStringSequenceAttribute(result);
1843 v8SetReturnValue(info, result); 1843 v8SetReturnValue(info, result);
1844 } 1844 }
1845 1845
1846 static void stringOrStringSequenceAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1846 static void stringOrStringSequenceAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1847 { 1847 {
1848 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1848 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1849 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeGetter(info); 1849 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeGetter(info);
1850 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1850 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1851 } 1851 }
1852 1852
1853 static void stringOrStringSequenceAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1853 static void stringOrStringSequenceAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1854 { 1854 {
1855 v8::Handle<v8::Object> holder = info.Holder(); 1855 v8::Local<v8::Object> holder = info.Holder();
1856 ExceptionState exceptionState(ExceptionState::SetterContext, "stringOrString SequenceAttribute", "TestObject", holder, info.GetIsolate()); 1856 ExceptionState exceptionState(ExceptionState::SetterContext, "stringOrString SequenceAttribute", "TestObject", holder, info.GetIsolate());
1857 StringOrStringSequence cppValue; 1857 StringOrStringSequence cppValue;
1858 TestObject* impl = V8TestObject::toImpl(holder); 1858 TestObject* impl = V8TestObject::toImpl(holder);
1859 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8StringOrStringSequence::toImpl(in fo.GetIsolate(), v8Value, cppValue, exceptionState), exceptionState); 1859 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8StringOrStringSequence::toImpl(in fo.GetIsolate(), v8Value, cppValue, exceptionState), exceptionState);
1860 impl->setStringOrStringSequenceAttribute(cppValue); 1860 impl->setStringOrStringSequenceAttribute(cppValue);
1861 } 1861 }
1862 1862
1863 static void stringOrStringSequenceAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 1863 static void stringOrStringSequenceAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
1864 { 1864 {
1865 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1865 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1866 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeSetter(v8Value , info); 1866 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeSetter(v8Value , info);
1867 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1867 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1868 } 1868 }
1869 1869
1870 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 1870 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
1871 { 1871 {
1872 v8::Handle<v8::Object> holder = info.Holder(); 1872 v8::Local<v8::Object> holder = info.Holder();
1873 TestObject* impl = V8TestObject::toImpl(holder); 1873 TestObject* impl = V8TestObject::toImpl(holder);
1874 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu te()); 1874 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu te());
1875 } 1875 }
1876 1876
1877 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1877 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1878 { 1878 {
1879 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1879 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1880 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 1880 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
1881 V8PerContextData* contextData = scriptState->perContextData(); 1881 V8PerContextData* contextData = scriptState->perContextData();
1882 if (contextData && contextData->activityLogger()) 1882 if (contextData && contextData->activityLogger())
1883 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute"); 1883 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute");
1884 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eGetter(info); 1884 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eGetter(info);
1885 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1885 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1886 } 1886 }
1887 1887
1888 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1888 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1889 { 1889 {
1890 v8::Handle<v8::Object> holder = info.Holder(); 1890 v8::Local<v8::Object> holder = info.Holder();
1891 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 1891 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
1892 TestObject* impl = V8TestObject::toImpl(holder); 1892 TestObject* impl = V8TestObject::toImpl(holder);
1893 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 1893 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
1894 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); 1894 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue);
1895 } 1895 }
1896 1896
1897 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info) 1897 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info)
1898 { 1898 {
1899 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1899 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1900 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 1900 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
1901 V8PerContextData* contextData = scriptState->perContextData(); 1901 V8PerContextData* contextData = scriptState->perContextData();
1902 if (contextData && contextData->activityLogger()) { 1902 if (contextData && contextData->activityLogger()) {
1903 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute", v8Value); 1903 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForAllWorldsLongAttribute", v8Value);
1904 } 1904 }
1905 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eSetter(v8Value, info); 1905 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut eSetter(v8Value, info);
1906 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1906 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1907 } 1907 }
1908 1908
1909 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 1909 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
1910 { 1910 {
1911 v8::Handle<v8::Object> holder = info.Holder(); 1911 v8::Local<v8::Object> holder = info.Holder();
1912 TestObject* impl = V8TestObject::toImpl(holder); 1912 TestObject* impl = V8TestObject::toImpl(holder);
1913 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu te()); 1913 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu te());
1914 } 1914 }
1915 1915
1916 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1916 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1917 { 1917 {
1918 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1918 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1919 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 1919 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
1920 V8PerContextData* contextData = scriptState->perContextData(); 1920 V8PerContextData* contextData = scriptState->perContextData();
1921 if (contextData && contextData->activityLogger()) 1921 if (contextData && contextData->activityLogger())
1922 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForAllWorldsLongAttribute"); 1922 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForAllWorldsLongAttribute");
1923 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eGetter(info); 1923 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eGetter(info);
1924 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1924 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1925 } 1925 }
1926 1926
1927 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1927 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1928 { 1928 {
1929 v8::Handle<v8::Object> holder = info.Holder(); 1929 v8::Local<v8::Object> holder = info.Holder();
1930 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 1930 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
1931 TestObject* impl = V8TestObject::toImpl(holder); 1931 TestObject* impl = V8TestObject::toImpl(holder);
1932 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 1932 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
1933 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue); 1933 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue);
1934 } 1934 }
1935 1935
1936 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info) 1936 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info)
1937 { 1937 {
1938 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1938 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1939 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info); 1939 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info);
1940 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1940 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1941 } 1941 }
1942 1942
1943 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 1943 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
1944 { 1944 {
1945 v8::Handle<v8::Object> holder = info.Holder(); 1945 v8::Local<v8::Object> holder = info.Holder();
1946 TestObject* impl = V8TestObject::toImpl(holder); 1946 TestObject* impl = V8TestObject::toImpl(holder);
1947 v8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribu te()); 1947 v8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribu te());
1948 } 1948 }
1949 1949
1950 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1950 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1951 { 1951 {
1952 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1952 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1953 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eGetter(info); 1953 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eGetter(info);
1954 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1954 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1955 } 1955 }
1956 1956
1957 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1957 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1958 { 1958 {
1959 v8::Handle<v8::Object> holder = info.Holder(); 1959 v8::Local<v8::Object> holder = info.Holder();
1960 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); 1960 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate());
1961 TestObject* impl = V8TestObject::toImpl(holder); 1961 TestObject* impl = V8TestObject::toImpl(holder);
1962 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 1962 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
1963 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); 1963 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue);
1964 } 1964 }
1965 1965
1966 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info) 1966 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info)
1967 { 1967 {
1968 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1968 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1969 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 1969 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
1970 V8PerContextData* contextData = scriptState->perContextData(); 1970 V8PerContextData* contextData = scriptState->perContextData();
1971 if (contextData && contextData->activityLogger()) { 1971 if (contextData && contextData->activityLogger()) {
1972 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett erForAllWorldsLongAttribute", v8Value); 1972 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett erForAllWorldsLongAttribute", v8Value);
1973 } 1973 }
1974 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info); 1974 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut eSetter(v8Value, info);
1975 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1975 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1976 } 1976 }
1977 1977
1978 static void cachedAttributeAnyAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 1978 static void cachedAttributeAnyAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
1979 { 1979 {
1980 v8::Handle<v8::Object> holder = info.Holder(); 1980 v8::Local<v8::Object> holder = info.Holder();
1981 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac hedAttributeAnyAttribute"); 1981 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edAttributeAnyAttribute");
1982 TestObject* impl = V8TestObject::toImpl(holder); 1982 TestObject* impl = V8TestObject::toImpl(holder);
1983 if (!impl->isValueDirty()) { 1983 if (!impl->isValueDirty()) {
1984 v8::Handle<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIs olate(), holder, propertyName); 1984 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName);
1985 if (!v8Value.IsEmpty()) { 1985 if (!v8Value.IsEmpty()) {
1986 v8SetReturnValue(info, v8Value); 1986 v8SetReturnValue(info, v8Value);
1987 return; 1987 return;
1988 } 1988 }
1989 } 1989 }
1990 ScriptValue cppValue(impl->cachedAttributeAnyAttribute()); 1990 ScriptValue cppValue(impl->cachedAttributeAnyAttribute());
1991 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, cppVa lue.v8Value()); 1991 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, cppVa lue.v8Value());
1992 v8SetReturnValue(info, cppValue.v8Value()); 1992 v8SetReturnValue(info, cppValue.v8Value());
1993 } 1993 }
1994 1994
1995 static void cachedAttributeAnyAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 1995 static void cachedAttributeAnyAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info)
1996 { 1996 {
1997 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1997 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1998 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeGetter(info); 1998 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeGetter(info);
1999 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1999 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2000 } 2000 }
2001 2001
2002 static void cachedAttributeAnyAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 2002 static void cachedAttributeAnyAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
2003 { 2003 {
2004 v8::Handle<v8::Object> holder = info.Holder(); 2004 v8::Local<v8::Object> holder = info.Holder();
2005 TestObject* impl = V8TestObject::toImpl(holder); 2005 TestObject* impl = V8TestObject::toImpl(holder);
2006 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 2006 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
2007 impl->setCachedAttributeAnyAttribute(cppValue); 2007 impl->setCachedAttributeAnyAttribute(cppValue);
2008 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedAttributeAnyAttribute")); // Invalidate the cached valu e. 2008 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedAttributeAnyAttribute")); // Invalidate the cached valu e.
2009 } 2009 }
2010 2010
2011 static void cachedAttributeAnyAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2011 static void cachedAttributeAnyAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2012 { 2012 {
2013 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2013 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2014 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeSetter(v8Value, in fo); 2014 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeSetter(v8Value, in fo);
2015 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2015 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2016 } 2016 }
2017 2017
2018 static void cachedArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 2018 static void cachedArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
2019 { 2019 {
2020 v8::Handle<v8::Object> holder = info.Holder(); 2020 v8::Local<v8::Object> holder = info.Holder();
2021 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac hedArrayAttribute"); 2021 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edArrayAttribute");
2022 TestObject* impl = V8TestObject::toImpl(holder); 2022 TestObject* impl = V8TestObject::toImpl(holder);
2023 if (!impl->isArrayDirty()) { 2023 if (!impl->isArrayDirty()) {
2024 v8::Handle<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIs olate(), holder, propertyName); 2024 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName);
2025 if (!v8Value.IsEmpty()) { 2025 if (!v8Value.IsEmpty()) {
2026 v8SetReturnValue(info, v8Value); 2026 v8SetReturnValue(info, v8Value);
2027 return; 2027 return;
2028 } 2028 }
2029 } 2029 }
2030 Vector<String> cppValue(impl->cachedArrayAttribute()); 2030 Vector<String> cppValue(impl->cachedArrayAttribute());
2031 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, toV8( cppValue, info.Holder(), info.GetIsolate())); 2031 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, toV8( cppValue, info.Holder(), info.GetIsolate()));
2032 v8SetReturnValue(info, toV8(cppValue, info.Holder(), info.GetIsolate())); 2032 v8SetReturnValue(info, toV8(cppValue, info.Holder(), info.GetIsolate()));
2033 } 2033 }
2034 2034
2035 static void cachedArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 2035 static void cachedArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
2036 { 2036 {
2037 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2037 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2038 TestObjectV8Internal::cachedArrayAttributeAttributeGetter(info); 2038 TestObjectV8Internal::cachedArrayAttributeAttributeGetter(info);
2039 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2039 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2040 } 2040 }
2041 2041
2042 static void cachedArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 2042 static void cachedArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
2043 { 2043 {
2044 v8::Handle<v8::Object> holder = info.Holder(); 2044 v8::Local<v8::Object> holder = info.Holder();
2045 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedArrayAtt ribute", "TestObject", holder, info.GetIsolate()); 2045 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedArrayAtt ribute", "TestObject", holder, info.GetIsolate());
2046 TestObject* impl = V8TestObject::toImpl(holder); 2046 TestObject* impl = V8TestObject::toImpl(holder);
2047 TONATIVE_VOID_EXCEPTIONSTATE(Vector<String>, cppValue, toImplArray<String>(v 8Value, 0, info.GetIsolate(), exceptionState), exceptionState); 2047 TONATIVE_VOID_EXCEPTIONSTATE(Vector<String>, cppValue, toImplArray<String>(v 8Value, 0, info.GetIsolate(), exceptionState), exceptionState);
2048 impl->setCachedArrayAttribute(cppValue); 2048 impl->setCachedArrayAttribute(cppValue);
2049 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedArrayAttribute")); // Invalidate the cached value. 2049 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedArrayAttribute")); // Invalidate the cached value.
2050 } 2050 }
2051 2051
2052 static void cachedArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2052 static void cachedArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2053 { 2053 {
2054 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2054 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2055 TestObjectV8Internal::cachedArrayAttributeAttributeSetter(v8Value, info); 2055 TestObjectV8Internal::cachedArrayAttributeAttributeSetter(v8Value, info);
2056 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2056 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2057 } 2057 }
2058 2058
2059 static void cachedStringOrNoneAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 2059 static void cachedStringOrNoneAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
2060 { 2060 {
2061 v8::Handle<v8::Object> holder = info.Holder(); 2061 v8::Local<v8::Object> holder = info.Holder();
2062 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac hedStringOrNoneAttribute"); 2062 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edStringOrNoneAttribute");
2063 TestObject* impl = V8TestObject::toImpl(holder); 2063 TestObject* impl = V8TestObject::toImpl(holder);
2064 if (!impl->isStringDirty()) { 2064 if (!impl->isStringDirty()) {
2065 v8::Handle<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIs olate(), holder, propertyName); 2065 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName);
2066 if (!v8Value.IsEmpty()) { 2066 if (!v8Value.IsEmpty()) {
2067 v8SetReturnValue(info, v8Value); 2067 v8SetReturnValue(info, v8Value);
2068 return; 2068 return;
2069 } 2069 }
2070 } 2070 }
2071 String cppValue(impl->cachedStringOrNoneAttribute()); 2071 String cppValue(impl->cachedStringOrNoneAttribute());
2072 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, cppVa lue.isNull() ? v8::Handle<v8::Value>(v8::Null(info.GetIsolate())) : v8String(inf o.GetIsolate(), cppValue)); 2072 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, cppVa lue.isNull() ? v8::Handle<v8::Value>(v8::Null(info.GetIsolate())) : v8String(inf o.GetIsolate(), cppValue));
2073 v8SetReturnValueStringOrNull(info, cppValue, info.GetIsolate()); 2073 v8SetReturnValueStringOrNull(info, cppValue, info.GetIsolate());
2074 } 2074 }
2075 2075
2076 static void cachedStringOrNoneAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 2076 static void cachedStringOrNoneAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info)
2077 { 2077 {
2078 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2078 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2079 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeGetter(info); 2079 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeGetter(info);
2080 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2080 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2081 } 2081 }
2082 2082
2083 static void cachedStringOrNoneAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 2083 static void cachedStringOrNoneAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
2084 { 2084 {
2085 v8::Handle<v8::Object> holder = info.Holder(); 2085 v8::Local<v8::Object> holder = info.Holder();
2086 TestObject* impl = V8TestObject::toImpl(holder); 2086 TestObject* impl = V8TestObject::toImpl(holder);
2087 TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value); 2087 TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value);
2088 impl->setCachedStringOrNoneAttribute(cppValue); 2088 impl->setCachedStringOrNoneAttribute(cppValue);
2089 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedStringOrNoneAttribute")); // Invalidate the cached valu e. 2089 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedStringOrNoneAttribute")); // Invalidate the cached valu e.
2090 } 2090 }
2091 2091
2092 static void cachedStringOrNoneAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2092 static void cachedStringOrNoneAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2093 { 2093 {
2094 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2094 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2095 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeSetter(v8Value, in fo); 2095 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeSetter(v8Value, in fo);
2096 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2096 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2097 } 2097 }
2098 2098
2099 static void callWithExecutionContextAnyAttributeAttributeGetter(const v8::Proper tyCallbackInfo<v8::Value>& info) 2099 static void callWithExecutionContextAnyAttributeAttributeGetter(const v8::Proper tyCallbackInfo<v8::Value>& info)
2100 { 2100 {
2101 v8::Handle<v8::Object> holder = info.Holder(); 2101 v8::Local<v8::Object> holder = info.Holder();
2102 TestObject* impl = V8TestObject::toImpl(holder); 2102 TestObject* impl = V8TestObject::toImpl(holder);
2103 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 2103 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
2104 v8SetReturnValue(info, impl->callWithExecutionContextAnyAttribute(executionC ontext).v8Value()); 2104 v8SetReturnValue(info, impl->callWithExecutionContextAnyAttribute(executionC ontext).v8Value());
2105 } 2105 }
2106 2106
2107 static void callWithExecutionContextAnyAttributeAttributeGetterCallback(v8::Loca l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2107 static void callWithExecutionContextAnyAttributeAttributeGetterCallback(v8::Loca l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2108 { 2108 {
2109 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2109 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2110 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeGetter(in fo); 2110 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeGetter(in fo);
2111 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2111 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2112 } 2112 }
2113 2113
2114 static void callWithExecutionContextAnyAttributeAttributeSetter(v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info) 2114 static void callWithExecutionContextAnyAttributeAttributeSetter(v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info)
2115 { 2115 {
2116 v8::Handle<v8::Object> holder = info.Holder(); 2116 v8::Local<v8::Object> holder = info.Holder();
2117 TestObject* impl = V8TestObject::toImpl(holder); 2117 TestObject* impl = V8TestObject::toImpl(holder);
2118 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 2118 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
2119 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 2119 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
2120 impl->setCallWithExecutionContextAnyAttribute(executionContext, cppValue); 2120 impl->setCallWithExecutionContextAnyAttribute(executionContext, cppValue);
2121 } 2121 }
2122 2122
2123 static void callWithExecutionContextAnyAttributeAttributeSetterCallback(v8::Loca l<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 2123 static void callWithExecutionContextAnyAttributeAttributeSetterCallback(v8::Loca l<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
2124 { 2124 {
2125 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2125 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2126 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeSetter(v8 Value, info); 2126 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeSetter(v8 Value, info);
2127 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2127 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2128 } 2128 }
2129 2129
2130 static void callWithScriptStateAnyAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info) 2130 static void callWithScriptStateAnyAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info)
2131 { 2131 {
2132 v8::Handle<v8::Object> holder = info.Holder(); 2132 v8::Local<v8::Object> holder = info.Holder();
2133 TestObject* impl = V8TestObject::toImpl(holder); 2133 TestObject* impl = V8TestObject::toImpl(holder);
2134 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 2134 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
2135 v8SetReturnValue(info, impl->callWithScriptStateAnyAttribute(scriptState).v8 Value()); 2135 v8SetReturnValue(info, impl->callWithScriptStateAnyAttribute(scriptState).v8 Value());
2136 } 2136 }
2137 2137
2138 static void callWithScriptStateAnyAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2138 static void callWithScriptStateAnyAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2139 { 2139 {
2140 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2140 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2141 TestObjectV8Internal::callWithScriptStateAnyAttributeAttributeGetter(info); 2141 TestObjectV8Internal::callWithScriptStateAnyAttributeAttributeGetter(info);
2142 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2142 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2143 } 2143 }
2144 2144
2145 static void callWithScriptStateAnyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2145 static void callWithScriptStateAnyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2146 { 2146 {
2147 v8::Handle<v8::Object> holder = info.Holder(); 2147 v8::Local<v8::Object> holder = info.Holder();
2148 TestObject* impl = V8TestObject::toImpl(holder); 2148 TestObject* impl = V8TestObject::toImpl(holder);
2149 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 2149 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
2150 impl->setCallWithScriptStateAnyAttribute(scriptState, cppValue); 2150 impl->setCallWithScriptStateAnyAttribute(scriptState, cppValue);
2151 } 2151 }
2152 2152
2153 static void callWithScriptStateAnyAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 2153 static void callWithScriptStateAnyAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
2154 { 2154 {
2155 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2155 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2156 TestObjectV8Internal::callWithScriptStateAnyAttributeAttributeSetter(v8Value , info); 2156 TestObjectV8Internal::callWithScriptStateAnyAttributeAttributeSetter(v8Value , info);
2157 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2157 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2158 } 2158 }
2159 2159
2160 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) 2160 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info)
2161 { 2161 {
2162 v8::Handle<v8::Object> holder = info.Holder(); 2162 v8::Local<v8::Object> holder = info.Holder();
2163 TestObject* impl = V8TestObject::toImpl(holder); 2163 TestObject* impl = V8TestObject::toImpl(holder);
2164 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 2164 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
2165 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); 2165 ScriptState* scriptState = ScriptState::current(info.GetIsolate());
2166 v8SetReturnValue(info, impl->callWithExecutionContextAndScriptStateAnyAttrib ute(scriptState, executionContext).v8Value()); 2166 v8SetReturnValue(info, impl->callWithExecutionContextAndScriptStateAnyAttrib ute(scriptState, executionContext).v8Value());
2167 } 2167 }
2168 2168
2169 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2169 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2170 { 2170 {
2171 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2171 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2172 TestObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttr ibuteGetter(info); 2172 TestObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttr ibuteGetter(info);
2173 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2173 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2174 } 2174 }
2175 2175
2176 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2176 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2177 { 2177 {
2178 v8::Handle<v8::Object> holder = info.Holder(); 2178 v8::Local<v8::Object> holder = info.Holder();
2179 TestObject* impl = V8TestObject::toImpl(holder); 2179 TestObject* impl = V8TestObject::toImpl(holder);
2180 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 2180 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
2181 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 2181 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
2182 impl->setCallWithExecutionContextAndScriptStateAnyAttribute(scriptState, exe cutionContext, cppValue); 2182 impl->setCallWithExecutionContextAndScriptStateAnyAttribute(scriptState, exe cutionContext, cppValue);
2183 } 2183 }
2184 2184
2185 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info) 2185 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info)
2186 { 2186 {
2187 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2187 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2188 TestObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttr ibuteSetter(v8Value, info); 2188 TestObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttr ibuteSetter(v8Value, info);
2189 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2189 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2190 } 2190 }
2191 2191
2192 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info) 2192 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info)
2193 { 2193 {
2194 v8::Handle<v8::Object> holder = info.Holder(); 2194 v8::Local<v8::Object> holder = info.Holder();
2195 TestObject* impl = V8TestObject::toImpl(holder); 2195 TestObject* impl = V8TestObject::toImpl(holder);
2196 ExceptionState exceptionState(ExceptionState::GetterContext, "checkSecurityF orNodeReadonlyDocumentAttribute", "TestObject", holder, info.GetIsolate()); 2196 ExceptionState exceptionState(ExceptionState::GetterContext, "checkSecurityF orNodeReadonlyDocumentAttribute", "TestObject", holder, info.GetIsolate());
2197 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->check SecurityForNodeReadonlyDocumentAttribute(), exceptionState)) { 2197 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->check SecurityForNodeReadonlyDocumentAttribute(), exceptionState)) {
2198 v8SetReturnValueNull(info); 2198 v8SetReturnValueNull(info);
2199 exceptionState.throwIfNeeded(); 2199 exceptionState.throwIfNeeded();
2200 return; 2200 return;
2201 } 2201 }
2202 v8SetReturnValueFast(info, WTF::getPtr(impl->checkSecurityForNodeReadonlyDoc umentAttribute()), impl); 2202 v8SetReturnValueFast(info, WTF::getPtr(impl->checkSecurityForNodeReadonlyDoc umentAttribute()), impl);
2203 } 2203 }
2204 2204
2205 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback (v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2205 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback (v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2206 { 2206 {
2207 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2207 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2208 TestObjectV8Internal::checkSecurityForNodeReadonlyDocumentAttributeAttribute Getter(info); 2208 TestObjectV8Internal::checkSecurityForNodeReadonlyDocumentAttributeAttribute Getter(info);
2209 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2209 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2210 } 2210 }
2211 2211
2212 #if ENABLE(CONDITION) 2212 #if ENABLE(CONDITION)
2213 static void conditionalLongAttributeAttributeGetter(const v8::PropertyCallbackIn fo<v8::Value>& info) 2213 static void conditionalLongAttributeAttributeGetter(const v8::PropertyCallbackIn fo<v8::Value>& info)
2214 { 2214 {
2215 v8::Handle<v8::Object> holder = info.Holder(); 2215 v8::Local<v8::Object> holder = info.Holder();
2216 TestObject* impl = V8TestObject::toImpl(holder); 2216 TestObject* impl = V8TestObject::toImpl(holder);
2217 v8SetReturnValueInt(info, impl->conditionalLongAttribute()); 2217 v8SetReturnValueInt(info, impl->conditionalLongAttribute());
2218 } 2218 }
2219 #endif // ENABLE(CONDITION) 2219 #endif // ENABLE(CONDITION)
2220 2220
2221 #if ENABLE(CONDITION) 2221 #if ENABLE(CONDITION)
2222 static void conditionalLongAttributeAttributeGetterCallback(v8::Local<v8::String >, const v8::PropertyCallbackInfo<v8::Value>& info) 2222 static void conditionalLongAttributeAttributeGetterCallback(v8::Local<v8::String >, const v8::PropertyCallbackInfo<v8::Value>& info)
2223 { 2223 {
2224 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2224 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2225 TestObjectV8Internal::conditionalLongAttributeAttributeGetter(info); 2225 TestObjectV8Internal::conditionalLongAttributeAttributeGetter(info);
2226 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2226 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2227 } 2227 }
2228 #endif // ENABLE(CONDITION) 2228 #endif // ENABLE(CONDITION)
2229 2229
2230 #if ENABLE(CONDITION) 2230 #if ENABLE(CONDITION)
2231 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value , const v8::PropertyCallbackInfo<void>& info) 2231 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value , const v8::PropertyCallbackInfo<void>& info)
2232 { 2232 {
2233 v8::Handle<v8::Object> holder = info.Holder(); 2233 v8::Local<v8::Object> holder = info.Holder();
2234 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon gAttribute", "TestObject", holder, info.GetIsolate()); 2234 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon gAttribute", "TestObject", holder, info.GetIsolate());
2235 TestObject* impl = V8TestObject::toImpl(holder); 2235 TestObject* impl = V8TestObject::toImpl(holder);
2236 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2236 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2237 impl->setConditionalLongAttribute(cppValue); 2237 impl->setConditionalLongAttribute(cppValue);
2238 } 2238 }
2239 #endif // ENABLE(CONDITION) 2239 #endif // ENABLE(CONDITION)
2240 2240
2241 #if ENABLE(CONDITION) 2241 #if ENABLE(CONDITION)
2242 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::String >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2242 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::String >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2243 { 2243 {
(...skipping 19 matching lines...) Expand all
2263 2263
2264 static void customGetterLongAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 2264 static void customGetterLongAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
2265 { 2265 {
2266 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2266 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2267 V8TestObject::customGetterLongAttributeAttributeGetterCustom(info); 2267 V8TestObject::customGetterLongAttributeAttributeGetterCustom(info);
2268 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2268 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2269 } 2269 }
2270 2270
2271 static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 2271 static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
2272 { 2272 {
2273 v8::Handle<v8::Object> holder = info.Holder(); 2273 v8::Local<v8::Object> holder = info.Holder();
2274 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterLo ngAttribute", "TestObject", holder, info.GetIsolate()); 2274 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterLo ngAttribute", "TestObject", holder, info.GetIsolate());
2275 TestObject* impl = V8TestObject::toImpl(holder); 2275 TestObject* impl = V8TestObject::toImpl(holder);
2276 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2276 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2277 impl->setCustomGetterLongAttribute(cppValue); 2277 impl->setCustomGetterLongAttribute(cppValue);
2278 } 2278 }
2279 2279
2280 static void customGetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2280 static void customGetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2281 { 2281 {
2282 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2282 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2283 TestObjectV8Internal::customGetterLongAttributeAttributeSetter(v8Value, info ); 2283 TestObjectV8Internal::customGetterLongAttributeAttributeSetter(v8Value, info );
2284 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2284 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2285 } 2285 }
2286 2286
2287 static void customGetterReadonlyObjectAttributeAttributeGetterCallback(v8::Local <v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2287 static void customGetterReadonlyObjectAttributeAttributeGetterCallback(v8::Local <v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2288 { 2288 {
2289 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2289 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2290 V8TestObject::customGetterReadonlyObjectAttributeAttributeGetterCustom(info) ; 2290 V8TestObject::customGetterReadonlyObjectAttributeAttributeGetterCustom(info) ;
2291 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2291 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2292 } 2292 }
2293 2293
2294 static void customSetterLongAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 2294 static void customSetterLongAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
2295 { 2295 {
2296 v8::Handle<v8::Object> holder = info.Holder(); 2296 v8::Local<v8::Object> holder = info.Holder();
2297 TestObject* impl = V8TestObject::toImpl(holder); 2297 TestObject* impl = V8TestObject::toImpl(holder);
2298 v8SetReturnValueInt(info, impl->customSetterLongAttribute()); 2298 v8SetReturnValueInt(info, impl->customSetterLongAttribute());
2299 } 2299 }
2300 2300
2301 static void customSetterLongAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 2301 static void customSetterLongAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
2302 { 2302 {
2303 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2303 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2304 TestObjectV8Internal::customSetterLongAttributeAttributeGetter(info); 2304 TestObjectV8Internal::customSetterLongAttributeAttributeGetter(info);
2305 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2305 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2306 } 2306 }
(...skipping 18 matching lines...) Expand all
2325 static void customLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2325 static void customLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2326 { 2326 {
2327 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2327 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2328 V8TestObject::customLongAttributeAttributeSetterCustom(v8Value, info); 2328 V8TestObject::customLongAttributeAttributeSetterCustom(v8Value, info);
2329 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2329 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2330 } 2330 }
2331 #endif // ENABLE(CONDITION) 2331 #endif // ENABLE(CONDITION)
2332 2332
2333 static void customElementsCallbacksReadonlyLongAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info) 2333 static void customElementsCallbacksReadonlyLongAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info)
2334 { 2334 {
2335 v8::Handle<v8::Object> holder = info.Holder(); 2335 v8::Local<v8::Object> holder = info.Holder();
2336 TestObject* impl = V8TestObject::toImpl(holder); 2336 TestObject* impl = V8TestObject::toImpl(holder);
2337 v8SetReturnValueInt(info, impl->customElementsCallbacksReadonlyLongAttribute ()); 2337 v8SetReturnValueInt(info, impl->customElementsCallbacksReadonlyLongAttribute ());
2338 } 2338 }
2339 2339
2340 static void customElementsCallbacksReadonlyLongAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2340 static void customElementsCallbacksReadonlyLongAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2341 { 2341 {
2342 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2342 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2343 TestObjectV8Internal::customElementsCallbacksReadonlyLongAttributeAttributeG etter(info); 2343 TestObjectV8Internal::customElementsCallbacksReadonlyLongAttributeAttributeG etter(info);
2344 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2344 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2345 } 2345 }
2346 2346
2347 static void deprecatedLongAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 2347 static void deprecatedLongAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
2348 { 2348 {
2349 v8::Handle<v8::Object> holder = info.Holder(); 2349 v8::Local<v8::Object> holder = info.Holder();
2350 TestObject* impl = V8TestObject::toImpl(holder); 2350 TestObject* impl = V8TestObject::toImpl(holder);
2351 v8SetReturnValueInt(info, impl->deprecatedLongAttribute()); 2351 v8SetReturnValueInt(info, impl->deprecatedLongAttribute());
2352 } 2352 }
2353 2353
2354 static void deprecatedLongAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 2354 static void deprecatedLongAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info)
2355 { 2355 {
2356 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2356 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2357 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::LongAttribute); 2357 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::LongAttribute);
2358 TestObjectV8Internal::deprecatedLongAttributeAttributeGetter(info); 2358 TestObjectV8Internal::deprecatedLongAttributeAttributeGetter(info);
2359 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2359 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2360 } 2360 }
2361 2361
2362 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2362 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2363 { 2363 {
2364 v8::Handle<v8::Object> holder = info.Holder(); 2364 v8::Local<v8::Object> holder = info.Holder();
2365 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong Attribute", "TestObject", holder, info.GetIsolate()); 2365 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong Attribute", "TestObject", holder, info.GetIsolate());
2366 TestObject* impl = V8TestObject::toImpl(holder); 2366 TestObject* impl = V8TestObject::toImpl(holder);
2367 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2367 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2368 impl->setDeprecatedLongAttribute(cppValue); 2368 impl->setDeprecatedLongAttribute(cppValue);
2369 } 2369 }
2370 2370
2371 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2371 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2372 { 2372 {
2373 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2373 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2374 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::LongAttribute); 2374 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe cutionContext(info.GetIsolate()), UseCounter::LongAttribute);
2375 TestObjectV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info); 2375 TestObjectV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info);
2376 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2376 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2377 } 2377 }
2378 2378
2379 static void enforceRangeLongAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 2379 static void enforceRangeLongAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
2380 { 2380 {
2381 v8::Handle<v8::Object> holder = info.Holder(); 2381 v8::Local<v8::Object> holder = info.Holder();
2382 TestObject* impl = V8TestObject::toImpl(holder); 2382 TestObject* impl = V8TestObject::toImpl(holder);
2383 v8SetReturnValueInt(info, impl->enforceRangeLongAttribute()); 2383 v8SetReturnValueInt(info, impl->enforceRangeLongAttribute());
2384 } 2384 }
2385 2385
2386 static void enforceRangeLongAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 2386 static void enforceRangeLongAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
2387 { 2387 {
2388 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2388 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2389 TestObjectV8Internal::enforceRangeLongAttributeAttributeGetter(info); 2389 TestObjectV8Internal::enforceRangeLongAttributeAttributeGetter(info);
2390 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2390 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2391 } 2391 }
2392 2392
2393 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 2393 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
2394 { 2394 {
2395 v8::Handle<v8::Object> holder = info.Holder(); 2395 v8::Local<v8::Object> holder = info.Holder();
2396 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo ngAttribute", "TestObject", holder, info.GetIsolate()); 2396 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo ngAttribute", "TestObject", holder, info.GetIsolate());
2397 TestObject* impl = V8TestObject::toImpl(holder); 2397 TestObject* impl = V8TestObject::toImpl(holder);
2398 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, EnforceRange, e xceptionState), exceptionState); 2398 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, EnforceRange, e xceptionState), exceptionState);
2399 impl->setEnforceRangeLongAttribute(cppValue); 2399 impl->setEnforceRangeLongAttribute(cppValue);
2400 } 2400 }
2401 2401
2402 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2402 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2403 { 2403 {
2404 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2404 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2405 TestObjectV8Internal::enforceRangeLongAttributeAttributeSetter(v8Value, info ); 2405 TestObjectV8Internal::enforceRangeLongAttributeAttributeSetter(v8Value, info );
2406 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2406 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2407 } 2407 }
2408 2408
2409 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall backInfo<v8::Value>& info) 2409 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall backInfo<v8::Value>& info)
2410 { 2410 {
2411 v8::Handle<v8::Object> holder = info.Holder(); 2411 v8::Local<v8::Object> holder = info.Holder();
2412 TestObject* impl = V8TestObject::toImpl(holder); 2412 TestObject* impl = V8TestObject::toImpl(holder);
2413 v8SetReturnValueInt(info, impl->exposeJSAccessorsLongAttribute()); 2413 v8SetReturnValueInt(info, impl->exposeJSAccessorsLongAttribute());
2414 } 2414 }
2415 2415
2416 static void exposeJSAccessorsLongAttributeAttributeGetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 2416 static void exposeJSAccessorsLongAttributeAttributeGetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
2417 { 2417 {
2418 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2418 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2419 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeGetter(info); 2419 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeGetter(info);
2420 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2420 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2421 } 2421 }
2422 2422
2423 static void exposeJSAccessorsLongAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::FunctionCallbackInfo<v8::Value>& info) 2423 static void exposeJSAccessorsLongAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
2424 { 2424 {
2425 v8::Handle<v8::Object> holder = info.Holder(); 2425 v8::Local<v8::Object> holder = info.Holder();
2426 ExceptionState exceptionState(ExceptionState::SetterContext, "exposeJSAccess orsLongAttribute", "TestObject", holder, info.GetIsolate()); 2426 ExceptionState exceptionState(ExceptionState::SetterContext, "exposeJSAccess orsLongAttribute", "TestObject", holder, info.GetIsolate());
2427 TestObject* impl = V8TestObject::toImpl(holder); 2427 TestObject* impl = V8TestObject::toImpl(holder);
2428 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2428 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2429 impl->setExposeJSAccessorsLongAttribute(cppValue); 2429 impl->setExposeJSAccessorsLongAttribute(cppValue);
2430 } 2430 }
2431 2431
2432 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 2432 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
2433 { 2433 {
2434 v8::Local<v8::Value> v8Value = info[0]; 2434 v8::Local<v8::Value> v8Value = info[0];
2435 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2435 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2436 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(v8Value, info); 2436 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(v8Value, info);
2437 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2437 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2438 } 2438 }
2439 2439
2440 static void implementedAsLongAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info) 2440 static void implementedAsLongAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info)
2441 { 2441 {
2442 v8::Handle<v8::Object> holder = info.Holder(); 2442 v8::Local<v8::Object> holder = info.Holder();
2443 TestObject* impl = V8TestObject::toImpl(holder); 2443 TestObject* impl = V8TestObject::toImpl(holder);
2444 v8SetReturnValueInt(info, impl->implementedAsName()); 2444 v8SetReturnValueInt(info, impl->implementedAsName());
2445 } 2445 }
2446 2446
2447 static void implementedAsLongAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info) 2447 static void implementedAsLongAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info)
2448 { 2448 {
2449 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2449 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2450 TestObjectV8Internal::implementedAsLongAttributeAttributeGetter(info); 2450 TestObjectV8Internal::implementedAsLongAttributeAttributeGetter(info);
2451 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2451 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2452 } 2452 }
2453 2453
2454 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info) 2454 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info)
2455 { 2455 {
2456 v8::Handle<v8::Object> holder = info.Holder(); 2456 v8::Local<v8::Object> holder = info.Holder();
2457 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL ongAttribute", "TestObject", holder, info.GetIsolate()); 2457 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL ongAttribute", "TestObject", holder, info.GetIsolate());
2458 TestObject* impl = V8TestObject::toImpl(holder); 2458 TestObject* impl = V8TestObject::toImpl(holder);
2459 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2459 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2460 impl->setImplementedAsName(cppValue); 2460 impl->setImplementedAsName(cppValue);
2461 } 2461 }
2462 2462
2463 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2463 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2464 { 2464 {
2465 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2465 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2466 TestObjectV8Internal::implementedAsLongAttributeAttributeSetter(v8Value, inf o); 2466 TestObjectV8Internal::implementedAsLongAttributeAttributeSetter(v8Value, inf o);
(...skipping 16 matching lines...) Expand all
2483 2483
2484 static void customGetterImplementedAsLongAttributeAttributeGetterCallback(v8::Lo cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2484 static void customGetterImplementedAsLongAttributeAttributeGetterCallback(v8::Lo cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2485 { 2485 {
2486 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2486 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2487 V8TestObject::customGetterImplementedAsLongAttributeAttributeGetterCustom(in fo); 2487 V8TestObject::customGetterImplementedAsLongAttributeAttributeGetterCustom(in fo);
2488 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2488 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2489 } 2489 }
2490 2490
2491 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2491 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2492 { 2492 {
2493 v8::Handle<v8::Object> holder = info.Holder(); 2493 v8::Local<v8::Object> holder = info.Holder();
2494 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterIm plementedAsLongAttribute", "TestObject", holder, info.GetIsolate()); 2494 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterIm plementedAsLongAttribute", "TestObject", holder, info.GetIsolate());
2495 TestObject* impl = V8TestObject::toImpl(holder); 2495 TestObject* impl = V8TestObject::toImpl(holder);
2496 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2496 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2497 impl->setImplementedAsNameWithCustomGetter(cppValue); 2497 impl->setImplementedAsNameWithCustomGetter(cppValue);
2498 } 2498 }
2499 2499
2500 static void customGetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info) 2500 static void customGetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info)
2501 { 2501 {
2502 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2502 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2503 TestObjectV8Internal::customGetterImplementedAsLongAttributeAttributeSetter( v8Value, info); 2503 TestObjectV8Internal::customGetterImplementedAsLongAttributeAttributeSetter( v8Value, info);
2504 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2504 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2505 } 2505 }
2506 2506
2507 static void customSetterImplementedAsLongAttributeAttributeGetter(const v8::Prop ertyCallbackInfo<v8::Value>& info) 2507 static void customSetterImplementedAsLongAttributeAttributeGetter(const v8::Prop ertyCallbackInfo<v8::Value>& info)
2508 { 2508 {
2509 v8::Handle<v8::Object> holder = info.Holder(); 2509 v8::Local<v8::Object> holder = info.Holder();
2510 TestObject* impl = V8TestObject::toImpl(holder); 2510 TestObject* impl = V8TestObject::toImpl(holder);
2511 v8SetReturnValueInt(info, impl->implementedAsNameWithCustomGetter()); 2511 v8SetReturnValueInt(info, impl->implementedAsNameWithCustomGetter());
2512 } 2512 }
2513 2513
2514 static void customSetterImplementedAsLongAttributeAttributeGetterCallback(v8::Lo cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2514 static void customSetterImplementedAsLongAttributeAttributeGetterCallback(v8::Lo cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2515 { 2515 {
2516 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2516 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2517 TestObjectV8Internal::customSetterImplementedAsLongAttributeAttributeGetter( info); 2517 TestObjectV8Internal::customSetterImplementedAsLongAttributeAttributeGetter( info);
2518 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2518 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2519 } 2519 }
2520 2520
2521 static void customSetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info) 2521 static void customSetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info)
2522 { 2522 {
2523 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2523 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2524 V8TestObject::customSetterImplementedAsLongAttributeAttributeSetterCustom(v8 Value, info); 2524 V8TestObject::customSetterImplementedAsLongAttributeAttributeSetterCustom(v8 Value, info);
2525 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2525 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2526 } 2526 }
2527 2527
2528 static void measureAsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 2528 static void measureAsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
2529 { 2529 {
2530 v8::Handle<v8::Object> holder = info.Holder(); 2530 v8::Local<v8::Object> holder = info.Holder();
2531 TestObject* impl = V8TestObject::toImpl(holder); 2531 TestObject* impl = V8TestObject::toImpl(holder);
2532 v8SetReturnValueInt(info, impl->measureAsLongAttribute()); 2532 v8SetReturnValueInt(info, impl->measureAsLongAttribute());
2533 } 2533 }
2534 2534
2535 static void measureAsLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2535 static void measureAsLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2536 { 2536 {
2537 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2537 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2538 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature); 2538 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature);
2539 TestObjectV8Internal::measureAsLongAttributeAttributeGetter(info); 2539 TestObjectV8Internal::measureAsLongAttributeAttributeGetter(info);
2540 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2540 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2541 } 2541 }
2542 2542
2543 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2543 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2544 { 2544 {
2545 v8::Handle<v8::Object> holder = info.Holder(); 2545 v8::Local<v8::Object> holder = info.Holder();
2546 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA ttribute", "TestObject", holder, info.GetIsolate()); 2546 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA ttribute", "TestObject", holder, info.GetIsolate());
2547 TestObject* impl = V8TestObject::toImpl(holder); 2547 TestObject* impl = V8TestObject::toImpl(holder);
2548 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2548 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2549 impl->setMeasureAsLongAttribute(cppValue); 2549 impl->setMeasureAsLongAttribute(cppValue);
2550 } 2550 }
2551 2551
2552 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2552 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2553 { 2553 {
2554 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2554 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2555 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature); 2555 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature);
2556 TestObjectV8Internal::measureAsLongAttributeAttributeSetter(v8Value, info); 2556 TestObjectV8Internal::measureAsLongAttributeAttributeSetter(v8Value, info);
2557 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2557 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2558 } 2558 }
2559 2559
2560 static void notEnumerableLongAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info) 2560 static void notEnumerableLongAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info)
2561 { 2561 {
2562 v8::Handle<v8::Object> holder = info.Holder(); 2562 v8::Local<v8::Object> holder = info.Holder();
2563 TestObject* impl = V8TestObject::toImpl(holder); 2563 TestObject* impl = V8TestObject::toImpl(holder);
2564 v8SetReturnValueInt(info, impl->notEnumerableLongAttribute()); 2564 v8SetReturnValueInt(info, impl->notEnumerableLongAttribute());
2565 } 2565 }
2566 2566
2567 static void notEnumerableLongAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info) 2567 static void notEnumerableLongAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info)
2568 { 2568 {
2569 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2569 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2570 TestObjectV8Internal::notEnumerableLongAttributeAttributeGetter(info); 2570 TestObjectV8Internal::notEnumerableLongAttributeAttributeGetter(info);
2571 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2571 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2572 } 2572 }
2573 2573
2574 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info) 2574 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info)
2575 { 2575 {
2576 v8::Handle<v8::Object> holder = info.Holder(); 2576 v8::Local<v8::Object> holder = info.Holder();
2577 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL ongAttribute", "TestObject", holder, info.GetIsolate()); 2577 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL ongAttribute", "TestObject", holder, info.GetIsolate());
2578 TestObject* impl = V8TestObject::toImpl(holder); 2578 TestObject* impl = V8TestObject::toImpl(holder);
2579 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2579 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2580 impl->setNotEnumerableLongAttribute(cppValue); 2580 impl->setNotEnumerableLongAttribute(cppValue);
2581 } 2581 }
2582 2582
2583 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2583 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2584 { 2584 {
2585 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2585 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2586 TestObjectV8Internal::notEnumerableLongAttributeAttributeSetter(v8Value, inf o); 2586 TestObjectV8Internal::notEnumerableLongAttributeAttributeSetter(v8Value, inf o);
2587 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2587 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2588 } 2588 }
2589 2589
2590 static void perContextEnabledLongAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info) 2590 static void perContextEnabledLongAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info)
2591 { 2591 {
2592 v8::Handle<v8::Object> holder = info.Holder(); 2592 v8::Local<v8::Object> holder = info.Holder();
2593 TestObject* impl = V8TestObject::toImpl(holder); 2593 TestObject* impl = V8TestObject::toImpl(holder);
2594 v8SetReturnValueInt(info, impl->perContextEnabledLongAttribute()); 2594 v8SetReturnValueInt(info, impl->perContextEnabledLongAttribute());
2595 } 2595 }
2596 2596
2597 static void perContextEnabledLongAttributeAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2597 static void perContextEnabledLongAttributeAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2598 { 2598 {
2599 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2599 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2600 TestObjectV8Internal::perContextEnabledLongAttributeAttributeGetter(info); 2600 TestObjectV8Internal::perContextEnabledLongAttributeAttributeGetter(info);
2601 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2601 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2602 } 2602 }
2603 2603
2604 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info) 2604 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info)
2605 { 2605 {
2606 v8::Handle<v8::Object> holder = info.Holder(); 2606 v8::Local<v8::Object> holder = info.Holder();
2607 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab ledLongAttribute", "TestObject", holder, info.GetIsolate()); 2607 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab ledLongAttribute", "TestObject", holder, info.GetIsolate());
2608 TestObject* impl = V8TestObject::toImpl(holder); 2608 TestObject* impl = V8TestObject::toImpl(holder);
2609 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2609 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2610 impl->setPerContextEnabledLongAttribute(cppValue); 2610 impl->setPerContextEnabledLongAttribute(cppValue);
2611 } 2611 }
2612 2612
2613 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o) 2613 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o)
2614 { 2614 {
2615 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2615 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2616 TestObjectV8Internal::perContextEnabledLongAttributeAttributeSetter(v8Value, info); 2616 TestObjectV8Internal::perContextEnabledLongAttributeAttributeSetter(v8Value, info);
2617 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2617 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2618 } 2618 }
2619 2619
2620 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetter(c onst v8::PropertyCallbackInfo<v8::Value>& info) 2620 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetter(c onst v8::PropertyCallbackInfo<v8::Value>& info)
2621 { 2621 {
2622 v8::Handle<v8::Object> holder = info.Holder(); 2622 v8::Local<v8::Object> holder = info.Holder();
2623 TestObject* impl = V8TestObject::toImpl(holder); 2623 TestObject* impl = V8TestObject::toImpl(holder);
2624 RefPtr<TestInterfaceEmpty> cppValue(impl->perWorldBindingsReadonlyTestInterf aceEmptyAttribute()); 2624 RefPtr<TestInterfaceEmpty> cppValue(impl->perWorldBindingsReadonlyTestInterf aceEmptyAttribute());
2625 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get())) 2625 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get()))
2626 return; 2626 return;
2627 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate ()); 2627 v8::Local<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate( ));
2628 if (!wrapper.IsEmpty()) { 2628 if (!wrapper.IsEmpty()) {
2629 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute"), wrapp er); 2629 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute"), wrapp er);
2630 v8SetReturnValue(info, wrapper); 2630 v8SetReturnValue(info, wrapper);
2631 } 2631 }
2632 } 2632 }
2633 2633
2634 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa llback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2634 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa llback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2635 { 2635 {
2636 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2636 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2637 TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAtt ributeGetter(info); 2637 TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAtt ributeGetter(info);
2638 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2638 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2639 } 2639 }
2640 2640
2641 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterFo rMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 2641 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterFo rMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
2642 { 2642 {
2643 v8::Handle<v8::Object> holder = info.Holder(); 2643 v8::Local<v8::Object> holder = info.Holder();
2644 TestObject* impl = V8TestObject::toImpl(holder); 2644 TestObject* impl = V8TestObject::toImpl(holder);
2645 RefPtr<TestInterfaceEmpty> cppValue(impl->perWorldBindingsReadonlyTestInterf aceEmptyAttribute()); 2645 RefPtr<TestInterfaceEmpty> cppValue(impl->perWorldBindingsReadonlyTestInterf aceEmptyAttribute());
2646 if (cppValue && DOMDataStore::setReturnValueForMainWorld(info.GetReturnValue (), cppValue.get())) 2646 if (cppValue && DOMDataStore::setReturnValueForMainWorld(info.GetReturnValue (), cppValue.get()))
2647 return; 2647 return;
2648 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate ()); 2648 v8::Local<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate( ));
2649 if (!wrapper.IsEmpty()) { 2649 if (!wrapper.IsEmpty()) {
2650 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute"), wrapp er); 2650 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute"), wrapp er);
2651 v8SetReturnValue(info, wrapper); 2651 v8SetReturnValue(info, wrapper);
2652 } 2652 }
2653 } 2653 }
2654 2654
2655 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa llbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Val ue>& info) 2655 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa llbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Val ue>& info)
2656 { 2656 {
2657 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2657 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2658 TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAtt ributeGetterForMainWorld(info); 2658 TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAtt ributeGetterForMainWorld(info);
2659 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2659 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2660 } 2660 }
2661 2661
2662 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) 2662 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info)
2663 { 2663 {
2664 v8::Handle<v8::Object> holder = info.Holder(); 2664 v8::Local<v8::Object> holder = info.Holder();
2665 TestObject* impl = V8TestObject::toImpl(holder); 2665 TestObject* impl = V8TestObject::toImpl(holder);
2666 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute()); 2666 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute());
2667 } 2667 }
2668 2668
2669 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2669 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2670 { 2670 {
2671 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2671 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2672 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2672 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2673 V8PerContextData* contextData = scriptState->perContextData(); 2673 V8PerContextData* contextData = scriptState->perContextData();
2674 if (contextData && contextData->activityLogger()) 2674 if (contextData && contextData->activityLogger())
2675 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute"); 2675 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute");
2676 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetter(info); 2676 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetter(info);
2677 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2677 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2678 } 2678 }
2679 2679
2680 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2680 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2681 { 2681 {
2682 v8::Handle<v8::Object> holder = info.Holder(); 2682 v8::Local<v8::Object> holder = info.Holder();
2683 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2683 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
2684 TestObject* impl = V8TestObject::toImpl(holder); 2684 TestObject* impl = V8TestObject::toImpl(holder);
2685 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2685 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2686 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); 2686 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue);
2687 } 2687 }
2688 2688
2689 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info) 2689 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info)
2690 { 2690 {
2691 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2691 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2692 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2692 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2693 V8PerContextData* contextData = scriptState->perContextData(); 2693 V8PerContextData* contextData = scriptState->perContextData();
2694 if (contextData && contextData->activityLogger()) { 2694 if (contextData && contextData->activityLogger()) {
2695 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value); 2695 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value);
2696 } 2696 }
2697 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info); 2697 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info);
2698 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2698 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2699 } 2699 }
2700 2700
2701 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 2701 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
2702 { 2702 {
2703 v8::Handle<v8::Object> holder = info.Holder(); 2703 v8::Local<v8::Object> holder = info.Holder();
2704 TestObject* impl = V8TestObject::toImpl(holder); 2704 TestObject* impl = V8TestObject::toImpl(holder);
2705 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute()); 2705 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute());
2706 } 2706 }
2707 2707
2708 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info) 2708 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info)
2709 { 2709 {
2710 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2710 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2711 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2711 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2712 V8PerContextData* contextData = scriptState->perContextData(); 2712 V8PerContextData* contextData = scriptState->perContextData();
2713 if (contextData && contextData->activityLogger()) 2713 if (contextData && contextData->activityLogger())
2714 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute"); 2714 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute");
2715 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info); 2715 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info);
2716 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2716 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2717 } 2717 }
2718 2718
2719 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 2719 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
2720 { 2720 {
2721 v8::Handle<v8::Object> holder = info.Holder(); 2721 v8::Local<v8::Object> holder = info.Holder();
2722 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2722 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
2723 TestObject* impl = V8TestObject::toImpl(holder); 2723 TestObject* impl = V8TestObject::toImpl(holder);
2724 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2724 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2725 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); 2725 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue);
2726 } 2726 }
2727 2727
2728 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 2728 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
2729 { 2729 {
2730 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2730 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2731 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2731 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2732 V8PerContextData* contextData = scriptState->perContextData(); 2732 V8PerContextData* contextData = scriptState->perContextData();
2733 if (contextData && contextData->activityLogger()) { 2733 if (contextData && contextData->activityLogger()) {
2734 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value); 2734 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssPerWorldBindingsLongAttribute", v8Value);
2735 } 2735 }
2736 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info); 2736 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info);
2737 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2737 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2738 } 2738 }
2739 2739
2740 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 2740 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
2741 { 2741 {
2742 v8::Handle<v8::Object> holder = info.Holder(); 2742 v8::Local<v8::Object> holder = info.Holder();
2743 TestObject* impl = V8TestObject::toImpl(holder); 2743 TestObject* impl = V8TestObject::toImpl(holder);
2744 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute()); 2744 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute());
2745 } 2745 }
2746 2746
2747 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info) 2747 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info)
2748 { 2748 {
2749 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2749 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2750 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2750 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2751 V8PerContextData* contextData = scriptState->perContextData(); 2751 V8PerContextData* contextData = scriptState->perContextData();
2752 if (contextData && contextData->activityLogger()) 2752 if (contextData && contextData->activityLogger())
2753 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute"); 2753 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute");
2754 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info); 2754 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info);
2755 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2755 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2756 } 2756 }
2757 2757
2758 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 2758 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
2759 { 2759 {
2760 v8::Handle<v8::Object> holder = info.Holder(); 2760 v8::Local<v8::Object> holder = info.Holder();
2761 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 2761 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
2762 TestObject* impl = V8TestObject::toImpl(holder); 2762 TestObject* impl = V8TestObject::toImpl(holder);
2763 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2763 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2764 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 2764 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
2765 } 2765 }
2766 2766
2767 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) 2767 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info)
2768 { 2768 {
2769 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2769 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2770 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2770 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2771 V8PerContextData* contextData = scriptState->perContextData(); 2771 V8PerContextData* contextData = scriptState->perContextData();
2772 if (contextData && contextData->activityLogger()) { 2772 if (contextData && contextData->activityLogger()) {
2773 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value); 2773 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value);
2774 } 2774 }
2775 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info); 2775 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info);
2776 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2776 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2777 } 2777 }
2778 2778
2779 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 2779 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
2780 { 2780 {
2781 v8::Handle<v8::Object> holder = info.Holder(); 2781 v8::Local<v8::Object> holder = info.Holder();
2782 TestObject* impl = V8TestObject::toImpl(holder); 2782 TestObject* impl = V8TestObject::toImpl(holder);
2783 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute()); 2783 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute());
2784 } 2784 }
2785 2785
2786 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall backInfo<v8::Value>& info) 2786 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall backInfo<v8::Value>& info)
2787 { 2787 {
2788 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2788 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2789 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetterForMainWorld(info); 2789 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetterForMainWorld(info);
2790 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2790 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2791 } 2791 }
2792 2792
2793 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info) 2793 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info)
2794 { 2794 {
2795 v8::Handle<v8::Object> holder = info.Holder(); 2795 v8::Local<v8::Object> holder = info.Holder();
2796 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 2796 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
2797 TestObject* impl = V8TestObject::toImpl(holder); 2797 TestObject* impl = V8TestObject::toImpl(holder);
2798 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2798 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2799 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 2799 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
2800 } 2800 }
2801 2801
2802 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info) 2802 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info)
2803 { 2803 {
2804 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2804 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2805 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetterForMainWorld(v8Value, info); 2805 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetterForMainWorld(v8Value, info);
2806 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2806 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2807 } 2807 }
2808 2808
2809 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) 2809 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info)
2810 { 2810 {
2811 v8::Handle<v8::Object> holder = info.Holder(); 2811 v8::Local<v8::Object> holder = info.Holder();
2812 TestObject* impl = V8TestObject::toImpl(holder); 2812 TestObject* impl = V8TestObject::toImpl(holder);
2813 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute()); 2813 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute());
2814 } 2814 }
2815 2815
2816 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2816 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2817 { 2817 {
2818 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2818 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2819 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2819 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2820 V8PerContextData* contextData = scriptState->perContextData(); 2820 V8PerContextData* contextData = scriptState->perContextData();
2821 if (contextData && contextData->activityLogger()) 2821 if (contextData && contextData->activityLogger())
2822 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute"); 2822 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute");
2823 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetter(info); 2823 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetter(info);
2824 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2824 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2825 } 2825 }
2826 2826
2827 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2827 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2828 { 2828 {
2829 v8::Handle<v8::Object> holder = info.Holder(); 2829 v8::Local<v8::Object> holder = info.Holder();
2830 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2830 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
2831 TestObject* impl = V8TestObject::toImpl(holder); 2831 TestObject* impl = V8TestObject::toImpl(holder);
2832 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2832 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2833 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); 2833 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue);
2834 } 2834 }
2835 2835
2836 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info) 2836 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info)
2837 { 2837 {
2838 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2838 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2839 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info); 2839 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteSetter(v8Value, info);
2840 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2840 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2841 } 2841 }
2842 2842
2843 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 2843 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
2844 { 2844 {
2845 v8::Handle<v8::Object> holder = info.Holder(); 2845 v8::Local<v8::Object> holder = info.Holder();
2846 TestObject* impl = V8TestObject::toImpl(holder); 2846 TestObject* impl = V8TestObject::toImpl(holder);
2847 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute()); 2847 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute());
2848 } 2848 }
2849 2849
2850 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info) 2850 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info)
2851 { 2851 {
2852 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2852 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2853 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2853 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2854 V8PerContextData* contextData = scriptState->perContextData(); 2854 V8PerContextData* contextData = scriptState->perContextData();
2855 if (contextData && contextData->activityLogger()) 2855 if (contextData && contextData->activityLogger())
2856 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute"); 2856 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erPerWorldBindingsLongAttribute");
2857 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info); 2857 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteGetterForMainWorld(info);
2858 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2858 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2859 } 2859 }
2860 2860
2861 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 2861 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
2862 { 2862 {
2863 v8::Handle<v8::Object> holder = info.Holder(); 2863 v8::Local<v8::Object> holder = info.Holder();
2864 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); 2864 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate());
2865 TestObject* impl = V8TestObject::toImpl(holder); 2865 TestObject* impl = V8TestObject::toImpl(holder);
2866 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2866 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2867 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); 2867 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue);
2868 } 2868 }
2869 2869
2870 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 2870 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
2871 { 2871 {
2872 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2872 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2873 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info); 2873 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr ibuteSetterForMainWorld(v8Value, info);
2874 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2874 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2875 } 2875 }
2876 2876
2877 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 2877 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
2878 { 2878 {
2879 v8::Handle<v8::Object> holder = info.Holder(); 2879 v8::Local<v8::Object> holder = info.Holder();
2880 TestObject* impl = V8TestObject::toImpl(holder); 2880 TestObject* impl = V8TestObject::toImpl(holder);
2881 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute()); 2881 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute());
2882 } 2882 }
2883 2883
2884 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info) 2884 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info)
2885 { 2885 {
2886 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2886 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2887 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext()); 2887 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo ntext());
2888 V8PerContextData* contextData = scriptState->perContextData(); 2888 V8PerContextData* contextData = scriptState->perContextData();
2889 if (contextData && contextData->activityLogger()) 2889 if (contextData && contextData->activityLogger())
2890 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForIsolatedWorldsPerWorldBindingsLongAttribute"); 2890 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett erForIsolatedWorldsPerWorldBindingsLongAttribute");
2891 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info); 2891 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetter(info);
2892 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2892 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2893 } 2893 }
2894 2894
2895 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 2895 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
2896 { 2896 {
2897 v8::Handle<v8::Object> holder = info.Holder(); 2897 v8::Local<v8::Object> holder = info.Holder();
2898 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 2898 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
2899 TestObject* impl = V8TestObject::toImpl(holder); 2899 TestObject* impl = V8TestObject::toImpl(holder);
2900 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2900 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2901 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 2901 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
2902 } 2902 }
2903 2903
2904 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) 2904 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info)
2905 { 2905 {
2906 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2906 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2907 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info); 2907 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetter(v8Value, info);
2908 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2908 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2909 } 2909 }
2910 2910
2911 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 2911 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
2912 { 2912 {
2913 v8::Handle<v8::Object> holder = info.Holder(); 2913 v8::Local<v8::Object> holder = info.Holder();
2914 TestObject* impl = V8TestObject::toImpl(holder); 2914 TestObject* impl = V8TestObject::toImpl(holder);
2915 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute()); 2915 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute());
2916 } 2916 }
2917 2917
2918 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall backInfo<v8::Value>& info) 2918 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall backInfo<v8::Value>& info)
2919 { 2919 {
2920 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2920 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2921 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetterForMainWorld(info); 2921 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeGetterForMainWorld(info);
2922 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2922 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2923 } 2923 }
2924 2924
2925 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info) 2925 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info)
2926 { 2926 {
2927 v8::Handle<v8::Object> holder = info.Holder(); 2927 v8::Local<v8::Object> holder = info.Holder();
2928 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate()); 2928 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in fo.GetIsolate());
2929 TestObject* impl = V8TestObject::toImpl(holder); 2929 TestObject* impl = V8TestObject::toImpl(holder);
2930 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 2930 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
2931 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 2931 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
2932 } 2932 }
2933 2933
2934 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info) 2934 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info)
2935 { 2935 {
2936 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2936 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2937 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetterForMainWorld(v8Value, info); 2937 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings LongAttributeAttributeSetterForMainWorld(v8Value, info);
2938 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2938 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2939 } 2939 }
2940 2940
2941 static void locationAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& i nfo) 2941 static void locationAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& i nfo)
2942 { 2942 {
2943 v8::Handle<v8::Object> holder = info.Holder(); 2943 v8::Local<v8::Object> holder = info.Holder();
2944 TestObject* impl = V8TestObject::toImpl(holder); 2944 TestObject* impl = V8TestObject::toImpl(holder);
2945 v8SetReturnValueFast(info, WTF::getPtr(impl->location()), impl); 2945 v8SetReturnValueFast(info, WTF::getPtr(impl->location()), impl);
2946 } 2946 }
2947 2947
2948 static void locationAttributeGetterCallback(v8::Local<v8::String>, const v8::Pro pertyCallbackInfo<v8::Value>& info) 2948 static void locationAttributeGetterCallback(v8::Local<v8::String>, const v8::Pro pertyCallbackInfo<v8::Value>& info)
2949 { 2949 {
2950 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2950 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2951 TestObjectV8Internal::locationAttributeGetter(info); 2951 TestObjectV8Internal::locationAttributeGetter(info);
2952 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2952 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2953 } 2953 }
2954 2954
2955 static void locationAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Prop ertyCallbackInfo<void>& info) 2955 static void locationAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Prop ertyCallbackInfo<void>& info)
2956 { 2956 {
2957 v8::Handle<v8::Object> holder = info.Holder(); 2957 v8::Local<v8::Object> holder = info.Holder();
2958 TestObject* proxyImpl = V8TestObject::toImpl(holder); 2958 TestObject* proxyImpl = V8TestObject::toImpl(holder);
2959 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->location()); 2959 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->location());
2960 if (!impl) 2960 if (!impl)
2961 return; 2961 return;
2962 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 2962 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
2963 impl->setHref(cppValue); 2963 impl->setHref(cppValue);
2964 } 2964 }
2965 2965
2966 static void locationAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8: :Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 2966 static void locationAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8: :Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2967 { 2967 {
2968 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 2968 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
2969 TestObjectV8Internal::locationAttributeSetter(v8Value, info); 2969 TestObjectV8Internal::locationAttributeSetter(v8Value, info);
2970 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2970 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2971 } 2971 }
2972 2972
2973 static void locationWithExceptionAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 2973 static void locationWithExceptionAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
2974 { 2974 {
2975 v8::Handle<v8::Object> holder = info.Holder(); 2975 v8::Local<v8::Object> holder = info.Holder();
2976 TestObject* impl = V8TestObject::toImpl(holder); 2976 TestObject* impl = V8TestObject::toImpl(holder);
2977 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithException()), impl) ; 2977 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithException()), impl) ;
2978 } 2978 }
2979 2979
2980 static void locationWithExceptionAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2980 static void locationWithExceptionAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2981 { 2981 {
2982 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2982 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2983 TestObjectV8Internal::locationWithExceptionAttributeGetter(info); 2983 TestObjectV8Internal::locationWithExceptionAttributeGetter(info);
2984 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2984 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2985 } 2985 }
2986 2986
2987 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 2987 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
2988 { 2988 {
2989 v8::Handle<v8::Object> holder = info.Holder(); 2989 v8::Local<v8::Object> holder = info.Holder();
2990 ExceptionState exceptionState(ExceptionState::SetterContext, "locationWithEx ception", "TestObject", holder, info.GetIsolate()); 2990 ExceptionState exceptionState(ExceptionState::SetterContext, "locationWithEx ception", "TestObject", holder, info.GetIsolate());
2991 TestObject* proxyImpl = V8TestObject::toImpl(holder); 2991 TestObject* proxyImpl = V8TestObject::toImpl(holder);
2992 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithExcep tion()); 2992 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithExcep tion());
2993 if (!impl) 2993 if (!impl)
2994 return; 2994 return;
2995 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 2995 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
2996 impl->setHrefThrows(cppValue, exceptionState); 2996 impl->setHrefThrows(cppValue, exceptionState);
2997 exceptionState.throwIfNeeded(); 2997 exceptionState.throwIfNeeded();
2998 } 2998 }
2999 2999
3000 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3000 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3001 { 3001 {
3002 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3002 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3003 TestObjectV8Internal::locationWithExceptionAttributeSetter(v8Value, info); 3003 TestObjectV8Internal::locationWithExceptionAttributeSetter(v8Value, info);
3004 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3004 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3005 } 3005 }
3006 3006
3007 static void locationWithCallWithAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 3007 static void locationWithCallWithAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
3008 { 3008 {
3009 v8::Handle<v8::Object> holder = info.Holder(); 3009 v8::Local<v8::Object> holder = info.Holder();
3010 TestObject* impl = V8TestObject::toImpl(holder); 3010 TestObject* impl = V8TestObject::toImpl(holder);
3011 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithCallWith()), impl); 3011 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithCallWith()), impl);
3012 } 3012 }
3013 3013
3014 static void locationWithCallWithAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 3014 static void locationWithCallWithAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
3015 { 3015 {
3016 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3016 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3017 TestObjectV8Internal::locationWithCallWithAttributeGetter(info); 3017 TestObjectV8Internal::locationWithCallWithAttributeGetter(info);
3018 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3018 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3019 } 3019 }
3020 3020
3021 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 3021 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
3022 { 3022 {
3023 v8::Handle<v8::Object> holder = info.Holder(); 3023 v8::Local<v8::Object> holder = info.Holder();
3024 TestObject* proxyImpl = V8TestObject::toImpl(holder); 3024 TestObject* proxyImpl = V8TestObject::toImpl(holder);
3025 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithCallW ith()); 3025 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithCallW ith());
3026 if (!impl) 3026 if (!impl)
3027 return; 3027 return;
3028 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3028 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3029 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 3029 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
3030 impl->setHrefCallWith(executionContext, callingDOMWindow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); 3030 impl->setHrefCallWith(executionContext, callingDOMWindow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue);
3031 } 3031 }
3032 3032
3033 static void locationWithCallWithAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3033 static void locationWithCallWithAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3034 { 3034 {
3035 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3035 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3036 TestObjectV8Internal::locationWithCallWithAttributeSetter(v8Value, info); 3036 TestObjectV8Internal::locationWithCallWithAttributeSetter(v8Value, info);
3037 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3037 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3038 } 3038 }
3039 3039
3040 static void locationByteStringAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info) 3040 static void locationByteStringAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info)
3041 { 3041 {
3042 v8::Handle<v8::Object> holder = info.Holder(); 3042 v8::Local<v8::Object> holder = info.Holder();
3043 TestObject* impl = V8TestObject::toImpl(holder); 3043 TestObject* impl = V8TestObject::toImpl(holder);
3044 v8SetReturnValueFast(info, WTF::getPtr(impl->locationByteString()), impl); 3044 v8SetReturnValueFast(info, WTF::getPtr(impl->locationByteString()), impl);
3045 } 3045 }
3046 3046
3047 static void locationByteStringAttributeGetterCallback(v8::Local<v8::String>, con st v8::PropertyCallbackInfo<v8::Value>& info) 3047 static void locationByteStringAttributeGetterCallback(v8::Local<v8::String>, con st v8::PropertyCallbackInfo<v8::Value>& info)
3048 { 3048 {
3049 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3049 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3050 TestObjectV8Internal::locationByteStringAttributeGetter(info); 3050 TestObjectV8Internal::locationByteStringAttributeGetter(info);
3051 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3051 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3052 } 3052 }
3053 3053
3054 static void locationByteStringAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) 3054 static void locationByteStringAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info)
3055 { 3055 {
3056 v8::Handle<v8::Object> holder = info.Holder(); 3056 v8::Local<v8::Object> holder = info.Holder();
3057 ExceptionState exceptionState(ExceptionState::SetterContext, "locationByteSt ring", "TestObject", holder, info.GetIsolate()); 3057 ExceptionState exceptionState(ExceptionState::SetterContext, "locationByteSt ring", "TestObject", holder, info.GetIsolate());
3058 TestObject* proxyImpl = V8TestObject::toImpl(holder); 3058 TestObject* proxyImpl = V8TestObject::toImpl(holder);
3059 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationByteStrin g()); 3059 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationByteStrin g());
3060 if (!impl) 3060 if (!impl)
3061 return; 3061 return;
3062 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va lue, exceptionState), exceptionState); 3062 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va lue, exceptionState), exceptionState);
3063 impl->setHrefByteString(cppValue); 3063 impl->setHrefByteString(cppValue);
3064 } 3064 }
3065 3065
3066 static void locationByteStringAttributeSetterCallback(v8::Local<v8::String>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3066 static void locationByteStringAttributeSetterCallback(v8::Local<v8::String>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3067 { 3067 {
3068 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3068 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3069 TestObjectV8Internal::locationByteStringAttributeSetter(v8Value, info); 3069 TestObjectV8Internal::locationByteStringAttributeSetter(v8Value, info);
3070 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3070 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3071 } 3071 }
3072 3072
3073 static void locationWithPerWorldBindingsAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info) 3073 static void locationWithPerWorldBindingsAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info)
3074 { 3074 {
3075 v8::Handle<v8::Object> holder = info.Holder(); 3075 v8::Local<v8::Object> holder = info.Holder();
3076 TestObject* impl = V8TestObject::toImpl(holder); 3076 TestObject* impl = V8TestObject::toImpl(holder);
3077 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithPerWorldBindings()) , impl); 3077 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithPerWorldBindings()) , impl);
3078 } 3078 }
3079 3079
3080 static void locationWithPerWorldBindingsAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info) 3080 static void locationWithPerWorldBindingsAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info)
3081 { 3081 {
3082 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3082 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3083 TestObjectV8Internal::locationWithPerWorldBindingsAttributeGetter(info); 3083 TestObjectV8Internal::locationWithPerWorldBindingsAttributeGetter(info);
3084 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3084 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3085 } 3085 }
3086 3086
3087 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info) 3087 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info)
3088 { 3088 {
3089 v8::Handle<v8::Object> holder = info.Holder(); 3089 v8::Local<v8::Object> holder = info.Holder();
3090 TestObject* proxyImpl = V8TestObject::toImpl(holder); 3090 TestObject* proxyImpl = V8TestObject::toImpl(holder);
3091 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo rldBindings()); 3091 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo rldBindings());
3092 if (!impl) 3092 if (!impl)
3093 return; 3093 return;
3094 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3094 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3095 impl->setHref(cppValue); 3095 impl->setHref(cppValue);
3096 } 3096 }
3097 3097
3098 static void locationWithPerWorldBindingsAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3098 static void locationWithPerWorldBindingsAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3099 { 3099 {
3100 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3100 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3101 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetter(v8Value, i nfo); 3101 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetter(v8Value, i nfo);
3102 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3102 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3103 } 3103 }
3104 3104
3105 static void locationWithPerWorldBindingsAttributeGetterForMainWorld(const v8::Pr opertyCallbackInfo<v8::Value>& info) 3105 static void locationWithPerWorldBindingsAttributeGetterForMainWorld(const v8::Pr opertyCallbackInfo<v8::Value>& info)
3106 { 3106 {
3107 v8::Handle<v8::Object> holder = info.Holder(); 3107 v8::Local<v8::Object> holder = info.Holder();
3108 TestObject* impl = V8TestObject::toImpl(holder); 3108 TestObject* impl = V8TestObject::toImpl(holder);
3109 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->locationWithPerWorldBin dings())); 3109 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->locationWithPerWorldBin dings()));
3110 } 3110 }
3111 3111
3112 static void locationWithPerWorldBindingsAttributeGetterCallbackForMainWorld(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3112 static void locationWithPerWorldBindingsAttributeGetterCallbackForMainWorld(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3113 { 3113 {
3114 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3114 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3115 TestObjectV8Internal::locationWithPerWorldBindingsAttributeGetterForMainWorl d(info); 3115 TestObjectV8Internal::locationWithPerWorldBindingsAttributeGetterForMainWorl d(info);
3116 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3116 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3117 } 3117 }
3118 3118
3119 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3119 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3120 { 3120 {
3121 v8::Handle<v8::Object> holder = info.Holder(); 3121 v8::Local<v8::Object> holder = info.Holder();
3122 TestObject* proxyImpl = V8TestObject::toImpl(holder); 3122 TestObject* proxyImpl = V8TestObject::toImpl(holder);
3123 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo rldBindings()); 3123 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo rldBindings());
3124 if (!impl) 3124 if (!impl)
3125 return; 3125 return;
3126 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3126 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3127 impl->setHref(cppValue); 3127 impl->setHref(cppValue);
3128 } 3128 }
3129 3129
3130 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(v8:: Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo< void>& info) 3130 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(v8:: Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo< void>& info)
3131 { 3131 {
3132 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3132 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3133 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetterForMainWorl d(v8Value, info); 3133 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetterForMainWorl d(v8Value, info);
3134 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3134 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3135 } 3135 }
3136 3136
3137 static void locationTypeCheckingInterfaceAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 3137 static void locationTypeCheckingInterfaceAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info)
3138 { 3138 {
3139 v8::Handle<v8::Object> holder = info.Holder(); 3139 v8::Local<v8::Object> holder = info.Holder();
3140 TestObject* impl = V8TestObject::toImpl(holder); 3140 TestObject* impl = V8TestObject::toImpl(holder);
3141 v8SetReturnValueFast(info, WTF::getPtr(impl->locationTypeCheckingInterface() ), impl); 3141 v8SetReturnValueFast(info, WTF::getPtr(impl->locationTypeCheckingInterface() ), impl);
3142 } 3142 }
3143 3143
3144 static void locationTypeCheckingInterfaceAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info) 3144 static void locationTypeCheckingInterfaceAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info)
3145 { 3145 {
3146 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3146 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3147 TestObjectV8Internal::locationTypeCheckingInterfaceAttributeGetter(info); 3147 TestObjectV8Internal::locationTypeCheckingInterfaceAttributeGetter(info);
3148 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3148 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3149 } 3149 }
3150 3150
3151 static void locationTypeCheckingInterfaceAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info) 3151 static void locationTypeCheckingInterfaceAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info)
3152 { 3152 {
3153 v8::Handle<v8::Object> holder = info.Holder(); 3153 v8::Local<v8::Object> holder = info.Holder();
3154 TestObject* proxyImpl = V8TestObject::toImpl(holder); 3154 TestObject* proxyImpl = V8TestObject::toImpl(holder);
3155 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationTypeCheck ingInterface()); 3155 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationTypeCheck ingInterface());
3156 if (!impl) 3156 if (!impl)
3157 return; 3157 return;
3158 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3158 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3159 impl->setHref(cppValue); 3159 impl->setHref(cppValue);
3160 } 3160 }
3161 3161
3162 static void locationTypeCheckingInterfaceAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info ) 3162 static void locationTypeCheckingInterfaceAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info )
3163 { 3163 {
3164 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3164 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3165 TestObjectV8Internal::locationTypeCheckingInterfaceAttributeSetter(v8Value, info); 3165 TestObjectV8Internal::locationTypeCheckingInterfaceAttributeSetter(v8Value, info);
3166 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3166 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3167 } 3167 }
3168 3168
3169 static void locationGarbageCollectedAttributeGetter(const v8::PropertyCallbackIn fo<v8::Value>& info) 3169 static void locationGarbageCollectedAttributeGetter(const v8::PropertyCallbackIn fo<v8::Value>& info)
3170 { 3170 {
3171 v8::Handle<v8::Object> holder = info.Holder(); 3171 v8::Local<v8::Object> holder = info.Holder();
3172 TestObject* impl = V8TestObject::toImpl(holder); 3172 TestObject* impl = V8TestObject::toImpl(holder);
3173 RawPtr<TestInterfaceGarbageCollected> cppValue(impl->locationGarbageCollecte d()); 3173 RawPtr<TestInterfaceGarbageCollected> cppValue(impl->locationGarbageCollecte d());
3174 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get())) 3174 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get()))
3175 return; 3175 return;
3176 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate ()); 3176 v8::Local<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate( ));
3177 if (!wrapper.IsEmpty()) { 3177 if (!wrapper.IsEmpty()) {
3178 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "locationGarbageCollected"), wrapper); 3178 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "locationGarbageCollected"), wrapper);
3179 v8SetReturnValue(info, wrapper); 3179 v8SetReturnValue(info, wrapper);
3180 } 3180 }
3181 } 3181 }
3182 3182
3183 static void locationGarbageCollectedAttributeGetterCallback(v8::Local<v8::String >, const v8::PropertyCallbackInfo<v8::Value>& info) 3183 static void locationGarbageCollectedAttributeGetterCallback(v8::Local<v8::String >, const v8::PropertyCallbackInfo<v8::Value>& info)
3184 { 3184 {
3185 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3185 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3186 TestObjectV8Internal::locationGarbageCollectedAttributeGetter(info); 3186 TestObjectV8Internal::locationGarbageCollectedAttributeGetter(info);
3187 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3187 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3188 } 3188 }
3189 3189
3190 static void locationGarbageCollectedAttributeSetter(v8::Local<v8::Value> v8Value , const v8::PropertyCallbackInfo<void>& info) 3190 static void locationGarbageCollectedAttributeSetter(v8::Local<v8::Value> v8Value , const v8::PropertyCallbackInfo<void>& info)
3191 { 3191 {
3192 v8::Handle<v8::Object> holder = info.Holder(); 3192 v8::Local<v8::Object> holder = info.Holder();
3193 TestObject* proxyImpl = V8TestObject::toImpl(holder); 3193 TestObject* proxyImpl = V8TestObject::toImpl(holder);
3194 RawPtr<TestInterfaceGarbageCollected> impl = WTF::getPtr(proxyImpl->location GarbageCollected()); 3194 RawPtr<TestInterfaceGarbageCollected> impl = WTF::getPtr(proxyImpl->location GarbageCollected());
3195 if (!impl) 3195 if (!impl)
3196 return; 3196 return;
3197 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t oImplWithTypeCheck(info.GetIsolate(), v8Value); 3197 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t oImplWithTypeCheck(info.GetIsolate(), v8Value);
3198 impl->setAttr1(WTF::getPtr(cppValue)); 3198 impl->setAttr1(WTF::getPtr(cppValue));
3199 } 3199 }
3200 3200
3201 static void locationGarbageCollectedAttributeSetterCallback(v8::Local<v8::String >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3201 static void locationGarbageCollectedAttributeSetterCallback(v8::Local<v8::String >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3202 { 3202 {
3203 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3203 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3204 TestObjectV8Internal::locationGarbageCollectedAttributeSetter(v8Value, info) ; 3204 TestObjectV8Internal::locationGarbageCollectedAttributeSetter(v8Value, info) ;
3205 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3205 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3206 } 3206 }
3207 3207
3208 static void locationWillBeGarbageCollectedAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info) 3208 static void locationWillBeGarbageCollectedAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info)
3209 { 3209 {
3210 v8::Handle<v8::Object> holder = info.Holder(); 3210 v8::Local<v8::Object> holder = info.Holder();
3211 TestObject* impl = V8TestObject::toImpl(holder); 3211 TestObject* impl = V8TestObject::toImpl(holder);
3212 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> cppValue(impl->locat ionWillBeGarbageCollected()); 3212 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> cppValue(impl->locat ionWillBeGarbageCollected());
3213 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get())) 3213 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue .get()))
3214 return; 3214 return;
3215 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate ()); 3215 v8::Local<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate( ));
3216 if (!wrapper.IsEmpty()) { 3216 if (!wrapper.IsEmpty()) {
3217 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "locationWillBeGarbageCollected"), wrapper); 3217 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "locationWillBeGarbageCollected"), wrapper);
3218 v8SetReturnValue(info, wrapper); 3218 v8SetReturnValue(info, wrapper);
3219 } 3219 }
3220 } 3220 }
3221 3221
3222 static void locationWillBeGarbageCollectedAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3222 static void locationWillBeGarbageCollectedAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3223 { 3223 {
3224 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3224 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3225 TestObjectV8Internal::locationWillBeGarbageCollectedAttributeGetter(info); 3225 TestObjectV8Internal::locationWillBeGarbageCollectedAttributeGetter(info);
3226 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3226 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3227 } 3227 }
3228 3228
3229 static void locationWillBeGarbageCollectedAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info) 3229 static void locationWillBeGarbageCollectedAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info)
3230 { 3230 {
3231 v8::Handle<v8::Object> holder = info.Holder(); 3231 v8::Local<v8::Object> holder = info.Holder();
3232 TestObject* proxyImpl = V8TestObject::toImpl(holder); 3232 TestObject* proxyImpl = V8TestObject::toImpl(holder);
3233 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = WTF::getPtr(p roxyImpl->locationWillBeGarbageCollected()); 3233 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = WTF::getPtr(p roxyImpl->locationWillBeGarbageCollected());
3234 if (!impl) 3234 if (!impl)
3235 return; 3235 return;
3236 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value); 3236 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value);
3237 impl->setAttr1(WTF::getPtr(cppValue)); 3237 impl->setAttr1(WTF::getPtr(cppValue));
3238 } 3238 }
3239 3239
3240 static void locationWillBeGarbageCollectedAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o) 3240 static void locationWillBeGarbageCollectedAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o)
3241 { 3241 {
3242 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3242 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3243 TestObjectV8Internal::locationWillBeGarbageCollectedAttributeSetter(v8Value, info); 3243 TestObjectV8Internal::locationWillBeGarbageCollectedAttributeSetter(v8Value, info);
3244 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3244 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3245 } 3245 }
3246 3246
3247 static void raisesExceptionLongAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info) 3247 static void raisesExceptionLongAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info)
3248 { 3248 {
3249 v8::Handle<v8::Object> holder = info.Holder(); 3249 v8::Local<v8::Object> holder = info.Holder();
3250 TestObject* impl = V8TestObject::toImpl(holder); 3250 TestObject* impl = V8TestObject::toImpl(holder);
3251 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nLongAttribute", "TestObject", holder, info.GetIsolate()); 3251 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nLongAttribute", "TestObject", holder, info.GetIsolate());
3252 int cppValue(impl->raisesExceptionLongAttribute(exceptionState)); 3252 int cppValue(impl->raisesExceptionLongAttribute(exceptionState));
3253 if (UNLIKELY(exceptionState.throwIfNeeded())) 3253 if (UNLIKELY(exceptionState.throwIfNeeded()))
3254 return; 3254 return;
3255 v8SetReturnValueInt(info, cppValue); 3255 v8SetReturnValueInt(info, cppValue);
3256 } 3256 }
3257 3257
3258 static void raisesExceptionLongAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info) 3258 static void raisesExceptionLongAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info)
3259 { 3259 {
3260 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3260 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3261 TestObjectV8Internal::raisesExceptionLongAttributeAttributeGetter(info); 3261 TestObjectV8Internal::raisesExceptionLongAttributeAttributeGetter(info);
3262 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3262 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3263 } 3263 }
3264 3264
3265 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info) 3265 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info)
3266 { 3266 {
3267 v8::Handle<v8::Object> holder = info.Holder(); 3267 v8::Local<v8::Object> holder = info.Holder();
3268 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nLongAttribute", "TestObject", holder, info.GetIsolate()); 3268 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nLongAttribute", "TestObject", holder, info.GetIsolate());
3269 TestObject* impl = V8TestObject::toImpl(holder); 3269 TestObject* impl = V8TestObject::toImpl(holder);
3270 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 3270 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
3271 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState); 3271 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState);
3272 exceptionState.throwIfNeeded(); 3272 exceptionState.throwIfNeeded();
3273 } 3273 }
3274 3274
3275 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3275 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3276 { 3276 {
3277 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3277 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3278 TestObjectV8Internal::raisesExceptionLongAttributeAttributeSetter(v8Value, i nfo); 3278 TestObjectV8Internal::raisesExceptionLongAttributeAttributeSetter(v8Value, i nfo);
3279 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3279 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3280 } 3280 }
3281 3281
3282 static void raisesExceptionGetterLongAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info) 3282 static void raisesExceptionGetterLongAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info)
3283 { 3283 {
3284 v8::Handle<v8::Object> holder = info.Holder(); 3284 v8::Local<v8::Object> holder = info.Holder();
3285 TestObject* impl = V8TestObject::toImpl(holder); 3285 TestObject* impl = V8TestObject::toImpl(holder);
3286 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nGetterLongAttribute", "TestObject", holder, info.GetIsolate()); 3286 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nGetterLongAttribute", "TestObject", holder, info.GetIsolate());
3287 int cppValue(impl->raisesExceptionGetterLongAttribute(exceptionState)); 3287 int cppValue(impl->raisesExceptionGetterLongAttribute(exceptionState));
3288 if (UNLIKELY(exceptionState.throwIfNeeded())) 3288 if (UNLIKELY(exceptionState.throwIfNeeded()))
3289 return; 3289 return;
3290 v8SetReturnValueInt(info, cppValue); 3290 v8SetReturnValueInt(info, cppValue);
3291 } 3291 }
3292 3292
3293 static void raisesExceptionGetterLongAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3293 static void raisesExceptionGetterLongAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3294 { 3294 {
3295 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3295 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3296 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeGetter(info ); 3296 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeGetter(info );
3297 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3297 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3298 } 3298 }
3299 3299
3300 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info) 3300 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info)
3301 { 3301 {
3302 v8::Handle<v8::Object> holder = info.Holder(); 3302 v8::Local<v8::Object> holder = info.Holder();
3303 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nGetterLongAttribute", "TestObject", holder, info.GetIsolate()); 3303 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nGetterLongAttribute", "TestObject", holder, info.GetIsolate());
3304 TestObject* impl = V8TestObject::toImpl(holder); 3304 TestObject* impl = V8TestObject::toImpl(holder);
3305 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 3305 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
3306 impl->setRaisesExceptionGetterLongAttribute(cppValue); 3306 impl->setRaisesExceptionGetterLongAttribute(cppValue);
3307 } 3307 }
3308 3308
3309 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3309 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3310 { 3310 {
3311 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3311 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3312 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeSetter(v8Va lue, info); 3312 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeSetter(v8Va lue, info);
3313 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3313 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3314 } 3314 }
3315 3315
3316 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info) 3316 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info)
3317 { 3317 {
3318 v8::Handle<v8::Object> holder = info.Holder(); 3318 v8::Local<v8::Object> holder = info.Holder();
3319 TestObject* impl = V8TestObject::toImpl(holder); 3319 TestObject* impl = V8TestObject::toImpl(holder);
3320 v8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute()); 3320 v8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute());
3321 } 3321 }
3322 3322
3323 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3323 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3324 { 3324 {
3325 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3325 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3326 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeGetter(info ); 3326 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeGetter(info );
3327 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3327 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3328 } 3328 }
3329 3329
3330 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info) 3330 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info)
3331 { 3331 {
3332 v8::Handle<v8::Object> holder = info.Holder(); 3332 v8::Local<v8::Object> holder = info.Holder();
3333 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx ceptionLongAttribute", "TestObject", holder, info.GetIsolate()); 3333 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx ceptionLongAttribute", "TestObject", holder, info.GetIsolate());
3334 TestObject* impl = V8TestObject::toImpl(holder); 3334 TestObject* impl = V8TestObject::toImpl(holder);
3335 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 3335 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
3336 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); 3336 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState);
3337 exceptionState.throwIfNeeded(); 3337 exceptionState.throwIfNeeded();
3338 } 3338 }
3339 3339
3340 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3340 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3341 { 3341 {
3342 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3342 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3343 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeSetter(v8Va lue, info); 3343 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeSetter(v8Va lue, info);
3344 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3344 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3345 } 3345 }
3346 3346
3347 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info) 3347 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info)
3348 { 3348 {
3349 v8::Handle<v8::Object> holder = info.Holder(); 3349 v8::Local<v8::Object> holder = info.Holder();
3350 TestObject* impl = V8TestObject::toImpl(holder); 3350 TestObject* impl = V8TestObject::toImpl(holder);
3351 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nTestInterfaceEmptyAttribute", "TestObject", holder, info.GetIsolate()); 3351 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nTestInterfaceEmptyAttribute", "TestObject", holder, info.GetIsolate());
3352 RefPtr<TestInterfaceEmpty> cppValue(impl->raisesExceptionTestInterfaceEmptyA ttribute(exceptionState)); 3352 RefPtr<TestInterfaceEmpty> cppValue(impl->raisesExceptionTestInterfaceEmptyA ttribute(exceptionState));
3353 if (UNLIKELY(exceptionState.throwIfNeeded())) 3353 if (UNLIKELY(exceptionState.throwIfNeeded()))
3354 return; 3354 return;
3355 v8SetReturnValueFast(info, WTF::getPtr(cppValue.release()), impl); 3355 v8SetReturnValueFast(info, WTF::getPtr(cppValue.release()), impl);
3356 } 3356 }
3357 3357
3358 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetterCallback(v8 ::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3358 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetterCallback(v8 ::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3359 { 3359 {
3360 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3360 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3361 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeGet ter(info); 3361 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeGet ter(info);
3362 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3362 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3363 } 3363 }
3364 3364
3365 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3365 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3366 { 3366 {
3367 v8::Handle<v8::Object> holder = info.Holder(); 3367 v8::Local<v8::Object> holder = info.Holder();
3368 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nTestInterfaceEmptyAttribute", "TestObject", holder, info.GetIsolate()); 3368 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nTestInterfaceEmptyAttribute", "TestObject", holder, info.GetIsolate());
3369 TestObject* impl = V8TestObject::toImpl(holder); 3369 TestObject* impl = V8TestObject::toImpl(holder);
3370 TestInterfaceEmpty* cppValue = V8TestInterfaceEmpty::toImplWithTypeCheck(inf o.GetIsolate(), v8Value); 3370 TestInterfaceEmpty* cppValue = V8TestInterfaceEmpty::toImplWithTypeCheck(inf o.GetIsolate(), v8Value);
3371 impl->setRaisesExceptionTestInterfaceEmptyAttribute(WTF::getPtr(cppValue), e xceptionState); 3371 impl->setRaisesExceptionTestInterfaceEmptyAttribute(WTF::getPtr(cppValue), e xceptionState);
3372 exceptionState.throwIfNeeded(); 3372 exceptionState.throwIfNeeded();
3373 } 3373 }
3374 3374
3375 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback(v8 ::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info) 3375 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback(v8 ::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info)
3376 { 3376 {
3377 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3377 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3378 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeSet ter(v8Value, info); 3378 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeSet ter(v8Value, info);
3379 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3379 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3380 } 3380 }
3381 3381
3382 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetter(cons t v8::PropertyCallbackInfo<v8::Value>& info) 3382 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetter(cons t v8::PropertyCallbackInfo<v8::Value>& info)
3383 { 3383 {
3384 v8::Handle<v8::Object> holder = info.Holder(); 3384 v8::Local<v8::Object> holder = info.Holder();
3385 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac hedAttributeRaisesExceptionGetterAnyAttribute"); 3385 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edAttributeRaisesExceptionGetterAnyAttribute");
3386 TestObject* impl = V8TestObject::toImpl(holder); 3386 TestObject* impl = V8TestObject::toImpl(holder);
3387 if (!impl->isValueDirty()) { 3387 if (!impl->isValueDirty()) {
3388 v8::Handle<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIs olate(), holder, propertyName); 3388 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName);
3389 if (!v8Value.IsEmpty()) { 3389 if (!v8Value.IsEmpty()) {
3390 v8SetReturnValue(info, v8Value); 3390 v8SetReturnValue(info, v8Value);
3391 return; 3391 return;
3392 } 3392 }
3393 } 3393 }
3394 ExceptionState exceptionState(ExceptionState::GetterContext, "cachedAttribut eRaisesExceptionGetterAnyAttribute", "TestObject", holder, info.GetIsolate()); 3394 ExceptionState exceptionState(ExceptionState::GetterContext, "cachedAttribut eRaisesExceptionGetterAnyAttribute", "TestObject", holder, info.GetIsolate());
3395 ScriptValue cppValue(impl->cachedAttributeRaisesExceptionGetterAnyAttribute( exceptionState)); 3395 ScriptValue cppValue(impl->cachedAttributeRaisesExceptionGetterAnyAttribute( exceptionState));
3396 if (UNLIKELY(exceptionState.throwIfNeeded())) 3396 if (UNLIKELY(exceptionState.throwIfNeeded()))
3397 return; 3397 return;
3398 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, cppVa lue.v8Value()); 3398 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, cppVa lue.v8Value());
3399 v8SetReturnValue(info, cppValue.v8Value()); 3399 v8SetReturnValue(info, cppValue.v8Value());
3400 } 3400 }
3401 3401
3402 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetterCallb ack(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3402 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetterCallb ack(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3403 { 3403 {
3404 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3404 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3405 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib uteGetter(info); 3405 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib uteGetter(info);
3406 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3406 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3407 } 3407 }
3408 3408
3409 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetter(v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3409 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetter(v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3410 { 3410 {
3411 v8::Handle<v8::Object> holder = info.Holder(); 3411 v8::Local<v8::Object> holder = info.Holder();
3412 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedAttribut eRaisesExceptionGetterAnyAttribute", "TestObject", holder, info.GetIsolate()); 3412 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedAttribut eRaisesExceptionGetterAnyAttribute", "TestObject", holder, info.GetIsolate());
3413 TestObject* impl = V8TestObject::toImpl(holder); 3413 TestObject* impl = V8TestObject::toImpl(holder);
3414 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); 3414 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
3415 impl->setCachedAttributeRaisesExceptionGetterAnyAttribute(cppValue, exceptio nState); 3415 impl->setCachedAttributeRaisesExceptionGetterAnyAttribute(cppValue, exceptio nState);
3416 exceptionState.throwIfNeeded(); 3416 exceptionState.throwIfNeeded();
3417 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedAttributeRaisesExceptionGetterAnyAttribute")); // Inval idate the cached value. 3417 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedAttributeRaisesExceptionGetterAnyAttribute")); // Inval idate the cached value.
3418 } 3418 }
3419 3419
3420 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCallb ack(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info) 3420 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCallb ack(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info)
3421 { 3421 {
3422 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3422 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3423 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib uteSetter(v8Value, info); 3423 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib uteSetter(v8Value, info);
3424 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3424 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3425 } 3425 }
3426 3426
3427 static void reflectTestInterfaceAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 3427 static void reflectTestInterfaceAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info)
3428 { 3428 {
3429 v8::Handle<v8::Object> holder = info.Holder(); 3429 v8::Local<v8::Object> holder = info.Holder();
3430 TestObject* impl = V8TestObject::toImpl(holder); 3430 TestObject* impl = V8TestObject::toImpl(holder);
3431 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref lecttestinterfaceattributeAttr)), impl); 3431 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref lecttestinterfaceattributeAttr)), impl);
3432 } 3432 }
3433 3433
3434 static void reflectTestInterfaceAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info) 3434 static void reflectTestInterfaceAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info)
3435 { 3435 {
3436 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3436 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3437 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeGetter(info); 3437 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeGetter(info);
3438 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3438 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3439 } 3439 }
3440 3440
3441 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info) 3441 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info)
3442 { 3442 {
3443 v8::Handle<v8::Object> holder = info.Holder(); 3443 v8::Local<v8::Object> holder = info.Holder();
3444 TestObject* impl = V8TestObject::toImpl(holder); 3444 TestObject* impl = V8TestObject::toImpl(holder);
3445 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 3445 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
3446 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3446 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3447 impl->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr (cppValue)); 3447 impl->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr (cppValue));
3448 } 3448 }
3449 3449
3450 static void reflectTestInterfaceAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info ) 3450 static void reflectTestInterfaceAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info )
3451 { 3451 {
3452 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3452 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3453 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3453 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3454 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeSetter(v8Value, info); 3454 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeSetter(v8Value, info);
3455 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3455 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3456 } 3456 }
3457 3457
3458 static void reflectReflectedNameAttributeTestAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info) 3458 static void reflectReflectedNameAttributeTestAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info)
3459 { 3459 {
3460 v8::Handle<v8::Object> holder = info.Holder(); 3460 v8::Local<v8::Object> holder = info.Holder();
3461 TestObject* impl = V8TestObject::toImpl(holder); 3461 TestObject* impl = V8TestObject::toImpl(holder);
3462 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref lectedNameAttributeAttr)), impl); 3462 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref lectedNameAttributeAttr)), impl);
3463 } 3463 }
3464 3464
3465 static void reflectReflectedNameAttributeTestAttributeAttributeGetterCallback(v8 ::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3465 static void reflectReflectedNameAttributeTestAttributeAttributeGetterCallback(v8 ::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3466 { 3466 {
3467 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3467 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3468 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeGet ter(info); 3468 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeGet ter(info);
3469 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3469 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3470 } 3470 }
3471 3471
3472 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3472 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3473 { 3473 {
3474 v8::Handle<v8::Object> holder = info.Holder(); 3474 v8::Local<v8::Object> holder = info.Holder();
3475 TestObject* impl = V8TestObject::toImpl(holder); 3475 TestObject* impl = V8TestObject::toImpl(holder);
3476 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 3476 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
3477 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3477 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3478 impl->setAttribute(HTMLNames::reflectedNameAttributeAttr, WTF::getPtr(cppVal ue)); 3478 impl->setAttribute(HTMLNames::reflectedNameAttributeAttr, WTF::getPtr(cppVal ue));
3479 } 3479 }
3480 3480
3481 static void reflectReflectedNameAttributeTestAttributeAttributeSetterCallback(v8 ::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info) 3481 static void reflectReflectedNameAttributeTestAttributeAttributeSetterCallback(v8 ::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info)
3482 { 3482 {
3483 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3483 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3484 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3484 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3485 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeSet ter(v8Value, info); 3485 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeSet ter(v8Value, info);
3486 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3486 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3487 } 3487 }
3488 3488
3489 static void reflectBooleanAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 3489 static void reflectBooleanAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
3490 { 3490 {
3491 v8::Handle<v8::Object> holder = info.Holder(); 3491 v8::Local<v8::Object> holder = info.Holder();
3492 TestObject* impl = V8TestObject::toImpl(holder); 3492 TestObject* impl = V8TestObject::toImpl(holder);
3493 v8SetReturnValueBool(info, impl->fastHasAttribute(HTMLNames::reflectbooleana ttributeAttr)); 3493 v8SetReturnValueBool(info, impl->fastHasAttribute(HTMLNames::reflectbooleana ttributeAttr));
3494 } 3494 }
3495 3495
3496 static void reflectBooleanAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 3496 static void reflectBooleanAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info)
3497 { 3497 {
3498 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3498 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3499 TestObjectV8Internal::reflectBooleanAttributeAttributeGetter(info); 3499 TestObjectV8Internal::reflectBooleanAttributeAttributeGetter(info);
3500 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3500 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3501 } 3501 }
3502 3502
3503 static void reflectBooleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3503 static void reflectBooleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3504 { 3504 {
3505 v8::Handle<v8::Object> holder = info.Holder(); 3505 v8::Local<v8::Object> holder = info.Holder();
3506 TestObject* impl = V8TestObject::toImpl(holder); 3506 TestObject* impl = V8TestObject::toImpl(holder);
3507 bool cppValue = v8Value->BooleanValue(); 3507 bool cppValue = v8Value->BooleanValue();
3508 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3508 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3509 impl->setBooleanAttribute(HTMLNames::reflectbooleanattributeAttr, cppValue); 3509 impl->setBooleanAttribute(HTMLNames::reflectbooleanattributeAttr, cppValue);
3510 } 3510 }
3511 3511
3512 static void reflectBooleanAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3512 static void reflectBooleanAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3513 { 3513 {
3514 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3514 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3515 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3515 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3516 TestObjectV8Internal::reflectBooleanAttributeAttributeSetter(v8Value, info); 3516 TestObjectV8Internal::reflectBooleanAttributeAttributeSetter(v8Value, info);
3517 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3517 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3518 } 3518 }
3519 3519
3520 static void reflectLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 3520 static void reflectLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
3521 { 3521 {
3522 v8::Handle<v8::Object> holder = info.Holder(); 3522 v8::Local<v8::Object> holder = info.Holder();
3523 TestObject* impl = V8TestObject::toImpl(holder); 3523 TestObject* impl = V8TestObject::toImpl(holder);
3524 v8SetReturnValueInt(info, impl->getIntegralAttribute(HTMLNames::reflectlonga ttributeAttr)); 3524 v8SetReturnValueInt(info, impl->getIntegralAttribute(HTMLNames::reflectlonga ttributeAttr));
3525 } 3525 }
3526 3526
3527 static void reflectLongAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 3527 static void reflectLongAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
3528 { 3528 {
3529 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3529 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3530 TestObjectV8Internal::reflectLongAttributeAttributeGetter(info); 3530 TestObjectV8Internal::reflectLongAttributeAttributeGetter(info);
3531 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3531 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3532 } 3532 }
3533 3533
3534 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 3534 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
3535 { 3535 {
3536 v8::Handle<v8::Object> holder = info.Holder(); 3536 v8::Local<v8::Object> holder = info.Holder();
3537 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt ribute", "TestObject", holder, info.GetIsolate()); 3537 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt ribute", "TestObject", holder, info.GetIsolate());
3538 TestObject* impl = V8TestObject::toImpl(holder); 3538 TestObject* impl = V8TestObject::toImpl(holder);
3539 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 3539 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
3540 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3540 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3541 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue); 3541 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue);
3542 } 3542 }
3543 3543
3544 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3544 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3545 { 3545 {
3546 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3546 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3547 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3547 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3548 TestObjectV8Internal::reflectLongAttributeAttributeSetter(v8Value, info); 3548 TestObjectV8Internal::reflectLongAttributeAttributeSetter(v8Value, info);
3549 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3549 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3550 } 3550 }
3551 3551
3552 static void reflectUnsignedShortAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 3552 static void reflectUnsignedShortAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info)
3553 { 3553 {
3554 v8::Handle<v8::Object> holder = info.Holder(); 3554 v8::Local<v8::Object> holder = info.Holder();
3555 TestObject* impl = V8TestObject::toImpl(holder); 3555 TestObject* impl = V8TestObject::toImpl(holder);
3556 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->fastGetAtt ribute(HTMLNames::reflectunsignedshortattributeAttr)))); 3556 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->fastGetAtt ribute(HTMLNames::reflectunsignedshortattributeAttr))));
3557 } 3557 }
3558 3558
3559 static void reflectUnsignedShortAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info) 3559 static void reflectUnsignedShortAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info)
3560 { 3560 {
3561 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3561 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3562 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info); 3562 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info);
3563 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3563 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3564 } 3564 }
3565 3565
3566 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info) 3566 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info)
3567 { 3567 {
3568 v8::Handle<v8::Object> holder = info.Holder(); 3568 v8::Local<v8::Object> holder = info.Holder();
3569 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dShortAttribute", "TestObject", holder, info.GetIsolate()); 3569 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dShortAttribute", "TestObject", holder, info.GetIsolate());
3570 TestObject* impl = V8TestObject::toImpl(holder); 3570 TestObject* impl = V8TestObject::toImpl(holder);
3571 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt16(v8Value, exception State), exceptionState); 3571 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt16(v8Value, exception State), exceptionState);
3572 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3572 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3573 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue); 3573 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue);
3574 } 3574 }
3575 3575
3576 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info ) 3576 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info )
3577 { 3577 {
3578 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3578 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3579 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3579 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3580 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8Value, info); 3580 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8Value, info);
3581 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3581 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3582 } 3582 }
3583 3583
3584 static void reflectUnsignedLongAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info) 3584 static void reflectUnsignedLongAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info)
3585 { 3585 {
3586 v8::Handle<v8::Object> holder = info.Holder(); 3586 v8::Local<v8::Object> holder = info.Holder();
3587 TestObject* impl = V8TestObject::toImpl(holder); 3587 TestObject* impl = V8TestObject::toImpl(holder);
3588 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->getIntegra lAttribute(HTMLNames::reflectunsignedlongattributeAttr)))); 3588 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->getIntegra lAttribute(HTMLNames::reflectunsignedlongattributeAttr))));
3589 } 3589 }
3590 3590
3591 static void reflectUnsignedLongAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info) 3591 static void reflectUnsignedLongAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info)
3592 { 3592 {
3593 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3593 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3594 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info); 3594 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info);
3595 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3595 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3596 } 3596 }
3597 3597
3598 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info) 3598 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info)
3599 { 3599 {
3600 v8::Handle<v8::Object> holder = info.Holder(); 3600 v8::Local<v8::Object> holder = info.Holder();
3601 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dLongAttribute", "TestObject", holder, info.GetIsolate()); 3601 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dLongAttribute", "TestObject", holder, info.GetIsolate());
3602 TestObject* impl = V8TestObject::toImpl(holder); 3602 TestObject* impl = V8TestObject::toImpl(holder);
3603 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt32(v8Value, exception State), exceptionState); 3603 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt32(v8Value, exception State), exceptionState);
3604 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3604 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3605 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt tr, cppValue); 3605 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt tr, cppValue);
3606 } 3606 }
3607 3607
3608 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3608 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3609 { 3609 {
3610 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3610 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3611 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3611 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3612 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeSetter(v8Value, i nfo); 3612 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeSetter(v8Value, i nfo);
3613 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3613 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3614 } 3614 }
3615 3615
3616 static void idAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 3616 static void idAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
3617 { 3617 {
3618 v8::Handle<v8::Object> holder = info.Holder(); 3618 v8::Local<v8::Object> holder = info.Holder();
3619 TestObject* impl = V8TestObject::toImpl(holder); 3619 TestObject* impl = V8TestObject::toImpl(holder);
3620 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate()); 3620 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate());
3621 } 3621 }
3622 3622
3623 static void idAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyC allbackInfo<v8::Value>& info) 3623 static void idAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyC allbackInfo<v8::Value>& info)
3624 { 3624 {
3625 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3625 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3626 TestObjectV8Internal::idAttributeGetter(info); 3626 TestObjectV8Internal::idAttributeGetter(info);
3627 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3627 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3628 } 3628 }
3629 3629
3630 static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCa llbackInfo<void>& info) 3630 static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCa llbackInfo<void>& info)
3631 { 3631 {
3632 v8::Handle<v8::Object> holder = info.Holder(); 3632 v8::Local<v8::Object> holder = info.Holder();
3633 TestObject* impl = V8TestObject::toImpl(holder); 3633 TestObject* impl = V8TestObject::toImpl(holder);
3634 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3634 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3635 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3635 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3636 impl->setAttribute(HTMLNames::idAttr, cppValue); 3636 impl->setAttribute(HTMLNames::idAttr, cppValue);
3637 } 3637 }
3638 3638
3639 static void idAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value > v8Value, const v8::PropertyCallbackInfo<void>& info) 3639 static void idAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value > v8Value, const v8::PropertyCallbackInfo<void>& info)
3640 { 3640 {
3641 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3641 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3642 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3642 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3643 TestObjectV8Internal::idAttributeSetter(v8Value, info); 3643 TestObjectV8Internal::idAttributeSetter(v8Value, info);
3644 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3644 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3645 } 3645 }
3646 3646
3647 static void nameAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 3647 static void nameAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
3648 { 3648 {
3649 v8::Handle<v8::Object> holder = info.Holder(); 3649 v8::Local<v8::Object> holder = info.Holder();
3650 TestObject* impl = V8TestObject::toImpl(holder); 3650 TestObject* impl = V8TestObject::toImpl(holder);
3651 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate()); 3651 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate());
3652 } 3652 }
3653 3653
3654 static void nameAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert yCallbackInfo<v8::Value>& info) 3654 static void nameAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert yCallbackInfo<v8::Value>& info)
3655 { 3655 {
3656 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3656 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3657 TestObjectV8Internal::nameAttributeGetter(info); 3657 TestObjectV8Internal::nameAttributeGetter(info);
3658 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3658 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3659 } 3659 }
3660 3660
3661 static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property CallbackInfo<void>& info) 3661 static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property CallbackInfo<void>& info)
3662 { 3662 {
3663 v8::Handle<v8::Object> holder = info.Holder(); 3663 v8::Local<v8::Object> holder = info.Holder();
3664 TestObject* impl = V8TestObject::toImpl(holder); 3664 TestObject* impl = V8TestObject::toImpl(holder);
3665 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3665 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3666 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3666 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3667 impl->setAttribute(HTMLNames::nameAttr, cppValue); 3667 impl->setAttribute(HTMLNames::nameAttr, cppValue);
3668 } 3668 }
3669 3669
3670 static void nameAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val ue> v8Value, const v8::PropertyCallbackInfo<void>& info) 3670 static void nameAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val ue> v8Value, const v8::PropertyCallbackInfo<void>& info)
3671 { 3671 {
3672 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3672 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3673 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3673 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3674 TestObjectV8Internal::nameAttributeSetter(v8Value, info); 3674 TestObjectV8Internal::nameAttributeSetter(v8Value, info);
3675 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3675 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3676 } 3676 }
3677 3677
3678 static void classAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info ) 3678 static void classAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info )
3679 { 3679 {
3680 v8::Handle<v8::Object> holder = info.Holder(); 3680 v8::Local<v8::Object> holder = info.Holder();
3681 TestObject* impl = V8TestObject::toImpl(holder); 3681 TestObject* impl = V8TestObject::toImpl(holder);
3682 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate()); 3682 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate());
3683 } 3683 }
3684 3684
3685 static void classAttributeGetterCallback(v8::Local<v8::String>, const v8::Proper tyCallbackInfo<v8::Value>& info) 3685 static void classAttributeGetterCallback(v8::Local<v8::String>, const v8::Proper tyCallbackInfo<v8::Value>& info)
3686 { 3686 {
3687 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3687 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3688 TestObjectV8Internal::classAttributeGetter(info); 3688 TestObjectV8Internal::classAttributeGetter(info);
3689 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3689 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3690 } 3690 }
3691 3691
3692 static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Propert yCallbackInfo<void>& info) 3692 static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Propert yCallbackInfo<void>& info)
3693 { 3693 {
3694 v8::Handle<v8::Object> holder = info.Holder(); 3694 v8::Local<v8::Object> holder = info.Holder();
3695 TestObject* impl = V8TestObject::toImpl(holder); 3695 TestObject* impl = V8TestObject::toImpl(holder);
3696 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3696 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3697 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3697 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3698 impl->setAttribute(HTMLNames::classAttr, cppValue); 3698 impl->setAttribute(HTMLNames::classAttr, cppValue);
3699 } 3699 }
3700 3700
3701 static void classAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info) 3701 static void classAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info)
3702 { 3702 {
3703 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3703 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3704 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3704 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3705 TestObjectV8Internal::classAttributeSetter(v8Value, info); 3705 TestObjectV8Internal::classAttributeSetter(v8Value, info);
3706 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3706 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3707 } 3707 }
3708 3708
3709 static void reflectedIdAttributeGetter(const v8::PropertyCallbackInfo<v8::Value> & info) 3709 static void reflectedIdAttributeGetter(const v8::PropertyCallbackInfo<v8::Value> & info)
3710 { 3710 {
3711 v8::Handle<v8::Object> holder = info.Holder(); 3711 v8::Local<v8::Object> holder = info.Holder();
3712 TestObject* impl = V8TestObject::toImpl(holder); 3712 TestObject* impl = V8TestObject::toImpl(holder);
3713 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate()); 3713 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate());
3714 } 3714 }
3715 3715
3716 static void reflectedIdAttributeGetterCallback(v8::Local<v8::String>, const v8:: PropertyCallbackInfo<v8::Value>& info) 3716 static void reflectedIdAttributeGetterCallback(v8::Local<v8::String>, const v8:: PropertyCallbackInfo<v8::Value>& info)
3717 { 3717 {
3718 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3718 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3719 TestObjectV8Internal::reflectedIdAttributeGetter(info); 3719 TestObjectV8Internal::reflectedIdAttributeGetter(info);
3720 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3720 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3721 } 3721 }
3722 3722
3723 static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::P ropertyCallbackInfo<void>& info) 3723 static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::P ropertyCallbackInfo<void>& info)
3724 { 3724 {
3725 v8::Handle<v8::Object> holder = info.Holder(); 3725 v8::Local<v8::Object> holder = info.Holder();
3726 TestObject* impl = V8TestObject::toImpl(holder); 3726 TestObject* impl = V8TestObject::toImpl(holder);
3727 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3727 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3728 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3728 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3729 impl->setAttribute(HTMLNames::idAttr, cppValue); 3729 impl->setAttribute(HTMLNames::idAttr, cppValue);
3730 } 3730 }
3731 3731
3732 static void reflectedIdAttributeSetterCallback(v8::Local<v8::String>, v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3732 static void reflectedIdAttributeSetterCallback(v8::Local<v8::String>, v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3733 { 3733 {
3734 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3734 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3735 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3735 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3736 TestObjectV8Internal::reflectedIdAttributeSetter(v8Value, info); 3736 TestObjectV8Internal::reflectedIdAttributeSetter(v8Value, info);
3737 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3737 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3738 } 3738 }
3739 3739
3740 static void reflectedNameAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 3740 static void reflectedNameAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info)
3741 { 3741 {
3742 v8::Handle<v8::Object> holder = info.Holder(); 3742 v8::Local<v8::Object> holder = info.Holder();
3743 TestObject* impl = V8TestObject::toImpl(holder); 3743 TestObject* impl = V8TestObject::toImpl(holder);
3744 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate()); 3744 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate());
3745 } 3745 }
3746 3746
3747 static void reflectedNameAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 3747 static void reflectedNameAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info)
3748 { 3748 {
3749 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3749 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3750 TestObjectV8Internal::reflectedNameAttributeGetter(info); 3750 TestObjectV8Internal::reflectedNameAttributeGetter(info);
3751 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3751 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3752 } 3752 }
3753 3753
3754 static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 3754 static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
3755 { 3755 {
3756 v8::Handle<v8::Object> holder = info.Holder(); 3756 v8::Local<v8::Object> holder = info.Holder();
3757 TestObject* impl = V8TestObject::toImpl(holder); 3757 TestObject* impl = V8TestObject::toImpl(holder);
3758 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3758 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3759 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3759 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3760 impl->setAttribute(HTMLNames::nameAttr, cppValue); 3760 impl->setAttribute(HTMLNames::nameAttr, cppValue);
3761 } 3761 }
3762 3762
3763 static void reflectedNameAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3763 static void reflectedNameAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3764 { 3764 {
3765 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3765 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3766 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3766 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3767 TestObjectV8Internal::reflectedNameAttributeSetter(v8Value, info); 3767 TestObjectV8Internal::reflectedNameAttributeSetter(v8Value, info);
3768 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3768 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3769 } 3769 }
3770 3770
3771 static void reflectedClassAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 3771 static void reflectedClassAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
3772 { 3772 {
3773 v8::Handle<v8::Object> holder = info.Holder(); 3773 v8::Local<v8::Object> holder = info.Holder();
3774 TestObject* impl = V8TestObject::toImpl(holder); 3774 TestObject* impl = V8TestObject::toImpl(holder);
3775 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate()); 3775 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate());
3776 } 3776 }
3777 3777
3778 static void reflectedClassAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 3778 static void reflectedClassAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info)
3779 { 3779 {
3780 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3780 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3781 TestObjectV8Internal::reflectedClassAttributeGetter(info); 3781 TestObjectV8Internal::reflectedClassAttributeGetter(info);
3782 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3782 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3783 } 3783 }
3784 3784
3785 static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 3785 static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info)
3786 { 3786 {
3787 v8::Handle<v8::Object> holder = info.Holder(); 3787 v8::Local<v8::Object> holder = info.Holder();
3788 TestObject* impl = V8TestObject::toImpl(holder); 3788 TestObject* impl = V8TestObject::toImpl(holder);
3789 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3789 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3790 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3790 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3791 impl->setAttribute(HTMLNames::classAttr, cppValue); 3791 impl->setAttribute(HTMLNames::classAttr, cppValue);
3792 } 3792 }
3793 3793
3794 static void reflectedClassAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3794 static void reflectedClassAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3795 { 3795 {
3796 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3796 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3797 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3797 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3798 TestObjectV8Internal::reflectedClassAttributeSetter(v8Value, info); 3798 TestObjectV8Internal::reflectedClassAttributeSetter(v8Value, info);
3799 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3799 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3800 } 3800 }
3801 3801
3802 static void limitedToOnlyOneAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 3802 static void limitedToOnlyOneAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
3803 { 3803 {
3804 v8::Handle<v8::Object> holder = info.Holder(); 3804 v8::Local<v8::Object> holder = info.Holder();
3805 TestObject* impl = V8TestObject::toImpl(holder); 3805 TestObject* impl = V8TestObject::toImpl(holder);
3806 String cppValue(impl->fastGetAttribute(HTMLNames::limitedtoonlyoneattributeA ttr)); 3806 String cppValue(impl->fastGetAttribute(HTMLNames::limitedtoonlyoneattributeA ttr));
3807 if (cppValue.isEmpty()) { 3807 if (cppValue.isEmpty()) {
3808 ; 3808 ;
3809 } else if (equalIgnoringCase(cppValue, "unique")) { 3809 } else if (equalIgnoringCase(cppValue, "unique")) {
3810 cppValue = "unique"; 3810 cppValue = "unique";
3811 } else { 3811 } else {
3812 cppValue = ""; 3812 cppValue = "";
3813 } 3813 }
3814 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 3814 v8SetReturnValueString(info, cppValue, info.GetIsolate());
3815 } 3815 }
3816 3816
3817 static void limitedToOnlyOneAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 3817 static void limitedToOnlyOneAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
3818 { 3818 {
3819 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3819 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3820 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeGetter(info); 3820 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeGetter(info);
3821 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3821 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3822 } 3822 }
3823 3823
3824 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 3824 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
3825 { 3825 {
3826 v8::Handle<v8::Object> holder = info.Holder(); 3826 v8::Local<v8::Object> holder = info.Holder();
3827 TestObject* impl = V8TestObject::toImpl(holder); 3827 TestObject* impl = V8TestObject::toImpl(holder);
3828 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3828 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3829 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3829 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3830 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); 3830 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue);
3831 } 3831 }
3832 3832
3833 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3833 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3834 { 3834 {
3835 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3835 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3836 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3836 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3837 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeSetter(v8Value, info ); 3837 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeSetter(v8Value, info );
3838 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3838 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3839 } 3839 }
3840 3840
3841 static void limitedToOnlyAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 3841 static void limitedToOnlyAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
3842 { 3842 {
3843 v8::Handle<v8::Object> holder = info.Holder(); 3843 v8::Local<v8::Object> holder = info.Holder();
3844 TestObject* impl = V8TestObject::toImpl(holder); 3844 TestObject* impl = V8TestObject::toImpl(holder);
3845 String cppValue(impl->fastGetAttribute(HTMLNames::limitedtoonlyattributeAttr )); 3845 String cppValue(impl->fastGetAttribute(HTMLNames::limitedtoonlyattributeAttr ));
3846 if (cppValue.isEmpty()) { 3846 if (cppValue.isEmpty()) {
3847 ; 3847 ;
3848 } else if (equalIgnoringCase(cppValue, "Per")) { 3848 } else if (equalIgnoringCase(cppValue, "Per")) {
3849 cppValue = "Per"; 3849 cppValue = "Per";
3850 } else if (equalIgnoringCase(cppValue, "Paal")) { 3850 } else if (equalIgnoringCase(cppValue, "Paal")) {
3851 cppValue = "Paal"; 3851 cppValue = "Paal";
3852 } else if (equalIgnoringCase(cppValue, "Espen")) { 3852 } else if (equalIgnoringCase(cppValue, "Espen")) {
3853 cppValue = "Espen"; 3853 cppValue = "Espen";
3854 } else { 3854 } else {
3855 cppValue = ""; 3855 cppValue = "";
3856 } 3856 }
3857 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 3857 v8SetReturnValueString(info, cppValue, info.GetIsolate());
3858 } 3858 }
3859 3859
3860 static void limitedToOnlyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3860 static void limitedToOnlyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3861 { 3861 {
3862 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3862 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3863 TestObjectV8Internal::limitedToOnlyAttributeAttributeGetter(info); 3863 TestObjectV8Internal::limitedToOnlyAttributeAttributeGetter(info);
3864 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3864 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3865 } 3865 }
3866 3866
3867 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3867 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3868 { 3868 {
3869 v8::Handle<v8::Object> holder = info.Holder(); 3869 v8::Local<v8::Object> holder = info.Holder();
3870 TestObject* impl = V8TestObject::toImpl(holder); 3870 TestObject* impl = V8TestObject::toImpl(holder);
3871 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3871 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3872 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3872 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3873 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); 3873 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue);
3874 } 3874 }
3875 3875
3876 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3876 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3877 { 3877 {
3878 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3878 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3879 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3879 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3880 TestObjectV8Internal::limitedToOnlyAttributeAttributeSetter(v8Value, info); 3880 TestObjectV8Internal::limitedToOnlyAttributeAttributeSetter(v8Value, info);
3881 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3881 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3882 } 3882 }
3883 3883
3884 static void limitedToOnlyOtherAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 3884 static void limitedToOnlyOtherAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
3885 { 3885 {
3886 v8::Handle<v8::Object> holder = info.Holder(); 3886 v8::Local<v8::Object> holder = info.Holder();
3887 TestObject* impl = V8TestObject::toImpl(holder); 3887 TestObject* impl = V8TestObject::toImpl(holder);
3888 String cppValue(impl->fastGetAttribute(HTMLNames::otherAttr)); 3888 String cppValue(impl->fastGetAttribute(HTMLNames::otherAttr));
3889 if (cppValue.isEmpty()) { 3889 if (cppValue.isEmpty()) {
3890 ; 3890 ;
3891 } else if (equalIgnoringCase(cppValue, "Value1")) { 3891 } else if (equalIgnoringCase(cppValue, "Value1")) {
3892 cppValue = "Value1"; 3892 cppValue = "Value1";
3893 } else if (equalIgnoringCase(cppValue, "Value2")) { 3893 } else if (equalIgnoringCase(cppValue, "Value2")) {
3894 cppValue = "Value2"; 3894 cppValue = "Value2";
3895 } else { 3895 } else {
3896 cppValue = ""; 3896 cppValue = "";
3897 } 3897 }
3898 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 3898 v8SetReturnValueString(info, cppValue, info.GetIsolate());
3899 } 3899 }
3900 3900
3901 static void limitedToOnlyOtherAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 3901 static void limitedToOnlyOtherAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info)
3902 { 3902 {
3903 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3903 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3904 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info); 3904 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info);
3905 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3905 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3906 } 3906 }
3907 3907
3908 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 3908 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
3909 { 3909 {
3910 v8::Handle<v8::Object> holder = info.Holder(); 3910 v8::Local<v8::Object> holder = info.Holder();
3911 TestObject* impl = V8TestObject::toImpl(holder); 3911 TestObject* impl = V8TestObject::toImpl(holder);
3912 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3912 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3913 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3913 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3914 impl->setAttribute(HTMLNames::otherAttr, cppValue); 3914 impl->setAttribute(HTMLNames::otherAttr, cppValue);
3915 } 3915 }
3916 3916
3917 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3917 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3918 { 3918 {
3919 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3919 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3920 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3920 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3921 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeSetter(v8Value, in fo); 3921 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeSetter(v8Value, in fo);
3922 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3922 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3923 } 3923 }
3924 3924
3925 static void limitedWithMissingDefaultAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info) 3925 static void limitedWithMissingDefaultAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info)
3926 { 3926 {
3927 v8::Handle<v8::Object> holder = info.Holder(); 3927 v8::Local<v8::Object> holder = info.Holder();
3928 TestObject* impl = V8TestObject::toImpl(holder); 3928 TestObject* impl = V8TestObject::toImpl(holder);
3929 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithmissingdefaulta ttributeAttr)); 3929 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithmissingdefaulta ttributeAttr));
3930 if (cppValue.isEmpty()) { 3930 if (cppValue.isEmpty()) {
3931 cppValue = "rsa"; 3931 cppValue = "rsa";
3932 } else if (equalIgnoringCase(cppValue, "rsa")) { 3932 } else if (equalIgnoringCase(cppValue, "rsa")) {
3933 cppValue = "rsa"; 3933 cppValue = "rsa";
3934 } else if (equalIgnoringCase(cppValue, "dsa")) { 3934 } else if (equalIgnoringCase(cppValue, "dsa")) {
3935 cppValue = "dsa"; 3935 cppValue = "dsa";
3936 } else { 3936 } else {
3937 cppValue = ""; 3937 cppValue = "";
3938 } 3938 }
3939 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 3939 v8SetReturnValueString(info, cppValue, info.GetIsolate());
3940 } 3940 }
3941 3941
3942 static void limitedWithMissingDefaultAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3942 static void limitedWithMissingDefaultAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3943 { 3943 {
3944 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3944 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3945 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info ); 3945 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info );
3946 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3946 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3947 } 3947 }
3948 3948
3949 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info) 3949 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info)
3950 { 3950 {
3951 v8::Handle<v8::Object> holder = info.Holder(); 3951 v8::Local<v8::Object> holder = info.Holder();
3952 TestObject* impl = V8TestObject::toImpl(holder); 3952 TestObject* impl = V8TestObject::toImpl(holder);
3953 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3953 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3954 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3954 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3955 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal ue); 3955 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal ue);
3956 } 3956 }
3957 3957
3958 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3958 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3959 { 3959 {
3960 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3960 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3961 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3961 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3962 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(v8Va lue, info); 3962 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(v8Va lue, info);
3963 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3963 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3964 } 3964 }
3965 3965
3966 static void limitedWithInvalidMissingDefaultAttributeAttributeGetter(const v8::P ropertyCallbackInfo<v8::Value>& info) 3966 static void limitedWithInvalidMissingDefaultAttributeAttributeGetter(const v8::P ropertyCallbackInfo<v8::Value>& info)
3967 { 3967 {
3968 v8::Handle<v8::Object> holder = info.Holder(); 3968 v8::Local<v8::Object> holder = info.Holder();
3969 TestObject* impl = V8TestObject::toImpl(holder); 3969 TestObject* impl = V8TestObject::toImpl(holder);
3970 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithinvalidmissingd efaultattributeAttr)); 3970 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithinvalidmissingd efaultattributeAttr));
3971 if (cppValue.isEmpty()) { 3971 if (cppValue.isEmpty()) {
3972 cppValue = "auto"; 3972 cppValue = "auto";
3973 } else if (equalIgnoringCase(cppValue, "ltr")) { 3973 } else if (equalIgnoringCase(cppValue, "ltr")) {
3974 cppValue = "ltr"; 3974 cppValue = "ltr";
3975 } else if (equalIgnoringCase(cppValue, "rtl")) { 3975 } else if (equalIgnoringCase(cppValue, "rtl")) {
3976 cppValue = "rtl"; 3976 cppValue = "rtl";
3977 } else if (equalIgnoringCase(cppValue, "auto")) { 3977 } else if (equalIgnoringCase(cppValue, "auto")) {
3978 cppValue = "auto"; 3978 cppValue = "auto";
3979 } else { 3979 } else {
3980 cppValue = "ltr"; 3980 cppValue = "ltr";
3981 } 3981 }
3982 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 3982 v8SetReturnValueString(info, cppValue, info.GetIsolate());
3983 } 3983 }
3984 3984
3985 static void limitedWithInvalidMissingDefaultAttributeAttributeGetterCallback(v8: :Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3985 static void limitedWithInvalidMissingDefaultAttributeAttributeGetterCallback(v8: :Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3986 { 3986 {
3987 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3987 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3988 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGett er(info); 3988 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGett er(info);
3989 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3989 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3990 } 3990 }
3991 3991
3992 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3992 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3993 { 3993 {
3994 v8::Handle<v8::Object> holder = info.Holder(); 3994 v8::Local<v8::Object> holder = info.Holder();
3995 TestObject* impl = V8TestObject::toImpl(holder); 3995 TestObject* impl = V8TestObject::toImpl(holder);
3996 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3996 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3997 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 3997 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3998 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr, cppValue); 3998 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr, cppValue);
3999 } 3999 }
4000 4000
4001 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8: :Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo <void>& info) 4001 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8: :Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo <void>& info)
4002 { 4002 {
4003 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4003 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4004 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4004 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4005 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSett er(v8Value, info); 4005 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSett er(v8Value, info);
4006 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4006 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4007 } 4007 }
4008 4008
4009 static void corsSettingAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 4009 static void corsSettingAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
4010 { 4010 {
4011 v8::Handle<v8::Object> holder = info.Holder(); 4011 v8::Local<v8::Object> holder = info.Holder();
4012 TestObject* impl = V8TestObject::toImpl(holder); 4012 TestObject* impl = V8TestObject::toImpl(holder);
4013 String cppValue(impl->fastGetAttribute(HTMLNames::corssettingattributeAttr)) ; 4013 String cppValue(impl->fastGetAttribute(HTMLNames::corssettingattributeAttr)) ;
4014 if (cppValue.isNull()) { 4014 if (cppValue.isNull()) {
4015 ; 4015 ;
4016 } else if (cppValue.isEmpty()) { 4016 } else if (cppValue.isEmpty()) {
4017 cppValue = "anonymous"; 4017 cppValue = "anonymous";
4018 } else if (equalIgnoringCase(cppValue, "anonymous")) { 4018 } else if (equalIgnoringCase(cppValue, "anonymous")) {
4019 cppValue = "anonymous"; 4019 cppValue = "anonymous";
4020 } else if (equalIgnoringCase(cppValue, "use-credentials")) { 4020 } else if (equalIgnoringCase(cppValue, "use-credentials")) {
4021 cppValue = "use-credentials"; 4021 cppValue = "use-credentials";
4022 } else { 4022 } else {
4023 cppValue = "anonymous"; 4023 cppValue = "anonymous";
4024 } 4024 }
4025 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 4025 v8SetReturnValueString(info, cppValue, info.GetIsolate());
4026 } 4026 }
4027 4027
4028 static void corsSettingAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 4028 static void corsSettingAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
4029 { 4029 {
4030 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4030 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4031 TestObjectV8Internal::corsSettingAttributeAttributeGetter(info); 4031 TestObjectV8Internal::corsSettingAttributeAttributeGetter(info);
4032 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4032 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4033 } 4033 }
4034 4034
4035 static void limitedWithEmptyMissingInvalidAttributeAttributeGetter(const v8::Pro pertyCallbackInfo<v8::Value>& info) 4035 static void limitedWithEmptyMissingInvalidAttributeAttributeGetter(const v8::Pro pertyCallbackInfo<v8::Value>& info)
4036 { 4036 {
4037 v8::Handle<v8::Object> holder = info.Holder(); 4037 v8::Local<v8::Object> holder = info.Holder();
4038 TestObject* impl = V8TestObject::toImpl(holder); 4038 TestObject* impl = V8TestObject::toImpl(holder);
4039 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithemptymissinginv alidattributeAttr)); 4039 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithemptymissinginv alidattributeAttr));
4040 if (cppValue.isNull()) { 4040 if (cppValue.isNull()) {
4041 cppValue = "missing"; 4041 cppValue = "missing";
4042 } else if (cppValue.isEmpty()) { 4042 } else if (cppValue.isEmpty()) {
4043 cppValue = "empty"; 4043 cppValue = "empty";
4044 } else if (equalIgnoringCase(cppValue, "empty")) { 4044 } else if (equalIgnoringCase(cppValue, "empty")) {
4045 cppValue = "empty"; 4045 cppValue = "empty";
4046 } else if (equalIgnoringCase(cppValue, "missing")) { 4046 } else if (equalIgnoringCase(cppValue, "missing")) {
4047 cppValue = "missing"; 4047 cppValue = "missing";
4048 } else if (equalIgnoringCase(cppValue, "invalid")) { 4048 } else if (equalIgnoringCase(cppValue, "invalid")) {
4049 cppValue = "invalid"; 4049 cppValue = "invalid";
4050 } else if (equalIgnoringCase(cppValue, "a-normal")) { 4050 } else if (equalIgnoringCase(cppValue, "a-normal")) {
4051 cppValue = "a-normal"; 4051 cppValue = "a-normal";
4052 } else { 4052 } else {
4053 cppValue = "invalid"; 4053 cppValue = "invalid";
4054 } 4054 }
4055 v8SetReturnValueString(info, cppValue, info.GetIsolate()); 4055 v8SetReturnValueString(info, cppValue, info.GetIsolate());
4056 } 4056 }
4057 4057
4058 static void limitedWithEmptyMissingInvalidAttributeAttributeGetterCallback(v8::L ocal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4058 static void limitedWithEmptyMissingInvalidAttributeAttributeGetterCallback(v8::L ocal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4059 { 4059 {
4060 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4060 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4061 TestObjectV8Internal::limitedWithEmptyMissingInvalidAttributeAttributeGetter (info); 4061 TestObjectV8Internal::limitedWithEmptyMissingInvalidAttributeAttributeGetter (info);
4062 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4062 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4063 } 4063 }
4064 4064
4065 static void replaceableReadonlyLongAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info) 4065 static void replaceableReadonlyLongAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info)
4066 { 4066 {
4067 v8::Handle<v8::Object> holder = info.Holder(); 4067 v8::Local<v8::Object> holder = info.Holder();
4068 TestObject* impl = V8TestObject::toImpl(holder); 4068 TestObject* impl = V8TestObject::toImpl(holder);
4069 v8SetReturnValueInt(info, impl->replaceableReadonlyLongAttribute()); 4069 v8SetReturnValueInt(info, impl->replaceableReadonlyLongAttribute());
4070 } 4070 }
4071 4071
4072 static void replaceableReadonlyLongAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4072 static void replaceableReadonlyLongAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4073 { 4073 {
4074 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4074 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4075 TestObjectV8Internal::replaceableReadonlyLongAttributeAttributeGetter(info); 4075 TestObjectV8Internal::replaceableReadonlyLongAttributeAttributeGetter(info);
4076 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4076 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4077 } 4077 }
4078 4078
4079 static void locationReplaceableAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 4079 static void locationReplaceableAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
4080 { 4080 {
4081 v8::Handle<v8::Object> holder = info.Holder(); 4081 v8::Local<v8::Object> holder = info.Holder();
4082 TestObject* impl = V8TestObject::toImpl(holder); 4082 TestObject* impl = V8TestObject::toImpl(holder);
4083 v8SetReturnValueFast(info, WTF::getPtr(impl->locationReplaceable()), impl); 4083 v8SetReturnValueFast(info, WTF::getPtr(impl->locationReplaceable()), impl);
4084 } 4084 }
4085 4085
4086 static void locationReplaceableAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 4086 static void locationReplaceableAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
4087 { 4087 {
4088 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4088 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4089 TestObjectV8Internal::locationReplaceableAttributeGetter(info); 4089 TestObjectV8Internal::locationReplaceableAttributeGetter(info);
4090 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4090 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4091 } 4091 }
4092 4092
4093 static void locationReplaceableAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 4093 static void locationReplaceableAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
4094 { 4094 {
4095 v8::Handle<v8::Object> holder = info.Holder(); 4095 v8::Local<v8::Object> holder = info.Holder();
4096 TestObject* proxyImpl = V8TestObject::toImpl(holder); 4096 TestObject* proxyImpl = V8TestObject::toImpl(holder);
4097 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationReplaceab le()); 4097 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationReplaceab le());
4098 if (!impl) 4098 if (!impl)
4099 return; 4099 return;
4100 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 4100 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
4101 impl->setHref(cppValue); 4101 impl->setHref(cppValue);
4102 } 4102 }
4103 4103
4104 static void locationReplaceableAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4104 static void locationReplaceableAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4105 { 4105 {
4106 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4106 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4107 TestObjectV8Internal::locationReplaceableAttributeSetter(v8Value, info); 4107 TestObjectV8Internal::locationReplaceableAttributeSetter(v8Value, info);
4108 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4108 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4109 } 4109 }
4110 4110
4111 static void runtimeEnabledLongAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 4111 static void runtimeEnabledLongAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
4112 { 4112 {
4113 v8::Handle<v8::Object> holder = info.Holder(); 4113 v8::Local<v8::Object> holder = info.Holder();
4114 TestObject* impl = V8TestObject::toImpl(holder); 4114 TestObject* impl = V8TestObject::toImpl(holder);
4115 v8SetReturnValueInt(info, impl->runtimeEnabledLongAttribute()); 4115 v8SetReturnValueInt(info, impl->runtimeEnabledLongAttribute());
4116 } 4116 }
4117 4117
4118 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 4118 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info)
4119 { 4119 {
4120 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4120 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4121 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeGetter(info); 4121 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeGetter(info);
4122 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4122 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4123 } 4123 }
4124 4124
4125 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 4125 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
4126 { 4126 {
4127 v8::Handle<v8::Object> holder = info.Holder(); 4127 v8::Local<v8::Object> holder = info.Holder();
4128 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled LongAttribute", "TestObject", holder, info.GetIsolate()); 4128 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled LongAttribute", "TestObject", holder, info.GetIsolate());
4129 TestObject* impl = V8TestObject::toImpl(holder); 4129 TestObject* impl = V8TestObject::toImpl(holder);
4130 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 4130 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
4131 impl->setRuntimeEnabledLongAttribute(cppValue); 4131 impl->setRuntimeEnabledLongAttribute(cppValue);
4132 } 4132 }
4133 4133
4134 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4134 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4135 { 4135 {
4136 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4136 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4137 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeSetter(v8Value, in fo); 4137 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeSetter(v8Value, in fo);
4138 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4138 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4139 } 4139 }
4140 4140
4141 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info) 4141 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info)
4142 { 4142 {
4143 v8::Handle<v8::Object> holder = info.Holder(); 4143 v8::Local<v8::Object> holder = info.Holder();
4144 TestObject* impl = V8TestObject::toImpl(holder); 4144 TestObject* impl = V8TestObject::toImpl(holder);
4145 v8SetReturnValueInt(info, impl->perContextEnabledRuntimeEnabledLongAttribute ()); 4145 v8SetReturnValueInt(info, impl->perContextEnabledRuntimeEnabledLongAttribute ());
4146 } 4146 }
4147 4147
4148 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4148 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4149 { 4149 {
4150 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4150 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4151 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeG etter(info); 4151 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeG etter(info);
4152 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4152 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4153 } 4153 }
4154 4154
4155 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4155 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4156 { 4156 {
4157 v8::Handle<v8::Object> holder = info.Holder(); 4157 v8::Local<v8::Object> holder = info.Holder();
4158 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab ledRuntimeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); 4158 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab ledRuntimeEnabledLongAttribute", "TestObject", holder, info.GetIsolate());
4159 TestObject* impl = V8TestObject::toImpl(holder); 4159 TestObject* impl = V8TestObject::toImpl(holder);
4160 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 4160 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
4161 impl->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue); 4161 impl->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue);
4162 } 4162 }
4163 4163
4164 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info) 4164 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info)
4165 { 4165 {
4166 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4166 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4167 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeS etter(v8Value, info); 4167 TestObjectV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeS etter(v8Value, info);
4168 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4168 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4169 } 4169 }
4170 4170
4171 #if ENABLE(CONDITION) 4171 #if ENABLE(CONDITION)
4172 static void conditionalRuntimeEnabledLongAttributeAttributeGetter(const v8::Prop ertyCallbackInfo<v8::Value>& info) 4172 static void conditionalRuntimeEnabledLongAttributeAttributeGetter(const v8::Prop ertyCallbackInfo<v8::Value>& info)
4173 { 4173 {
4174 v8::Handle<v8::Object> holder = info.Holder(); 4174 v8::Local<v8::Object> holder = info.Holder();
4175 TestObject* impl = V8TestObject::toImpl(holder); 4175 TestObject* impl = V8TestObject::toImpl(holder);
4176 v8SetReturnValueInt(info, impl->conditionalRuntimeEnabledLongAttribute()); 4176 v8SetReturnValueInt(info, impl->conditionalRuntimeEnabledLongAttribute());
4177 } 4177 }
4178 #endif // ENABLE(CONDITION) 4178 #endif // ENABLE(CONDITION)
4179 4179
4180 #if ENABLE(CONDITION) 4180 #if ENABLE(CONDITION)
4181 static void conditionalRuntimeEnabledLongAttributeAttributeGetterCallback(v8::Lo cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4181 static void conditionalRuntimeEnabledLongAttributeAttributeGetterCallback(v8::Lo cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4182 { 4182 {
4183 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4183 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4184 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeGetter( info); 4184 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeGetter( info);
4185 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4185 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4186 } 4186 }
4187 #endif // ENABLE(CONDITION) 4187 #endif // ENABLE(CONDITION)
4188 4188
4189 #if ENABLE(CONDITION) 4189 #if ENABLE(CONDITION)
4190 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4190 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4191 { 4191 {
4192 v8::Handle<v8::Object> holder = info.Holder(); 4192 v8::Local<v8::Object> holder = info.Holder();
4193 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun timeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); 4193 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun timeEnabledLongAttribute", "TestObject", holder, info.GetIsolate());
4194 TestObject* impl = V8TestObject::toImpl(holder); 4194 TestObject* impl = V8TestObject::toImpl(holder);
4195 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 4195 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
4196 impl->setConditionalRuntimeEnabledLongAttribute(cppValue); 4196 impl->setConditionalRuntimeEnabledLongAttribute(cppValue);
4197 } 4197 }
4198 #endif // ENABLE(CONDITION) 4198 #endif // ENABLE(CONDITION)
4199 4199
4200 #if ENABLE(CONDITION) 4200 #if ENABLE(CONDITION)
4201 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info) 4201 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info)
4202 { 4202 {
4203 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4203 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4204 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeSetter( v8Value, info); 4204 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeSetter( v8Value, info);
4205 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4205 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4206 } 4206 }
4207 #endif // ENABLE(CONDITION) 4207 #endif // ENABLE(CONDITION)
4208 4208
4209 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett er(const v8::PropertyCallbackInfo<v8::Value>& info) 4209 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett er(const v8::PropertyCallbackInfo<v8::Value>& info)
4210 { 4210 {
4211 v8::Handle<v8::Object> holder = info.Holder(); 4211 v8::Local<v8::Object> holder = info.Holder();
4212 TestObject* impl = V8TestObject::toImpl(holder); 4212 TestObject* impl = V8TestObject::toImpl(holder);
4213 v8SetReturnValueString(info, impl->setterCallWithActiveWindowAndFirstWindowS tringAttribute(), info.GetIsolate()); 4213 v8SetReturnValueString(info, impl->setterCallWithActiveWindowAndFirstWindowS tringAttribute(), info.GetIsolate());
4214 } 4214 }
4215 4215
4216 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett erCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& inf o) 4216 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett erCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& inf o)
4217 { 4217 {
4218 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4218 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4219 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut eAttributeGetter(info); 4219 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut eAttributeGetter(info);
4220 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4220 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4221 } 4221 }
4222 4222
4223 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4223 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4224 { 4224 {
4225 v8::Handle<v8::Object> holder = info.Holder(); 4225 v8::Local<v8::Object> holder = info.Holder();
4226 TestObject* impl = V8TestObject::toImpl(holder); 4226 TestObject* impl = V8TestObject::toImpl(holder);
4227 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 4227 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
4228 impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMW indow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); 4228 impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMW indow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue);
4229 } 4229 }
4230 4230
4231 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper tyCallbackInfo<void>& info) 4231 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper tyCallbackInfo<void>& info)
4232 { 4232 {
4233 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4233 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4234 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut eAttributeSetter(v8Value, info); 4234 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut eAttributeSetter(v8Value, info);
4235 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4235 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4236 } 4236 }
4237 4237
4238 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info) 4238 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info)
4239 { 4239 {
4240 v8::Handle<v8::Object> holder = info.Holder(); 4240 v8::Local<v8::Object> holder = info.Holder();
4241 TestObject* impl = V8TestObject::toImpl(holder); 4241 TestObject* impl = V8TestObject::toImpl(holder);
4242 v8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttri bute(), info.GetIsolate()); 4242 v8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttri bute(), info.GetIsolate());
4243 } 4243 }
4244 4244
4245 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback (v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4245 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback (v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4246 { 4246 {
4247 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4247 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4248 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute Getter(info); 4248 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute Getter(info);
4249 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4249 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4250 } 4250 }
4251 4251
4252 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4252 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4253 { 4253 {
4254 v8::Handle<v8::Object> holder = info.Holder(); 4254 v8::Local<v8::Object> holder = info.Holder();
4255 TestObject* impl = V8TestObject::toImpl(holder); 4255 TestObject* impl = V8TestObject::toImpl(holder);
4256 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 4256 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
4257 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 4257 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
4258 impl->setSetterCallWithExecutionContextStringAttribute(executionContext, cpp Value); 4258 impl->setSetterCallWithExecutionContextStringAttribute(executionContext, cpp Value);
4259 } 4259 }
4260 4260
4261 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback (v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback Info<void>& info) 4261 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback (v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback Info<void>& info)
4262 { 4262 {
4263 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4263 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4264 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute Setter(v8Value, info); 4264 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute Setter(v8Value, info);
4265 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4265 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4266 } 4266 }
4267 4267
4268 static void treatNullAsEmptyStringStringAttributeAttributeGetter(const v8::Prope rtyCallbackInfo<v8::Value>& info) 4268 static void treatNullAsEmptyStringStringAttributeAttributeGetter(const v8::Prope rtyCallbackInfo<v8::Value>& info)
4269 { 4269 {
4270 v8::Handle<v8::Object> holder = info.Holder(); 4270 v8::Local<v8::Object> holder = info.Holder();
4271 TestObject* impl = V8TestObject::toImpl(holder); 4271 TestObject* impl = V8TestObject::toImpl(holder);
4272 v8SetReturnValueString(info, impl->treatNullAsEmptyStringStringAttribute(), info.GetIsolate()); 4272 v8SetReturnValueString(info, impl->treatNullAsEmptyStringStringAttribute(), info.GetIsolate());
4273 } 4273 }
4274 4274
4275 static void treatNullAsEmptyStringStringAttributeAttributeGetterCallback(v8::Loc al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4275 static void treatNullAsEmptyStringStringAttributeAttributeGetterCallback(v8::Loc al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4276 { 4276 {
4277 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4277 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4278 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeGetter(i nfo); 4278 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeGetter(i nfo);
4279 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4279 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4280 } 4280 }
4281 4281
4282 static void treatNullAsEmptyStringStringAttributeAttributeSetter(v8::Local<v8::V alue> v8Value, const v8::PropertyCallbackInfo<void>& info) 4282 static void treatNullAsEmptyStringStringAttributeAttributeSetter(v8::Local<v8::V alue> v8Value, const v8::PropertyCallbackInfo<void>& info)
4283 { 4283 {
4284 v8::Handle<v8::Object> holder = info.Holder(); 4284 v8::Local<v8::Object> holder = info.Holder();
4285 TestObject* impl = V8TestObject::toImpl(holder); 4285 TestObject* impl = V8TestObject::toImpl(holder);
4286 TOSTRING_VOID(V8StringResource<TreatNullAsEmptyString>, cppValue, v8Value); 4286 TOSTRING_VOID(V8StringResource<TreatNullAsEmptyString>, cppValue, v8Value);
4287 impl->setTreatNullAsEmptyStringStringAttribute(cppValue); 4287 impl->setTreatNullAsEmptyStringStringAttribute(cppValue);
4288 } 4288 }
4289 4289
4290 static void treatNullAsEmptyStringStringAttributeAttributeSetterCallback(v8::Loc al<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<voi d>& info) 4290 static void treatNullAsEmptyStringStringAttributeAttributeSetterCallback(v8::Loc al<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<voi d>& info)
4291 { 4291 {
4292 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4292 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4293 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeSetter(v 8Value, info); 4293 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeSetter(v 8Value, info);
4294 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4294 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4295 } 4295 }
4296 4296
4297 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Proper tyCallbackInfo<v8::Value>& info) 4297 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Proper tyCallbackInfo<v8::Value>& info)
4298 { 4298 {
4299 v8::Handle<v8::Object> holder = info.Holder(); 4299 v8::Local<v8::Object> holder = info.Holder();
4300 TestObject* impl = V8TestObject::toImpl(holder); 4300 TestObject* impl = V8TestObject::toImpl(holder);
4301 v8SetReturnValueString(info, impl->treatNullAsNullStringStringAttribute(), i nfo.GetIsolate()); 4301 v8SetReturnValueString(info, impl->treatNullAsNullStringStringAttribute(), i nfo.GetIsolate());
4302 } 4302 }
4303 4303
4304 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(v8::Loca l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4304 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(v8::Loca l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4305 { 4305 {
4306 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4306 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4307 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeGetter(in fo); 4307 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeGetter(in fo);
4308 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4308 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4309 } 4309 }
4310 4310
4311 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info) 4311 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info)
4312 { 4312 {
4313 v8::Handle<v8::Object> holder = info.Holder(); 4313 v8::Local<v8::Object> holder = info.Holder();
4314 TestObject* impl = V8TestObject::toImpl(holder); 4314 TestObject* impl = V8TestObject::toImpl(holder);
4315 TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value); 4315 TOSTRING_VOID(V8StringResource<TreatNullAsNullString>, cppValue, v8Value);
4316 impl->setTreatNullAsNullStringStringAttribute(cppValue); 4316 impl->setTreatNullAsNullStringStringAttribute(cppValue);
4317 } 4317 }
4318 4318
4319 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(v8::Loca l<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 4319 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(v8::Loca l<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
4320 { 4320 {
4321 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4321 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4322 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeSetter(v8 Value, info); 4322 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeSetter(v8 Value, info);
4323 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4323 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4324 } 4324 }
4325 4325
4326 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info) 4326 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info)
4327 { 4327 {
4328 v8::Handle<v8::Object> holder = info.Holder(); 4328 v8::Local<v8::Object> holder = info.Holder();
4329 TestObject* impl = V8TestObject::toImpl(holder); 4329 TestObject* impl = V8TestObject::toImpl(holder);
4330 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString Attribute(), info.GetIsolate()); 4330 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString Attribute(), info.GetIsolate());
4331 } 4331 }
4332 4332
4333 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4333 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4334 { 4334 {
4335 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4335 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4336 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeG etter(info); 4336 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeG etter(info);
4337 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4337 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4338 } 4338 }
4339 4339
4340 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4340 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4341 { 4341 {
4342 v8::Handle<v8::Object> holder = info.Holder(); 4342 v8::Local<v8::Object> holder = info.Holder();
4343 TestObject* impl = V8TestObject::toImpl(holder); 4343 TestObject* impl = V8TestObject::toImpl(holder);
4344 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 4344 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
4345 impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue); 4345 impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue);
4346 } 4346 }
4347 4347
4348 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info) 4348 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info)
4349 { 4349 {
4350 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4350 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4351 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeS etter(v8Value, info); 4351 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeS etter(v8Value, info);
4352 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4352 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4353 } 4353 }
4354 4354
4355 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info) 4355 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info)
4356 { 4356 {
4357 v8::Handle<v8::Object> holder = info.Holder(); 4357 v8::Local<v8::Object> holder = info.Holder();
4358 TestObject* impl = V8TestObject::toImpl(holder); 4358 TestObject* impl = V8TestObject::toImpl(holder);
4359 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedStringAttribute(), info.GetIsolate()); 4359 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedStringAttribute(), info.GetIsolate());
4360 } 4360 }
4361 4361
4362 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4362 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4363 { 4363 {
4364 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4364 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4365 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri buteGetter(info); 4365 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri buteGetter(info);
4366 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4366 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4367 } 4367 }
4368 4368
4369 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4369 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4370 { 4370 {
4371 v8::Handle<v8::Object> holder = info.Holder(); 4371 v8::Local<v8::Object> holder = info.Holder();
4372 TestObject* impl = V8TestObject::toImpl(holder); 4372 TestObject* impl = V8TestObject::toImpl(holder);
4373 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 4373 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
4374 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); 4374 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue);
4375 } 4375 }
4376 4376
4377 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall backInfo<void>& info) 4377 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall backInfo<void>& info)
4378 { 4378 {
4379 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4379 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4380 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri buteSetter(v8Value, info); 4380 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri buteSetter(v8Value, info);
4381 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4381 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4382 } 4382 }
4383 4383
4384 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeGett er(const v8::PropertyCallbackInfo<v8::Value>& info) 4384 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeGett er(const v8::PropertyCallbackInfo<v8::Value>& info)
4385 { 4385 {
4386 v8::Handle<v8::Object> holder = info.Holder(); 4386 v8::Local<v8::Object> holder = info.Holder();
4387 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac hedTreatReturnedNullStringAsUndefinedStringAttribute"); 4387 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edTreatReturnedNullStringAsUndefinedStringAttribute");
4388 TestObject* impl = V8TestObject::toImpl(holder); 4388 TestObject* impl = V8TestObject::toImpl(holder);
4389 if (!impl->isStringDirty()) { 4389 if (!impl->isStringDirty()) {
4390 v8::Handle<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIs olate(), holder, propertyName); 4390 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName);
4391 if (!v8Value.IsEmpty()) { 4391 if (!v8Value.IsEmpty()) {
4392 v8SetReturnValue(info, v8Value); 4392 v8SetReturnValue(info, v8Value);
4393 return; 4393 return;
4394 } 4394 }
4395 } 4395 }
4396 String cppValue(impl->cachedTreatReturnedNullStringAsUndefinedStringAttribut e()); 4396 String cppValue(impl->cachedTreatReturnedNullStringAsUndefinedStringAttribut e());
4397 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, cppVa lue.isNull() ? v8Undefined() : v8String(info.GetIsolate(), cppValue)); 4397 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, cppVa lue.isNull() ? v8Undefined() : v8String(info.GetIsolate(), cppValue));
4398 v8SetReturnValueStringOrUndefined(info, cppValue, info.GetIsolate()); 4398 v8SetReturnValueStringOrUndefined(info, cppValue, info.GetIsolate());
4399 } 4399 }
4400 4400
4401 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeGett erCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& inf o) 4401 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeGett erCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& inf o)
4402 { 4402 {
4403 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4403 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4404 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut eAttributeGetter(info); 4404 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut eAttributeGetter(info);
4405 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4405 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4406 } 4406 }
4407 4407
4408 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4408 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4409 { 4409 {
4410 v8::Handle<v8::Object> holder = info.Holder(); 4410 v8::Local<v8::Object> holder = info.Holder();
4411 TestObject* impl = V8TestObject::toImpl(holder); 4411 TestObject* impl = V8TestObject::toImpl(holder);
4412 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 4412 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
4413 impl->setCachedTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); 4413 impl->setCachedTreatReturnedNullStringAsUndefinedStringAttribute(cppValue);
4414 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedTreatReturnedNullStringAsUndefinedStringAttribute")); / / Invalidate the cached value. 4414 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedTreatReturnedNullStringAsUndefinedStringAttribute")); / / Invalidate the cached value.
4415 } 4415 }
4416 4416
4417 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper tyCallbackInfo<void>& info) 4417 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper tyCallbackInfo<void>& info)
4418 { 4418 {
4419 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4419 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4420 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut eAttributeSetter(v8Value, info); 4420 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut eAttributeSetter(v8Value, info);
4421 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4421 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4422 } 4422 }
4423 4423
4424 static void treatReturnedNullStringAsNullByteStringAttributeAttributeGetter(cons t v8::PropertyCallbackInfo<v8::Value>& info) 4424 static void treatReturnedNullStringAsNullByteStringAttributeAttributeGetter(cons t v8::PropertyCallbackInfo<v8::Value>& info)
4425 { 4425 {
4426 v8::Handle<v8::Object> holder = info.Holder(); 4426 v8::Local<v8::Object> holder = info.Holder();
4427 TestObject* impl = V8TestObject::toImpl(holder); 4427 TestObject* impl = V8TestObject::toImpl(holder);
4428 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullByteSt ringAttribute(), info.GetIsolate()); 4428 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullByteSt ringAttribute(), info.GetIsolate());
4429 } 4429 }
4430 4430
4431 static void treatReturnedNullStringAsNullByteStringAttributeAttributeGetterCallb ack(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4431 static void treatReturnedNullStringAsNullByteStringAttributeAttributeGetterCallb ack(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4432 { 4432 {
4433 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4433 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4434 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib uteGetter(info); 4434 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib uteGetter(info);
4435 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4435 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4436 } 4436 }
4437 4437
4438 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetter(v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4438 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetter(v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4439 { 4439 {
4440 v8::Handle<v8::Object> holder = info.Holder(); 4440 v8::Local<v8::Object> holder = info.Holder();
4441 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsNullByteStringAttribute", "TestObject", holder, info.GetIsolate()); 4441 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsNullByteStringAttribute", "TestObject", holder, info.GetIsolate());
4442 TestObject* impl = V8TestObject::toImpl(holder); 4442 TestObject* impl = V8TestObject::toImpl(holder);
4443 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va lue, exceptionState), exceptionState); 4443 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va lue, exceptionState), exceptionState);
4444 impl->setTreatReturnedNullStringAsNullByteStringAttribute(cppValue); 4444 impl->setTreatReturnedNullStringAsNullByteStringAttribute(cppValue);
4445 } 4445 }
4446 4446
4447 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCallb ack(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info) 4447 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCallb ack(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info)
4448 { 4448 {
4449 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4449 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4450 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib uteSetter(v8Value, info); 4450 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib uteSetter(v8Value, info);
4451 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4451 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4452 } 4452 }
4453 4453
4454 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter (const v8::PropertyCallbackInfo<v8::Value>& info) 4454 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter (const v8::PropertyCallbackInfo<v8::Value>& info)
4455 { 4455 {
4456 v8::Handle<v8::Object> holder = info.Holder(); 4456 v8::Local<v8::Object> holder = info.Holder();
4457 TestObject* impl = V8TestObject::toImpl(holder); 4457 TestObject* impl = V8TestObject::toImpl(holder);
4458 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedByteStringAttribute(), info.GetIsolate()); 4458 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedByteStringAttribute(), info.GetIsolate());
4459 } 4459 }
4460 4460
4461 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter Callback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4461 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter Callback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4462 { 4462 {
4463 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4463 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4464 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA ttributeGetter(info); 4464 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA ttributeGetter(info);
4465 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4465 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4466 } 4466 }
4467 4467
4468 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter (v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4468 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter (v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4469 { 4469 {
4470 v8::Handle<v8::Object> holder = info.Holder(); 4470 v8::Local<v8::Object> holder = info.Holder();
4471 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsUndefinedByteStringAttribute", "TestObject", holder, info.GetIsolate( )); 4471 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsUndefinedByteStringAttribute", "TestObject", holder, info.GetIsolate( ));
4472 TestObject* impl = V8TestObject::toImpl(holder); 4472 TestObject* impl = V8TestObject::toImpl(holder);
4473 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va lue, exceptionState), exceptionState); 4473 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toByteString(v8Va lue, exceptionState), exceptionState);
4474 impl->setTreatReturnedNullStringAsUndefinedByteStringAttribute(cppValue); 4474 impl->setTreatReturnedNullStringAsUndefinedByteStringAttribute(cppValue);
4475 } 4475 }
4476 4476
4477 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter Callback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Property CallbackInfo<void>& info) 4477 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter Callback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Property CallbackInfo<void>& info)
4478 { 4478 {
4479 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4479 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4480 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA ttributeSetter(v8Value, info); 4480 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA ttributeSetter(v8Value, info);
4481 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4481 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4482 } 4482 }
4483 4483
4484 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 4484 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
4485 { 4485 {
4486 v8::Handle<v8::Object> holder = info.Holder(); 4486 v8::Local<v8::Object> holder = info.Holder();
4487 TestObject* impl = V8TestObject::toImpl(holder); 4487 TestObject* impl = V8TestObject::toImpl(holder);
4488 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullUSVStr ingAttribute(), info.GetIsolate()); 4488 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullUSVStr ingAttribute(), info.GetIsolate());
4489 } 4489 }
4490 4490
4491 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetterCallba ck(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4491 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetterCallba ck(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4492 { 4492 {
4493 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4493 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4494 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu teGetter(info); 4494 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu teGetter(info);
4495 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4495 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4496 } 4496 }
4497 4497
4498 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetter(v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4498 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetter(v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4499 { 4499 {
4500 v8::Handle<v8::Object> holder = info.Holder(); 4500 v8::Local<v8::Object> holder = info.Holder();
4501 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsNullUSVStringAttribute", "TestObject", holder, info.GetIsolate()); 4501 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsNullUSVStringAttribute", "TestObject", holder, info.GetIsolate());
4502 TestObject* impl = V8TestObject::toImpl(holder); 4502 TestObject* impl = V8TestObject::toImpl(holder);
4503 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toUSVString(v8Val ue, exceptionState), exceptionState); 4503 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toUSVString(v8Val ue, exceptionState), exceptionState);
4504 impl->setTreatReturnedNullStringAsNullUSVStringAttribute(cppValue); 4504 impl->setTreatReturnedNullStringAsNullUSVStringAttribute(cppValue);
4505 } 4505 }
4506 4506
4507 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetterCallba ck(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallba ckInfo<void>& info) 4507 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetterCallba ck(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallba ckInfo<void>& info)
4508 { 4508 {
4509 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4509 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4510 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu teSetter(v8Value, info); 4510 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu teSetter(v8Value, info);
4511 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4511 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4512 } 4512 }
4513 4513
4514 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetter( const v8::PropertyCallbackInfo<v8::Value>& info) 4514 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetter( const v8::PropertyCallbackInfo<v8::Value>& info)
4515 { 4515 {
4516 v8::Handle<v8::Object> holder = info.Holder(); 4516 v8::Local<v8::Object> holder = info.Holder();
4517 TestObject* impl = V8TestObject::toImpl(holder); 4517 TestObject* impl = V8TestObject::toImpl(holder);
4518 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedUSVStringAttribute(), info.GetIsolate()); 4518 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedUSVStringAttribute(), info.GetIsolate());
4519 } 4519 }
4520 4520
4521 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetterC allback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4521 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetterC allback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4522 { 4522 {
4523 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4523 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4524 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt tributeGetter(info); 4524 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt tributeGetter(info);
4525 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4525 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4526 } 4526 }
4527 4527
4528 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetter( v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4528 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetter( v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4529 { 4529 {
4530 v8::Handle<v8::Object> holder = info.Holder(); 4530 v8::Local<v8::Object> holder = info.Holder();
4531 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsUndefinedUSVStringAttribute", "TestObject", holder, info.GetIsolate() ); 4531 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsUndefinedUSVStringAttribute", "TestObject", holder, info.GetIsolate() );
4532 TestObject* impl = V8TestObject::toImpl(holder); 4532 TestObject* impl = V8TestObject::toImpl(holder);
4533 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toUSVString(v8Val ue, exceptionState), exceptionState); 4533 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toUSVString(v8Val ue, exceptionState), exceptionState);
4534 impl->setTreatReturnedNullStringAsUndefinedUSVStringAttribute(cppValue); 4534 impl->setTreatReturnedNullStringAsUndefinedUSVStringAttribute(cppValue);
4535 } 4535 }
4536 4536
4537 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetterC allback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyC allbackInfo<void>& info) 4537 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetterC allback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyC allbackInfo<void>& info)
4538 { 4538 {
4539 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4539 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4540 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt tributeSetter(v8Value, info); 4540 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt tributeSetter(v8Value, info);
4541 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4541 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4542 } 4542 }
4543 4543
4544 static void typeCheckingInterfaceFloatAttributeAttributeGetter(const v8::Propert yCallbackInfo<v8::Value>& info) 4544 static void typeCheckingInterfaceFloatAttributeAttributeGetter(const v8::Propert yCallbackInfo<v8::Value>& info)
4545 { 4545 {
4546 v8::Handle<v8::Object> holder = info.Holder(); 4546 v8::Local<v8::Object> holder = info.Holder();
4547 TestObject* impl = V8TestObject::toImpl(holder); 4547 TestObject* impl = V8TestObject::toImpl(holder);
4548 v8SetReturnValue(info, impl->typeCheckingInterfaceFloatAttribute()); 4548 v8SetReturnValue(info, impl->typeCheckingInterfaceFloatAttribute());
4549 } 4549 }
4550 4550
4551 static void typeCheckingInterfaceFloatAttributeAttributeGetterCallback(v8::Local <v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4551 static void typeCheckingInterfaceFloatAttributeAttributeGetterCallback(v8::Local <v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4552 { 4552 {
4553 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4553 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4554 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeGetter(inf o); 4554 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeGetter(inf o);
4555 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4555 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4556 } 4556 }
4557 4557
4558 static void typeCheckingInterfaceFloatAttributeAttributeSetter(v8::Local<v8::Val ue> v8Value, const v8::PropertyCallbackInfo<void>& info) 4558 static void typeCheckingInterfaceFloatAttributeAttributeSetter(v8::Local<v8::Val ue> v8Value, const v8::PropertyCallbackInfo<void>& info)
4559 { 4559 {
4560 v8::Handle<v8::Object> holder = info.Holder(); 4560 v8::Local<v8::Object> holder = info.Holder();
4561 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceFloatAttribute", "TestObject", holder, info.GetIsolate()); 4561 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceFloatAttribute", "TestObject", holder, info.GetIsolate());
4562 TestObject* impl = V8TestObject::toImpl(holder); 4562 TestObject* impl = V8TestObject::toImpl(holder);
4563 TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toFloat(v8Value, exceptionStat e), exceptionState); 4563 TONATIVE_VOID_EXCEPTIONSTATE(float, cppValue, toFloat(v8Value, exceptionStat e), exceptionState);
4564 impl->setTypeCheckingInterfaceFloatAttribute(cppValue); 4564 impl->setTypeCheckingInterfaceFloatAttribute(cppValue);
4565 } 4565 }
4566 4566
4567 static void typeCheckingInterfaceFloatAttributeAttributeSetterCallback(v8::Local <v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void> & info) 4567 static void typeCheckingInterfaceFloatAttributeAttributeSetterCallback(v8::Local <v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void> & info)
4568 { 4568 {
4569 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4569 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4570 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeSetter(v8V alue, info); 4570 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeSetter(v8V alue, info);
4571 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4571 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4572 } 4572 }
4573 4573
4574 static void typeCheckingInterfaceTestInterfaceAttributeAttributeGetter(const v8: :PropertyCallbackInfo<v8::Value>& info) 4574 static void typeCheckingInterfaceTestInterfaceAttributeAttributeGetter(const v8: :PropertyCallbackInfo<v8::Value>& info)
4575 { 4575 {
4576 v8::Handle<v8::Object> holder = info.Holder(); 4576 v8::Local<v8::Object> holder = info.Holder();
4577 TestObject* impl = V8TestObject::toImpl(holder); 4577 TestObject* impl = V8TestObject::toImpl(holder);
4578 v8SetReturnValueFast(info, WTF::getPtr(impl->typeCheckingInterfaceTestInterf aceAttribute()), impl); 4578 v8SetReturnValueFast(info, WTF::getPtr(impl->typeCheckingInterfaceTestInterf aceAttribute()), impl);
4579 } 4579 }
4580 4580
4581 static void typeCheckingInterfaceTestInterfaceAttributeAttributeGetterCallback(v 8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4581 static void typeCheckingInterfaceTestInterfaceAttributeAttributeGetterCallback(v 8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4582 { 4582 {
4583 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4583 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4584 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceAttributeAttributeGe tter(info); 4584 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceAttributeAttributeGe tter(info);
4585 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4585 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4586 } 4586 }
4587 4587
4588 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetter(v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4588 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetter(v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4589 { 4589 {
4590 v8::Handle<v8::Object> holder = info.Holder(); 4590 v8::Local<v8::Object> holder = info.Holder();
4591 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceTestInterfaceAttribute", "TestObject", holder, info.GetIsolate()); 4591 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceTestInterfaceAttribute", "TestObject", holder, info.GetIsolate());
4592 TestObject* impl = V8TestObject::toImpl(holder); 4592 TestObject* impl = V8TestObject::toImpl(holder);
4593 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 4593 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
4594 if (!cppValue) { 4594 if (!cppValue) {
4595 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'."); 4595 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'.");
4596 exceptionState.throwIfNeeded(); 4596 exceptionState.throwIfNeeded();
4597 return; 4597 return;
4598 } 4598 }
4599 impl->setTypeCheckingInterfaceTestInterfaceAttribute(WTF::getPtr(cppValue)); 4599 impl->setTypeCheckingInterfaceTestInterfaceAttribute(WTF::getPtr(cppValue));
4600 } 4600 }
4601 4601
4602 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback(v 8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackIn fo<void>& info) 4602 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback(v 8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackIn fo<void>& info)
4603 { 4603 {
4604 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4604 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4605 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceAttributeAttributeSe tter(v8Value, info); 4605 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceAttributeAttributeSe tter(v8Value, info);
4606 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4606 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4607 } 4607 }
4608 4608
4609 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info) 4609 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info)
4610 { 4610 {
4611 v8::Handle<v8::Object> holder = info.Holder(); 4611 v8::Local<v8::Object> holder = info.Holder();
4612 TestObject* impl = V8TestObject::toImpl(holder); 4612 TestObject* impl = V8TestObject::toImpl(holder);
4613 v8SetReturnValueFast(info, WTF::getPtr(impl->typeCheckingInterfaceTestInterf aceOrNullAttribute()), impl); 4613 v8SetReturnValueFast(info, WTF::getPtr(impl->typeCheckingInterfaceTestInterf aceOrNullAttribute()), impl);
4614 } 4614 }
4615 4615
4616 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetterCall back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4616 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetterCall back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4617 { 4617 {
4618 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4618 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4619 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttri buteGetter(info); 4619 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttri buteGetter(info);
4620 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4620 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4621 } 4621 }
4622 4622
4623 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetter(v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4623 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetter(v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4624 { 4624 {
4625 v8::Handle<v8::Object> holder = info.Holder(); 4625 v8::Local<v8::Object> holder = info.Holder();
4626 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceTestInterfaceOrNullAttribute", "TestObject", holder, info.GetIsolate()); 4626 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceTestInterfaceOrNullAttribute", "TestObject", holder, info.GetIsolate());
4627 TestObject* impl = V8TestObject::toImpl(holder); 4627 TestObject* impl = V8TestObject::toImpl(holder);
4628 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 4628 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
4629 if (!cppValue && !isUndefinedOrNull(v8Value)) { 4629 if (!cppValue && !isUndefinedOrNull(v8Value)) {
4630 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'."); 4630 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'.");
4631 exceptionState.throwIfNeeded(); 4631 exceptionState.throwIfNeeded();
4632 return; 4632 return;
4633 } 4633 }
4634 impl->setTypeCheckingInterfaceTestInterfaceOrNullAttribute(WTF::getPtr(cppVa lue)); 4634 impl->setTypeCheckingInterfaceTestInterfaceOrNullAttribute(WTF::getPtr(cppVa lue));
4635 } 4635 }
4636 4636
4637 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetterCall back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall backInfo<void>& info) 4637 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetterCall back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall backInfo<void>& info)
4638 { 4638 {
4639 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4639 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4640 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttri buteSetter(v8Value, info); 4640 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttri buteSetter(v8Value, info);
4641 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4641 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4642 } 4642 }
4643 4643
4644 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info) 4644 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info)
4645 { 4645 {
4646 v8::Handle<v8::Object> holder = info.Holder(); 4646 v8::Local<v8::Object> holder = info.Holder();
4647 TestObject* impl = V8TestObject::toImpl(holder); 4647 TestObject* impl = V8TestObject::toImpl(holder);
4648 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::urlstringattri buteAttr), info.GetIsolate()); 4648 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::urlstringattri buteAttr), info.GetIsolate());
4649 } 4649 }
4650 4650
4651 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con st v8::PropertyCallbackInfo<v8::Value>& info) 4651 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con st v8::PropertyCallbackInfo<v8::Value>& info)
4652 { 4652 {
4653 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4653 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4654 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); 4654 TestObjectV8Internal::urlStringAttributeAttributeGetter(info);
4655 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4655 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4656 } 4656 }
4657 4657
4658 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) 4658 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info)
4659 { 4659 {
4660 v8::Handle<v8::Object> holder = info.Holder(); 4660 v8::Local<v8::Object> holder = info.Holder();
4661 TestObject* impl = V8TestObject::toImpl(holder); 4661 TestObject* impl = V8TestObject::toImpl(holder);
4662 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 4662 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
4663 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4663 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4664 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue); 4664 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue);
4665 } 4665 }
4666 4666
4667 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4667 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4668 { 4668 {
4669 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4669 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4670 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4670 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4671 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); 4671 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info);
4672 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4672 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4673 } 4673 }
4674 4674
4675 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info) 4675 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info)
4676 { 4676 {
4677 v8::Handle<v8::Object> holder = info.Holder(); 4677 v8::Local<v8::Object> holder = info.Holder();
4678 TestObject* impl = V8TestObject::toImpl(holder); 4678 TestObject* impl = V8TestObject::toImpl(holder);
4679 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflectUrlAttr ibuteAttr), info.GetIsolate()); 4679 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflectUrlAttr ibuteAttr), info.GetIsolate());
4680 } 4680 }
4681 4681
4682 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con st v8::PropertyCallbackInfo<v8::Value>& info) 4682 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con st v8::PropertyCallbackInfo<v8::Value>& info)
4683 { 4683 {
4684 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4684 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4685 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); 4685 TestObjectV8Internal::urlStringAttributeAttributeGetter(info);
4686 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4686 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4687 } 4687 }
4688 4688
4689 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) 4689 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info)
4690 { 4690 {
4691 v8::Handle<v8::Object> holder = info.Holder(); 4691 v8::Local<v8::Object> holder = info.Holder();
4692 TestObject* impl = V8TestObject::toImpl(holder); 4692 TestObject* impl = V8TestObject::toImpl(holder);
4693 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 4693 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
4694 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4694 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4695 impl->setAttribute(HTMLNames::reflectUrlAttributeAttr, cppValue); 4695 impl->setAttribute(HTMLNames::reflectUrlAttributeAttr, cppValue);
4696 } 4696 }
4697 4697
4698 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4698 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4699 { 4699 {
4700 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4700 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4701 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 4701 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4702 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); 4702 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info);
4703 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4703 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4704 } 4704 }
4705 4705
4706 static void unforgeableLongAttributeAttributeGetter(const v8::PropertyCallbackIn fo<v8::Value>& info) 4706 static void unforgeableLongAttributeAttributeGetter(const v8::PropertyCallbackIn fo<v8::Value>& info)
4707 { 4707 {
4708 v8::Handle<v8::Object> holder = info.Holder(); 4708 v8::Local<v8::Object> holder = info.Holder();
4709 TestObject* impl = V8TestObject::toImpl(holder); 4709 TestObject* impl = V8TestObject::toImpl(holder);
4710 v8SetReturnValueInt(info, impl->unforgeableLongAttribute()); 4710 v8SetReturnValueInt(info, impl->unforgeableLongAttribute());
4711 } 4711 }
4712 4712
4713 static void unforgeableLongAttributeAttributeGetterCallback(v8::Local<v8::String >, const v8::PropertyCallbackInfo<v8::Value>& info) 4713 static void unforgeableLongAttributeAttributeGetterCallback(v8::Local<v8::String >, const v8::PropertyCallbackInfo<v8::Value>& info)
4714 { 4714 {
4715 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4715 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4716 TestObjectV8Internal::unforgeableLongAttributeAttributeGetter(info); 4716 TestObjectV8Internal::unforgeableLongAttributeAttributeGetter(info);
4717 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4717 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4718 } 4718 }
4719 4719
4720 static void unforgeableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value , const v8::PropertyCallbackInfo<void>& info) 4720 static void unforgeableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value , const v8::PropertyCallbackInfo<void>& info)
4721 { 4721 {
4722 v8::Handle<v8::Object> holder = info.Holder(); 4722 v8::Local<v8::Object> holder = info.Holder();
4723 ExceptionState exceptionState(ExceptionState::SetterContext, "unforgeableLon gAttribute", "TestObject", holder, info.GetIsolate()); 4723 ExceptionState exceptionState(ExceptionState::SetterContext, "unforgeableLon gAttribute", "TestObject", holder, info.GetIsolate());
4724 TestObject* impl = V8TestObject::toImpl(holder); 4724 TestObject* impl = V8TestObject::toImpl(holder);
4725 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 4725 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
4726 impl->setUnforgeableLongAttribute(cppValue); 4726 impl->setUnforgeableLongAttribute(cppValue);
4727 } 4727 }
4728 4728
4729 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4729 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4730 { 4730 {
4731 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4731 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4732 TestObjectV8Internal::unforgeableLongAttributeAttributeSetter(v8Value, info) ; 4732 TestObjectV8Internal::unforgeableLongAttributeAttributeSetter(v8Value, info) ;
4733 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4733 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4734 } 4734 }
4735 4735
4736 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 4736 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
4737 { 4737 {
4738 v8::Handle<v8::Object> holder = info.Holder(); 4738 v8::Local<v8::Object> holder = info.Holder();
4739 TestObject* impl = V8TestObject::toImpl(holder); 4739 TestObject* impl = V8TestObject::toImpl(holder);
4740 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl ); 4740 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl );
4741 } 4741 }
4742 4742
4743 static void testInterfaceAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4743 static void testInterfaceAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4744 { 4744 {
4745 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4745 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4746 TestObjectV8Internal::testInterfaceAttributeAttributeGetter(info); 4746 TestObjectV8Internal::testInterfaceAttributeAttributeGetter(info);
4747 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4747 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4748 } 4748 }
4749 4749
4750 static void testInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4750 static void testInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4751 { 4751 {
4752 v8::Handle<v8::Object> holder = info.Holder(); 4752 v8::Local<v8::Object> holder = info.Holder();
4753 TestObject* impl = V8TestObject::toImpl(holder); 4753 TestObject* impl = V8TestObject::toImpl(holder);
4754 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value); 4754 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck (info.GetIsolate(), v8Value);
4755 impl->setTestInterfaceAttribute(WTF::getPtr(cppValue)); 4755 impl->setTestInterfaceAttribute(WTF::getPtr(cppValue));
4756 } 4756 }
4757 4757
4758 static void testInterfaceAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4758 static void testInterfaceAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4759 { 4759 {
4760 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4760 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4761 TestObjectV8Internal::testInterfaceAttributeAttributeSetter(v8Value, info); 4761 TestObjectV8Internal::testInterfaceAttributeAttributeSetter(v8Value, info);
4762 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4762 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4763 } 4763 }
4764 4764
4765 static void testInterfaceGarbageCollectedAttributeAttributeGetter(const v8::Prop ertyCallbackInfo<v8::Value>& info) 4765 static void testInterfaceGarbageCollectedAttributeAttributeGetter(const v8::Prop ertyCallbackInfo<v8::Value>& info)
4766 { 4766 {
4767 v8::Handle<v8::Object> holder = info.Holder(); 4767 v8::Local<v8::Object> holder = info.Holder();
4768 TestObject* impl = V8TestObject::toImpl(holder); 4768 TestObject* impl = V8TestObject::toImpl(holder);
4769 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceGarbageCollectedAt tribute()), impl); 4769 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceGarbageCollectedAt tribute()), impl);
4770 } 4770 }
4771 4771
4772 static void testInterfaceGarbageCollectedAttributeAttributeGetterCallback(v8::Lo cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4772 static void testInterfaceGarbageCollectedAttributeAttributeGetterCallback(v8::Lo cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4773 { 4773 {
4774 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4774 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4775 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeGetter( info); 4775 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeGetter( info);
4776 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4776 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4777 } 4777 }
4778 4778
4779 static void testInterfaceGarbageCollectedAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4779 static void testInterfaceGarbageCollectedAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4780 { 4780 {
4781 v8::Handle<v8::Object> holder = info.Holder(); 4781 v8::Local<v8::Object> holder = info.Holder();
4782 TestObject* impl = V8TestObject::toImpl(holder); 4782 TestObject* impl = V8TestObject::toImpl(holder);
4783 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t oImplWithTypeCheck(info.GetIsolate(), v8Value); 4783 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t oImplWithTypeCheck(info.GetIsolate(), v8Value);
4784 impl->setTestInterfaceGarbageCollectedAttribute(WTF::getPtr(cppValue)); 4784 impl->setTestInterfaceGarbageCollectedAttribute(WTF::getPtr(cppValue));
4785 } 4785 }
4786 4786
4787 static void testInterfaceGarbageCollectedAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info) 4787 static void testInterfaceGarbageCollectedAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info)
4788 { 4788 {
4789 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4789 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4790 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeSetter( v8Value, info); 4790 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeSetter( v8Value, info);
4791 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4791 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4792 } 4792 }
4793 4793
4794 static void testInterfaceGarbageCollectedOrNullAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info) 4794 static void testInterfaceGarbageCollectedOrNullAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info)
4795 { 4795 {
4796 v8::Handle<v8::Object> holder = info.Holder(); 4796 v8::Local<v8::Object> holder = info.Holder();
4797 TestObject* impl = V8TestObject::toImpl(holder); 4797 TestObject* impl = V8TestObject::toImpl(holder);
4798 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceGarbageCollectedOr NullAttribute()), impl); 4798 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceGarbageCollectedOr NullAttribute()), impl);
4799 } 4799 }
4800 4800
4801 static void testInterfaceGarbageCollectedOrNullAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4801 static void testInterfaceGarbageCollectedOrNullAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4802 { 4802 {
4803 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4803 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4804 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeG etter(info); 4804 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeG etter(info);
4805 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4805 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4806 } 4806 }
4807 4807
4808 static void testInterfaceGarbageCollectedOrNullAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4808 static void testInterfaceGarbageCollectedOrNullAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4809 { 4809 {
4810 v8::Handle<v8::Object> holder = info.Holder(); 4810 v8::Local<v8::Object> holder = info.Holder();
4811 TestObject* impl = V8TestObject::toImpl(holder); 4811 TestObject* impl = V8TestObject::toImpl(holder);
4812 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t oImplWithTypeCheck(info.GetIsolate(), v8Value); 4812 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t oImplWithTypeCheck(info.GetIsolate(), v8Value);
4813 impl->setTestInterfaceGarbageCollectedOrNullAttribute(WTF::getPtr(cppValue)) ; 4813 impl->setTestInterfaceGarbageCollectedOrNullAttribute(WTF::getPtr(cppValue)) ;
4814 } 4814 }
4815 4815
4816 static void testInterfaceGarbageCollectedOrNullAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info) 4816 static void testInterfaceGarbageCollectedOrNullAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info)
4817 { 4817 {
4818 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4818 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4819 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeS etter(v8Value, info); 4819 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeS etter(v8Value, info);
4820 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4820 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4821 } 4821 }
4822 4822
4823 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info) 4823 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info)
4824 { 4824 {
4825 v8::Handle<v8::Object> holder = info.Holder(); 4825 v8::Local<v8::Object> holder = info.Holder();
4826 TestObject* impl = V8TestObject::toImpl(holder); 4826 TestObject* impl = V8TestObject::toImpl(holder);
4827 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle ctedAttribute()), impl); 4827 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle ctedAttribute()), impl);
4828 } 4828 }
4829 4829
4830 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4830 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4831 { 4831 {
4832 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4832 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4833 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeG etter(info); 4833 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeG etter(info);
4834 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4834 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4835 } 4835 }
4836 4836
4837 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4837 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4838 { 4838 {
4839 v8::Handle<v8::Object> holder = info.Holder(); 4839 v8::Local<v8::Object> holder = info.Holder();
4840 TestObject* impl = V8TestObject::toImpl(holder); 4840 TestObject* impl = V8TestObject::toImpl(holder);
4841 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value); 4841 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value);
4842 impl->setTestInterfaceWillBeGarbageCollectedAttribute(WTF::getPtr(cppValue)) ; 4842 impl->setTestInterfaceWillBeGarbageCollectedAttribute(WTF::getPtr(cppValue)) ;
4843 } 4843 }
4844 4844
4845 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info) 4845 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info)
4846 { 4846 {
4847 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4847 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4848 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeS etter(v8Value, info); 4848 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeS etter(v8Value, info);
4849 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4849 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4850 } 4850 }
4851 4851
4852 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) 4852 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info)
4853 { 4853 {
4854 v8::Handle<v8::Object> holder = info.Holder(); 4854 v8::Local<v8::Object> holder = info.Holder();
4855 TestObject* impl = V8TestObject::toImpl(holder); 4855 TestObject* impl = V8TestObject::toImpl(holder);
4856 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle ctedOrNullAttribute()), impl); 4856 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle ctedOrNullAttribute()), impl);
4857 } 4857 }
4858 4858
4859 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4859 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4860 { 4860 {
4861 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4861 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4862 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr ibuteGetter(info); 4862 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr ibuteGetter(info);
4863 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4863 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4864 } 4864 }
4865 4865
4866 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4866 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4867 { 4867 {
4868 v8::Handle<v8::Object> holder = info.Holder(); 4868 v8::Local<v8::Object> holder = info.Holder();
4869 TestObject* impl = V8TestObject::toImpl(holder); 4869 TestObject* impl = V8TestObject::toImpl(holder);
4870 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value); 4870 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value);
4871 impl->setTestInterfaceWillBeGarbageCollectedOrNullAttribute(WTF::getPtr(cppV alue)); 4871 impl->setTestInterfaceWillBeGarbageCollectedOrNullAttribute(WTF::getPtr(cppV alue));
4872 } 4872 }
4873 4873
4874 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info) 4874 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info)
4875 { 4875 {
4876 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4876 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4877 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr ibuteSetter(v8Value, info); 4877 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr ibuteSetter(v8Value, info);
4878 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4878 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4879 } 4879 }
4880 4880
4881 static void readonlyShortAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 4881 static void readonlyShortAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
4882 { 4882 {
4883 v8::Handle<v8::Object> holder = info.Holder(); 4883 v8::Local<v8::Object> holder = info.Holder();
4884 TestObject* impl = V8TestObject::toImpl(holder); 4884 TestObject* impl = V8TestObject::toImpl(holder);
4885 int result = 0; 4885 int result = 0;
4886 if (!V8TestObject::PrivateScript::readonlyShortAttributeAttributeGetter(toFr ameIfNotDetached(info.GetIsolate()->GetCurrentContext()), impl, &result)) 4886 if (!V8TestObject::PrivateScript::readonlyShortAttributeAttributeGetter(toFr ameIfNotDetached(info.GetIsolate()->GetCurrentContext()), impl, &result))
4887 return; 4887 return;
4888 v8SetReturnValueInt(info, result); 4888 v8SetReturnValueInt(info, result);
4889 } 4889 }
4890 4890
4891 static void readonlyShortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4891 static void readonlyShortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4892 { 4892 {
4893 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4893 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4894 TestObjectV8Internal::readonlyShortAttributeAttributeGetter(info); 4894 TestObjectV8Internal::readonlyShortAttributeAttributeGetter(info);
4895 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4895 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4896 } 4896 }
4897 4897
4898 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 4898 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
4899 { 4899 {
4900 v8::Handle<v8::Object> holder = info.Holder(); 4900 v8::Local<v8::Object> holder = info.Holder();
4901 TestObject* impl = V8TestObject::toImpl(holder); 4901 TestObject* impl = V8TestObject::toImpl(holder);
4902 int result = 0; 4902 int result = 0;
4903 if (!V8TestObject::PrivateScript::shortAttributeAttributeGetter(toFrameIfNot Detached(info.GetIsolate()->GetCurrentContext()), impl, &result)) 4903 if (!V8TestObject::PrivateScript::shortAttributeAttributeGetter(toFrameIfNot Detached(info.GetIsolate()->GetCurrentContext()), impl, &result))
4904 return; 4904 return;
4905 v8SetReturnValueInt(info, result); 4905 v8SetReturnValueInt(info, result);
4906 } 4906 }
4907 4907
4908 static void shortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 4908 static void shortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info)
4909 { 4909 {
4910 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4910 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4911 TestObjectV8Internal::shortAttributeAttributeGetter(info); 4911 TestObjectV8Internal::shortAttributeAttributeGetter(info);
4912 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4912 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4913 } 4913 }
4914 4914
4915 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 4915 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info)
4916 { 4916 {
4917 v8::Handle<v8::Object> holder = info.Holder(); 4917 v8::Local<v8::Object> holder = info.Holder();
4918 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObject", holder, info.GetIsolate()); 4918 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObject", holder, info.GetIsolate());
4919 TestObject* impl = V8TestObject::toImpl(holder); 4919 TestObject* impl = V8TestObject::toImpl(holder);
4920 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionState) , exceptionState); 4920 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionState) , exceptionState);
4921 V8TestObject::PrivateScript::shortAttributeAttributeSetter(toFrameIfNotDetac hed(info.GetIsolate()->GetCurrentContext()), impl, cppValue); 4921 V8TestObject::PrivateScript::shortAttributeAttributeSetter(toFrameIfNotDetac hed(info.GetIsolate()->GetCurrentContext()), impl, cppValue);
4922 } 4922 }
4923 4923
4924 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4924 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4925 { 4925 {
4926 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4926 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4927 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); 4927 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info);
4928 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4928 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4929 } 4929 }
4930 4930
4931 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info) 4931 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info)
4932 { 4932 {
4933 v8::Handle<v8::Object> holder = info.Holder(); 4933 v8::Local<v8::Object> holder = info.Holder();
4934 TestObject* impl = V8TestObject::toImpl(holder); 4934 TestObject* impl = V8TestObject::toImpl(holder);
4935 String result; 4935 String result;
4936 if (!V8TestObject::PrivateScript::stringAttributeAttributeGetter(toFrameIfNo tDetached(info.GetIsolate()->GetCurrentContext()), impl, &result)) 4936 if (!V8TestObject::PrivateScript::stringAttributeAttributeGetter(toFrameIfNo tDetached(info.GetIsolate()->GetCurrentContext()), impl, &result))
4937 return; 4937 return;
4938 v8SetReturnValueString(info, result, info.GetIsolate()); 4938 v8SetReturnValueString(info, result, info.GetIsolate());
4939 } 4939 }
4940 4940
4941 static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4941 static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4942 { 4942 {
4943 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4943 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4944 TestObjectV8Internal::stringAttributeAttributeGetter(info); 4944 TestObjectV8Internal::stringAttributeAttributeGetter(info);
4945 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4945 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4946 } 4946 }
4947 4947
4948 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info) 4948 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info)
4949 { 4949 {
4950 v8::Handle<v8::Object> holder = info.Holder(); 4950 v8::Local<v8::Object> holder = info.Holder();
4951 TestObject* impl = V8TestObject::toImpl(holder); 4951 TestObject* impl = V8TestObject::toImpl(holder);
4952 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 4952 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
4953 V8TestObject::PrivateScript::stringAttributeAttributeSetter(toFrameIfNotDeta ched(info.GetIsolate()->GetCurrentContext()), impl, cppValue); 4953 V8TestObject::PrivateScript::stringAttributeAttributeSetter(toFrameIfNotDeta ched(info.GetIsolate()->GetCurrentContext()), impl, cppValue);
4954 } 4954 }
4955 4955
4956 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4956 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4957 { 4957 {
4958 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4958 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4959 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); 4959 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info);
4960 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4960 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4961 } 4961 }
4962 4962
4963 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 4963 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info)
4964 { 4964 {
4965 v8::Handle<v8::Object> holder = info.Holder(); 4965 v8::Local<v8::Object> holder = info.Holder();
4966 TestObject* impl = V8TestObject::toImpl(holder); 4966 TestObject* impl = V8TestObject::toImpl(holder);
4967 RefPtrWillBeRawPtr<Node> result = nullptr; 4967 RefPtrWillBeRawPtr<Node> result = nullptr;
4968 if (!V8TestObject::PrivateScript::nodeAttributeAttributeGetter(toFrameIfNotD etached(info.GetIsolate()->GetCurrentContext()), impl, &result)) 4968 if (!V8TestObject::PrivateScript::nodeAttributeAttributeGetter(toFrameIfNotD etached(info.GetIsolate()->GetCurrentContext()), impl, &result))
4969 return; 4969 return;
4970 v8SetReturnValueFast(info, WTF::getPtr(result.release()), impl); 4970 v8SetReturnValueFast(info, WTF::getPtr(result.release()), impl);
4971 } 4971 }
4972 4972
4973 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 4973 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info)
4974 { 4974 {
4975 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4975 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4976 TestObjectV8Internal::nodeAttributeAttributeGetter(info); 4976 TestObjectV8Internal::nodeAttributeAttributeGetter(info);
4977 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4977 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4978 } 4978 }
4979 4979
4980 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 4980 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
4981 { 4981 {
4982 v8::Handle<v8::Object> holder = info.Holder(); 4982 v8::Local<v8::Object> holder = info.Holder();
4983 TestObject* impl = V8TestObject::toImpl(holder); 4983 TestObject* impl = V8TestObject::toImpl(holder);
4984 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value); 4984 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value);
4985 V8TestObject::PrivateScript::nodeAttributeAttributeSetter(toFrameIfNotDetach ed(info.GetIsolate()->GetCurrentContext()), impl, cppValue); 4985 V8TestObject::PrivateScript::nodeAttributeAttributeSetter(toFrameIfNotDetach ed(info.GetIsolate()->GetCurrentContext()), impl, cppValue);
4986 } 4986 }
4987 4987
4988 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4988 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4989 { 4989 {
4990 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4990 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4991 TestObjectV8Internal::nodeAttributeAttributeSetter(v8Value, info); 4991 TestObjectV8Internal::nodeAttributeAttributeSetter(v8Value, info);
4992 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4992 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4993 } 4993 }
4994 4994
4995 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info) 4995 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info)
4996 { 4996 {
4997 v8::Handle<v8::Object> holder = info.Holder(); 4997 v8::Local<v8::Object> holder = info.Holder();
4998 TestObject* impl = V8TestObject::toImpl(holder); 4998 TestObject* impl = V8TestObject::toImpl(holder);
4999 v8SetReturnValueString(info, impl->attributeImplementedInCPPForPrivateScript Only(), info.GetIsolate()); 4999 v8SetReturnValueString(info, impl->attributeImplementedInCPPForPrivateScript Only(), info.GetIsolate());
5000 } 5000 }
5001 5001
5002 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeGetterCallback (v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 5002 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeGetterCallback (v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
5003 { 5003 {
5004 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5004 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5005 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute Getter(info); 5005 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute Getter(info);
5006 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5006 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5007 } 5007 }
5008 5008
5009 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetter(v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5009 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetter(v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5010 { 5010 {
5011 v8::Handle<v8::Object> holder = info.Holder(); 5011 v8::Local<v8::Object> holder = info.Holder();
5012 TestObject* impl = V8TestObject::toImpl(holder); 5012 TestObject* impl = V8TestObject::toImpl(holder);
5013 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 5013 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
5014 impl->setAttributeImplementedInCPPForPrivateScriptOnly(cppValue); 5014 impl->setAttributeImplementedInCPPForPrivateScriptOnly(cppValue);
5015 } 5015 }
5016 5016
5017 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback (v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback Info<void>& info) 5017 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback (v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback Info<void>& info)
5018 { 5018 {
5019 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5019 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5020 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute Setter(v8Value, info); 5020 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute Setter(v8Value, info);
5021 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5021 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5022 } 5022 }
5023 5023
5024 static void enumForPrivateScriptAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 5024 static void enumForPrivateScriptAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
5025 { 5025 {
5026 v8::Handle<v8::Object> holder = info.Holder(); 5026 v8::Local<v8::Object> holder = info.Holder();
5027 TestObject* impl = V8TestObject::toImpl(holder); 5027 TestObject* impl = V8TestObject::toImpl(holder);
5028 String result; 5028 String result;
5029 if (!V8TestObject::PrivateScript::enumForPrivateScriptAttributeGetter(toFram eIfNotDetached(info.GetIsolate()->GetCurrentContext()), impl, &result)) 5029 if (!V8TestObject::PrivateScript::enumForPrivateScriptAttributeGetter(toFram eIfNotDetached(info.GetIsolate()->GetCurrentContext()), impl, &result))
5030 return; 5030 return;
5031 v8SetReturnValueString(info, result, info.GetIsolate()); 5031 v8SetReturnValueString(info, result, info.GetIsolate());
5032 } 5032 }
5033 5033
5034 static void enumForPrivateScriptAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 5034 static void enumForPrivateScriptAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
5035 { 5035 {
5036 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5036 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
5037 TestObjectV8Internal::enumForPrivateScriptAttributeGetter(info); 5037 TestObjectV8Internal::enumForPrivateScriptAttributeGetter(info);
5038 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5038 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5039 } 5039 }
5040 5040
5041 static void enumForPrivateScriptAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 5041 static void enumForPrivateScriptAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
5042 { 5042 {
5043 v8::Handle<v8::Object> holder = info.Holder(); 5043 v8::Local<v8::Object> holder = info.Holder();
5044 TestObject* impl = V8TestObject::toImpl(holder); 5044 TestObject* impl = V8TestObject::toImpl(holder);
5045 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 5045 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
5046 String string = cppValue; 5046 String string = cppValue;
5047 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st ring == "EnumValue3")) 5047 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st ring == "EnumValue3"))
5048 return; 5048 return;
5049 V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(toFrameIfNo tDetached(info.GetIsolate()->GetCurrentContext()), impl, cppValue); 5049 V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(toFrameIfNo tDetached(info.GetIsolate()->GetCurrentContext()), impl, cppValue);
5050 } 5050 }
5051 5051
5052 static void enumForPrivateScriptAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 5052 static void enumForPrivateScriptAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
5053 { 5053 {
5054 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 5054 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
5055 TestObjectV8Internal::enumForPrivateScriptAttributeSetter(v8Value, info); 5055 TestObjectV8Internal::enumForPrivateScriptAttributeSetter(v8Value, info);
5056 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5056 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5057 } 5057 }
5058 5058
5059 static void TestObjectConstructorGetter(v8::Local<v8::String>, const v8::Propert yCallbackInfo<v8::Value>& info) 5059 static void TestObjectConstructorGetter(v8::Local<v8::String>, const v8::Propert yCallbackInfo<v8::Value>& info)
5060 { 5060 {
5061 v8::Handle<v8::Value> data = info.Data(); 5061 v8::Local<v8::Value> data = info.Data();
5062 ASSERT(data->IsExternal()); 5062 ASSERT(data->IsExternal());
5063 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre ationContext()); 5063 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre ationContext());
5064 if (!perContextData) 5064 if (!perContextData)
5065 return; 5065 return;
5066 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u nwrap(data))); 5066 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u nwrap(data)));
5067 } 5067 }
5068 5068
5069 static void testInterfaceEmptyConstructorAttributeConstructorGetterCallback(v8:: Local<v8::String> property, const v8::PropertyCallbackInfo<v8::Value>& info) 5069 static void testInterfaceEmptyConstructorAttributeConstructorGetterCallback(v8:: Local<v8::String> property, const v8::PropertyCallbackInfo<v8::Value>& info)
5070 { 5070 {
5071 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 5071 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
(...skipping 6106 matching lines...) Expand 10 before | Expand all | Expand 10 after
11178 { 11178 {
11179 scriptWrappable->toImpl<TestObject>()->deref(); 11179 scriptWrappable->toImpl<TestObject>()->deref();
11180 } 11180 }
11181 11181
11182 bool V8TestObject::PrivateScript::voidMethodImplementedInPrivateScriptMethod(Loc alFrame* frame, TestObject* holderImpl) 11182 bool V8TestObject::PrivateScript::voidMethodImplementedInPrivateScriptMethod(Loc alFrame* frame, TestObject* holderImpl)
11183 { 11183 {
11184 if (!frame) 11184 if (!frame)
11185 return false; 11185 return false;
11186 v8::HandleScope handleScope(toIsolate(frame)); 11186 v8::HandleScope handleScope(toIsolate(frame));
11187 ScriptForbiddenScope::AllowUserAgentScript script; 11187 ScriptForbiddenScope::AllowUserAgentScript script;
11188 v8::Handle<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrapp erWorld::privateScriptIsolatedWorld()); 11188 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe rWorld::privateScriptIsolatedWorld());
11189 if (contextInPrivateScript.IsEmpty()) 11189 if (contextInPrivateScript.IsEmpty())
11190 return false; 11190 return false;
11191 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); 11191 ScriptState* scriptState = ScriptState::from(contextInPrivateScript);
11192 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); 11192 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame);
11193 if (!scriptState->executionContext()) 11193 if (!scriptState->executionContext())
11194 return false; 11194 return false;
11195 11195
11196 ScriptState::Scope scope(scriptState); 11196 ScriptState::Scope scope(scriptState);
11197 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11197 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
11198 11198
11199 v8::Handle<v8::Value> *argv = 0; 11199 v8::Local<v8::Value> *argv = 0;
11200 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodI mplementedInPrivateScript", "TestObject", scriptState->context()->Global(), scri ptState->isolate()); 11200 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodI mplementedInPrivateScript", "TestObject", scriptState->context()->Global(), scri ptState->isolate());
11201 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptStat e, scriptStateInUserScript, "TestObject", "voidMethodImplementedInPrivateScript" , holder, 0, argv); 11201 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState , scriptStateInUserScript, "TestObject", "voidMethodImplementedInPrivateScript", holder, 0, argv);
11202 if (v8Value.IsEmpty()) 11202 if (v8Value.IsEmpty())
11203 return false; 11203 return false;
11204 RELEASE_ASSERT(!exceptionState.hadException()); 11204 RELEASE_ASSERT(!exceptionState.hadException());
11205 return true; 11205 return true;
11206 } 11206 }
11207 11207
11208 bool V8TestObject::PrivateScript::shortMethodImplementedInPrivateScriptMethod(Lo calFrame* frame, TestObject* holderImpl, int* result) 11208 bool V8TestObject::PrivateScript::shortMethodImplementedInPrivateScriptMethod(Lo calFrame* frame, TestObject* holderImpl, int* result)
11209 { 11209 {
11210 if (!frame) 11210 if (!frame)
11211 return false; 11211 return false;
11212 v8::HandleScope handleScope(toIsolate(frame)); 11212 v8::HandleScope handleScope(toIsolate(frame));
11213 ScriptForbiddenScope::AllowUserAgentScript script; 11213 ScriptForbiddenScope::AllowUserAgentScript script;
11214 v8::Handle<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrapp erWorld::privateScriptIsolatedWorld()); 11214 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe rWorld::privateScriptIsolatedWorld());
11215 if (contextInPrivateScript.IsEmpty()) 11215 if (contextInPrivateScript.IsEmpty())
11216 return false; 11216 return false;
11217 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); 11217 ScriptState* scriptState = ScriptState::from(contextInPrivateScript);
11218 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); 11218 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame);
11219 if (!scriptState->executionContext()) 11219 if (!scriptState->executionContext())
11220 return false; 11220 return false;
11221 11221
11222 ScriptState::Scope scope(scriptState); 11222 ScriptState::Scope scope(scriptState);
11223 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11223 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
11224 11224
11225 v8::Handle<v8::Value> *argv = 0; 11225 v8::Local<v8::Value> *argv = 0;
11226 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod ImplementedInPrivateScript", "TestObject", scriptState->context()->Global(), scr iptState->isolate()); 11226 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod ImplementedInPrivateScript", "TestObject", scriptState->context()->Global(), scr iptState->isolate());
11227 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptStat e, scriptStateInUserScript, "TestObject", "shortMethodImplementedInPrivateScript ", holder, 0, argv); 11227 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState , scriptStateInUserScript, "TestObject", "shortMethodImplementedInPrivateScript" , holder, 0, argv);
11228 if (v8Value.IsEmpty()) 11228 if (v8Value.IsEmpty())
11229 return false; 11229 return false;
11230 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta te), exceptionState, false); 11230 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta te), exceptionState, false);
11231 *result = cppValue; 11231 *result = cppValue;
11232 RELEASE_ASSERT(!exceptionState.hadException()); 11232 RELEASE_ASSERT(!exceptionState.hadException());
11233 return true; 11233 return true;
11234 } 11234 }
11235 11235
11236 bool V8TestObject::PrivateScript::shortMethodWithShortArgumentImplementedInPriva teScriptMethod(LocalFrame* frame, TestObject* holderImpl, int value, int* result ) 11236 bool V8TestObject::PrivateScript::shortMethodWithShortArgumentImplementedInPriva teScriptMethod(LocalFrame* frame, TestObject* holderImpl, int value, int* result )
11237 { 11237 {
11238 if (!frame) 11238 if (!frame)
11239 return false; 11239 return false;
11240 v8::HandleScope handleScope(toIsolate(frame)); 11240 v8::HandleScope handleScope(toIsolate(frame));
11241 ScriptForbiddenScope::AllowUserAgentScript script; 11241 ScriptForbiddenScope::AllowUserAgentScript script;
11242 v8::Handle<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrapp erWorld::privateScriptIsolatedWorld()); 11242 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe rWorld::privateScriptIsolatedWorld());
11243 if (contextInPrivateScript.IsEmpty()) 11243 if (contextInPrivateScript.IsEmpty())
11244 return false; 11244 return false;
11245 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); 11245 ScriptState* scriptState = ScriptState::from(contextInPrivateScript);
11246 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); 11246 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame);
11247 if (!scriptState->executionContext()) 11247 if (!scriptState->executionContext())
11248 return false; 11248 return false;
11249 11249
11250 ScriptState::Scope scope(scriptState); 11250 ScriptState::Scope scope(scriptState);
11251 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11251 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
11252 11252
11253 v8::Handle<v8::Value> valueHandle = v8::Integer::New(scriptState->isolate(), value); 11253 v8::Local<v8::Value> valueHandle = v8::Integer::New(scriptState->isolate(), value);
11254 v8::Handle<v8::Value> argv[] = { valueHandle }; 11254 v8::Local<v8::Value> argv[] = { valueHandle };
11255 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod WithShortArgumentImplementedInPrivateScript", "TestObject", scriptState->context ()->Global(), scriptState->isolate()); 11255 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod WithShortArgumentImplementedInPrivateScript", "TestObject", scriptState->context ()->Global(), scriptState->isolate());
11256 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptStat e, scriptStateInUserScript, "TestObject", "shortMethodWithShortArgumentImplement edInPrivateScript", holder, 1, argv); 11256 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState , scriptStateInUserScript, "TestObject", "shortMethodWithShortArgumentImplemente dInPrivateScript", holder, 1, argv);
11257 if (v8Value.IsEmpty()) 11257 if (v8Value.IsEmpty())
11258 return false; 11258 return false;
11259 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta te), exceptionState, false); 11259 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta te), exceptionState, false);
11260 *result = cppValue; 11260 *result = cppValue;
11261 RELEASE_ASSERT(!exceptionState.hadException()); 11261 RELEASE_ASSERT(!exceptionState.hadException());
11262 return true; 11262 return true;
11263 } 11263 }
11264 11264
11265 bool V8TestObject::PrivateScript::stringMethodWithStringArgumentImplementedInPri vateScriptMethod(LocalFrame* frame, TestObject* holderImpl, String value, String * result) 11265 bool V8TestObject::PrivateScript::stringMethodWithStringArgumentImplementedInPri vateScriptMethod(LocalFrame* frame, TestObject* holderImpl, String value, String * result)
11266 { 11266 {
11267 if (!frame) 11267 if (!frame)
11268 return false; 11268 return false;
11269 v8::HandleScope handleScope(toIsolate(frame)); 11269 v8::HandleScope handleScope(toIsolate(frame));
11270 ScriptForbiddenScope::AllowUserAgentScript script; 11270 ScriptForbiddenScope::AllowUserAgentScript script;
11271 v8::Handle<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrapp erWorld::privateScriptIsolatedWorld()); 11271 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe rWorld::privateScriptIsolatedWorld());
11272 if (contextInPrivateScript.IsEmpty()) 11272 if (contextInPrivateScript.IsEmpty())
11273 return false; 11273 return false;
11274 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); 11274 ScriptState* scriptState = ScriptState::from(contextInPrivateScript);
11275 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); 11275 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame);
11276 if (!scriptState->executionContext()) 11276 if (!scriptState->executionContext())
11277 return false; 11277 return false;
11278 11278
11279 ScriptState::Scope scope(scriptState); 11279 ScriptState::Scope scope(scriptState);
11280 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11280 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
11281 11281
11282 v8::Handle<v8::Value> valueHandle = v8String(scriptState->isolate(), value); 11282 v8::Local<v8::Value> valueHandle = v8String(scriptState->isolate(), value);
11283 v8::Handle<v8::Value> argv[] = { valueHandle }; 11283 v8::Local<v8::Value> argv[] = { valueHandle };
11284 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho dWithStringArgumentImplementedInPrivateScript", "TestObject", scriptState->conte xt()->Global(), scriptState->isolate()); 11284 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho dWithStringArgumentImplementedInPrivateScript", "TestObject", scriptState->conte xt()->Global(), scriptState->isolate());
11285 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptStat e, scriptStateInUserScript, "TestObject", "stringMethodWithStringArgumentImpleme ntedInPrivateScript", holder, 1, argv); 11285 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState , scriptStateInUserScript, "TestObject", "stringMethodWithStringArgumentImplemen tedInPrivateScript", holder, 1, argv);
11286 if (v8Value.IsEmpty()) 11286 if (v8Value.IsEmpty())
11287 return false; 11287 return false;
11288 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false); 11288 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false);
11289 *result = cppValue; 11289 *result = cppValue;
11290 RELEASE_ASSERT(!exceptionState.hadException()); 11290 RELEASE_ASSERT(!exceptionState.hadException());
11291 return true; 11291 return true;
11292 } 11292 }
11293 11293
11294 bool V8TestObject::PrivateScript::nodeMethodWithNodeArgumentImplementedInPrivate ScriptMethod(LocalFrame* frame, TestObject* holderImpl, PassRefPtrWillBeRawPtr<N ode> value, RefPtrWillBeRawPtr<Node>* result) 11294 bool V8TestObject::PrivateScript::nodeMethodWithNodeArgumentImplementedInPrivate ScriptMethod(LocalFrame* frame, TestObject* holderImpl, PassRefPtrWillBeRawPtr<N ode> value, RefPtrWillBeRawPtr<Node>* result)
11295 { 11295 {
11296 if (!frame) 11296 if (!frame)
11297 return false; 11297 return false;
11298 v8::HandleScope handleScope(toIsolate(frame)); 11298 v8::HandleScope handleScope(toIsolate(frame));
11299 ScriptForbiddenScope::AllowUserAgentScript script; 11299 ScriptForbiddenScope::AllowUserAgentScript script;
11300 v8::Handle<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrapp erWorld::privateScriptIsolatedWorld()); 11300 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe rWorld::privateScriptIsolatedWorld());
11301 if (contextInPrivateScript.IsEmpty()) 11301 if (contextInPrivateScript.IsEmpty())
11302 return false; 11302 return false;
11303 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); 11303 ScriptState* scriptState = ScriptState::from(contextInPrivateScript);
11304 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); 11304 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame);
11305 if (!scriptState->executionContext()) 11305 if (!scriptState->executionContext())
11306 return false; 11306 return false;
11307 11307
11308 ScriptState::Scope scope(scriptState); 11308 ScriptState::Scope scope(scriptState);
11309 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11309 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
11310 11310
11311 v8::Handle<v8::Value> valueHandle = toV8(value, scriptState->context()->Glob al(), scriptState->isolate()); 11311 v8::Local<v8::Value> valueHandle = toV8(value, scriptState->context()->Globa l(), scriptState->isolate());
11312 v8::Handle<v8::Value> argv[] = { valueHandle }; 11312 v8::Local<v8::Value> argv[] = { valueHandle };
11313 ExceptionState exceptionState(ExceptionState::ExecutionContext, "nodeMethodW ithNodeArgumentImplementedInPrivateScript", "TestObject", scriptState->context() ->Global(), scriptState->isolate()); 11313 ExceptionState exceptionState(ExceptionState::ExecutionContext, "nodeMethodW ithNodeArgumentImplementedInPrivateScript", "TestObject", scriptState->context() ->Global(), scriptState->isolate());
11314 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptStat e, scriptStateInUserScript, "TestObject", "nodeMethodWithNodeArgumentImplemented InPrivateScript", holder, 1, argv); 11314 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState , scriptStateInUserScript, "TestObject", "nodeMethodWithNodeArgumentImplementedI nPrivateScript", holder, 1, argv);
11315 if (v8Value.IsEmpty()) 11315 if (v8Value.IsEmpty())
11316 return false; 11316 return false;
11317 Node* cppValue = V8Node::toImplWithTypeCheck(scriptState->isolate(), v8Value ); 11317 Node* cppValue = V8Node::toImplWithTypeCheck(scriptState->isolate(), v8Value );
11318 *result = cppValue; 11318 *result = cppValue;
11319 RELEASE_ASSERT(!exceptionState.hadException()); 11319 RELEASE_ASSERT(!exceptionState.hadException());
11320 return true; 11320 return true;
11321 } 11321 }
11322 11322
11323 bool V8TestObject::PrivateScript::nodeMethodWithVariousArgumentsImplementedInPri vateScriptMethod(LocalFrame* frame, TestObject* holderImpl, PassRefPtrWillBeRawP tr<Document> document, PassRefPtrWillBeRawPtr<Node> node, int value1, double val ue2, String string, RefPtrWillBeRawPtr<Node>* result) 11323 bool V8TestObject::PrivateScript::nodeMethodWithVariousArgumentsImplementedInPri vateScriptMethod(LocalFrame* frame, TestObject* holderImpl, PassRefPtrWillBeRawP tr<Document> document, PassRefPtrWillBeRawPtr<Node> node, int value1, double val ue2, String string, RefPtrWillBeRawPtr<Node>* result)
11324 { 11324 {
11325 if (!frame) 11325 if (!frame)
11326 return false; 11326 return false;
11327 v8::HandleScope handleScope(toIsolate(frame)); 11327 v8::HandleScope handleScope(toIsolate(frame));
11328 ScriptForbiddenScope::AllowUserAgentScript script; 11328 ScriptForbiddenScope::AllowUserAgentScript script;
11329 v8::Handle<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrapp erWorld::privateScriptIsolatedWorld()); 11329 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe rWorld::privateScriptIsolatedWorld());
11330 if (contextInPrivateScript.IsEmpty()) 11330 if (contextInPrivateScript.IsEmpty())
11331 return false; 11331 return false;
11332 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); 11332 ScriptState* scriptState = ScriptState::from(contextInPrivateScript);
11333 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); 11333 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame);
11334 if (!scriptState->executionContext()) 11334 if (!scriptState->executionContext())
11335 return false; 11335 return false;
11336 11336
11337 ScriptState::Scope scope(scriptState); 11337 ScriptState::Scope scope(scriptState);
11338 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11338 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
11339 11339
11340 v8::Handle<v8::Value> documentHandle = toV8(document, scriptState->context() ->Global(), scriptState->isolate()); 11340 v8::Local<v8::Value> documentHandle = toV8(document, scriptState->context()- >Global(), scriptState->isolate());
11341 v8::Handle<v8::Value> nodeHandle = toV8(node, scriptState->context()->Global (), scriptState->isolate()); 11341 v8::Local<v8::Value> nodeHandle = toV8(node, scriptState->context()->Global( ), scriptState->isolate());
11342 v8::Handle<v8::Value> value1Handle = v8::Integer::New(scriptState->isolate() , value1); 11342 v8::Local<v8::Value> value1Handle = v8::Integer::New(scriptState->isolate(), value1);
11343 v8::Handle<v8::Value> value2Handle = v8::Number::New(scriptState->isolate(), value2); 11343 v8::Local<v8::Value> value2Handle = v8::Number::New(scriptState->isolate(), value2);
11344 v8::Handle<v8::Value> stringHandle = v8String(scriptState->isolate(), string ); 11344 v8::Local<v8::Value> stringHandle = v8String(scriptState->isolate(), string) ;
11345 v8::Handle<v8::Value> argv[] = { documentHandle, nodeHandle, value1Handle, v alue2Handle, stringHandle }; 11345 v8::Local<v8::Value> argv[] = { documentHandle, nodeHandle, value1Handle, va lue2Handle, stringHandle };
11346 ExceptionState exceptionState(ExceptionState::ExecutionContext, "nodeMethodW ithVariousArgumentsImplementedInPrivateScript", "TestObject", scriptState->conte xt()->Global(), scriptState->isolate()); 11346 ExceptionState exceptionState(ExceptionState::ExecutionContext, "nodeMethodW ithVariousArgumentsImplementedInPrivateScript", "TestObject", scriptState->conte xt()->Global(), scriptState->isolate());
11347 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptStat e, scriptStateInUserScript, "TestObject", "nodeMethodWithVariousArgumentsImpleme ntedInPrivateScript", holder, 5, argv); 11347 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState , scriptStateInUserScript, "TestObject", "nodeMethodWithVariousArgumentsImplemen tedInPrivateScript", holder, 5, argv);
11348 if (v8Value.IsEmpty()) 11348 if (v8Value.IsEmpty())
11349 return false; 11349 return false;
11350 Node* cppValue = V8Node::toImplWithTypeCheck(scriptState->isolate(), v8Value ); 11350 Node* cppValue = V8Node::toImplWithTypeCheck(scriptState->isolate(), v8Value );
11351 *result = cppValue; 11351 *result = cppValue;
11352 RELEASE_ASSERT(!exceptionState.hadException()); 11352 RELEASE_ASSERT(!exceptionState.hadException());
11353 return true; 11353 return true;
11354 } 11354 }
11355 11355
11356 bool V8TestObject::PrivateScript::methodForPrivateScriptOnlyMethod(LocalFrame* f rame, TestObject* holderImpl, int value1, int value2, int* result) 11356 bool V8TestObject::PrivateScript::methodForPrivateScriptOnlyMethod(LocalFrame* f rame, TestObject* holderImpl, int value1, int value2, int* result)
11357 { 11357 {
11358 if (!frame) 11358 if (!frame)
11359 return false; 11359 return false;
11360 v8::HandleScope handleScope(toIsolate(frame)); 11360 v8::HandleScope handleScope(toIsolate(frame));
11361 ScriptForbiddenScope::AllowUserAgentScript script; 11361 ScriptForbiddenScope::AllowUserAgentScript script;
11362 v8::Handle<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrapp erWorld::privateScriptIsolatedWorld()); 11362 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe rWorld::privateScriptIsolatedWorld());
11363 if (contextInPrivateScript.IsEmpty()) 11363 if (contextInPrivateScript.IsEmpty())
11364 return false; 11364 return false;
11365 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); 11365 ScriptState* scriptState = ScriptState::from(contextInPrivateScript);
11366 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); 11366 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame);
11367 if (!scriptState->executionContext()) 11367 if (!scriptState->executionContext())
11368 return false; 11368 return false;
11369 11369
11370 ScriptState::Scope scope(scriptState); 11370 ScriptState::Scope scope(scriptState);
11371 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11371 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
11372 11372
11373 v8::Handle<v8::Value> value1Handle = v8::Integer::New(scriptState->isolate() , value1); 11373 v8::Local<v8::Value> value1Handle = v8::Integer::New(scriptState->isolate(), value1);
11374 v8::Handle<v8::Value> value2Handle = v8::Integer::New(scriptState->isolate() , value2); 11374 v8::Local<v8::Value> value2Handle = v8::Integer::New(scriptState->isolate(), value2);
11375 v8::Handle<v8::Value> argv[] = { value1Handle, value2Handle }; 11375 v8::Local<v8::Value> argv[] = { value1Handle, value2Handle };
11376 ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodForPr ivateScriptOnly", "TestObject", scriptState->context()->Global(), scriptState->i solate()); 11376 ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodForPr ivateScriptOnly", "TestObject", scriptState->context()->Global(), scriptState->i solate());
11377 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptStat e, scriptStateInUserScript, "TestObject", "methodForPrivateScriptOnly", holder, 2, argv); 11377 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState , scriptStateInUserScript, "TestObject", "methodForPrivateScriptOnly", holder, 2 , argv);
11378 if (v8Value.IsEmpty()) 11378 if (v8Value.IsEmpty())
11379 return false; 11379 return false;
11380 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta te), exceptionState, false); 11380 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta te), exceptionState, false);
11381 *result = cppValue; 11381 *result = cppValue;
11382 RELEASE_ASSERT(!exceptionState.hadException()); 11382 RELEASE_ASSERT(!exceptionState.hadException());
11383 return true; 11383 return true;
11384 } 11384 }
11385 11385
11386 bool V8TestObject::PrivateScript::readonlyShortAttributeAttributeGetter(LocalFra me* frame, TestObject* holderImpl, int* result) 11386 bool V8TestObject::PrivateScript::readonlyShortAttributeAttributeGetter(LocalFra me* frame, TestObject* holderImpl, int* result)
11387 { 11387 {
11388 if (!frame) 11388 if (!frame)
11389 return false; 11389 return false;
11390 v8::HandleScope handleScope(toIsolate(frame)); 11390 v8::HandleScope handleScope(toIsolate(frame));
11391 ScriptForbiddenScope::AllowUserAgentScript script; 11391 ScriptForbiddenScope::AllowUserAgentScript script;
11392 v8::Handle<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrapp erWorld::privateScriptIsolatedWorld()); 11392 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe rWorld::privateScriptIsolatedWorld());
11393 if (contextInPrivateScript.IsEmpty()) 11393 if (contextInPrivateScript.IsEmpty())
11394 return false; 11394 return false;
11395 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); 11395 ScriptState* scriptState = ScriptState::from(contextInPrivateScript);
11396 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); 11396 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame);
11397 if (!scriptState->executionContext()) 11397 if (!scriptState->executionContext())
11398 return false; 11398 return false;
11399 11399
11400 ScriptState::Scope scope(scriptState); 11400 ScriptState::Scope scope(scriptState);
11401 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11401 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
11402 11402
11403 ExceptionState exceptionState(ExceptionState::GetterContext, "readonlyShortA ttribute", "TestObject", scriptState->context()->Global(), scriptState->isolate( )); 11403 ExceptionState exceptionState(ExceptionState::GetterContext, "readonlyShortA ttribute", "TestObject", scriptState->context()->Global(), scriptState->isolate( ));
11404 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(s criptState, scriptStateInUserScript, "TestObject", "readonlyShortAttribute", hol der); 11404 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc riptState, scriptStateInUserScript, "TestObject", "readonlyShortAttribute", hold er);
11405 if (v8Value.IsEmpty()) 11405 if (v8Value.IsEmpty())
11406 return false; 11406 return false;
11407 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta te), exceptionState, false); 11407 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta te), exceptionState, false);
11408 RELEASE_ASSERT(!exceptionState.hadException()); 11408 RELEASE_ASSERT(!exceptionState.hadException());
11409 *result = cppValue; 11409 *result = cppValue;
11410 return true; 11410 return true;
11411 } 11411 }
11412 11412
11413 bool V8TestObject::PrivateScript::shortAttributeAttributeGetter(LocalFrame* fram e, TestObject* holderImpl, int* result) 11413 bool V8TestObject::PrivateScript::shortAttributeAttributeGetter(LocalFrame* fram e, TestObject* holderImpl, int* result)
11414 { 11414 {
11415 if (!frame) 11415 if (!frame)
11416 return false; 11416 return false;
11417 v8::HandleScope handleScope(toIsolate(frame)); 11417 v8::HandleScope handleScope(toIsolate(frame));
11418 ScriptForbiddenScope::AllowUserAgentScript script; 11418 ScriptForbiddenScope::AllowUserAgentScript script;
11419 v8::Handle<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrapp erWorld::privateScriptIsolatedWorld()); 11419 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe rWorld::privateScriptIsolatedWorld());
11420 if (contextInPrivateScript.IsEmpty()) 11420 if (contextInPrivateScript.IsEmpty())
11421 return false; 11421 return false;
11422 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); 11422 ScriptState* scriptState = ScriptState::from(contextInPrivateScript);
11423 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); 11423 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame);
11424 if (!scriptState->executionContext()) 11424 if (!scriptState->executionContext())
11425 return false; 11425 return false;
11426 11426
11427 ScriptState::Scope scope(scriptState); 11427 ScriptState::Scope scope(scriptState);
11428 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11428 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
11429 11429
11430 ExceptionState exceptionState(ExceptionState::GetterContext, "shortAttribute ", "TestObject", scriptState->context()->Global(), scriptState->isolate()); 11430 ExceptionState exceptionState(ExceptionState::GetterContext, "shortAttribute ", "TestObject", scriptState->context()->Global(), scriptState->isolate());
11431 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(s criptState, scriptStateInUserScript, "TestObject", "shortAttribute", holder); 11431 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc riptState, scriptStateInUserScript, "TestObject", "shortAttribute", holder);
11432 if (v8Value.IsEmpty()) 11432 if (v8Value.IsEmpty())
11433 return false; 11433 return false;
11434 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta te), exceptionState, false); 11434 TONATIVE_DEFAULT_EXCEPTIONSTATE(int, cppValue, toInt16(v8Value, exceptionSta te), exceptionState, false);
11435 RELEASE_ASSERT(!exceptionState.hadException()); 11435 RELEASE_ASSERT(!exceptionState.hadException());
11436 *result = cppValue; 11436 *result = cppValue;
11437 return true; 11437 return true;
11438 } 11438 }
11439 11439
11440 bool V8TestObject::PrivateScript::shortAttributeAttributeSetter(LocalFrame* fram e, TestObject* holderImpl, int cppValue) 11440 bool V8TestObject::PrivateScript::shortAttributeAttributeSetter(LocalFrame* fram e, TestObject* holderImpl, int cppValue)
11441 { 11441 {
11442 if (!frame) 11442 if (!frame)
11443 return false; 11443 return false;
11444 v8::HandleScope handleScope(toIsolate(frame)); 11444 v8::HandleScope handleScope(toIsolate(frame));
11445 ScriptForbiddenScope::AllowUserAgentScript script; 11445 ScriptForbiddenScope::AllowUserAgentScript script;
11446 v8::Handle<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrapp erWorld::privateScriptIsolatedWorld()); 11446 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe rWorld::privateScriptIsolatedWorld());
11447 if (contextInPrivateScript.IsEmpty()) 11447 if (contextInPrivateScript.IsEmpty())
11448 return false; 11448 return false;
11449 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); 11449 ScriptState* scriptState = ScriptState::from(contextInPrivateScript);
11450 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); 11450 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame);
11451 if (!scriptState->executionContext()) 11451 if (!scriptState->executionContext())
11452 return false; 11452 return false;
11453 11453
11454 ScriptState::Scope scope(scriptState); 11454 ScriptState::Scope scope(scriptState);
11455 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11455 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
11456 11456
11457 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObject", scriptState->context()->Global(), scriptState->isolate()); 11457 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObject", scriptState->context()->Global(), scriptState->isolate());
11458 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "shortAttribute", holder, v8::Integer::New(scriptState ->isolate(), cppValue)); 11458 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "shortAttribute", holder, v8::Integer::New(scriptState ->isolate(), cppValue));
11459 } 11459 }
11460 11460
11461 bool V8TestObject::PrivateScript::stringAttributeAttributeGetter(LocalFrame* fra me, TestObject* holderImpl, String* result) 11461 bool V8TestObject::PrivateScript::stringAttributeAttributeGetter(LocalFrame* fra me, TestObject* holderImpl, String* result)
11462 { 11462 {
11463 if (!frame) 11463 if (!frame)
11464 return false; 11464 return false;
11465 v8::HandleScope handleScope(toIsolate(frame)); 11465 v8::HandleScope handleScope(toIsolate(frame));
11466 ScriptForbiddenScope::AllowUserAgentScript script; 11466 ScriptForbiddenScope::AllowUserAgentScript script;
11467 v8::Handle<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrapp erWorld::privateScriptIsolatedWorld()); 11467 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe rWorld::privateScriptIsolatedWorld());
11468 if (contextInPrivateScript.IsEmpty()) 11468 if (contextInPrivateScript.IsEmpty())
11469 return false; 11469 return false;
11470 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); 11470 ScriptState* scriptState = ScriptState::from(contextInPrivateScript);
11471 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); 11471 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame);
11472 if (!scriptState->executionContext()) 11472 if (!scriptState->executionContext())
11473 return false; 11473 return false;
11474 11474
11475 ScriptState::Scope scope(scriptState); 11475 ScriptState::Scope scope(scriptState);
11476 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11476 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
11477 11477
11478 ExceptionState exceptionState(ExceptionState::GetterContext, "stringAttribut e", "TestObject", scriptState->context()->Global(), scriptState->isolate()); 11478 ExceptionState exceptionState(ExceptionState::GetterContext, "stringAttribut e", "TestObject", scriptState->context()->Global(), scriptState->isolate());
11479 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(s criptState, scriptStateInUserScript, "TestObject", "stringAttribute", holder); 11479 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc riptState, scriptStateInUserScript, "TestObject", "stringAttribute", holder);
11480 if (v8Value.IsEmpty()) 11480 if (v8Value.IsEmpty())
11481 return false; 11481 return false;
11482 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false); 11482 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false);
11483 RELEASE_ASSERT(!exceptionState.hadException()); 11483 RELEASE_ASSERT(!exceptionState.hadException());
11484 *result = cppValue; 11484 *result = cppValue;
11485 return true; 11485 return true;
11486 } 11486 }
11487 11487
11488 bool V8TestObject::PrivateScript::stringAttributeAttributeSetter(LocalFrame* fra me, TestObject* holderImpl, String cppValue) 11488 bool V8TestObject::PrivateScript::stringAttributeAttributeSetter(LocalFrame* fra me, TestObject* holderImpl, String cppValue)
11489 { 11489 {
11490 if (!frame) 11490 if (!frame)
11491 return false; 11491 return false;
11492 v8::HandleScope handleScope(toIsolate(frame)); 11492 v8::HandleScope handleScope(toIsolate(frame));
11493 ScriptForbiddenScope::AllowUserAgentScript script; 11493 ScriptForbiddenScope::AllowUserAgentScript script;
11494 v8::Handle<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrapp erWorld::privateScriptIsolatedWorld()); 11494 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe rWorld::privateScriptIsolatedWorld());
11495 if (contextInPrivateScript.IsEmpty()) 11495 if (contextInPrivateScript.IsEmpty())
11496 return false; 11496 return false;
11497 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); 11497 ScriptState* scriptState = ScriptState::from(contextInPrivateScript);
11498 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); 11498 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame);
11499 if (!scriptState->executionContext()) 11499 if (!scriptState->executionContext())
11500 return false; 11500 return false;
11501 11501
11502 ScriptState::Scope scope(scriptState); 11502 ScriptState::Scope scope(scriptState);
11503 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11503 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
11504 11504
11505 ExceptionState exceptionState(ExceptionState::SetterContext, "stringAttribut e", "TestObject", scriptState->context()->Global(), scriptState->isolate()); 11505 ExceptionState exceptionState(ExceptionState::SetterContext, "stringAttribut e", "TestObject", scriptState->context()->Global(), scriptState->isolate());
11506 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "stringAttribute", holder, v8String(scriptState->isola te(), cppValue)); 11506 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "stringAttribute", holder, v8String(scriptState->isola te(), cppValue));
11507 } 11507 }
11508 11508
11509 bool V8TestObject::PrivateScript::nodeAttributeAttributeGetter(LocalFrame* frame , TestObject* holderImpl, RefPtrWillBeRawPtr<Node>* result) 11509 bool V8TestObject::PrivateScript::nodeAttributeAttributeGetter(LocalFrame* frame , TestObject* holderImpl, RefPtrWillBeRawPtr<Node>* result)
11510 { 11510 {
11511 if (!frame) 11511 if (!frame)
11512 return false; 11512 return false;
11513 v8::HandleScope handleScope(toIsolate(frame)); 11513 v8::HandleScope handleScope(toIsolate(frame));
11514 ScriptForbiddenScope::AllowUserAgentScript script; 11514 ScriptForbiddenScope::AllowUserAgentScript script;
11515 v8::Handle<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrapp erWorld::privateScriptIsolatedWorld()); 11515 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe rWorld::privateScriptIsolatedWorld());
11516 if (contextInPrivateScript.IsEmpty()) 11516 if (contextInPrivateScript.IsEmpty())
11517 return false; 11517 return false;
11518 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); 11518 ScriptState* scriptState = ScriptState::from(contextInPrivateScript);
11519 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); 11519 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame);
11520 if (!scriptState->executionContext()) 11520 if (!scriptState->executionContext())
11521 return false; 11521 return false;
11522 11522
11523 ScriptState::Scope scope(scriptState); 11523 ScriptState::Scope scope(scriptState);
11524 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11524 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
11525 11525
11526 ExceptionState exceptionState(ExceptionState::GetterContext, "nodeAttribute" , "TestObject", scriptState->context()->Global(), scriptState->isolate()); 11526 ExceptionState exceptionState(ExceptionState::GetterContext, "nodeAttribute" , "TestObject", scriptState->context()->Global(), scriptState->isolate());
11527 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(s criptState, scriptStateInUserScript, "TestObject", "nodeAttribute", holder); 11527 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc riptState, scriptStateInUserScript, "TestObject", "nodeAttribute", holder);
11528 if (v8Value.IsEmpty()) 11528 if (v8Value.IsEmpty())
11529 return false; 11529 return false;
11530 Node* cppValue = V8Node::toImplWithTypeCheck(scriptState->isolate(), v8Value ); 11530 Node* cppValue = V8Node::toImplWithTypeCheck(scriptState->isolate(), v8Value );
11531 RELEASE_ASSERT(!exceptionState.hadException()); 11531 RELEASE_ASSERT(!exceptionState.hadException());
11532 *result = cppValue; 11532 *result = cppValue;
11533 return true; 11533 return true;
11534 } 11534 }
11535 11535
11536 bool V8TestObject::PrivateScript::nodeAttributeAttributeSetter(LocalFrame* frame , TestObject* holderImpl, PassRefPtrWillBeRawPtr<Node> cppValue) 11536 bool V8TestObject::PrivateScript::nodeAttributeAttributeSetter(LocalFrame* frame , TestObject* holderImpl, PassRefPtrWillBeRawPtr<Node> cppValue)
11537 { 11537 {
11538 if (!frame) 11538 if (!frame)
11539 return false; 11539 return false;
11540 v8::HandleScope handleScope(toIsolate(frame)); 11540 v8::HandleScope handleScope(toIsolate(frame));
11541 ScriptForbiddenScope::AllowUserAgentScript script; 11541 ScriptForbiddenScope::AllowUserAgentScript script;
11542 v8::Handle<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrapp erWorld::privateScriptIsolatedWorld()); 11542 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe rWorld::privateScriptIsolatedWorld());
11543 if (contextInPrivateScript.IsEmpty()) 11543 if (contextInPrivateScript.IsEmpty())
11544 return false; 11544 return false;
11545 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); 11545 ScriptState* scriptState = ScriptState::from(contextInPrivateScript);
11546 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); 11546 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame);
11547 if (!scriptState->executionContext()) 11547 if (!scriptState->executionContext())
11548 return false; 11548 return false;
11549 11549
11550 ScriptState::Scope scope(scriptState); 11550 ScriptState::Scope scope(scriptState);
11551 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11551 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
11552 11552
11553 ExceptionState exceptionState(ExceptionState::SetterContext, "nodeAttribute" , "TestObject", scriptState->context()->Global(), scriptState->isolate()); 11553 ExceptionState exceptionState(ExceptionState::SetterContext, "nodeAttribute" , "TestObject", scriptState->context()->Global(), scriptState->isolate());
11554 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "nodeAttribute", holder, toV8(cppValue, scriptState->c ontext()->Global(), scriptState->isolate())); 11554 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "nodeAttribute", holder, toV8(cppValue, scriptState->c ontext()->Global(), scriptState->isolate()));
11555 } 11555 }
11556 11556
11557 bool V8TestObject::PrivateScript::attributeForPrivateScriptOnlyAttributeGetter(L ocalFrame* frame, TestObject* holderImpl, String* result) 11557 bool V8TestObject::PrivateScript::attributeForPrivateScriptOnlyAttributeGetter(L ocalFrame* frame, TestObject* holderImpl, String* result)
11558 { 11558 {
11559 if (!frame) 11559 if (!frame)
11560 return false; 11560 return false;
11561 v8::HandleScope handleScope(toIsolate(frame)); 11561 v8::HandleScope handleScope(toIsolate(frame));
11562 ScriptForbiddenScope::AllowUserAgentScript script; 11562 ScriptForbiddenScope::AllowUserAgentScript script;
11563 v8::Handle<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrapp erWorld::privateScriptIsolatedWorld()); 11563 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe rWorld::privateScriptIsolatedWorld());
11564 if (contextInPrivateScript.IsEmpty()) 11564 if (contextInPrivateScript.IsEmpty())
11565 return false; 11565 return false;
11566 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); 11566 ScriptState* scriptState = ScriptState::from(contextInPrivateScript);
11567 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); 11567 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame);
11568 if (!scriptState->executionContext()) 11568 if (!scriptState->executionContext())
11569 return false; 11569 return false;
11570 11570
11571 ScriptState::Scope scope(scriptState); 11571 ScriptState::Scope scope(scriptState);
11572 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11572 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
11573 11573
11574 ExceptionState exceptionState(ExceptionState::GetterContext, "attributeForPr ivateScriptOnly", "TestObject", scriptState->context()->Global(), scriptState->i solate()); 11574 ExceptionState exceptionState(ExceptionState::GetterContext, "attributeForPr ivateScriptOnly", "TestObject", scriptState->context()->Global(), scriptState->i solate());
11575 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(s criptState, scriptStateInUserScript, "TestObject", "attributeForPrivateScriptOnl y", holder); 11575 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc riptState, scriptStateInUserScript, "TestObject", "attributeForPrivateScriptOnly ", holder);
11576 if (v8Value.IsEmpty()) 11576 if (v8Value.IsEmpty())
11577 return false; 11577 return false;
11578 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false); 11578 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false);
11579 RELEASE_ASSERT(!exceptionState.hadException()); 11579 RELEASE_ASSERT(!exceptionState.hadException());
11580 *result = cppValue; 11580 *result = cppValue;
11581 return true; 11581 return true;
11582 } 11582 }
11583 11583
11584 bool V8TestObject::PrivateScript::attributeForPrivateScriptOnlyAttributeSetter(L ocalFrame* frame, TestObject* holderImpl, String cppValue) 11584 bool V8TestObject::PrivateScript::attributeForPrivateScriptOnlyAttributeSetter(L ocalFrame* frame, TestObject* holderImpl, String cppValue)
11585 { 11585 {
11586 if (!frame) 11586 if (!frame)
11587 return false; 11587 return false;
11588 v8::HandleScope handleScope(toIsolate(frame)); 11588 v8::HandleScope handleScope(toIsolate(frame));
11589 ScriptForbiddenScope::AllowUserAgentScript script; 11589 ScriptForbiddenScope::AllowUserAgentScript script;
11590 v8::Handle<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrapp erWorld::privateScriptIsolatedWorld()); 11590 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe rWorld::privateScriptIsolatedWorld());
11591 if (contextInPrivateScript.IsEmpty()) 11591 if (contextInPrivateScript.IsEmpty())
11592 return false; 11592 return false;
11593 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); 11593 ScriptState* scriptState = ScriptState::from(contextInPrivateScript);
11594 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); 11594 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame);
11595 if (!scriptState->executionContext()) 11595 if (!scriptState->executionContext())
11596 return false; 11596 return false;
11597 11597
11598 ScriptState::Scope scope(scriptState); 11598 ScriptState::Scope scope(scriptState);
11599 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11599 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
11600 11600
11601 ExceptionState exceptionState(ExceptionState::SetterContext, "attributeForPr ivateScriptOnly", "TestObject", scriptState->context()->Global(), scriptState->i solate()); 11601 ExceptionState exceptionState(ExceptionState::SetterContext, "attributeForPr ivateScriptOnly", "TestObject", scriptState->context()->Global(), scriptState->i solate());
11602 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "attributeForPrivateScriptOnly", holder, v8String(scri ptState->isolate(), cppValue)); 11602 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "attributeForPrivateScriptOnly", holder, v8String(scri ptState->isolate(), cppValue));
11603 } 11603 }
11604 11604
11605 bool V8TestObject::PrivateScript::enumForPrivateScriptAttributeGetter(LocalFrame * frame, TestObject* holderImpl, String* result) 11605 bool V8TestObject::PrivateScript::enumForPrivateScriptAttributeGetter(LocalFrame * frame, TestObject* holderImpl, String* result)
11606 { 11606 {
11607 if (!frame) 11607 if (!frame)
11608 return false; 11608 return false;
11609 v8::HandleScope handleScope(toIsolate(frame)); 11609 v8::HandleScope handleScope(toIsolate(frame));
11610 ScriptForbiddenScope::AllowUserAgentScript script; 11610 ScriptForbiddenScope::AllowUserAgentScript script;
11611 v8::Handle<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrapp erWorld::privateScriptIsolatedWorld()); 11611 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe rWorld::privateScriptIsolatedWorld());
11612 if (contextInPrivateScript.IsEmpty()) 11612 if (contextInPrivateScript.IsEmpty())
11613 return false; 11613 return false;
11614 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); 11614 ScriptState* scriptState = ScriptState::from(contextInPrivateScript);
11615 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); 11615 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame);
11616 if (!scriptState->executionContext()) 11616 if (!scriptState->executionContext())
11617 return false; 11617 return false;
11618 11618
11619 ScriptState::Scope scope(scriptState); 11619 ScriptState::Scope scope(scriptState);
11620 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11620 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
11621 11621
11622 ExceptionState exceptionState(ExceptionState::GetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 11622 ExceptionState exceptionState(ExceptionState::GetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
11623 v8::Handle<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(s criptState, scriptStateInUserScript, "TestObject", "enumForPrivateScript", holde r); 11623 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMAttributeGetter(sc riptState, scriptStateInUserScript, "TestObject", "enumForPrivateScript", holder );
11624 if (v8Value.IsEmpty()) 11624 if (v8Value.IsEmpty())
11625 return false; 11625 return false;
11626 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false); 11626 TOSTRING_DEFAULT(V8StringResource<>, cppValue, v8Value, false);
11627 RELEASE_ASSERT(!exceptionState.hadException()); 11627 RELEASE_ASSERT(!exceptionState.hadException());
11628 *result = cppValue; 11628 *result = cppValue;
11629 return true; 11629 return true;
11630 } 11630 }
11631 11631
11632 bool V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(LocalFrame * frame, TestObject* holderImpl, String cppValue) 11632 bool V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(LocalFrame * frame, TestObject* holderImpl, String cppValue)
11633 { 11633 {
11634 if (!frame) 11634 if (!frame)
11635 return false; 11635 return false;
11636 v8::HandleScope handleScope(toIsolate(frame)); 11636 v8::HandleScope handleScope(toIsolate(frame));
11637 ScriptForbiddenScope::AllowUserAgentScript script; 11637 ScriptForbiddenScope::AllowUserAgentScript script;
11638 v8::Handle<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrapp erWorld::privateScriptIsolatedWorld()); 11638 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe rWorld::privateScriptIsolatedWorld());
11639 if (contextInPrivateScript.IsEmpty()) 11639 if (contextInPrivateScript.IsEmpty())
11640 return false; 11640 return false;
11641 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); 11641 ScriptState* scriptState = ScriptState::from(contextInPrivateScript);
11642 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); 11642 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame);
11643 if (!scriptState->executionContext()) 11643 if (!scriptState->executionContext())
11644 return false; 11644 return false;
11645 11645
11646 ScriptState::Scope scope(scriptState); 11646 ScriptState::Scope scope(scriptState);
11647 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11647 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
11648 11648
11649 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 11649 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
11650 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 11650 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
11651 } 11651 }
11652 11652
11653 } // namespace blink 11653 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestNode.cpp ('k') | Source/bindings/tests/results/core/V8TestSpecialOperations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698