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

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

Issue 214143003: Bindings: use |holder| local variable in attribute getters and setters (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "HTMLNames.h" 10 #include "HTMLNames.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 namespace WebCore { 62 namespace WebCore {
63 const WrapperTypeInfo V8TestObject::wrapperTypeInfo = { gin::kEmbedderBlink, V8T estObject::domTemplate, V8TestObject::derefObject, 0, V8TestObject::toEventTarge t, 0, V8TestObject::installPerContextEnabledMethods, &V8EventTarget::wrapperType Info, WrapperTypeObjectPrototype, false }; 63 const WrapperTypeInfo V8TestObject::wrapperTypeInfo = { gin::kEmbedderBlink, V8T estObject::domTemplate, V8TestObject::derefObject, 0, V8TestObject::toEventTarge t, 0, V8TestObject::installPerContextEnabledMethods, &V8EventTarget::wrapperType Info, WrapperTypeObjectPrototype, false };
64 64
65 namespace TestObjectV8Internal { 65 namespace TestObjectV8Internal {
66 66
67 template <typename T> void V8_USE(T) { } 67 template <typename T> void V8_USE(T) { }
68 68
69 static void readOnlyLongAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 69 static void readOnlyLongAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
70 { 70 {
71 TestObject* impl = V8TestObject::toNative(info.Holder()); 71 v8::Handle<v8::Object> holder = info.Holder();
72 TestObject* impl = V8TestObject::toNative(holder);
72 v8SetReturnValueInt(info, impl->readOnlyLongAttr()); 73 v8SetReturnValueInt(info, impl->readOnlyLongAttr());
73 } 74 }
74 75
75 static void readOnlyLongAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 76 static void readOnlyLongAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
76 { 77 {
77 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 78 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
78 TestObjectV8Internal::readOnlyLongAttrAttributeGetter(info); 79 TestObjectV8Internal::readOnlyLongAttrAttributeGetter(info);
79 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 80 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
80 } 81 }
81 82
82 static void readOnlyStringAttrAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info) 83 static void readOnlyStringAttrAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info)
83 { 84 {
84 TestObject* impl = V8TestObject::toNative(info.Holder()); 85 v8::Handle<v8::Object> holder = info.Holder();
86 TestObject* impl = V8TestObject::toNative(holder);
85 v8SetReturnValueString(info, impl->readOnlyStringAttr(), info.GetIsolate()); 87 v8SetReturnValueString(info, impl->readOnlyStringAttr(), info.GetIsolate());
86 } 88 }
87 89
88 static void readOnlyStringAttrAttributeGetterCallback(v8::Local<v8::String>, con st v8::PropertyCallbackInfo<v8::Value>& info) 90 static void readOnlyStringAttrAttributeGetterCallback(v8::Local<v8::String>, con st v8::PropertyCallbackInfo<v8::Value>& info)
89 { 91 {
90 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 92 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
91 TestObjectV8Internal::readOnlyStringAttrAttributeGetter(info); 93 TestObjectV8Internal::readOnlyStringAttrAttributeGetter(info);
92 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 94 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
93 } 95 }
94 96
95 static void readOnlyTestObjectAttrAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 97 static void readOnlyTestObjectAttrAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
96 { 98 {
97 TestObject* impl = V8TestObject::toNative(info.Holder()); 99 v8::Handle<v8::Object> holder = info.Holder();
100 TestObject* impl = V8TestObject::toNative(holder);
98 RefPtr<TestObject> result(impl->readOnlyTestObjectAttr()); 101 RefPtr<TestObject> result(impl->readOnlyTestObjectAttr());
99 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestObject>(info.Get ReturnValue(), result.get())) 102 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestObject>(info.Get ReturnValue(), result.get()))
100 return; 103 return;
101 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs olate()); 104 v8::Handle<v8::Value> wrapper = toV8(result.get(), holder, info.GetIsolate() );
102 if (!wrapper.IsEmpty()) { 105 if (!wrapper.IsEmpty()) {
103 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8Atomic String(info.GetIsolate(), "readOnlyTestObjectAttr"), wrapper); 106 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "readOnlyTestObjectAttr"), wrapper);
104 v8SetReturnValue(info, wrapper); 107 v8SetReturnValue(info, wrapper);
105 } 108 }
106 } 109 }
107 110
108 static void readOnlyTestObjectAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 111 static void readOnlyTestObjectAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
109 { 112 {
110 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 113 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
111 TestObjectV8Internal::readOnlyTestObjectAttrAttributeGetter(info); 114 TestObjectV8Internal::readOnlyTestObjectAttrAttributeGetter(info);
112 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 115 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
113 } 116 }
(...skipping 30 matching lines...) Expand all
144 147
145 static void staticStringAttrAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 148 static void staticStringAttrAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
146 { 149 {
147 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 150 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
148 TestObjectV8Internal::staticStringAttrAttributeSetter(jsValue, info); 151 TestObjectV8Internal::staticStringAttrAttributeSetter(jsValue, info);
149 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 152 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
150 } 153 }
151 154
152 static void enumAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& i nfo) 155 static void enumAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& i nfo)
153 { 156 {
154 TestObject* impl = V8TestObject::toNative(info.Holder()); 157 v8::Handle<v8::Object> holder = info.Holder();
158 TestObject* impl = V8TestObject::toNative(holder);
155 v8SetReturnValueString(info, impl->enumAttr(), info.GetIsolate()); 159 v8SetReturnValueString(info, impl->enumAttr(), info.GetIsolate());
156 } 160 }
157 161
158 static void enumAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::Pro pertyCallbackInfo<v8::Value>& info) 162 static void enumAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::Pro pertyCallbackInfo<v8::Value>& info)
159 { 163 {
160 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 164 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
161 TestObjectV8Internal::enumAttrAttributeGetter(info); 165 TestObjectV8Internal::enumAttrAttributeGetter(info);
162 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 166 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
163 } 167 }
164 168
165 static void enumAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Prop ertyCallbackInfo<void>& info) 169 static void enumAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Prop ertyCallbackInfo<void>& info)
166 { 170 {
167 TestObject* impl = V8TestObject::toNative(info.Holder()); 171 v8::Handle<v8::Object> holder = info.Holder();
172 TestObject* impl = V8TestObject::toNative(holder);
168 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 173 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
169 String string = cppValue; 174 String string = cppValue;
170 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st ring == "EnumValue3")) 175 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st ring == "EnumValue3"))
171 return; 176 return;
172 impl->setEnumAttr(cppValue); 177 impl->setEnumAttr(cppValue);
173 } 178 }
174 179
175 static void enumAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8: :Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 180 static void enumAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8: :Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
176 { 181 {
177 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 182 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
178 TestObjectV8Internal::enumAttrAttributeSetter(jsValue, info); 183 TestObjectV8Internal::enumAttrAttributeSetter(jsValue, info);
179 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 184 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
180 } 185 }
181 186
182 static void readOnlyEnumAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 187 static void readOnlyEnumAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
183 { 188 {
184 TestObject* impl = V8TestObject::toNative(info.Holder()); 189 v8::Handle<v8::Object> holder = info.Holder();
190 TestObject* impl = V8TestObject::toNative(holder);
185 v8SetReturnValueString(info, impl->readOnlyEnumAttr(), info.GetIsolate()); 191 v8SetReturnValueString(info, impl->readOnlyEnumAttr(), info.GetIsolate());
186 } 192 }
187 193
188 static void readOnlyEnumAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 194 static void readOnlyEnumAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
189 { 195 {
190 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 196 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
191 TestObjectV8Internal::readOnlyEnumAttrAttributeGetter(info); 197 TestObjectV8Internal::readOnlyEnumAttrAttributeGetter(info);
192 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 198 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
193 } 199 }
194 200
195 static void byteAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& i nfo) 201 static void byteAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& i nfo)
196 { 202 {
197 TestObject* impl = V8TestObject::toNative(info.Holder()); 203 v8::Handle<v8::Object> holder = info.Holder();
204 TestObject* impl = V8TestObject::toNative(holder);
198 v8SetReturnValueInt(info, impl->byteAttr()); 205 v8SetReturnValueInt(info, impl->byteAttr());
199 } 206 }
200 207
201 static void byteAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::Pro pertyCallbackInfo<v8::Value>& info) 208 static void byteAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::Pro pertyCallbackInfo<v8::Value>& info)
202 { 209 {
203 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 210 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
204 TestObjectV8Internal::byteAttrAttributeGetter(info); 211 TestObjectV8Internal::byteAttrAttributeGetter(info);
205 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 212 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
206 } 213 }
207 214
208 static void byteAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Prop ertyCallbackInfo<void>& info) 215 static void byteAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Prop ertyCallbackInfo<void>& info)
209 { 216 {
210 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttr", "Te stObject", info.Holder(), info.GetIsolate()); 217 v8::Handle<v8::Object> holder = info.Holder();
211 TestObject* impl = V8TestObject::toNative(info.Holder()); 218 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttr", "Te stObject", holder, info.GetIsolate());
219 TestObject* impl = V8TestObject::toNative(holder);
212 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt8(jsValue, exceptionState), ex ceptionState); 220 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt8(jsValue, exceptionState), ex ceptionState);
213 impl->setByteAttr(cppValue); 221 impl->setByteAttr(cppValue);
214 } 222 }
215 223
216 static void byteAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8: :Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 224 static void byteAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8: :Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
217 { 225 {
218 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 226 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
219 TestObjectV8Internal::byteAttrAttributeSetter(jsValue, info); 227 TestObjectV8Internal::byteAttrAttributeSetter(jsValue, info);
220 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 228 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
221 } 229 }
222 230
223 static void octetAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 231 static void octetAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
224 { 232 {
225 TestObject* impl = V8TestObject::toNative(info.Holder()); 233 v8::Handle<v8::Object> holder = info.Holder();
234 TestObject* impl = V8TestObject::toNative(holder);
226 v8SetReturnValueUnsigned(info, impl->octetAttr()); 235 v8SetReturnValueUnsigned(info, impl->octetAttr());
227 } 236 }
228 237
229 static void octetAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::Pr opertyCallbackInfo<v8::Value>& info) 238 static void octetAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::Pr opertyCallbackInfo<v8::Value>& info)
230 { 239 {
231 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 240 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
232 TestObjectV8Internal::octetAttrAttributeGetter(info); 241 TestObjectV8Internal::octetAttrAttributeGetter(info);
233 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 242 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
234 } 243 }
235 244
236 static void octetAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Pro pertyCallbackInfo<void>& info) 245 static void octetAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Pro pertyCallbackInfo<void>& info)
237 { 246 {
238 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttr", "T estObject", info.Holder(), info.GetIsolate()); 247 v8::Handle<v8::Object> holder = info.Holder();
239 TestObject* impl = V8TestObject::toNative(info.Holder()); 248 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttr", "T estObject", holder, info.GetIsolate());
249 TestObject* impl = V8TestObject::toNative(holder);
240 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt8(jsValue, exceptionStat e), exceptionState); 250 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt8(jsValue, exceptionStat e), exceptionState);
241 impl->setOctetAttr(cppValue); 251 impl->setOctetAttr(cppValue);
242 } 252 }
243 253
244 static void octetAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8 ::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 254 static void octetAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8 ::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
245 { 255 {
246 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 256 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
247 TestObjectV8Internal::octetAttrAttributeSetter(jsValue, info); 257 TestObjectV8Internal::octetAttrAttributeSetter(jsValue, info);
248 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 258 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
249 } 259 }
250 260
251 static void shortAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 261 static void shortAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
252 { 262 {
253 TestObject* impl = V8TestObject::toNative(info.Holder()); 263 v8::Handle<v8::Object> holder = info.Holder();
264 TestObject* impl = V8TestObject::toNative(holder);
254 v8SetReturnValueInt(info, impl->shortAttr()); 265 v8SetReturnValueInt(info, impl->shortAttr());
255 } 266 }
256 267
257 static void shortAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::Pr opertyCallbackInfo<v8::Value>& info) 268 static void shortAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::Pr opertyCallbackInfo<v8::Value>& info)
258 { 269 {
259 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 270 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
260 TestObjectV8Internal::shortAttrAttributeGetter(info); 271 TestObjectV8Internal::shortAttrAttributeGetter(info);
261 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 272 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
262 } 273 }
263 274
264 static void shortAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Pro pertyCallbackInfo<void>& info) 275 static void shortAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Pro pertyCallbackInfo<void>& info)
265 { 276 {
266 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttr", "T estObject", info.Holder(), info.GetIsolate()); 277 v8::Handle<v8::Object> holder = info.Holder();
267 TestObject* impl = V8TestObject::toNative(info.Holder()); 278 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttr", "T estObject", holder, info.GetIsolate());
279 TestObject* impl = V8TestObject::toNative(holder);
268 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt16(jsValue, exceptionState), e xceptionState); 280 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt16(jsValue, exceptionState), e xceptionState);
269 impl->setShortAttr(cppValue); 281 impl->setShortAttr(cppValue);
270 } 282 }
271 283
272 static void shortAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8 ::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 284 static void shortAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8 ::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
273 { 285 {
274 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 286 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
275 TestObjectV8Internal::shortAttrAttributeSetter(jsValue, info); 287 TestObjectV8Internal::shortAttrAttributeSetter(jsValue, info);
276 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 288 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
277 } 289 }
278 290
279 static void unsignedShortAttrAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info) 291 static void unsignedShortAttrAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info)
280 { 292 {
281 TestObject* impl = V8TestObject::toNative(info.Holder()); 293 v8::Handle<v8::Object> holder = info.Holder();
294 TestObject* impl = V8TestObject::toNative(holder);
282 v8SetReturnValueUnsigned(info, impl->unsignedShortAttr()); 295 v8SetReturnValueUnsigned(info, impl->unsignedShortAttr());
283 } 296 }
284 297
285 static void unsignedShortAttrAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 298 static void unsignedShortAttrAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info)
286 { 299 {
287 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 300 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
288 TestObjectV8Internal::unsignedShortAttrAttributeGetter(info); 301 TestObjectV8Internal::unsignedShortAttrAttributeGetter(info);
289 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 302 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
290 } 303 }
291 304
292 static void unsignedShortAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 305 static void unsignedShortAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
293 { 306 {
294 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA ttr", "TestObject", info.Holder(), info.GetIsolate()); 307 v8::Handle<v8::Object> holder = info.Holder();
295 TestObject* impl = V8TestObject::toNative(info.Holder()); 308 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA ttr", "TestObject", holder, info.GetIsolate());
309 TestObject* impl = V8TestObject::toNative(holder);
296 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt16(jsValue, exceptionSta te), exceptionState); 310 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt16(jsValue, exceptionSta te), exceptionState);
297 impl->setUnsignedShortAttr(cppValue); 311 impl->setUnsignedShortAttr(cppValue);
298 } 312 }
299 313
300 static void unsignedShortAttrAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 314 static void unsignedShortAttrAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
301 { 315 {
302 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 316 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
303 TestObjectV8Internal::unsignedShortAttrAttributeSetter(jsValue, info); 317 TestObjectV8Internal::unsignedShortAttrAttributeSetter(jsValue, info);
304 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 318 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
305 } 319 }
306 320
307 static void longAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& i nfo) 321 static void longAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& i nfo)
308 { 322 {
309 TestObject* impl = V8TestObject::toNative(info.Holder()); 323 v8::Handle<v8::Object> holder = info.Holder();
324 TestObject* impl = V8TestObject::toNative(holder);
310 v8SetReturnValueInt(info, impl->longAttr()); 325 v8SetReturnValueInt(info, impl->longAttr());
311 } 326 }
312 327
313 static void longAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::Pro pertyCallbackInfo<v8::Value>& info) 328 static void longAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::Pro pertyCallbackInfo<v8::Value>& info)
314 { 329 {
315 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 330 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
316 TestObjectV8Internal::longAttrAttributeGetter(info); 331 TestObjectV8Internal::longAttrAttributeGetter(info);
317 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 332 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
318 } 333 }
319 334
320 static void longAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Prop ertyCallbackInfo<void>& info) 335 static void longAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Prop ertyCallbackInfo<void>& info)
321 { 336 {
322 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttr", "Te stObject", info.Holder(), info.GetIsolate()); 337 v8::Handle<v8::Object> holder = info.Holder();
323 TestObject* impl = V8TestObject::toNative(info.Holder()); 338 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttr", "Te stObject", holder, info.GetIsolate());
339 TestObject* impl = V8TestObject::toNative(holder);
324 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 340 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
325 impl->setLongAttr(cppValue); 341 impl->setLongAttr(cppValue);
326 } 342 }
327 343
328 static void longAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8: :Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 344 static void longAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8: :Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
329 { 345 {
330 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 346 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
331 TestObjectV8Internal::longAttrAttributeSetter(jsValue, info); 347 TestObjectV8Internal::longAttrAttributeSetter(jsValue, info);
332 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 348 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
333 } 349 }
334 350
335 static void longLongAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 351 static void longLongAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info)
336 { 352 {
337 TestObject* impl = V8TestObject::toNative(info.Holder()); 353 v8::Handle<v8::Object> holder = info.Holder();
354 TestObject* impl = V8TestObject::toNative(holder);
338 v8SetReturnValue(info, static_cast<double>(impl->longLongAttr())); 355 v8SetReturnValue(info, static_cast<double>(impl->longLongAttr()));
339 } 356 }
340 357
341 static void longLongAttrAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info) 358 static void longLongAttrAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info)
342 { 359 {
343 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 360 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
344 TestObjectV8Internal::longLongAttrAttributeGetter(info); 361 TestObjectV8Internal::longLongAttrAttributeGetter(info);
345 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 362 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
346 } 363 }
347 364
348 static void longLongAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8:: PropertyCallbackInfo<void>& info) 365 static void longLongAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8:: PropertyCallbackInfo<void>& info)
349 { 366 {
350 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttr", "TestObject", info.Holder(), info.GetIsolate()); 367 v8::Handle<v8::Object> holder = info.Holder();
351 TestObject* impl = V8TestObject::toNative(info.Holder()); 368 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttr", "TestObject", holder, info.GetIsolate());
369 TestObject* impl = V8TestObject::toNative(holder);
352 V8TRYCATCH_EXCEPTION_VOID(long long, cppValue, toInt64(jsValue, exceptionSta te), exceptionState); 370 V8TRYCATCH_EXCEPTION_VOID(long long, cppValue, toInt64(jsValue, exceptionSta te), exceptionState);
353 impl->setLongLongAttr(cppValue); 371 impl->setLongLongAttr(cppValue);
354 } 372 }
355 373
356 static void longLongAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 374 static void longLongAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
357 { 375 {
358 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 376 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
359 TestObjectV8Internal::longLongAttrAttributeSetter(jsValue, info); 377 TestObjectV8Internal::longLongAttrAttributeSetter(jsValue, info);
360 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 378 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
361 } 379 }
362 380
363 static void unsignedLongLongAttrAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 381 static void unsignedLongLongAttrAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
364 { 382 {
365 TestObject* impl = V8TestObject::toNative(info.Holder()); 383 v8::Handle<v8::Object> holder = info.Holder();
384 TestObject* impl = V8TestObject::toNative(holder);
366 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttr())); 385 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttr()));
367 } 386 }
368 387
369 static void unsignedLongLongAttrAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 388 static void unsignedLongLongAttrAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
370 { 389 {
371 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 390 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
372 TestObjectV8Internal::unsignedLongLongAttrAttributeGetter(info); 391 TestObjectV8Internal::unsignedLongLongAttrAttributeGetter(info);
373 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 392 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
374 } 393 }
375 394
376 static void unsignedLongLongAttrAttributeSetter(v8::Local<v8::Value> jsValue, co nst v8::PropertyCallbackInfo<void>& info) 395 static void unsignedLongLongAttrAttributeSetter(v8::Local<v8::Value> jsValue, co nst v8::PropertyCallbackInfo<void>& info)
377 { 396 {
378 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo ngAttr", "TestObject", info.Holder(), info.GetIsolate()); 397 v8::Handle<v8::Object> holder = info.Holder();
379 TestObject* impl = V8TestObject::toNative(info.Holder()); 398 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo ngAttr", "TestObject", holder, info.GetIsolate());
399 TestObject* impl = V8TestObject::toNative(holder);
380 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, cppValue, toUInt64(jsValue, ex ceptionState), exceptionState); 400 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, cppValue, toUInt64(jsValue, ex ceptionState), exceptionState);
381 impl->setUnsignedLongLongAttr(cppValue); 401 impl->setUnsignedLongLongAttr(cppValue);
382 } 402 }
383 403
384 static void unsignedLongLongAttrAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 404 static void unsignedLongLongAttrAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
385 { 405 {
386 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 406 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
387 TestObjectV8Internal::unsignedLongLongAttrAttributeSetter(jsValue, info); 407 TestObjectV8Internal::unsignedLongLongAttrAttributeSetter(jsValue, info);
388 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 408 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
389 } 409 }
390 410
391 static void stringAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 411 static void stringAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
392 { 412 {
393 TestObject* impl = V8TestObject::toNative(info.Holder()); 413 v8::Handle<v8::Object> holder = info.Holder();
414 TestObject* impl = V8TestObject::toNative(holder);
394 v8SetReturnValueString(info, impl->stringAttr(), info.GetIsolate()); 415 v8SetReturnValueString(info, impl->stringAttr(), info.GetIsolate());
395 } 416 }
396 417
397 static void stringAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::P ropertyCallbackInfo<v8::Value>& info) 418 static void stringAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::P ropertyCallbackInfo<v8::Value>& info)
398 { 419 {
399 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 420 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
400 TestObjectV8Internal::stringAttrAttributeGetter(info); 421 TestObjectV8Internal::stringAttrAttributeGetter(info);
401 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 422 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
402 } 423 }
403 424
404 static void stringAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Pr opertyCallbackInfo<void>& info) 425 static void stringAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Pr opertyCallbackInfo<void>& info)
405 { 426 {
406 TestObject* impl = V8TestObject::toNative(info.Holder()); 427 v8::Handle<v8::Object> holder = info.Holder();
428 TestObject* impl = V8TestObject::toNative(holder);
407 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 429 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
408 impl->setStringAttr(cppValue); 430 impl->setStringAttr(cppValue);
409 } 431 }
410 432
411 static void stringAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v 8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 433 static void stringAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v 8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
412 { 434 {
413 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 435 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
414 TestObjectV8Internal::stringAttrAttributeSetter(jsValue, info); 436 TestObjectV8Internal::stringAttrAttributeSetter(jsValue, info);
415 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 437 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
416 } 438 }
417 439
418 static void treatNullAsNullStringStringAttrAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info) 440 static void treatNullAsNullStringStringAttrAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info)
419 { 441 {
420 TestObject* impl = V8TestObject::toNative(info.Holder()); 442 v8::Handle<v8::Object> holder = info.Holder();
443 TestObject* impl = V8TestObject::toNative(holder);
421 v8SetReturnValueString(info, impl->treatNullAsNullStringStringAttr(), info.G etIsolate()); 444 v8SetReturnValueString(info, impl->treatNullAsNullStringStringAttr(), info.G etIsolate());
422 } 445 }
423 446
424 static void treatNullAsNullStringStringAttrAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info) 447 static void treatNullAsNullStringStringAttrAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info)
425 { 448 {
426 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 449 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
427 TestObjectV8Internal::treatNullAsNullStringStringAttrAttributeGetter(info); 450 TestObjectV8Internal::treatNullAsNullStringStringAttrAttributeGetter(info);
428 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 451 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
429 } 452 }
430 453
431 static void treatNullAsNullStringStringAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 454 static void treatNullAsNullStringStringAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
432 { 455 {
433 TestObject* impl = V8TestObject::toNative(info.Holder()); 456 v8::Handle<v8::Object> holder = info.Holder();
457 TestObject* impl = V8TestObject::toNative(holder);
434 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, cppVal ue, jsValue); 458 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, cppVal ue, jsValue);
435 impl->setTreatNullAsNullStringStringAttr(cppValue); 459 impl->setTreatNullAsNullStringStringAttr(cppValue);
436 } 460 }
437 461
438 static void treatNullAsNullStringStringAttrAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in fo) 462 static void treatNullAsNullStringStringAttrAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in fo)
439 { 463 {
440 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 464 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
441 TestObjectV8Internal::treatNullAsNullStringStringAttrAttributeSetter(jsValue , info); 465 TestObjectV8Internal::treatNullAsNullStringStringAttrAttributeSetter(jsValue , info);
442 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 466 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
443 } 467 }
444 468
445 static void treatNullAsNullStringTreatUndefinedAsNullStringStringAttrAttributeGe tter(const v8::PropertyCallbackInfo<v8::Value>& info) 469 static void treatNullAsNullStringTreatUndefinedAsNullStringStringAttrAttributeGe tter(const v8::PropertyCallbackInfo<v8::Value>& info)
446 { 470 {
447 TestObject* impl = V8TestObject::toNative(info.Holder()); 471 v8::Handle<v8::Object> holder = info.Holder();
472 TestObject* impl = V8TestObject::toNative(holder);
448 v8SetReturnValueString(info, impl->treatNullAsNullStringTreatUndefinedAsNull StringStringAttr(), info.GetIsolate()); 473 v8SetReturnValueString(info, impl->treatNullAsNullStringTreatUndefinedAsNull StringStringAttr(), info.GetIsolate());
449 } 474 }
450 475
451 static void treatNullAsNullStringTreatUndefinedAsNullStringStringAttrAttributeGe tterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& i nfo) 476 static void treatNullAsNullStringTreatUndefinedAsNullStringStringAttrAttributeGe tterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& i nfo)
452 { 477 {
453 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 478 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
454 TestObjectV8Internal::treatNullAsNullStringTreatUndefinedAsNullStringStringA ttrAttributeGetter(info); 479 TestObjectV8Internal::treatNullAsNullStringTreatUndefinedAsNullStringStringA ttrAttributeGetter(info);
455 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 480 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
456 } 481 }
457 482
458 static void treatNullAsNullStringTreatUndefinedAsNullStringStringAttrAttributeSe tter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 483 static void treatNullAsNullStringTreatUndefinedAsNullStringStringAttrAttributeSe tter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
459 { 484 {
460 TestObject* impl = V8TestObject::toNative(info.Holder()); 485 v8::Handle<v8::Object> holder = info.Holder();
486 TestObject* impl = V8TestObject::toNative(holder);
461 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullChe ck>, cppValue, jsValue); 487 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullChe ck>, cppValue, jsValue);
462 impl->setTreatNullAsNullStringTreatUndefinedAsNullStringStringAttr(cppValue) ; 488 impl->setTreatNullAsNullStringTreatUndefinedAsNullStringStringAttr(cppValue) ;
463 } 489 }
464 490
465 static void treatNullAsNullStringTreatUndefinedAsNullStringStringAttrAttributeSe tterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::Prop ertyCallbackInfo<void>& info) 491 static void treatNullAsNullStringTreatUndefinedAsNullStringStringAttrAttributeSe tterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::Prop ertyCallbackInfo<void>& info)
466 { 492 {
467 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 493 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
468 TestObjectV8Internal::treatNullAsNullStringTreatUndefinedAsNullStringStringA ttrAttributeSetter(jsValue, info); 494 TestObjectV8Internal::treatNullAsNullStringTreatUndefinedAsNullStringStringA ttrAttributeSetter(jsValue, info);
469 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 495 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
470 } 496 }
471 497
472 static void eventHandlerAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 498 static void eventHandlerAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
473 { 499 {
474 TestObject* impl = V8TestObject::toNative(info.Holder()); 500 v8::Handle<v8::Object> holder = info.Holder();
501 TestObject* impl = V8TestObject::toNative(holder);
475 EventListener* jsValue = impl->eventHandlerAttr(); 502 EventListener* jsValue = impl->eventHandlerAttr();
476 v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListen er::cast(jsValue)->getListenerObject(impl->executionContext())) : v8::Handle<v8: :Value>(v8::Null(info.GetIsolate()))); 503 v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListen er::cast(jsValue)->getListenerObject(impl->executionContext())) : v8::Handle<v8: :Value>(v8::Null(info.GetIsolate())));
477 } 504 }
478 505
479 static void eventHandlerAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 506 static void eventHandlerAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
480 { 507 {
481 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 508 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
482 TestObjectV8Internal::eventHandlerAttrAttributeGetter(info); 509 TestObjectV8Internal::eventHandlerAttrAttributeGetter(info);
483 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 510 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
484 } 511 }
485 512
486 static void eventHandlerAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 513 static void eventHandlerAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
487 { 514 {
488 TestObject* impl = V8TestObject::toNative(info.Holder()); 515 v8::Handle<v8::Object> holder = info.Holder();
489 moveEventListenerToNewWrapper(info.Holder(), impl->eventHandlerAttr(), jsVal ue, V8TestObject::eventListenerCacheIndex, info.GetIsolate()); 516 TestObject* impl = V8TestObject::toNative(holder);
517 moveEventListenerToNewWrapper(holder, impl->eventHandlerAttr(), jsValue, V8T estObject::eventListenerCacheIndex, info.GetIsolate());
490 impl->setEventHandlerAttr(V8EventListenerList::getEventListener(jsValue, tru e, ListenerFindOrCreate)); 518 impl->setEventHandlerAttr(V8EventListenerList::getEventListener(jsValue, tru e, ListenerFindOrCreate));
491 } 519 }
492 520
493 static void eventHandlerAttrAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 521 static void eventHandlerAttrAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
494 { 522 {
495 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 523 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
496 TestObjectV8Internal::eventHandlerAttrAttributeSetter(jsValue, info); 524 TestObjectV8Internal::eventHandlerAttrAttributeSetter(jsValue, info);
497 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 525 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
498 } 526 }
499 527
500 static void testObjAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Value> & info) 528 static void testObjAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Value> & info)
501 { 529 {
502 TestObject* impl = V8TestObject::toNative(info.Holder()); 530 v8::Handle<v8::Object> holder = info.Holder();
531 TestObject* impl = V8TestObject::toNative(holder);
503 v8SetReturnValueFast(info, WTF::getPtr(impl->testObjAttr()), impl); 532 v8SetReturnValueFast(info, WTF::getPtr(impl->testObjAttr()), impl);
504 } 533 }
505 534
506 static void testObjAttrAttributeGetterCallback(v8::Local<v8::String>, const v8:: PropertyCallbackInfo<v8::Value>& info) 535 static void testObjAttrAttributeGetterCallback(v8::Local<v8::String>, const v8:: PropertyCallbackInfo<v8::Value>& info)
507 { 536 {
508 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 537 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
509 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature); 538 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature);
510 TestObjectV8Internal::testObjAttrAttributeGetter(info); 539 TestObjectV8Internal::testObjAttrAttributeGetter(info);
511 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 540 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
512 } 541 }
513 542
514 static void testObjAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::P ropertyCallbackInfo<void>& info) 543 static void testObjAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::P ropertyCallbackInfo<void>& info)
515 { 544 {
516 TestObject* impl = V8TestObject::toNative(info.Holder()); 545 v8::Handle<v8::Object> holder = info.Holder();
546 TestObject* impl = V8TestObject::toNative(holder);
517 V8TRYCATCH_VOID(TestObject*, cppValue, V8TestObject::toNativeWithTypeCheck(i nfo.GetIsolate(), jsValue)); 547 V8TRYCATCH_VOID(TestObject*, cppValue, V8TestObject::toNativeWithTypeCheck(i nfo.GetIsolate(), jsValue));
518 impl->setTestObjAttr(WTF::getPtr(cppValue)); 548 impl->setTestObjAttr(WTF::getPtr(cppValue));
519 } 549 }
520 550
521 static void testObjAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local< v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 551 static void testObjAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local< v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
522 { 552 {
523 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 553 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
524 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature); 554 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature);
525 TestObjectV8Internal::testObjAttrAttributeSetter(jsValue, info); 555 TestObjectV8Internal::testObjAttrAttributeSetter(jsValue, info);
526 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 556 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
527 } 557 }
528 558
529 static void attrWithJSGetterAndSetterAttributeGetter(const v8::FunctionCallbackI nfo<v8::Value>& info) 559 static void attrWithJSGetterAndSetterAttributeGetter(const v8::FunctionCallbackI nfo<v8::Value>& info)
530 { 560 {
531 TestObject* impl = V8TestObject::toNative(info.Holder()); 561 v8::Handle<v8::Object> holder = info.Holder();
562 TestObject* impl = V8TestObject::toNative(holder);
532 v8SetReturnValueString(info, impl->attrWithJSGetterAndSetter(), info.GetIsol ate()); 563 v8SetReturnValueString(info, impl->attrWithJSGetterAndSetter(), info.GetIsol ate());
533 } 564 }
534 565
535 static void attrWithJSGetterAndSetterAttributeGetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 566 static void attrWithJSGetterAndSetterAttributeGetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
536 { 567 {
537 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 568 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
538 TestObjectV8Internal::attrWithJSGetterAndSetterAttributeGetter(info); 569 TestObjectV8Internal::attrWithJSGetterAndSetterAttributeGetter(info);
539 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 570 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
540 } 571 }
541 572
542 static void attrWithJSGetterAndSetterAttributeSetter(v8::Local<v8::Value> jsValu e, const v8::FunctionCallbackInfo<v8::Value>& info) 573 static void attrWithJSGetterAndSetterAttributeSetter(v8::Local<v8::Value> jsValu e, const v8::FunctionCallbackInfo<v8::Value>& info)
543 { 574 {
544 TestObject* impl = V8TestObject::toNative(info.Holder()); 575 v8::Handle<v8::Object> holder = info.Holder();
576 TestObject* impl = V8TestObject::toNative(holder);
545 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 577 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
546 impl->setAttrWithJSGetterAndSetter(cppValue); 578 impl->setAttrWithJSGetterAndSetter(cppValue);
547 } 579 }
548 580
549 static void attrWithJSGetterAndSetterAttributeSetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 581 static void attrWithJSGetterAndSetterAttributeSetterCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
550 { 582 {
551 v8::Local<v8::Value> jsValue = info[0]; 583 v8::Local<v8::Value> jsValue = info[0];
552 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 584 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
553 TestObjectV8Internal::attrWithJSGetterAndSetterAttributeSetter(jsValue, info ); 585 TestObjectV8Internal::attrWithJSGetterAndSetterAttributeSetter(jsValue, info );
554 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 586 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
555 } 587 }
556 588
557 static void XMLObjAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 589 static void XMLObjAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
558 { 590 {
559 TestObject* impl = V8TestObject::toNative(info.Holder()); 591 v8::Handle<v8::Object> holder = info.Holder();
592 TestObject* impl = V8TestObject::toNative(holder);
560 v8SetReturnValueFast(info, WTF::getPtr(impl->xmlObjAttr()), impl); 593 v8SetReturnValueFast(info, WTF::getPtr(impl->xmlObjAttr()), impl);
561 } 594 }
562 595
563 static void XMLObjAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::P ropertyCallbackInfo<v8::Value>& info) 596 static void XMLObjAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::P ropertyCallbackInfo<v8::Value>& info)
564 { 597 {
565 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 598 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
566 TestObjectV8Internal::XMLObjAttrAttributeGetter(info); 599 TestObjectV8Internal::XMLObjAttrAttributeGetter(info);
567 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 600 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
568 } 601 }
569 602
570 static void XMLObjAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Pr opertyCallbackInfo<void>& info) 603 static void XMLObjAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Pr opertyCallbackInfo<void>& info)
571 { 604 {
572 TestObject* impl = V8TestObject::toNative(info.Holder()); 605 v8::Handle<v8::Object> holder = info.Holder();
606 TestObject* impl = V8TestObject::toNative(holder);
573 V8TRYCATCH_VOID(TestObject*, cppValue, V8TestObject::toNativeWithTypeCheck(i nfo.GetIsolate(), jsValue)); 607 V8TRYCATCH_VOID(TestObject*, cppValue, V8TestObject::toNativeWithTypeCheck(i nfo.GetIsolate(), jsValue));
574 impl->setXMLObjAttr(WTF::getPtr(cppValue)); 608 impl->setXMLObjAttr(WTF::getPtr(cppValue));
575 } 609 }
576 610
577 static void XMLObjAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v 8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 611 static void XMLObjAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v 8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
578 { 612 {
579 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 613 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
580 TestObjectV8Internal::XMLObjAttrAttributeSetter(jsValue, info); 614 TestObjectV8Internal::XMLObjAttrAttributeSetter(jsValue, info);
581 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 615 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
582 } 616 }
583 617
584 static void reflectedStringAttrAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 618 static void reflectedStringAttrAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
585 { 619 {
586 TestObject* impl = V8TestObject::toNative(info.Holder()); 620 v8::Handle<v8::Object> holder = info.Holder();
621 TestObject* impl = V8TestObject::toNative(holder);
587 v8SetReturnValueString(info, impl->fastGetAttribute(HTMLNames::reflectedstri ngattrAttr), info.GetIsolate()); 622 v8SetReturnValueString(info, impl->fastGetAttribute(HTMLNames::reflectedstri ngattrAttr), info.GetIsolate());
588 } 623 }
589 624
590 static void reflectedStringAttrAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 625 static void reflectedStringAttrAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
591 { 626 {
592 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 627 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
593 TestObjectV8Internal::reflectedStringAttrAttributeGetter(info); 628 TestObjectV8Internal::reflectedStringAttrAttributeGetter(info);
594 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 629 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
595 } 630 }
596 631
597 static void reflectedStringAttrAttributeSetter(v8::Local<v8::Value> jsValue, con st v8::PropertyCallbackInfo<void>& info) 632 static void reflectedStringAttrAttributeSetter(v8::Local<v8::Value> jsValue, con st v8::PropertyCallbackInfo<void>& info)
598 { 633 {
599 TestObject* impl = V8TestObject::toNative(info.Holder()); 634 v8::Handle<v8::Object> holder = info.Holder();
635 TestObject* impl = V8TestObject::toNative(holder);
600 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 636 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
601 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 637 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
602 impl->setAttribute(HTMLNames::reflectedstringattrAttr, cppValue); 638 impl->setAttribute(HTMLNames::reflectedstringattrAttr, cppValue);
603 } 639 }
604 640
605 static void reflectedStringAttrAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 641 static void reflectedStringAttrAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
606 { 642 {
607 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 643 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
608 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 644 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
609 TestObjectV8Internal::reflectedStringAttrAttributeSetter(jsValue, info); 645 TestObjectV8Internal::reflectedStringAttrAttributeSetter(jsValue, info);
610 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 646 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
611 } 647 }
612 648
613 static void reflectedTreatNullAsNullStringStringAttrAttributeGetter(const v8::Pr opertyCallbackInfo<v8::Value>& info) 649 static void reflectedTreatNullAsNullStringStringAttrAttributeGetter(const v8::Pr opertyCallbackInfo<v8::Value>& info)
614 { 650 {
615 TestObject* impl = V8TestObject::toNative(info.Holder()); 651 v8::Handle<v8::Object> holder = info.Holder();
652 TestObject* impl = V8TestObject::toNative(holder);
616 v8SetReturnValueString(info, impl->fastGetAttribute(HTMLNames::reflectedtrea tnullasnullstringstringattrAttr), info.GetIsolate()); 653 v8SetReturnValueString(info, impl->fastGetAttribute(HTMLNames::reflectedtrea tnullasnullstringstringattrAttr), info.GetIsolate());
617 } 654 }
618 655
619 static void reflectedTreatNullAsNullStringStringAttrAttributeGetterCallback(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 656 static void reflectedTreatNullAsNullStringStringAttrAttributeGetterCallback(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
620 { 657 {
621 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 658 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
622 TestObjectV8Internal::reflectedTreatNullAsNullStringStringAttrAttributeGette r(info); 659 TestObjectV8Internal::reflectedTreatNullAsNullStringStringAttrAttributeGette r(info);
623 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 660 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
624 } 661 }
625 662
626 static void reflectedTreatNullAsNullStringStringAttrAttributeSetter(v8::Local<v8 ::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 663 static void reflectedTreatNullAsNullStringStringAttrAttributeSetter(v8::Local<v8 ::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
627 { 664 {
628 TestObject* impl = V8TestObject::toNative(info.Holder()); 665 v8::Handle<v8::Object> holder = info.Holder();
666 TestObject* impl = V8TestObject::toNative(holder);
629 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, cppVal ue, jsValue); 667 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, cppVal ue, jsValue);
630 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 668 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
631 impl->setAttribute(HTMLNames::reflectedtreatnullasnullstringstringattrAttr, cppValue); 669 impl->setAttribute(HTMLNames::reflectedtreatnullasnullstringstringattrAttr, cppValue);
632 } 670 }
633 671
634 static void reflectedTreatNullAsNullStringStringAttrAttributeSetterCallback(v8:: Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo< void>& info) 672 static void reflectedTreatNullAsNullStringStringAttrAttributeSetterCallback(v8:: Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo< void>& info)
635 { 673 {
636 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 674 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
637 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 675 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
638 TestObjectV8Internal::reflectedTreatNullAsNullStringStringAttrAttributeSette r(jsValue, info); 676 TestObjectV8Internal::reflectedTreatNullAsNullStringStringAttrAttributeSette r(jsValue, info);
639 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 677 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
640 } 678 }
641 679
642 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringStringAttrAt tributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 680 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringStringAttrAt tributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
643 { 681 {
644 TestObject* impl = V8TestObject::toNative(info.Holder()); 682 v8::Handle<v8::Object> holder = info.Holder();
683 TestObject* impl = V8TestObject::toNative(holder);
645 v8SetReturnValueString(info, impl->fastGetAttribute(HTMLNames::reflectedtrea tnullasnullstringtreatundefinedasnullstringstringattrAttr), info.GetIsolate()); 684 v8SetReturnValueString(info, impl->fastGetAttribute(HTMLNames::reflectedtrea tnullasnullstringtreatundefinedasnullstringstringattrAttr), info.GetIsolate());
646 } 685 }
647 686
648 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringStringAttrAt tributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8:: Value>& info) 687 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringStringAttrAt tributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8:: Value>& info)
649 { 688 {
650 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 689 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
651 TestObjectV8Internal::reflectedTreatNullAsNullStringTreatUndefinedAsNullStri ngStringAttrAttributeGetter(info); 690 TestObjectV8Internal::reflectedTreatNullAsNullStringTreatUndefinedAsNullStri ngStringAttrAttributeGetter(info);
652 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 691 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
653 } 692 }
654 693
655 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringStringAttrAt tributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void> & info) 694 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringStringAttrAt tributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void> & info)
656 { 695 {
657 TestObject* impl = V8TestObject::toNative(info.Holder()); 696 v8::Handle<v8::Object> holder = info.Holder();
697 TestObject* impl = V8TestObject::toNative(holder);
658 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullChe ck>, cppValue, jsValue); 698 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullChe ck>, cppValue, jsValue);
659 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 699 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
660 impl->setAttribute(HTMLNames::reflectedtreatnullasnullstringtreatundefinedas nullstringstringattrAttr, cppValue); 700 impl->setAttribute(HTMLNames::reflectedtreatnullasnullstringtreatundefinedas nullstringstringattrAttr, cppValue);
661 } 701 }
662 702
663 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringStringAttrAt tributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 703 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringStringAttrAt tributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
664 { 704 {
665 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 705 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
666 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 706 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
667 TestObjectV8Internal::reflectedTreatNullAsNullStringTreatUndefinedAsNullStri ngStringAttrAttributeSetter(jsValue, info); 707 TestObjectV8Internal::reflectedTreatNullAsNullStringTreatUndefinedAsNullStri ngStringAttrAttributeSetter(jsValue, info);
668 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 708 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
669 } 709 }
670 710
671 static void reflectedIntegralAttrAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 711 static void reflectedIntegralAttrAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
672 { 712 {
673 TestObject* impl = V8TestObject::toNative(info.Holder()); 713 v8::Handle<v8::Object> holder = info.Holder();
714 TestObject* impl = V8TestObject::toNative(holder);
674 v8SetReturnValueInt(info, impl->getIntegralAttribute(HTMLNames::reflectedint egralattrAttr)); 715 v8SetReturnValueInt(info, impl->getIntegralAttribute(HTMLNames::reflectedint egralattrAttr));
675 } 716 }
676 717
677 static void reflectedIntegralAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 718 static void reflectedIntegralAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
678 { 719 {
679 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 720 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
680 TestObjectV8Internal::reflectedIntegralAttrAttributeGetter(info); 721 TestObjectV8Internal::reflectedIntegralAttrAttributeGetter(info);
681 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 722 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
682 } 723 }
683 724
684 static void reflectedIntegralAttrAttributeSetter(v8::Local<v8::Value> jsValue, c onst v8::PropertyCallbackInfo<void>& info) 725 static void reflectedIntegralAttrAttributeSetter(v8::Local<v8::Value> jsValue, c onst v8::PropertyCallbackInfo<void>& info)
685 { 726 {
686 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectedInteg ralAttr", "TestObject", info.Holder(), info.GetIsolate()); 727 v8::Handle<v8::Object> holder = info.Holder();
687 TestObject* impl = V8TestObject::toNative(info.Holder()); 728 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectedInteg ralAttr", "TestObject", holder, info.GetIsolate());
729 TestObject* impl = V8TestObject::toNative(holder);
688 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 730 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
689 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 731 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
690 impl->setIntegralAttribute(HTMLNames::reflectedintegralattrAttr, cppValue); 732 impl->setIntegralAttribute(HTMLNames::reflectedintegralattrAttr, cppValue);
691 } 733 }
692 734
693 static void reflectedIntegralAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 735 static void reflectedIntegralAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
694 { 736 {
695 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 737 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
696 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 738 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
697 TestObjectV8Internal::reflectedIntegralAttrAttributeSetter(jsValue, info); 739 TestObjectV8Internal::reflectedIntegralAttrAttributeSetter(jsValue, info);
698 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 740 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
699 } 741 }
700 742
701 static void reflectedUnsignedIntegralAttrAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 743 static void reflectedUnsignedIntegralAttrAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info)
702 { 744 {
703 TestObject* impl = V8TestObject::toNative(info.Holder()); 745 v8::Handle<v8::Object> holder = info.Holder();
746 TestObject* impl = V8TestObject::toNative(holder);
704 v8SetReturnValueUnsigned(info, std::max(0, impl->getIntegralAttribute(HTMLNa mes::reflectedunsignedintegralattrAttr))); 747 v8SetReturnValueUnsigned(info, std::max(0, impl->getIntegralAttribute(HTMLNa mes::reflectedunsignedintegralattrAttr)));
705 } 748 }
706 749
707 static void reflectedUnsignedIntegralAttrAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info) 750 static void reflectedUnsignedIntegralAttrAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info)
708 { 751 {
709 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 752 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
710 TestObjectV8Internal::reflectedUnsignedIntegralAttrAttributeGetter(info); 753 TestObjectV8Internal::reflectedUnsignedIntegralAttrAttributeGetter(info);
711 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 754 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
712 } 755 }
713 756
714 static void reflectedUnsignedIntegralAttrAttributeSetter(v8::Local<v8::Value> js Value, const v8::PropertyCallbackInfo<void>& info) 757 static void reflectedUnsignedIntegralAttrAttributeSetter(v8::Local<v8::Value> js Value, const v8::PropertyCallbackInfo<void>& info)
715 { 758 {
716 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectedUnsig nedIntegralAttr", "TestObject", info.Holder(), info.GetIsolate()); 759 v8::Handle<v8::Object> holder = info.Holder();
717 TestObject* impl = V8TestObject::toNative(info.Holder()); 760 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectedUnsig nedIntegralAttr", "TestObject", holder, info.GetIsolate());
761 TestObject* impl = V8TestObject::toNative(holder);
718 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt32(jsValue, exceptionSta te), exceptionState); 762 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt32(jsValue, exceptionSta te), exceptionState);
719 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 763 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
720 impl->setUnsignedIntegralAttribute(HTMLNames::reflectedunsignedintegralattrA ttr, cppValue); 764 impl->setUnsignedIntegralAttribute(HTMLNames::reflectedunsignedintegralattrA ttr, cppValue);
721 } 765 }
722 766
723 static void reflectedUnsignedIntegralAttrAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info ) 767 static void reflectedUnsignedIntegralAttrAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info )
724 { 768 {
725 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 769 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
726 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 770 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
727 TestObjectV8Internal::reflectedUnsignedIntegralAttrAttributeSetter(jsValue, info); 771 TestObjectV8Internal::reflectedUnsignedIntegralAttrAttributeSetter(jsValue, info);
728 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 772 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
729 } 773 }
730 774
731 static void reflectedBooleanAttrAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 775 static void reflectedBooleanAttrAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
732 { 776 {
733 TestObject* impl = V8TestObject::toNative(info.Holder()); 777 v8::Handle<v8::Object> holder = info.Holder();
778 TestObject* impl = V8TestObject::toNative(holder);
734 v8SetReturnValueBool(info, impl->fastHasAttribute(HTMLNames::reflectedboolea nattrAttr)); 779 v8SetReturnValueBool(info, impl->fastHasAttribute(HTMLNames::reflectedboolea nattrAttr));
735 } 780 }
736 781
737 static void reflectedBooleanAttrAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 782 static void reflectedBooleanAttrAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
738 { 783 {
739 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 784 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
740 TestObjectV8Internal::reflectedBooleanAttrAttributeGetter(info); 785 TestObjectV8Internal::reflectedBooleanAttrAttributeGetter(info);
741 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 786 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
742 } 787 }
743 788
744 static void reflectedBooleanAttrAttributeSetter(v8::Local<v8::Value> jsValue, co nst v8::PropertyCallbackInfo<void>& info) 789 static void reflectedBooleanAttrAttributeSetter(v8::Local<v8::Value> jsValue, co nst v8::PropertyCallbackInfo<void>& info)
745 { 790 {
746 TestObject* impl = V8TestObject::toNative(info.Holder()); 791 v8::Handle<v8::Object> holder = info.Holder();
792 TestObject* impl = V8TestObject::toNative(holder);
747 V8TRYCATCH_VOID(bool, cppValue, jsValue->BooleanValue()); 793 V8TRYCATCH_VOID(bool, cppValue, jsValue->BooleanValue());
748 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 794 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
749 impl->setBooleanAttribute(HTMLNames::reflectedbooleanattrAttr, cppValue); 795 impl->setBooleanAttribute(HTMLNames::reflectedbooleanattrAttr, cppValue);
750 } 796 }
751 797
752 static void reflectedBooleanAttrAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 798 static void reflectedBooleanAttrAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
753 { 799 {
754 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 800 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
755 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 801 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
756 TestObjectV8Internal::reflectedBooleanAttrAttributeSetter(jsValue, info); 802 TestObjectV8Internal::reflectedBooleanAttrAttributeSetter(jsValue, info);
757 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 803 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
758 } 804 }
759 805
760 static void reflectedURLAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 806 static void reflectedURLAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
761 { 807 {
762 TestObject* impl = V8TestObject::toNative(info.Holder()); 808 v8::Handle<v8::Object> holder = info.Holder();
809 TestObject* impl = V8TestObject::toNative(holder);
763 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflectedurlat trAttr), info.GetIsolate()); 810 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflectedurlat trAttr), info.GetIsolate());
764 } 811 }
765 812
766 static void reflectedURLAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 813 static void reflectedURLAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
767 { 814 {
768 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 815 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
769 TestObjectV8Internal::reflectedURLAttrAttributeGetter(info); 816 TestObjectV8Internal::reflectedURLAttrAttributeGetter(info);
770 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 817 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
771 } 818 }
772 819
773 static void reflectedURLAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 820 static void reflectedURLAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
774 { 821 {
775 TestObject* impl = V8TestObject::toNative(info.Holder()); 822 v8::Handle<v8::Object> holder = info.Holder();
823 TestObject* impl = V8TestObject::toNative(holder);
776 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 824 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
777 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 825 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
778 impl->setAttribute(HTMLNames::reflectedurlattrAttr, cppValue); 826 impl->setAttribute(HTMLNames::reflectedurlattrAttr, cppValue);
779 } 827 }
780 828
781 static void reflectedURLAttrAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 829 static void reflectedURLAttrAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
782 { 830 {
783 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 831 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
784 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 832 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
785 TestObjectV8Internal::reflectedURLAttrAttributeSetter(jsValue, info); 833 TestObjectV8Internal::reflectedURLAttrAttributeSetter(jsValue, info);
786 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 834 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
787 } 835 }
788 836
789 static void reflectedTreatNullAsNullStringURLAttrAttributeGetter(const v8::Prope rtyCallbackInfo<v8::Value>& info) 837 static void reflectedTreatNullAsNullStringURLAttrAttributeGetter(const v8::Prope rtyCallbackInfo<v8::Value>& info)
790 { 838 {
791 TestObject* impl = V8TestObject::toNative(info.Holder()); 839 v8::Handle<v8::Object> holder = info.Holder();
840 TestObject* impl = V8TestObject::toNative(holder);
792 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflectedtreat nullasnullstringurlattrAttr), info.GetIsolate()); 841 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflectedtreat nullasnullstringurlattrAttr), info.GetIsolate());
793 } 842 }
794 843
795 static void reflectedTreatNullAsNullStringURLAttrAttributeGetterCallback(v8::Loc al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 844 static void reflectedTreatNullAsNullStringURLAttrAttributeGetterCallback(v8::Loc al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
796 { 845 {
797 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 846 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
798 TestObjectV8Internal::reflectedTreatNullAsNullStringURLAttrAttributeGetter(i nfo); 847 TestObjectV8Internal::reflectedTreatNullAsNullStringURLAttrAttributeGetter(i nfo);
799 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 848 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
800 } 849 }
801 850
802 static void reflectedTreatNullAsNullStringURLAttrAttributeSetter(v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info) 851 static void reflectedTreatNullAsNullStringURLAttrAttributeSetter(v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info)
803 { 852 {
804 TestObject* impl = V8TestObject::toNative(info.Holder()); 853 v8::Handle<v8::Object> holder = info.Holder();
854 TestObject* impl = V8TestObject::toNative(holder);
805 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, cppVal ue, jsValue); 855 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, cppVal ue, jsValue);
806 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 856 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
807 impl->setAttribute(HTMLNames::reflectedtreatnullasnullstringurlattrAttr, cpp Value); 857 impl->setAttribute(HTMLNames::reflectedtreatnullasnullstringurlattrAttr, cpp Value);
808 } 858 }
809 859
810 static void reflectedTreatNullAsNullStringURLAttrAttributeSetterCallback(v8::Loc al<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<voi d>& info) 860 static void reflectedTreatNullAsNullStringURLAttrAttributeSetterCallback(v8::Loc al<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<voi d>& info)
811 { 861 {
812 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 862 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
813 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 863 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
814 TestObjectV8Internal::reflectedTreatNullAsNullStringURLAttrAttributeSetter(j sValue, info); 864 TestObjectV8Internal::reflectedTreatNullAsNullStringURLAttrAttributeSetter(j sValue, info);
815 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 865 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
816 } 866 }
817 867
818 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringURLAttrAttri buteGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 868 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringURLAttrAttri buteGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
819 { 869 {
820 TestObject* impl = V8TestObject::toNative(info.Holder()); 870 v8::Handle<v8::Object> holder = info.Holder();
871 TestObject* impl = V8TestObject::toNative(holder);
821 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflectedtreat nullasnullstringtreatundefinedasnullstringurlattrAttr), info.GetIsolate()); 872 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflectedtreat nullasnullstringtreatundefinedasnullstringurlattrAttr), info.GetIsolate());
822 } 873 }
823 874
824 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringURLAttrAttri buteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Val ue>& info) 875 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringURLAttrAttri buteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Val ue>& info)
825 { 876 {
826 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 877 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
827 TestObjectV8Internal::reflectedTreatNullAsNullStringTreatUndefinedAsNullStri ngURLAttrAttributeGetter(info); 878 TestObjectV8Internal::reflectedTreatNullAsNullStringTreatUndefinedAsNullStri ngURLAttrAttributeGetter(info);
828 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 879 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
829 } 880 }
830 881
831 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringURLAttrAttri buteSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i nfo) 882 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringURLAttrAttri buteSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i nfo)
832 { 883 {
833 TestObject* impl = V8TestObject::toNative(info.Holder()); 884 v8::Handle<v8::Object> holder = info.Holder();
885 TestObject* impl = V8TestObject::toNative(holder);
834 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullChe ck>, cppValue, jsValue); 886 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullChe ck>, cppValue, jsValue);
835 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 887 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
836 impl->setAttribute(HTMLNames::reflectedtreatnullasnullstringtreatundefinedas nullstringurlattrAttr, cppValue); 888 impl->setAttribute(HTMLNames::reflectedtreatnullasnullstringtreatundefinedas nullstringurlattrAttr, cppValue);
837 } 889 }
838 890
839 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringURLAttrAttri buteSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8 ::PropertyCallbackInfo<void>& info) 891 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringURLAttrAttri buteSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8 ::PropertyCallbackInfo<void>& info)
840 { 892 {
841 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 893 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
842 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 894 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
843 TestObjectV8Internal::reflectedTreatNullAsNullStringTreatUndefinedAsNullStri ngURLAttrAttributeSetter(jsValue, info); 895 TestObjectV8Internal::reflectedTreatNullAsNullStringTreatUndefinedAsNullStri ngURLAttrAttributeSetter(jsValue, info);
844 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 896 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
845 } 897 }
846 898
847 static void reflectedCustomStringAttrAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 899 static void reflectedCustomStringAttrAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
848 { 900 {
849 TestObject* impl = V8TestObject::toNative(info.Holder()); 901 v8::Handle<v8::Object> holder = info.Holder();
902 TestObject* impl = V8TestObject::toNative(holder);
850 v8SetReturnValueString(info, impl->fastGetAttribute(HTMLNames::customContent StringAttrAttr), info.GetIsolate()); 903 v8SetReturnValueString(info, impl->fastGetAttribute(HTMLNames::customContent StringAttrAttr), info.GetIsolate());
851 } 904 }
852 905
853 static void reflectedCustomStringAttrAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 906 static void reflectedCustomStringAttrAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
854 { 907 {
855 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 908 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
856 TestObjectV8Internal::reflectedCustomStringAttrAttributeGetter(info); 909 TestObjectV8Internal::reflectedCustomStringAttrAttributeGetter(info);
857 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 910 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
858 } 911 }
859 912
860 static void reflectedCustomStringAttrAttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info) 913 static void reflectedCustomStringAttrAttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info)
861 { 914 {
862 TestObject* impl = V8TestObject::toNative(info.Holder()); 915 v8::Handle<v8::Object> holder = info.Holder();
916 TestObject* impl = V8TestObject::toNative(holder);
863 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 917 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
864 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 918 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
865 impl->setAttribute(HTMLNames::customContentStringAttrAttr, cppValue); 919 impl->setAttribute(HTMLNames::customContentStringAttrAttr, cppValue);
866 } 920 }
867 921
868 static void reflectedCustomStringAttrAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 922 static void reflectedCustomStringAttrAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
869 { 923 {
870 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 924 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
871 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 925 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
872 TestObjectV8Internal::reflectedCustomStringAttrAttributeSetter(jsValue, info ); 926 TestObjectV8Internal::reflectedCustomStringAttrAttributeSetter(jsValue, info );
873 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 927 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
874 } 928 }
875 929
876 static void reflectedTreatNullAsNullStringCustomStringAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 930 static void reflectedTreatNullAsNullStringCustomStringAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
877 { 931 {
878 TestObject* impl = V8TestObject::toNative(info.Holder()); 932 v8::Handle<v8::Object> holder = info.Holder();
933 TestObject* impl = V8TestObject::toNative(holder);
879 v8SetReturnValueString(info, impl->fastGetAttribute(HTMLNames::customContent StringAttrAttr), info.GetIsolate()); 934 v8SetReturnValueString(info, impl->fastGetAttribute(HTMLNames::customContent StringAttrAttr), info.GetIsolate());
880 } 935 }
881 936
882 static void reflectedTreatNullAsNullStringCustomStringAttrAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 937 static void reflectedTreatNullAsNullStringCustomStringAttrAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
883 { 938 {
884 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 939 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
885 TestObjectV8Internal::reflectedTreatNullAsNullStringCustomStringAttrAttribut eGetter(info); 940 TestObjectV8Internal::reflectedTreatNullAsNullStringCustomStringAttrAttribut eGetter(info);
886 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 941 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
887 } 942 }
888 943
889 static void reflectedTreatNullAsNullStringCustomStringAttrAttributeSetter(v8::Lo cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 944 static void reflectedTreatNullAsNullStringCustomStringAttrAttributeSetter(v8::Lo cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
890 { 945 {
891 TestObject* impl = V8TestObject::toNative(info.Holder()); 946 v8::Handle<v8::Object> holder = info.Holder();
947 TestObject* impl = V8TestObject::toNative(holder);
892 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, cppVal ue, jsValue); 948 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, cppVal ue, jsValue);
893 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 949 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
894 impl->setAttribute(HTMLNames::customContentStringAttrAttr, cppValue); 950 impl->setAttribute(HTMLNames::customContentStringAttrAttr, cppValue);
895 } 951 }
896 952
897 static void reflectedTreatNullAsNullStringCustomStringAttrAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbac kInfo<void>& info) 953 static void reflectedTreatNullAsNullStringCustomStringAttrAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbac kInfo<void>& info)
898 { 954 {
899 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 955 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
900 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 956 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
901 TestObjectV8Internal::reflectedTreatNullAsNullStringCustomStringAttrAttribut eSetter(jsValue, info); 957 TestObjectV8Internal::reflectedTreatNullAsNullStringCustomStringAttrAttribut eSetter(jsValue, info);
902 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 958 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
903 } 959 }
904 960
905 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringCustomString AttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 961 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringCustomString AttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
906 { 962 {
907 TestObject* impl = V8TestObject::toNative(info.Holder()); 963 v8::Handle<v8::Object> holder = info.Holder();
964 TestObject* impl = V8TestObject::toNative(holder);
908 v8SetReturnValueString(info, impl->fastGetAttribute(HTMLNames::customContent StringAttrAttr), info.GetIsolate()); 965 v8SetReturnValueString(info, impl->fastGetAttribute(HTMLNames::customContent StringAttrAttr), info.GetIsolate());
909 } 966 }
910 967
911 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringCustomString AttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInf o<v8::Value>& info) 968 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringCustomString AttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInf o<v8::Value>& info)
912 { 969 {
913 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 970 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
914 TestObjectV8Internal::reflectedTreatNullAsNullStringTreatUndefinedAsNullStri ngCustomStringAttrAttributeGetter(info); 971 TestObjectV8Internal::reflectedTreatNullAsNullStringTreatUndefinedAsNullStri ngCustomStringAttrAttributeGetter(info);
915 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 972 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
916 } 973 }
917 974
918 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringCustomString AttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo <void>& info) 975 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringCustomString AttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo <void>& info)
919 { 976 {
920 TestObject* impl = V8TestObject::toNative(info.Holder()); 977 v8::Handle<v8::Object> holder = info.Holder();
978 TestObject* impl = V8TestObject::toNative(holder);
921 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullChe ck>, cppValue, jsValue); 979 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullChe ck>, cppValue, jsValue);
922 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 980 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
923 impl->setAttribute(HTMLNames::customContentStringAttrAttr, cppValue); 981 impl->setAttribute(HTMLNames::customContentStringAttrAttr, cppValue);
924 } 982 }
925 983
926 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringCustomString AttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 984 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringCustomString AttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
927 { 985 {
928 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 986 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
929 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 987 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
930 TestObjectV8Internal::reflectedTreatNullAsNullStringTreatUndefinedAsNullStri ngCustomStringAttrAttributeSetter(jsValue, info); 988 TestObjectV8Internal::reflectedTreatNullAsNullStringTreatUndefinedAsNullStri ngCustomStringAttrAttributeSetter(jsValue, info);
931 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 989 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
932 } 990 }
933 991
934 static void reflectedCustomIntegralAttrAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 992 static void reflectedCustomIntegralAttrAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
935 { 993 {
936 TestObject* impl = V8TestObject::toNative(info.Holder()); 994 v8::Handle<v8::Object> holder = info.Holder();
995 TestObject* impl = V8TestObject::toNative(holder);
937 v8SetReturnValueInt(info, impl->getIntegralAttribute(HTMLNames::customConten tIntegralAttrAttr)); 996 v8SetReturnValueInt(info, impl->getIntegralAttribute(HTMLNames::customConten tIntegralAttrAttr));
938 } 997 }
939 998
940 static void reflectedCustomIntegralAttrAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 999 static void reflectedCustomIntegralAttrAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info)
941 { 1000 {
942 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1001 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
943 TestObjectV8Internal::reflectedCustomIntegralAttrAttributeGetter(info); 1002 TestObjectV8Internal::reflectedCustomIntegralAttrAttributeGetter(info);
944 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1003 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
945 } 1004 }
946 1005
947 static void reflectedCustomIntegralAttrAttributeSetter(v8::Local<v8::Value> jsVa lue, const v8::PropertyCallbackInfo<void>& info) 1006 static void reflectedCustomIntegralAttrAttributeSetter(v8::Local<v8::Value> jsVa lue, const v8::PropertyCallbackInfo<void>& info)
948 { 1007 {
949 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectedCusto mIntegralAttr", "TestObject", info.Holder(), info.GetIsolate()); 1008 v8::Handle<v8::Object> holder = info.Holder();
950 TestObject* impl = V8TestObject::toNative(info.Holder()); 1009 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectedCusto mIntegralAttr", "TestObject", holder, info.GetIsolate());
1010 TestObject* impl = V8TestObject::toNative(holder);
951 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 1011 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
952 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 1012 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
953 impl->setIntegralAttribute(HTMLNames::customContentIntegralAttrAttr, cppValu e); 1013 impl->setIntegralAttribute(HTMLNames::customContentIntegralAttrAttr, cppValu e);
954 } 1014 }
955 1015
956 static void reflectedCustomIntegralAttrAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1016 static void reflectedCustomIntegralAttrAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
957 { 1017 {
958 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1018 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
959 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 1019 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
960 TestObjectV8Internal::reflectedCustomIntegralAttrAttributeSetter(jsValue, in fo); 1020 TestObjectV8Internal::reflectedCustomIntegralAttrAttributeSetter(jsValue, in fo);
961 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1021 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
962 } 1022 }
963 1023
964 static void reflectedCustomBooleanAttrAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info) 1024 static void reflectedCustomBooleanAttrAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info)
965 { 1025 {
966 TestObject* impl = V8TestObject::toNative(info.Holder()); 1026 v8::Handle<v8::Object> holder = info.Holder();
1027 TestObject* impl = V8TestObject::toNative(holder);
967 v8SetReturnValueBool(info, impl->fastHasAttribute(HTMLNames::customContentBo oleanAttrAttr)); 1028 v8SetReturnValueBool(info, impl->fastHasAttribute(HTMLNames::customContentBo oleanAttrAttr));
968 } 1029 }
969 1030
970 static void reflectedCustomBooleanAttrAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info) 1031 static void reflectedCustomBooleanAttrAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info)
971 { 1032 {
972 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1033 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
973 TestObjectV8Internal::reflectedCustomBooleanAttrAttributeGetter(info); 1034 TestObjectV8Internal::reflectedCustomBooleanAttrAttributeGetter(info);
974 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1035 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
975 } 1036 }
976 1037
977 static void reflectedCustomBooleanAttrAttributeSetter(v8::Local<v8::Value> jsVal ue, const v8::PropertyCallbackInfo<void>& info) 1038 static void reflectedCustomBooleanAttrAttributeSetter(v8::Local<v8::Value> jsVal ue, const v8::PropertyCallbackInfo<void>& info)
978 { 1039 {
979 TestObject* impl = V8TestObject::toNative(info.Holder()); 1040 v8::Handle<v8::Object> holder = info.Holder();
1041 TestObject* impl = V8TestObject::toNative(holder);
980 V8TRYCATCH_VOID(bool, cppValue, jsValue->BooleanValue()); 1042 V8TRYCATCH_VOID(bool, cppValue, jsValue->BooleanValue());
981 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 1043 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
982 impl->setBooleanAttribute(HTMLNames::customContentBooleanAttrAttr, cppValue) ; 1044 impl->setBooleanAttribute(HTMLNames::customContentBooleanAttrAttr, cppValue) ;
983 } 1045 }
984 1046
985 static void reflectedCustomBooleanAttrAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1047 static void reflectedCustomBooleanAttrAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
986 { 1048 {
987 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1049 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
988 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 1050 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
989 TestObjectV8Internal::reflectedCustomBooleanAttrAttributeSetter(jsValue, inf o); 1051 TestObjectV8Internal::reflectedCustomBooleanAttrAttributeSetter(jsValue, inf o);
990 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1052 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
991 } 1053 }
992 1054
993 static void reflectedCustomURLAttrAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 1055 static void reflectedCustomURLAttrAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
994 { 1056 {
995 TestObject* impl = V8TestObject::toNative(info.Holder()); 1057 v8::Handle<v8::Object> holder = info.Holder();
1058 TestObject* impl = V8TestObject::toNative(holder);
996 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::customContentU RLAttrAttr), info.GetIsolate()); 1059 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::customContentU RLAttrAttr), info.GetIsolate());
997 } 1060 }
998 1061
999 static void reflectedCustomURLAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1062 static void reflectedCustomURLAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1000 { 1063 {
1001 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1064 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1002 TestObjectV8Internal::reflectedCustomURLAttrAttributeGetter(info); 1065 TestObjectV8Internal::reflectedCustomURLAttrAttributeGetter(info);
1003 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1066 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1004 } 1067 }
1005 1068
1006 static void reflectedCustomURLAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1069 static void reflectedCustomURLAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1007 { 1070 {
1008 TestObject* impl = V8TestObject::toNative(info.Holder()); 1071 v8::Handle<v8::Object> holder = info.Holder();
1072 TestObject* impl = V8TestObject::toNative(holder);
1009 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 1073 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
1010 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 1074 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
1011 impl->setAttribute(HTMLNames::customContentURLAttrAttr, cppValue); 1075 impl->setAttribute(HTMLNames::customContentURLAttrAttr, cppValue);
1012 } 1076 }
1013 1077
1014 static void reflectedCustomURLAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1078 static void reflectedCustomURLAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1015 { 1079 {
1016 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1080 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1017 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 1081 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
1018 TestObjectV8Internal::reflectedCustomURLAttrAttributeSetter(jsValue, info); 1082 TestObjectV8Internal::reflectedCustomURLAttrAttributeSetter(jsValue, info);
1019 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1083 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1020 } 1084 }
1021 1085
1022 static void reflectedTreatNullAsNullStringCustomURLAttrAttributeGetter(const v8: :PropertyCallbackInfo<v8::Value>& info) 1086 static void reflectedTreatNullAsNullStringCustomURLAttrAttributeGetter(const v8: :PropertyCallbackInfo<v8::Value>& info)
1023 { 1087 {
1024 TestObject* impl = V8TestObject::toNative(info.Holder()); 1088 v8::Handle<v8::Object> holder = info.Holder();
1089 TestObject* impl = V8TestObject::toNative(holder);
1025 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::customContentU RLAttrAttr), info.GetIsolate()); 1090 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::customContentU RLAttrAttr), info.GetIsolate());
1026 } 1091 }
1027 1092
1028 static void reflectedTreatNullAsNullStringCustomURLAttrAttributeGetterCallback(v 8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1093 static void reflectedTreatNullAsNullStringCustomURLAttrAttributeGetterCallback(v 8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1029 { 1094 {
1030 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1095 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1031 TestObjectV8Internal::reflectedTreatNullAsNullStringCustomURLAttrAttributeGe tter(info); 1096 TestObjectV8Internal::reflectedTreatNullAsNullStringCustomURLAttrAttributeGe tter(info);
1032 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1097 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1033 } 1098 }
1034 1099
1035 static void reflectedTreatNullAsNullStringCustomURLAttrAttributeSetter(v8::Local <v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1100 static void reflectedTreatNullAsNullStringCustomURLAttrAttributeSetter(v8::Local <v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1036 { 1101 {
1037 TestObject* impl = V8TestObject::toNative(info.Holder()); 1102 v8::Handle<v8::Object> holder = info.Holder();
1103 TestObject* impl = V8TestObject::toNative(holder);
1038 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, cppVal ue, jsValue); 1104 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, cppVal ue, jsValue);
1039 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 1105 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
1040 impl->setAttribute(HTMLNames::customContentURLAttrAttr, cppValue); 1106 impl->setAttribute(HTMLNames::customContentURLAttrAttr, cppValue);
1041 } 1107 }
1042 1108
1043 static void reflectedTreatNullAsNullStringCustomURLAttrAttributeSetterCallback(v 8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackIn fo<void>& info) 1109 static void reflectedTreatNullAsNullStringCustomURLAttrAttributeSetterCallback(v 8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackIn fo<void>& info)
1044 { 1110 {
1045 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1111 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1046 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 1112 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
1047 TestObjectV8Internal::reflectedTreatNullAsNullStringCustomURLAttrAttributeSe tter(jsValue, info); 1113 TestObjectV8Internal::reflectedTreatNullAsNullStringCustomURLAttrAttributeSe tter(jsValue, info);
1048 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1114 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1049 } 1115 }
1050 1116
1051 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringCustomURLAtt rAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 1117 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringCustomURLAtt rAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
1052 { 1118 {
1053 TestObject* impl = V8TestObject::toNative(info.Holder()); 1119 v8::Handle<v8::Object> holder = info.Holder();
1120 TestObject* impl = V8TestObject::toNative(holder);
1054 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::customContentU RLAttrAttr), info.GetIsolate()); 1121 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::customContentU RLAttrAttr), info.GetIsolate());
1055 } 1122 }
1056 1123
1057 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringCustomURLAtt rAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v 8::Value>& info) 1124 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringCustomURLAtt rAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v 8::Value>& info)
1058 { 1125 {
1059 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1126 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1060 TestObjectV8Internal::reflectedTreatNullAsNullStringTreatUndefinedAsNullStri ngCustomURLAttrAttributeGetter(info); 1127 TestObjectV8Internal::reflectedTreatNullAsNullStringTreatUndefinedAsNullStri ngCustomURLAttrAttributeGetter(info);
1061 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1128 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1062 } 1129 }
1063 1130
1064 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringCustomURLAtt rAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<vo id>& info) 1131 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringCustomURLAtt rAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<vo id>& info)
1065 { 1132 {
1066 TestObject* impl = V8TestObject::toNative(info.Holder()); 1133 v8::Handle<v8::Object> holder = info.Holder();
1134 TestObject* impl = V8TestObject::toNative(holder);
1067 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullChe ck>, cppValue, jsValue); 1135 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullChe ck>, cppValue, jsValue);
1068 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 1136 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
1069 impl->setAttribute(HTMLNames::customContentURLAttrAttr, cppValue); 1137 impl->setAttribute(HTMLNames::customContentURLAttrAttr, cppValue);
1070 } 1138 }
1071 1139
1072 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringCustomURLAtt rAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, co nst v8::PropertyCallbackInfo<void>& info) 1140 static void reflectedTreatNullAsNullStringTreatUndefinedAsNullStringCustomURLAtt rAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, co nst v8::PropertyCallbackInfo<void>& info)
1073 { 1141 {
1074 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1142 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1075 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 1143 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
1076 TestObjectV8Internal::reflectedTreatNullAsNullStringTreatUndefinedAsNullStri ngCustomURLAttrAttributeSetter(jsValue, info); 1144 TestObjectV8Internal::reflectedTreatNullAsNullStringTreatUndefinedAsNullStri ngCustomURLAttrAttributeSetter(jsValue, info);
1077 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1145 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1078 } 1146 }
1079 1147
1080 static void limitedToOnlyOneAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 1148 static void limitedToOnlyOneAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
1081 { 1149 {
1082 TestObject* impl = V8TestObject::toNative(info.Holder()); 1150 v8::Handle<v8::Object> holder = info.Holder();
1151 TestObject* impl = V8TestObject::toNative(holder);
1083 String jsValue = impl->fastGetAttribute(HTMLNames::limitedtoonlyoneattribute Attr); 1152 String jsValue = impl->fastGetAttribute(HTMLNames::limitedtoonlyoneattribute Attr);
1084 if (jsValue.isEmpty()) { 1153 if (jsValue.isEmpty()) {
1085 ; 1154 ;
1086 } else if (equalIgnoringCase(jsValue, "unique")) { 1155 } else if (equalIgnoringCase(jsValue, "unique")) {
1087 jsValue = "unique"; 1156 jsValue = "unique";
1088 } else { 1157 } else {
1089 jsValue = ""; 1158 jsValue = "";
1090 } 1159 }
1091 v8SetReturnValueString(info, jsValue, info.GetIsolate()); 1160 v8SetReturnValueString(info, jsValue, info.GetIsolate());
1092 } 1161 }
1093 1162
1094 static void limitedToOnlyOneAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 1163 static void limitedToOnlyOneAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
1095 { 1164 {
1096 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1165 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1097 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeGetter(info); 1166 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeGetter(info);
1098 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1167 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1099 } 1168 }
1100 1169
1101 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info) 1170 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info)
1102 { 1171 {
1103 TestObject* impl = V8TestObject::toNative(info.Holder()); 1172 v8::Handle<v8::Object> holder = info.Holder();
1173 TestObject* impl = V8TestObject::toNative(holder);
1104 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 1174 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
1105 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 1175 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
1106 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); 1176 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue);
1107 } 1177 }
1108 1178
1109 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1179 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1110 { 1180 {
1111 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1181 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1112 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 1182 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
1113 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeSetter(jsValue, info ); 1183 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeSetter(jsValue, info );
1114 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1184 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1115 } 1185 }
1116 1186
1117 static void limitedToOnlyAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 1187 static void limitedToOnlyAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
1118 { 1188 {
1119 TestObject* impl = V8TestObject::toNative(info.Holder()); 1189 v8::Handle<v8::Object> holder = info.Holder();
1190 TestObject* impl = V8TestObject::toNative(holder);
1120 String jsValue = impl->fastGetAttribute(HTMLNames::limitedtoonlyattributeAtt r); 1191 String jsValue = impl->fastGetAttribute(HTMLNames::limitedtoonlyattributeAtt r);
1121 if (jsValue.isEmpty()) { 1192 if (jsValue.isEmpty()) {
1122 ; 1193 ;
1123 } else if (equalIgnoringCase(jsValue, "Per")) { 1194 } else if (equalIgnoringCase(jsValue, "Per")) {
1124 jsValue = "Per"; 1195 jsValue = "Per";
1125 } else if (equalIgnoringCase(jsValue, "Paal")) { 1196 } else if (equalIgnoringCase(jsValue, "Paal")) {
1126 jsValue = "Paal"; 1197 jsValue = "Paal";
1127 } else if (equalIgnoringCase(jsValue, "Espen")) { 1198 } else if (equalIgnoringCase(jsValue, "Espen")) {
1128 jsValue = "Espen"; 1199 jsValue = "Espen";
1129 } else { 1200 } else {
1130 jsValue = ""; 1201 jsValue = "";
1131 } 1202 }
1132 v8SetReturnValueString(info, jsValue, info.GetIsolate()); 1203 v8SetReturnValueString(info, jsValue, info.GetIsolate());
1133 } 1204 }
1134 1205
1135 static void limitedToOnlyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1206 static void limitedToOnlyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1136 { 1207 {
1137 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1208 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1138 TestObjectV8Internal::limitedToOnlyAttributeAttributeGetter(info); 1209 TestObjectV8Internal::limitedToOnlyAttributeAttributeGetter(info);
1139 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1210 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1140 } 1211 }
1141 1212
1142 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1213 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1143 { 1214 {
1144 TestObject* impl = V8TestObject::toNative(info.Holder()); 1215 v8::Handle<v8::Object> holder = info.Holder();
1216 TestObject* impl = V8TestObject::toNative(holder);
1145 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 1217 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
1146 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 1218 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
1147 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); 1219 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue);
1148 } 1220 }
1149 1221
1150 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1222 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1151 { 1223 {
1152 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1224 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1153 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 1225 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
1154 TestObjectV8Internal::limitedToOnlyAttributeAttributeSetter(jsValue, info); 1226 TestObjectV8Internal::limitedToOnlyAttributeAttributeSetter(jsValue, info);
1155 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1227 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1156 } 1228 }
1157 1229
1158 static void limitedToOnlyOtherAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 1230 static void limitedToOnlyOtherAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
1159 { 1231 {
1160 TestObject* impl = V8TestObject::toNative(info.Holder()); 1232 v8::Handle<v8::Object> holder = info.Holder();
1233 TestObject* impl = V8TestObject::toNative(holder);
1161 String jsValue = impl->fastGetAttribute(HTMLNames::OtherAttr); 1234 String jsValue = impl->fastGetAttribute(HTMLNames::OtherAttr);
1162 if (jsValue.isEmpty()) { 1235 if (jsValue.isEmpty()) {
1163 ; 1236 ;
1164 } else if (equalIgnoringCase(jsValue, "Value1")) { 1237 } else if (equalIgnoringCase(jsValue, "Value1")) {
1165 jsValue = "Value1"; 1238 jsValue = "Value1";
1166 } else if (equalIgnoringCase(jsValue, "Value2")) { 1239 } else if (equalIgnoringCase(jsValue, "Value2")) {
1167 jsValue = "Value2"; 1240 jsValue = "Value2";
1168 } else { 1241 } else {
1169 jsValue = ""; 1242 jsValue = "";
1170 } 1243 }
1171 v8SetReturnValueString(info, jsValue, info.GetIsolate()); 1244 v8SetReturnValueString(info, jsValue, info.GetIsolate());
1172 } 1245 }
1173 1246
1174 static void limitedToOnlyOtherAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 1247 static void limitedToOnlyOtherAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info)
1175 { 1248 {
1176 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1249 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1177 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info); 1250 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info);
1178 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1251 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1179 } 1252 }
1180 1253
1181 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> jsVa lue, const v8::PropertyCallbackInfo<void>& info) 1254 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> jsVa lue, const v8::PropertyCallbackInfo<void>& info)
1182 { 1255 {
1183 TestObject* impl = V8TestObject::toNative(info.Holder()); 1256 v8::Handle<v8::Object> holder = info.Holder();
1257 TestObject* impl = V8TestObject::toNative(holder);
1184 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 1258 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
1185 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 1259 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
1186 impl->setAttribute(HTMLNames::OtherAttr, cppValue); 1260 impl->setAttribute(HTMLNames::OtherAttr, cppValue);
1187 } 1261 }
1188 1262
1189 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1263 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1190 { 1264 {
1191 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1265 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1192 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 1266 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
1193 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeSetter(jsValue, in fo); 1267 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeSetter(jsValue, in fo);
1194 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1268 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1195 } 1269 }
1196 1270
1197 static void limitedWithMissingDefaultAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info) 1271 static void limitedWithMissingDefaultAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info)
1198 { 1272 {
1199 TestObject* impl = V8TestObject::toNative(info.Holder()); 1273 v8::Handle<v8::Object> holder = info.Holder();
1274 TestObject* impl = V8TestObject::toNative(holder);
1200 String jsValue = impl->fastGetAttribute(HTMLNames::limitedwithmissingdefault attributeAttr); 1275 String jsValue = impl->fastGetAttribute(HTMLNames::limitedwithmissingdefault attributeAttr);
1201 if (jsValue.isEmpty()) { 1276 if (jsValue.isEmpty()) {
1202 jsValue = "rsa"; 1277 jsValue = "rsa";
1203 } else if (equalIgnoringCase(jsValue, "rsa")) { 1278 } else if (equalIgnoringCase(jsValue, "rsa")) {
1204 jsValue = "rsa"; 1279 jsValue = "rsa";
1205 } else if (equalIgnoringCase(jsValue, "dsa")) { 1280 } else if (equalIgnoringCase(jsValue, "dsa")) {
1206 jsValue = "dsa"; 1281 jsValue = "dsa";
1207 } else { 1282 } else {
1208 jsValue = ""; 1283 jsValue = "";
1209 } 1284 }
1210 v8SetReturnValueString(info, jsValue, info.GetIsolate()); 1285 v8SetReturnValueString(info, jsValue, info.GetIsolate());
1211 } 1286 }
1212 1287
1213 static void limitedWithMissingDefaultAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1288 static void limitedWithMissingDefaultAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1214 { 1289 {
1215 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1290 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1216 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info ); 1291 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info );
1217 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1292 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1218 } 1293 }
1219 1294
1220 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu e> jsValue, const v8::PropertyCallbackInfo<void>& info) 1295 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu e> jsValue, const v8::PropertyCallbackInfo<void>& info)
1221 { 1296 {
1222 TestObject* impl = V8TestObject::toNative(info.Holder()); 1297 v8::Handle<v8::Object> holder = info.Holder();
1298 TestObject* impl = V8TestObject::toNative(holder);
1223 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 1299 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
1224 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 1300 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
1225 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal ue); 1301 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal ue);
1226 } 1302 }
1227 1303
1228 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1304 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1229 { 1305 {
1230 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1306 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1231 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 1307 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
1232 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(jsVa lue, info); 1308 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(jsVa lue, info);
1233 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1309 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1234 } 1310 }
1235 1311
1236 static void limitedWithInvalidMissingDefaultAttributeAttributeGetter(const v8::P ropertyCallbackInfo<v8::Value>& info) 1312 static void limitedWithInvalidMissingDefaultAttributeAttributeGetter(const v8::P ropertyCallbackInfo<v8::Value>& info)
1237 { 1313 {
1238 TestObject* impl = V8TestObject::toNative(info.Holder()); 1314 v8::Handle<v8::Object> holder = info.Holder();
1315 TestObject* impl = V8TestObject::toNative(holder);
1239 String jsValue = impl->fastGetAttribute(HTMLNames::limitedwithinvalidmissing defaultattributeAttr); 1316 String jsValue = impl->fastGetAttribute(HTMLNames::limitedwithinvalidmissing defaultattributeAttr);
1240 if (jsValue.isEmpty()) { 1317 if (jsValue.isEmpty()) {
1241 jsValue = "auto"; 1318 jsValue = "auto";
1242 } else if (equalIgnoringCase(jsValue, "ltr")) { 1319 } else if (equalIgnoringCase(jsValue, "ltr")) {
1243 jsValue = "ltr"; 1320 jsValue = "ltr";
1244 } else if (equalIgnoringCase(jsValue, "rtl")) { 1321 } else if (equalIgnoringCase(jsValue, "rtl")) {
1245 jsValue = "rtl"; 1322 jsValue = "rtl";
1246 } else if (equalIgnoringCase(jsValue, "auto")) { 1323 } else if (equalIgnoringCase(jsValue, "auto")) {
1247 jsValue = "auto"; 1324 jsValue = "auto";
1248 } else { 1325 } else {
1249 jsValue = "ltr"; 1326 jsValue = "ltr";
1250 } 1327 }
1251 v8SetReturnValueString(info, jsValue, info.GetIsolate()); 1328 v8SetReturnValueString(info, jsValue, info.GetIsolate());
1252 } 1329 }
1253 1330
1254 static void limitedWithInvalidMissingDefaultAttributeAttributeGetterCallback(v8: :Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1331 static void limitedWithInvalidMissingDefaultAttributeAttributeGetterCallback(v8: :Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1255 { 1332 {
1256 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1333 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1257 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGett er(info); 1334 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGett er(info);
1258 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1335 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1259 } 1336 }
1260 1337
1261 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v 8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1338 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v 8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1262 { 1339 {
1263 TestObject* impl = V8TestObject::toNative(info.Holder()); 1340 v8::Handle<v8::Object> holder = info.Holder();
1341 TestObject* impl = V8TestObject::toNative(holder);
1264 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 1342 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
1265 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 1343 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
1266 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr, cppValue); 1344 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr, cppValue);
1267 } 1345 }
1268 1346
1269 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8: :Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo <void>& info) 1347 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8: :Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo <void>& info)
1270 { 1348 {
1271 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1349 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1272 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 1350 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
1273 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSett er(jsValue, info); 1351 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSett er(jsValue, info);
1274 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1352 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1275 } 1353 }
1276 1354
1277 static void limitedWithInvalidAndMissingDefaultAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info) 1355 static void limitedWithInvalidAndMissingDefaultAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info)
1278 { 1356 {
1279 TestObject* impl = V8TestObject::toNative(info.Holder()); 1357 v8::Handle<v8::Object> holder = info.Holder();
1358 TestObject* impl = V8TestObject::toNative(holder);
1280 String jsValue = impl->fastGetAttribute(HTMLNames::limitedwithinvalidandmiss ingdefaultattributeAttr); 1359 String jsValue = impl->fastGetAttribute(HTMLNames::limitedwithinvalidandmiss ingdefaultattributeAttr);
1281 if (jsValue.isEmpty()) { 1360 if (jsValue.isEmpty()) {
1282 jsValue = "left"; 1361 jsValue = "left";
1283 } else if (equalIgnoringCase(jsValue, "left")) { 1362 } else if (equalIgnoringCase(jsValue, "left")) {
1284 jsValue = "left"; 1363 jsValue = "left";
1285 } else if (equalIgnoringCase(jsValue, "right")) { 1364 } else if (equalIgnoringCase(jsValue, "right")) {
1286 jsValue = "right"; 1365 jsValue = "right";
1287 } else { 1366 } else {
1288 jsValue = "left"; 1367 jsValue = "left";
1289 } 1368 }
1290 v8SetReturnValueString(info, jsValue, info.GetIsolate()); 1369 v8SetReturnValueString(info, jsValue, info.GetIsolate());
1291 } 1370 }
1292 1371
1293 static void limitedWithInvalidAndMissingDefaultAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1372 static void limitedWithInvalidAndMissingDefaultAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1294 { 1373 {
1295 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1374 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1296 TestObjectV8Internal::limitedWithInvalidAndMissingDefaultAttributeAttributeG etter(info); 1375 TestObjectV8Internal::limitedWithInvalidAndMissingDefaultAttributeAttributeG etter(info);
1297 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1376 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1298 } 1377 }
1299 1378
1300 static void limitedWithInvalidAndMissingDefaultAttributeAttributeSetter(v8::Loca l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1379 static void limitedWithInvalidAndMissingDefaultAttributeAttributeSetter(v8::Loca l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1301 { 1380 {
1302 TestObject* impl = V8TestObject::toNative(info.Holder()); 1381 v8::Handle<v8::Object> holder = info.Holder();
1382 TestObject* impl = V8TestObject::toNative(holder);
1303 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 1383 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
1304 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 1384 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
1305 impl->setAttribute(HTMLNames::limitedwithinvalidandmissingdefaultattributeAt tr, cppValue); 1385 impl->setAttribute(HTMLNames::limitedwithinvalidandmissingdefaultattributeAt tr, cppValue);
1306 } 1386 }
1307 1387
1308 static void limitedWithInvalidAndMissingDefaultAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackI nfo<void>& info) 1388 static void limitedWithInvalidAndMissingDefaultAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackI nfo<void>& info)
1309 { 1389 {
1310 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1390 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1311 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 1391 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
1312 TestObjectV8Internal::limitedWithInvalidAndMissingDefaultAttributeAttributeS etter(jsValue, info); 1392 TestObjectV8Internal::limitedWithInvalidAndMissingDefaultAttributeAttributeS etter(jsValue, info);
1313 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1393 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1314 } 1394 }
1315 1395
1316 static void corsSettingAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 1396 static void corsSettingAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
1317 { 1397 {
1318 TestObject* impl = V8TestObject::toNative(info.Holder()); 1398 v8::Handle<v8::Object> holder = info.Holder();
1399 TestObject* impl = V8TestObject::toNative(holder);
1319 String jsValue = impl->fastGetAttribute(HTMLNames::corssettingattributeAttr) ; 1400 String jsValue = impl->fastGetAttribute(HTMLNames::corssettingattributeAttr) ;
1320 if (jsValue.isNull()) { 1401 if (jsValue.isNull()) {
1321 ; 1402 ;
1322 } else if (jsValue.isEmpty()) { 1403 } else if (jsValue.isEmpty()) {
1323 jsValue = "anonymous"; 1404 jsValue = "anonymous";
1324 } else if (equalIgnoringCase(jsValue, "anonymous")) { 1405 } else if (equalIgnoringCase(jsValue, "anonymous")) {
1325 jsValue = "anonymous"; 1406 jsValue = "anonymous";
1326 } else if (equalIgnoringCase(jsValue, "use-credentials")) { 1407 } else if (equalIgnoringCase(jsValue, "use-credentials")) {
1327 jsValue = "use-credentials"; 1408 jsValue = "use-credentials";
1328 } else { 1409 } else {
1329 jsValue = "anonymous"; 1410 jsValue = "anonymous";
1330 } 1411 }
1331 v8SetReturnValueString(info, jsValue, info.GetIsolate()); 1412 v8SetReturnValueString(info, jsValue, info.GetIsolate());
1332 } 1413 }
1333 1414
1334 static void corsSettingAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 1415 static void corsSettingAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
1335 { 1416 {
1336 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1417 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1337 TestObjectV8Internal::corsSettingAttributeAttributeGetter(info); 1418 TestObjectV8Internal::corsSettingAttributeAttributeGetter(info);
1338 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1419 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1339 } 1420 }
1340 1421
1341 static void limitedWithEmptyMissingInvalidAttributeAttributeGetter(const v8::Pro pertyCallbackInfo<v8::Value>& info) 1422 static void limitedWithEmptyMissingInvalidAttributeAttributeGetter(const v8::Pro pertyCallbackInfo<v8::Value>& info)
1342 { 1423 {
1343 TestObject* impl = V8TestObject::toNative(info.Holder()); 1424 v8::Handle<v8::Object> holder = info.Holder();
1425 TestObject* impl = V8TestObject::toNative(holder);
1344 String jsValue = impl->fastGetAttribute(HTMLNames::limitedwithemptymissingin validattributeAttr); 1426 String jsValue = impl->fastGetAttribute(HTMLNames::limitedwithemptymissingin validattributeAttr);
1345 if (jsValue.isNull()) { 1427 if (jsValue.isNull()) {
1346 jsValue = "missing"; 1428 jsValue = "missing";
1347 } else if (jsValue.isEmpty()) { 1429 } else if (jsValue.isEmpty()) {
1348 jsValue = "empty"; 1430 jsValue = "empty";
1349 } else if (equalIgnoringCase(jsValue, "empty")) { 1431 } else if (equalIgnoringCase(jsValue, "empty")) {
1350 jsValue = "empty"; 1432 jsValue = "empty";
1351 } else if (equalIgnoringCase(jsValue, "missing")) { 1433 } else if (equalIgnoringCase(jsValue, "missing")) {
1352 jsValue = "missing"; 1434 jsValue = "missing";
1353 } else if (equalIgnoringCase(jsValue, "invalid")) { 1435 } else if (equalIgnoringCase(jsValue, "invalid")) {
1354 jsValue = "invalid"; 1436 jsValue = "invalid";
1355 } else if (equalIgnoringCase(jsValue, "a-normal")) { 1437 } else if (equalIgnoringCase(jsValue, "a-normal")) {
1356 jsValue = "a-normal"; 1438 jsValue = "a-normal";
1357 } else { 1439 } else {
1358 jsValue = "invalid"; 1440 jsValue = "invalid";
1359 } 1441 }
1360 v8SetReturnValueString(info, jsValue, info.GetIsolate()); 1442 v8SetReturnValueString(info, jsValue, info.GetIsolate());
1361 } 1443 }
1362 1444
1363 static void limitedWithEmptyMissingInvalidAttributeAttributeGetterCallback(v8::L ocal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1445 static void limitedWithEmptyMissingInvalidAttributeAttributeGetterCallback(v8::L ocal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1364 { 1446 {
1365 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1447 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1366 TestObjectV8Internal::limitedWithEmptyMissingInvalidAttributeAttributeGetter (info); 1448 TestObjectV8Internal::limitedWithEmptyMissingInvalidAttributeAttributeGetter (info);
1367 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1449 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1368 } 1450 }
1369 1451
1370 static void typedArrayAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 1452 static void typedArrayAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
1371 { 1453 {
1372 TestObject* impl = V8TestObject::toNative(info.Holder()); 1454 v8::Handle<v8::Object> holder = info.Holder();
1455 TestObject* impl = V8TestObject::toNative(holder);
1373 v8SetReturnValueFast(info, WTF::getPtr(impl->typedArrayAttr()), impl); 1456 v8SetReturnValueFast(info, WTF::getPtr(impl->typedArrayAttr()), impl);
1374 } 1457 }
1375 1458
1376 static void typedArrayAttrAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 1459 static void typedArrayAttrAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info)
1377 { 1460 {
1378 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1461 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1379 TestObjectV8Internal::typedArrayAttrAttributeGetter(info); 1462 TestObjectV8Internal::typedArrayAttrAttributeGetter(info);
1380 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1463 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1381 } 1464 }
1382 1465
1383 static void typedArrayAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8 ::PropertyCallbackInfo<void>& info) 1466 static void typedArrayAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8 ::PropertyCallbackInfo<void>& info)
1384 { 1467 {
1385 TestObject* impl = V8TestObject::toNative(info.Holder()); 1468 v8::Handle<v8::Object> holder = info.Holder();
1469 TestObject* impl = V8TestObject::toNative(holder);
1386 V8TRYCATCH_VOID(Float32Array*, cppValue, jsValue->IsFloat32Array() ? V8Float 32Array::toNative(v8::Handle<v8::Float32Array>::Cast(jsValue)) : 0); 1470 V8TRYCATCH_VOID(Float32Array*, cppValue, jsValue->IsFloat32Array() ? V8Float 32Array::toNative(v8::Handle<v8::Float32Array>::Cast(jsValue)) : 0);
1387 impl->setTypedArrayAttr(WTF::getPtr(cppValue)); 1471 impl->setTypedArrayAttr(WTF::getPtr(cppValue));
1388 } 1472 }
1389 1473
1390 static void typedArrayAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1474 static void typedArrayAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1391 { 1475 {
1392 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1476 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1393 TestObjectV8Internal::typedArrayAttrAttributeSetter(jsValue, info); 1477 TestObjectV8Internal::typedArrayAttrAttributeSetter(jsValue, info);
1394 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1478 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1395 } 1479 }
1396 1480
1397 static void attrWithGetterExceptionAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 1481 static void attrWithGetterExceptionAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
1398 { 1482 {
1399 TestObject* impl = V8TestObject::toNative(info.Holder()); 1483 v8::Handle<v8::Object> holder = info.Holder();
1400 ExceptionState exceptionState(ExceptionState::GetterContext, "attrWithGetter Exception", "TestObject", info.Holder(), info.GetIsolate()); 1484 TestObject* impl = V8TestObject::toNative(holder);
1485 ExceptionState exceptionState(ExceptionState::GetterContext, "attrWithGetter Exception", "TestObject", holder, info.GetIsolate());
1401 int jsValue = impl->attrWithGetterException(exceptionState); 1486 int jsValue = impl->attrWithGetterException(exceptionState);
1402 if (UNLIKELY(exceptionState.throwIfNeeded())) 1487 if (UNLIKELY(exceptionState.throwIfNeeded()))
1403 return; 1488 return;
1404 v8SetReturnValueInt(info, jsValue); 1489 v8SetReturnValueInt(info, jsValue);
1405 } 1490 }
1406 1491
1407 static void attrWithGetterExceptionAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 1492 static void attrWithGetterExceptionAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info)
1408 { 1493 {
1409 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1494 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1410 TestObjectV8Internal::attrWithGetterExceptionAttributeGetter(info); 1495 TestObjectV8Internal::attrWithGetterExceptionAttributeGetter(info);
1411 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1496 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1412 } 1497 }
1413 1498
1414 static void attrWithGetterExceptionAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1499 static void attrWithGetterExceptionAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1415 { 1500 {
1416 ExceptionState exceptionState(ExceptionState::SetterContext, "attrWithGetter Exception", "TestObject", info.Holder(), info.GetIsolate()); 1501 v8::Handle<v8::Object> holder = info.Holder();
1417 TestObject* impl = V8TestObject::toNative(info.Holder()); 1502 ExceptionState exceptionState(ExceptionState::SetterContext, "attrWithGetter Exception", "TestObject", holder, info.GetIsolate());
1503 TestObject* impl = V8TestObject::toNative(holder);
1418 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 1504 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
1419 impl->setAttrWithGetterException(cppValue); 1505 impl->setAttrWithGetterException(cppValue);
1420 } 1506 }
1421 1507
1422 static void attrWithGetterExceptionAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1508 static void attrWithGetterExceptionAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1423 { 1509 {
1424 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1510 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1425 TestObjectV8Internal::attrWithGetterExceptionAttributeSetter(jsValue, info); 1511 TestObjectV8Internal::attrWithGetterExceptionAttributeSetter(jsValue, info);
1426 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1512 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1427 } 1513 }
1428 1514
1429 static void attrWithSetterExceptionAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 1515 static void attrWithSetterExceptionAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
1430 { 1516 {
1431 TestObject* impl = V8TestObject::toNative(info.Holder()); 1517 v8::Handle<v8::Object> holder = info.Holder();
1518 TestObject* impl = V8TestObject::toNative(holder);
1432 v8SetReturnValueInt(info, impl->attrWithSetterException()); 1519 v8SetReturnValueInt(info, impl->attrWithSetterException());
1433 } 1520 }
1434 1521
1435 static void attrWithSetterExceptionAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 1522 static void attrWithSetterExceptionAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info)
1436 { 1523 {
1437 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1524 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1438 TestObjectV8Internal::attrWithSetterExceptionAttributeGetter(info); 1525 TestObjectV8Internal::attrWithSetterExceptionAttributeGetter(info);
1439 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1526 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1440 } 1527 }
1441 1528
1442 static void attrWithSetterExceptionAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1529 static void attrWithSetterExceptionAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1443 { 1530 {
1444 ExceptionState exceptionState(ExceptionState::SetterContext, "attrWithSetter Exception", "TestObject", info.Holder(), info.GetIsolate()); 1531 v8::Handle<v8::Object> holder = info.Holder();
1445 TestObject* impl = V8TestObject::toNative(info.Holder()); 1532 ExceptionState exceptionState(ExceptionState::SetterContext, "attrWithSetter Exception", "TestObject", holder, info.GetIsolate());
1533 TestObject* impl = V8TestObject::toNative(holder);
1446 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 1534 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
1447 impl->setAttrWithSetterException(cppValue, exceptionState); 1535 impl->setAttrWithSetterException(cppValue, exceptionState);
1448 exceptionState.throwIfNeeded(); 1536 exceptionState.throwIfNeeded();
1449 } 1537 }
1450 1538
1451 static void attrWithSetterExceptionAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1539 static void attrWithSetterExceptionAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1452 { 1540 {
1453 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1541 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1454 TestObjectV8Internal::attrWithSetterExceptionAttributeSetter(jsValue, info); 1542 TestObjectV8Internal::attrWithSetterExceptionAttributeSetter(jsValue, info);
1455 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1543 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1456 } 1544 }
1457 1545
1458 static void stringAttrWithGetterExceptionAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 1546 static void stringAttrWithGetterExceptionAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info)
1459 { 1547 {
1460 TestObject* impl = V8TestObject::toNative(info.Holder()); 1548 v8::Handle<v8::Object> holder = info.Holder();
1461 ExceptionState exceptionState(ExceptionState::GetterContext, "stringAttrWith GetterException", "TestObject", info.Holder(), info.GetIsolate()); 1549 TestObject* impl = V8TestObject::toNative(holder);
1550 ExceptionState exceptionState(ExceptionState::GetterContext, "stringAttrWith GetterException", "TestObject", holder, info.GetIsolate());
1462 String jsValue = impl->stringAttrWithGetterException(exceptionState); 1551 String jsValue = impl->stringAttrWithGetterException(exceptionState);
1463 if (UNLIKELY(exceptionState.throwIfNeeded())) 1552 if (UNLIKELY(exceptionState.throwIfNeeded()))
1464 return; 1553 return;
1465 v8SetReturnValueString(info, jsValue, info.GetIsolate()); 1554 v8SetReturnValueString(info, jsValue, info.GetIsolate());
1466 } 1555 }
1467 1556
1468 static void stringAttrWithGetterExceptionAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info) 1557 static void stringAttrWithGetterExceptionAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info)
1469 { 1558 {
1470 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1559 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1471 TestObjectV8Internal::stringAttrWithGetterExceptionAttributeGetter(info); 1560 TestObjectV8Internal::stringAttrWithGetterExceptionAttributeGetter(info);
1472 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1561 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1473 } 1562 }
1474 1563
1475 static void stringAttrWithGetterExceptionAttributeSetter(v8::Local<v8::Value> js Value, const v8::PropertyCallbackInfo<void>& info) 1564 static void stringAttrWithGetterExceptionAttributeSetter(v8::Local<v8::Value> js Value, const v8::PropertyCallbackInfo<void>& info)
1476 { 1565 {
1477 TestObject* impl = V8TestObject::toNative(info.Holder()); 1566 v8::Handle<v8::Object> holder = info.Holder();
1567 TestObject* impl = V8TestObject::toNative(holder);
1478 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 1568 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
1479 impl->setStringAttrWithGetterException(cppValue); 1569 impl->setStringAttrWithGetterException(cppValue);
1480 } 1570 }
1481 1571
1482 static void stringAttrWithGetterExceptionAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info ) 1572 static void stringAttrWithGetterExceptionAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info )
1483 { 1573 {
1484 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1574 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1485 TestObjectV8Internal::stringAttrWithGetterExceptionAttributeSetter(jsValue, info); 1575 TestObjectV8Internal::stringAttrWithGetterExceptionAttributeSetter(jsValue, info);
1486 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1576 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1487 } 1577 }
1488 1578
1489 static void stringAttrWithSetterExceptionAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 1579 static void stringAttrWithSetterExceptionAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info)
1490 { 1580 {
1491 TestObject* impl = V8TestObject::toNative(info.Holder()); 1581 v8::Handle<v8::Object> holder = info.Holder();
1582 TestObject* impl = V8TestObject::toNative(holder);
1492 v8SetReturnValueString(info, impl->stringAttrWithSetterException(), info.Get Isolate()); 1583 v8SetReturnValueString(info, impl->stringAttrWithSetterException(), info.Get Isolate());
1493 } 1584 }
1494 1585
1495 static void stringAttrWithSetterExceptionAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info) 1586 static void stringAttrWithSetterExceptionAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info)
1496 { 1587 {
1497 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1588 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1498 TestObjectV8Internal::stringAttrWithSetterExceptionAttributeGetter(info); 1589 TestObjectV8Internal::stringAttrWithSetterExceptionAttributeGetter(info);
1499 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1590 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1500 } 1591 }
1501 1592
1502 static void stringAttrWithSetterExceptionAttributeSetter(v8::Local<v8::Value> js Value, const v8::PropertyCallbackInfo<void>& info) 1593 static void stringAttrWithSetterExceptionAttributeSetter(v8::Local<v8::Value> js Value, const v8::PropertyCallbackInfo<void>& info)
1503 { 1594 {
1504 ExceptionState exceptionState(ExceptionState::SetterContext, "stringAttrWith SetterException", "TestObject", info.Holder(), info.GetIsolate()); 1595 v8::Handle<v8::Object> holder = info.Holder();
1505 TestObject* impl = V8TestObject::toNative(info.Holder()); 1596 ExceptionState exceptionState(ExceptionState::SetterContext, "stringAttrWith SetterException", "TestObject", holder, info.GetIsolate());
1597 TestObject* impl = V8TestObject::toNative(holder);
1506 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 1598 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
1507 impl->setStringAttrWithSetterException(cppValue, exceptionState); 1599 impl->setStringAttrWithSetterException(cppValue, exceptionState);
1508 exceptionState.throwIfNeeded(); 1600 exceptionState.throwIfNeeded();
1509 } 1601 }
1510 1602
1511 static void stringAttrWithSetterExceptionAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info ) 1603 static void stringAttrWithSetterExceptionAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info )
1512 { 1604 {
1513 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1605 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1514 TestObjectV8Internal::stringAttrWithSetterExceptionAttributeSetter(jsValue, info); 1606 TestObjectV8Internal::stringAttrWithSetterExceptionAttributeSetter(jsValue, info);
1515 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1607 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1516 } 1608 }
1517 1609
1518 static void customAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::P ropertyCallbackInfo<v8::Value>& info) 1610 static void customAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::P ropertyCallbackInfo<v8::Value>& info)
1519 { 1611 {
1520 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1612 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1521 V8TestObject::customAttrAttributeGetterCustom(info); 1613 V8TestObject::customAttrAttributeGetterCustom(info);
1522 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1614 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1523 } 1615 }
1524 1616
1525 static void customAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v 8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1617 static void customAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v 8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1526 { 1618 {
1527 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1619 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1528 V8TestObject::customAttrAttributeSetterCustom(jsValue, info); 1620 V8TestObject::customAttrAttributeSetterCustom(jsValue, info);
1529 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1621 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1530 } 1622 }
1531 1623
1532 static void withExecutionContextAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 1624 static void withExecutionContextAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info)
1533 { 1625 {
1534 TestObject* impl = V8TestObject::toNative(info.Holder()); 1626 v8::Handle<v8::Object> holder = info.Holder();
1627 TestObject* impl = V8TestObject::toNative(holder);
1535 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ; 1628 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ;
1536 v8SetReturnValueFast(info, WTF::getPtr(impl->withExecutionContextAttribute(s criptContext)), impl); 1629 v8SetReturnValueFast(info, WTF::getPtr(impl->withExecutionContextAttribute(s criptContext)), impl);
1537 } 1630 }
1538 1631
1539 static void withExecutionContextAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info) 1632 static void withExecutionContextAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info)
1540 { 1633 {
1541 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1634 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1542 TestObjectV8Internal::withExecutionContextAttributeAttributeGetter(info); 1635 TestObjectV8Internal::withExecutionContextAttributeAttributeGetter(info);
1543 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1636 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1544 } 1637 }
1545 1638
1546 static void withExecutionContextAttributeAttributeSetter(v8::Local<v8::Value> js Value, const v8::PropertyCallbackInfo<void>& info) 1639 static void withExecutionContextAttributeAttributeSetter(v8::Local<v8::Value> js Value, const v8::PropertyCallbackInfo<void>& info)
1547 { 1640 {
1548 TestObject* impl = V8TestObject::toNative(info.Holder()); 1641 v8::Handle<v8::Object> holder = info.Holder();
1642 TestObject* impl = V8TestObject::toNative(holder);
1549 V8TRYCATCH_VOID(TestObject*, cppValue, V8TestObject::toNativeWithTypeCheck(i nfo.GetIsolate(), jsValue)); 1643 V8TRYCATCH_VOID(TestObject*, cppValue, V8TestObject::toNativeWithTypeCheck(i nfo.GetIsolate(), jsValue));
1550 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ; 1644 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ;
1551 impl->setWithExecutionContextAttribute(scriptContext, WTF::getPtr(cppValue)) ; 1645 impl->setWithExecutionContextAttribute(scriptContext, WTF::getPtr(cppValue)) ;
1552 } 1646 }
1553 1647
1554 static void withExecutionContextAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info ) 1648 static void withExecutionContextAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info )
1555 { 1649 {
1556 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1650 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1557 TestObjectV8Internal::withExecutionContextAttributeAttributeSetter(jsValue, info); 1651 TestObjectV8Internal::withExecutionContextAttributeAttributeSetter(jsValue, info);
1558 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1652 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1559 } 1653 }
1560 1654
1561 static void withActiveWindowAndFirstWindowAttributeAttributeGetter(const v8::Pro pertyCallbackInfo<v8::Value>& info) 1655 static void withActiveWindowAndFirstWindowAttributeAttributeGetter(const v8::Pro pertyCallbackInfo<v8::Value>& info)
1562 { 1656 {
1563 TestObject* impl = V8TestObject::toNative(info.Holder()); 1657 v8::Handle<v8::Object> holder = info.Holder();
1658 TestObject* impl = V8TestObject::toNative(holder);
1564 v8SetReturnValueFast(info, WTF::getPtr(impl->withActiveWindowAndFirstWindowA ttribute()), impl); 1659 v8SetReturnValueFast(info, WTF::getPtr(impl->withActiveWindowAndFirstWindowA ttribute()), impl);
1565 } 1660 }
1566 1661
1567 static void withActiveWindowAndFirstWindowAttributeAttributeGetterCallback(v8::L ocal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1662 static void withActiveWindowAndFirstWindowAttributeAttributeGetterCallback(v8::L ocal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1568 { 1663 {
1569 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1664 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1570 TestObjectV8Internal::withActiveWindowAndFirstWindowAttributeAttributeGetter (info); 1665 TestObjectV8Internal::withActiveWindowAndFirstWindowAttributeAttributeGetter (info);
1571 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1666 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1572 } 1667 }
1573 1668
1574 static void withActiveWindowAndFirstWindowAttributeAttributeSetter(v8::Local<v8: :Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1669 static void withActiveWindowAndFirstWindowAttributeAttributeSetter(v8::Local<v8: :Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1575 { 1670 {
1576 TestObject* impl = V8TestObject::toNative(info.Holder()); 1671 v8::Handle<v8::Object> holder = info.Holder();
1672 TestObject* impl = V8TestObject::toNative(holder);
1577 V8TRYCATCH_VOID(TestObject*, cppValue, V8TestObject::toNativeWithTypeCheck(i nfo.GetIsolate(), jsValue)); 1673 V8TRYCATCH_VOID(TestObject*, cppValue, V8TestObject::toNativeWithTypeCheck(i nfo.GetIsolate(), jsValue));
1578 impl->setWithActiveWindowAndFirstWindowAttribute(callingDOMWindow(info.GetIs olate()), enteredDOMWindow(info.GetIsolate()), WTF::getPtr(cppValue)); 1674 impl->setWithActiveWindowAndFirstWindowAttribute(callingDOMWindow(info.GetIs olate()), enteredDOMWindow(info.GetIsolate()), WTF::getPtr(cppValue));
1579 } 1675 }
1580 1676
1581 static void withActiveWindowAndFirstWindowAttributeAttributeSetterCallback(v8::L ocal<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<v oid>& info) 1677 static void withActiveWindowAndFirstWindowAttributeAttributeSetterCallback(v8::L ocal<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<v oid>& info)
1582 { 1678 {
1583 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1679 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1584 TestObjectV8Internal::withActiveWindowAndFirstWindowAttributeAttributeSetter (jsValue, info); 1680 TestObjectV8Internal::withActiveWindowAndFirstWindowAttributeAttributeSetter (jsValue, info);
1585 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1681 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1586 } 1682 }
1587 1683
1588 static void withScriptStateAttributeRaisesAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info) 1684 static void withScriptStateAttributeRaisesAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info)
1589 { 1685 {
1590 TestObject* impl = V8TestObject::toNative(info.Holder()); 1686 v8::Handle<v8::Object> holder = info.Holder();
1591 ExceptionState exceptionState(ExceptionState::GetterContext, "withScriptStat eAttributeRaises", "TestObject", info.Holder(), info.GetIsolate()); 1687 TestObject* impl = V8TestObject::toNative(holder);
1688 ExceptionState exceptionState(ExceptionState::GetterContext, "withScriptStat eAttributeRaises", "TestObject", holder, info.GetIsolate());
1592 RefPtr<TestObject> jsValue = impl->withScriptStateAttributeRaises(exceptionS tate); 1689 RefPtr<TestObject> jsValue = impl->withScriptStateAttributeRaises(exceptionS tate);
1593 if (UNLIKELY(exceptionState.throwIfNeeded())) 1690 if (UNLIKELY(exceptionState.throwIfNeeded()))
1594 return; 1691 return;
1595 v8SetReturnValueFast(info, WTF::getPtr(jsValue.release()), impl); 1692 v8SetReturnValueFast(info, WTF::getPtr(jsValue.release()), impl);
1596 } 1693 }
1597 1694
1598 static void withScriptStateAttributeRaisesAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1695 static void withScriptStateAttributeRaisesAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1599 { 1696 {
1600 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1697 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1601 TestObjectV8Internal::withScriptStateAttributeRaisesAttributeGetter(info); 1698 TestObjectV8Internal::withScriptStateAttributeRaisesAttributeGetter(info);
1602 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1699 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1603 } 1700 }
1604 1701
1605 static void withScriptStateAttributeRaisesAttributeSetter(v8::Local<v8::Value> j sValue, const v8::PropertyCallbackInfo<void>& info) 1702 static void withScriptStateAttributeRaisesAttributeSetter(v8::Local<v8::Value> j sValue, const v8::PropertyCallbackInfo<void>& info)
1606 { 1703 {
1607 TestObject* impl = V8TestObject::toNative(info.Holder()); 1704 v8::Handle<v8::Object> holder = info.Holder();
1705 TestObject* impl = V8TestObject::toNative(holder);
1608 V8TRYCATCH_VOID(TestObject*, cppValue, V8TestObject::toNativeWithTypeCheck(i nfo.GetIsolate(), jsValue)); 1706 V8TRYCATCH_VOID(TestObject*, cppValue, V8TestObject::toNativeWithTypeCheck(i nfo.GetIsolate(), jsValue));
1609 impl->setWithScriptStateAttributeRaises(WTF::getPtr(cppValue)); 1707 impl->setWithScriptStateAttributeRaises(WTF::getPtr(cppValue));
1610 } 1708 }
1611 1709
1612 static void withScriptStateAttributeRaisesAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& inf o) 1710 static void withScriptStateAttributeRaisesAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& inf o)
1613 { 1711 {
1614 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1712 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1615 TestObjectV8Internal::withScriptStateAttributeRaisesAttributeSetter(jsValue, info); 1713 TestObjectV8Internal::withScriptStateAttributeRaisesAttributeSetter(jsValue, info);
1616 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1714 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1617 } 1715 }
1618 1716
1619 static void enforcedRangeByteAttrAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 1717 static void enforcedRangeByteAttrAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
1620 { 1718 {
1621 TestObject* impl = V8TestObject::toNative(info.Holder()); 1719 v8::Handle<v8::Object> holder = info.Holder();
1720 TestObject* impl = V8TestObject::toNative(holder);
1622 v8SetReturnValueInt(info, impl->enforcedRangeByteAttr()); 1721 v8SetReturnValueInt(info, impl->enforcedRangeByteAttr());
1623 } 1722 }
1624 1723
1625 static void enforcedRangeByteAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1724 static void enforcedRangeByteAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1626 { 1725 {
1627 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1726 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1628 TestObjectV8Internal::enforcedRangeByteAttrAttributeGetter(info); 1727 TestObjectV8Internal::enforcedRangeByteAttrAttributeGetter(info);
1629 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1728 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1630 } 1729 }
1631 1730
1632 static void enforcedRangeByteAttrAttributeSetter(v8::Local<v8::Value> jsValue, c onst v8::PropertyCallbackInfo<void>& info) 1731 static void enforcedRangeByteAttrAttributeSetter(v8::Local<v8::Value> jsValue, c onst v8::PropertyCallbackInfo<void>& info)
1633 { 1732 {
1634 ExceptionState exceptionState(ExceptionState::SetterContext, "enforcedRangeB yteAttr", "TestObject", info.Holder(), info.GetIsolate()); 1733 v8::Handle<v8::Object> holder = info.Holder();
1635 TestObject* impl = V8TestObject::toNative(info.Holder()); 1734 ExceptionState exceptionState(ExceptionState::SetterContext, "enforcedRangeB yteAttr", "TestObject", holder, info.GetIsolate());
1735 TestObject* impl = V8TestObject::toNative(holder);
1636 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt8(jsValue, EnforceRange, excep tionState), exceptionState); 1736 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt8(jsValue, EnforceRange, excep tionState), exceptionState);
1637 impl->setEnforcedRangeByteAttr(cppValue); 1737 impl->setEnforcedRangeByteAttr(cppValue);
1638 } 1738 }
1639 1739
1640 static void enforcedRangeByteAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1740 static void enforcedRangeByteAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1641 { 1741 {
1642 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1742 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1643 TestObjectV8Internal::enforcedRangeByteAttrAttributeSetter(jsValue, info); 1743 TestObjectV8Internal::enforcedRangeByteAttrAttributeSetter(jsValue, info);
1644 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1744 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1645 } 1745 }
1646 1746
1647 static void enforcedRangeOctetAttrAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 1747 static void enforcedRangeOctetAttrAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
1648 { 1748 {
1649 TestObject* impl = V8TestObject::toNative(info.Holder()); 1749 v8::Handle<v8::Object> holder = info.Holder();
1750 TestObject* impl = V8TestObject::toNative(holder);
1650 v8SetReturnValueUnsigned(info, impl->enforcedRangeOctetAttr()); 1751 v8SetReturnValueUnsigned(info, impl->enforcedRangeOctetAttr());
1651 } 1752 }
1652 1753
1653 static void enforcedRangeOctetAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1754 static void enforcedRangeOctetAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1654 { 1755 {
1655 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1756 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1656 TestObjectV8Internal::enforcedRangeOctetAttrAttributeGetter(info); 1757 TestObjectV8Internal::enforcedRangeOctetAttrAttributeGetter(info);
1657 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1758 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1658 } 1759 }
1659 1760
1660 static void enforcedRangeOctetAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1761 static void enforcedRangeOctetAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1661 { 1762 {
1662 ExceptionState exceptionState(ExceptionState::SetterContext, "enforcedRangeO ctetAttr", "TestObject", info.Holder(), info.GetIsolate()); 1763 v8::Handle<v8::Object> holder = info.Holder();
1663 TestObject* impl = V8TestObject::toNative(info.Holder()); 1764 ExceptionState exceptionState(ExceptionState::SetterContext, "enforcedRangeO ctetAttr", "TestObject", holder, info.GetIsolate());
1765 TestObject* impl = V8TestObject::toNative(holder);
1664 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt8(jsValue, EnforceRange, exceptionState), exceptionState); 1766 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt8(jsValue, EnforceRange, exceptionState), exceptionState);
1665 impl->setEnforcedRangeOctetAttr(cppValue); 1767 impl->setEnforcedRangeOctetAttr(cppValue);
1666 } 1768 }
1667 1769
1668 static void enforcedRangeOctetAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1770 static void enforcedRangeOctetAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1669 { 1771 {
1670 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1772 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1671 TestObjectV8Internal::enforcedRangeOctetAttrAttributeSetter(jsValue, info); 1773 TestObjectV8Internal::enforcedRangeOctetAttrAttributeSetter(jsValue, info);
1672 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1774 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1673 } 1775 }
1674 1776
1675 static void enforcedRangeShortAttrAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 1777 static void enforcedRangeShortAttrAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
1676 { 1778 {
1677 TestObject* impl = V8TestObject::toNative(info.Holder()); 1779 v8::Handle<v8::Object> holder = info.Holder();
1780 TestObject* impl = V8TestObject::toNative(holder);
1678 v8SetReturnValueInt(info, impl->enforcedRangeShortAttr()); 1781 v8SetReturnValueInt(info, impl->enforcedRangeShortAttr());
1679 } 1782 }
1680 1783
1681 static void enforcedRangeShortAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1784 static void enforcedRangeShortAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1682 { 1785 {
1683 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1786 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1684 TestObjectV8Internal::enforcedRangeShortAttrAttributeGetter(info); 1787 TestObjectV8Internal::enforcedRangeShortAttrAttributeGetter(info);
1685 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1788 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1686 } 1789 }
1687 1790
1688 static void enforcedRangeShortAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1791 static void enforcedRangeShortAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1689 { 1792 {
1690 ExceptionState exceptionState(ExceptionState::SetterContext, "enforcedRangeS hortAttr", "TestObject", info.Holder(), info.GetIsolate()); 1793 v8::Handle<v8::Object> holder = info.Holder();
1691 TestObject* impl = V8TestObject::toNative(info.Holder()); 1794 ExceptionState exceptionState(ExceptionState::SetterContext, "enforcedRangeS hortAttr", "TestObject", holder, info.GetIsolate());
1795 TestObject* impl = V8TestObject::toNative(holder);
1692 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt16(jsValue, EnforceRange, exce ptionState), exceptionState); 1796 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt16(jsValue, EnforceRange, exce ptionState), exceptionState);
1693 impl->setEnforcedRangeShortAttr(cppValue); 1797 impl->setEnforcedRangeShortAttr(cppValue);
1694 } 1798 }
1695 1799
1696 static void enforcedRangeShortAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1800 static void enforcedRangeShortAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1697 { 1801 {
1698 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1802 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1699 TestObjectV8Internal::enforcedRangeShortAttrAttributeSetter(jsValue, info); 1803 TestObjectV8Internal::enforcedRangeShortAttrAttributeSetter(jsValue, info);
1700 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1804 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1701 } 1805 }
1702 1806
1703 static void enforcedRangeUnsignedShortAttrAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info) 1807 static void enforcedRangeUnsignedShortAttrAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info)
1704 { 1808 {
1705 TestObject* impl = V8TestObject::toNative(info.Holder()); 1809 v8::Handle<v8::Object> holder = info.Holder();
1810 TestObject* impl = V8TestObject::toNative(holder);
1706 v8SetReturnValueUnsigned(info, impl->enforcedRangeUnsignedShortAttr()); 1811 v8SetReturnValueUnsigned(info, impl->enforcedRangeUnsignedShortAttr());
1707 } 1812 }
1708 1813
1709 static void enforcedRangeUnsignedShortAttrAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1814 static void enforcedRangeUnsignedShortAttrAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1710 { 1815 {
1711 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1816 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1712 TestObjectV8Internal::enforcedRangeUnsignedShortAttrAttributeGetter(info); 1817 TestObjectV8Internal::enforcedRangeUnsignedShortAttrAttributeGetter(info);
1713 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1818 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1714 } 1819 }
1715 1820
1716 static void enforcedRangeUnsignedShortAttrAttributeSetter(v8::Local<v8::Value> j sValue, const v8::PropertyCallbackInfo<void>& info) 1821 static void enforcedRangeUnsignedShortAttrAttributeSetter(v8::Local<v8::Value> j sValue, const v8::PropertyCallbackInfo<void>& info)
1717 { 1822 {
1718 ExceptionState exceptionState(ExceptionState::SetterContext, "enforcedRangeU nsignedShortAttr", "TestObject", info.Holder(), info.GetIsolate()); 1823 v8::Handle<v8::Object> holder = info.Holder();
1719 TestObject* impl = V8TestObject::toNative(info.Holder()); 1824 ExceptionState exceptionState(ExceptionState::SetterContext, "enforcedRangeU nsignedShortAttr", "TestObject", holder, info.GetIsolate());
1825 TestObject* impl = V8TestObject::toNative(holder);
1720 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt16(jsValue, EnforceRange , exceptionState), exceptionState); 1826 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt16(jsValue, EnforceRange , exceptionState), exceptionState);
1721 impl->setEnforcedRangeUnsignedShortAttr(cppValue); 1827 impl->setEnforcedRangeUnsignedShortAttr(cppValue);
1722 } 1828 }
1723 1829
1724 static void enforcedRangeUnsignedShortAttrAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& inf o) 1830 static void enforcedRangeUnsignedShortAttrAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& inf o)
1725 { 1831 {
1726 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1832 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1727 TestObjectV8Internal::enforcedRangeUnsignedShortAttrAttributeSetter(jsValue, info); 1833 TestObjectV8Internal::enforcedRangeUnsignedShortAttrAttributeSetter(jsValue, info);
1728 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1834 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1729 } 1835 }
1730 1836
1731 static void enforcedRangeLongAttrAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 1837 static void enforcedRangeLongAttrAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
1732 { 1838 {
1733 TestObject* impl = V8TestObject::toNative(info.Holder()); 1839 v8::Handle<v8::Object> holder = info.Holder();
1840 TestObject* impl = V8TestObject::toNative(holder);
1734 v8SetReturnValueInt(info, impl->enforcedRangeLongAttr()); 1841 v8SetReturnValueInt(info, impl->enforcedRangeLongAttr());
1735 } 1842 }
1736 1843
1737 static void enforcedRangeLongAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1844 static void enforcedRangeLongAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1738 { 1845 {
1739 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1846 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1740 TestObjectV8Internal::enforcedRangeLongAttrAttributeGetter(info); 1847 TestObjectV8Internal::enforcedRangeLongAttrAttributeGetter(info);
1741 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1848 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1742 } 1849 }
1743 1850
1744 static void enforcedRangeLongAttrAttributeSetter(v8::Local<v8::Value> jsValue, c onst v8::PropertyCallbackInfo<void>& info) 1851 static void enforcedRangeLongAttrAttributeSetter(v8::Local<v8::Value> jsValue, c onst v8::PropertyCallbackInfo<void>& info)
1745 { 1852 {
1746 ExceptionState exceptionState(ExceptionState::SetterContext, "enforcedRangeL ongAttr", "TestObject", info.Holder(), info.GetIsolate()); 1853 v8::Handle<v8::Object> holder = info.Holder();
1747 TestObject* impl = V8TestObject::toNative(info.Holder()); 1854 ExceptionState exceptionState(ExceptionState::SetterContext, "enforcedRangeL ongAttr", "TestObject", holder, info.GetIsolate());
1855 TestObject* impl = V8TestObject::toNative(holder);
1748 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, EnforceRange, exce ptionState), exceptionState); 1856 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, EnforceRange, exce ptionState), exceptionState);
1749 impl->setEnforcedRangeLongAttr(cppValue); 1857 impl->setEnforcedRangeLongAttr(cppValue);
1750 } 1858 }
1751 1859
1752 static void enforcedRangeLongAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1860 static void enforcedRangeLongAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1753 { 1861 {
1754 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1862 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1755 TestObjectV8Internal::enforcedRangeLongAttrAttributeSetter(jsValue, info); 1863 TestObjectV8Internal::enforcedRangeLongAttrAttributeSetter(jsValue, info);
1756 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1864 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1757 } 1865 }
1758 1866
1759 static void enforcedRangeUnsignedLongAttrAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 1867 static void enforcedRangeUnsignedLongAttrAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info)
1760 { 1868 {
1761 TestObject* impl = V8TestObject::toNative(info.Holder()); 1869 v8::Handle<v8::Object> holder = info.Holder();
1870 TestObject* impl = V8TestObject::toNative(holder);
1762 v8SetReturnValueUnsigned(info, impl->enforcedRangeUnsignedLongAttr()); 1871 v8SetReturnValueUnsigned(info, impl->enforcedRangeUnsignedLongAttr());
1763 } 1872 }
1764 1873
1765 static void enforcedRangeUnsignedLongAttrAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info) 1874 static void enforcedRangeUnsignedLongAttrAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info)
1766 { 1875 {
1767 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1876 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1768 TestObjectV8Internal::enforcedRangeUnsignedLongAttrAttributeGetter(info); 1877 TestObjectV8Internal::enforcedRangeUnsignedLongAttrAttributeGetter(info);
1769 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1878 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1770 } 1879 }
1771 1880
1772 static void enforcedRangeUnsignedLongAttrAttributeSetter(v8::Local<v8::Value> js Value, const v8::PropertyCallbackInfo<void>& info) 1881 static void enforcedRangeUnsignedLongAttrAttributeSetter(v8::Local<v8::Value> js Value, const v8::PropertyCallbackInfo<void>& info)
1773 { 1882 {
1774 ExceptionState exceptionState(ExceptionState::SetterContext, "enforcedRangeU nsignedLongAttr", "TestObject", info.Holder(), info.GetIsolate()); 1883 v8::Handle<v8::Object> holder = info.Holder();
1775 TestObject* impl = V8TestObject::toNative(info.Holder()); 1884 ExceptionState exceptionState(ExceptionState::SetterContext, "enforcedRangeU nsignedLongAttr", "TestObject", holder, info.GetIsolate());
1885 TestObject* impl = V8TestObject::toNative(holder);
1776 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt32(jsValue, EnforceRange , exceptionState), exceptionState); 1886 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt32(jsValue, EnforceRange , exceptionState), exceptionState);
1777 impl->setEnforcedRangeUnsignedLongAttr(cppValue); 1887 impl->setEnforcedRangeUnsignedLongAttr(cppValue);
1778 } 1888 }
1779 1889
1780 static void enforcedRangeUnsignedLongAttrAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info ) 1890 static void enforcedRangeUnsignedLongAttrAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info )
1781 { 1891 {
1782 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1892 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1783 TestObjectV8Internal::enforcedRangeUnsignedLongAttrAttributeSetter(jsValue, info); 1893 TestObjectV8Internal::enforcedRangeUnsignedLongAttrAttributeSetter(jsValue, info);
1784 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1894 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1785 } 1895 }
1786 1896
1787 static void enforcedRangeLongLongAttrAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 1897 static void enforcedRangeLongLongAttrAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
1788 { 1898 {
1789 TestObject* impl = V8TestObject::toNative(info.Holder()); 1899 v8::Handle<v8::Object> holder = info.Holder();
1900 TestObject* impl = V8TestObject::toNative(holder);
1790 v8SetReturnValue(info, static_cast<double>(impl->enforcedRangeLongLongAttr() )); 1901 v8SetReturnValue(info, static_cast<double>(impl->enforcedRangeLongLongAttr() ));
1791 } 1902 }
1792 1903
1793 static void enforcedRangeLongLongAttrAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 1904 static void enforcedRangeLongLongAttrAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
1794 { 1905 {
1795 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1906 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1796 TestObjectV8Internal::enforcedRangeLongLongAttrAttributeGetter(info); 1907 TestObjectV8Internal::enforcedRangeLongLongAttrAttributeGetter(info);
1797 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1908 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1798 } 1909 }
1799 1910
1800 static void enforcedRangeLongLongAttrAttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info) 1911 static void enforcedRangeLongLongAttrAttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info)
1801 { 1912 {
1802 ExceptionState exceptionState(ExceptionState::SetterContext, "enforcedRangeL ongLongAttr", "TestObject", info.Holder(), info.GetIsolate()); 1913 v8::Handle<v8::Object> holder = info.Holder();
1803 TestObject* impl = V8TestObject::toNative(info.Holder()); 1914 ExceptionState exceptionState(ExceptionState::SetterContext, "enforcedRangeL ongLongAttr", "TestObject", holder, info.GetIsolate());
1915 TestObject* impl = V8TestObject::toNative(holder);
1804 V8TRYCATCH_EXCEPTION_VOID(long long, cppValue, toInt64(jsValue, EnforceRange , exceptionState), exceptionState); 1916 V8TRYCATCH_EXCEPTION_VOID(long long, cppValue, toInt64(jsValue, EnforceRange , exceptionState), exceptionState);
1805 impl->setEnforcedRangeLongLongAttr(cppValue); 1917 impl->setEnforcedRangeLongLongAttr(cppValue);
1806 } 1918 }
1807 1919
1808 static void enforcedRangeLongLongAttrAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1920 static void enforcedRangeLongLongAttrAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1809 { 1921 {
1810 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1922 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1811 TestObjectV8Internal::enforcedRangeLongLongAttrAttributeSetter(jsValue, info ); 1923 TestObjectV8Internal::enforcedRangeLongLongAttrAttributeSetter(jsValue, info );
1812 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1924 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1813 } 1925 }
1814 1926
1815 static void enforcedRangeUnsignedLongLongAttrAttributeGetter(const v8::PropertyC allbackInfo<v8::Value>& info) 1927 static void enforcedRangeUnsignedLongLongAttrAttributeGetter(const v8::PropertyC allbackInfo<v8::Value>& info)
1816 { 1928 {
1817 TestObject* impl = V8TestObject::toNative(info.Holder()); 1929 v8::Handle<v8::Object> holder = info.Holder();
1930 TestObject* impl = V8TestObject::toNative(holder);
1818 v8SetReturnValue(info, static_cast<double>(impl->enforcedRangeUnsignedLongLo ngAttr())); 1931 v8SetReturnValue(info, static_cast<double>(impl->enforcedRangeUnsignedLongLo ngAttr()));
1819 } 1932 }
1820 1933
1821 static void enforcedRangeUnsignedLongLongAttrAttributeGetterCallback(v8::Local<v 8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1934 static void enforcedRangeUnsignedLongLongAttrAttributeGetterCallback(v8::Local<v 8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1822 { 1935 {
1823 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1936 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1824 TestObjectV8Internal::enforcedRangeUnsignedLongLongAttrAttributeGetter(info) ; 1937 TestObjectV8Internal::enforcedRangeUnsignedLongLongAttrAttributeGetter(info) ;
1825 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1938 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1826 } 1939 }
1827 1940
1828 static void enforcedRangeUnsignedLongLongAttrAttributeSetter(v8::Local<v8::Value > jsValue, const v8::PropertyCallbackInfo<void>& info) 1941 static void enforcedRangeUnsignedLongLongAttrAttributeSetter(v8::Local<v8::Value > jsValue, const v8::PropertyCallbackInfo<void>& info)
1829 { 1942 {
1830 ExceptionState exceptionState(ExceptionState::SetterContext, "enforcedRangeU nsignedLongLongAttr", "TestObject", info.Holder(), info.GetIsolate()); 1943 v8::Handle<v8::Object> holder = info.Holder();
1831 TestObject* impl = V8TestObject::toNative(info.Holder()); 1944 ExceptionState exceptionState(ExceptionState::SetterContext, "enforcedRangeU nsignedLongLongAttr", "TestObject", holder, info.GetIsolate());
1945 TestObject* impl = V8TestObject::toNative(holder);
1832 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, cppValue, toUInt64(jsValue, En forceRange, exceptionState), exceptionState); 1946 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, cppValue, toUInt64(jsValue, En forceRange, exceptionState), exceptionState);
1833 impl->setEnforcedRangeUnsignedLongLongAttr(cppValue); 1947 impl->setEnforcedRangeUnsignedLongLongAttr(cppValue);
1834 } 1948 }
1835 1949
1836 static void enforcedRangeUnsignedLongLongAttrAttributeSetterCallback(v8::Local<v 8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1950 static void enforcedRangeUnsignedLongLongAttrAttributeSetterCallback(v8::Local<v 8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1837 { 1951 {
1838 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1952 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1839 TestObjectV8Internal::enforcedRangeUnsignedLongLongAttrAttributeSetter(jsVal ue, info); 1953 TestObjectV8Internal::enforcedRangeUnsignedLongLongAttrAttributeSetter(jsVal ue, info);
1840 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1954 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1841 } 1955 }
1842 1956
1843 #if ENABLE(Condition1) 1957 #if ENABLE(Condition1)
1844 static void conditionalAttr1AttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 1958 static void conditionalAttr1AttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
1845 { 1959 {
1846 TestObject* impl = V8TestObject::toNative(info.Holder()); 1960 v8::Handle<v8::Object> holder = info.Holder();
1961 TestObject* impl = V8TestObject::toNative(holder);
1847 v8SetReturnValueInt(info, impl->conditionalAttr1()); 1962 v8SetReturnValueInt(info, impl->conditionalAttr1());
1848 } 1963 }
1849 #endif // ENABLE(Condition1) 1964 #endif // ENABLE(Condition1)
1850 1965
1851 #if ENABLE(Condition1) 1966 #if ENABLE(Condition1)
1852 static void conditionalAttr1AttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1967 static void conditionalAttr1AttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1853 { 1968 {
1854 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1969 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1855 TestObjectV8Internal::conditionalAttr1AttributeGetter(info); 1970 TestObjectV8Internal::conditionalAttr1AttributeGetter(info);
1856 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1971 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1857 } 1972 }
1858 #endif // ENABLE(Condition1) 1973 #endif // ENABLE(Condition1)
1859 1974
1860 #if ENABLE(Condition1) 1975 #if ENABLE(Condition1)
1861 static void conditionalAttr1AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1976 static void conditionalAttr1AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1862 { 1977 {
1863 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalAtt r1", "TestObject", info.Holder(), info.GetIsolate()); 1978 v8::Handle<v8::Object> holder = info.Holder();
1864 TestObject* impl = V8TestObject::toNative(info.Holder()); 1979 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalAtt r1", "TestObject", holder, info.GetIsolate());
1980 TestObject* impl = V8TestObject::toNative(holder);
1865 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 1981 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
1866 impl->setConditionalAttr1(cppValue); 1982 impl->setConditionalAttr1(cppValue);
1867 } 1983 }
1868 #endif // ENABLE(Condition1) 1984 #endif // ENABLE(Condition1)
1869 1985
1870 #if ENABLE(Condition1) 1986 #if ENABLE(Condition1)
1871 static void conditionalAttr1AttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1987 static void conditionalAttr1AttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1872 { 1988 {
1873 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1989 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1874 TestObjectV8Internal::conditionalAttr1AttributeSetter(jsValue, info); 1990 TestObjectV8Internal::conditionalAttr1AttributeSetter(jsValue, info);
1875 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1991 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1876 } 1992 }
1877 #endif // ENABLE(Condition1) 1993 #endif // ENABLE(Condition1)
1878 1994
1879 #if ENABLE(Condition1) && ENABLE(Condition2) 1995 #if ENABLE(Condition1) && ENABLE(Condition2)
1880 static void conditionalAttr2AttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 1996 static void conditionalAttr2AttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
1881 { 1997 {
1882 TestObject* impl = V8TestObject::toNative(info.Holder()); 1998 v8::Handle<v8::Object> holder = info.Holder();
1999 TestObject* impl = V8TestObject::toNative(holder);
1883 v8SetReturnValueInt(info, impl->conditionalAttr2()); 2000 v8SetReturnValueInt(info, impl->conditionalAttr2());
1884 } 2001 }
1885 #endif // ENABLE(Condition1) && ENABLE(Condition2) 2002 #endif // ENABLE(Condition1) && ENABLE(Condition2)
1886 2003
1887 #if ENABLE(Condition1) && ENABLE(Condition2) 2004 #if ENABLE(Condition1) && ENABLE(Condition2)
1888 static void conditionalAttr2AttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2005 static void conditionalAttr2AttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1889 { 2006 {
1890 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2007 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1891 TestObjectV8Internal::conditionalAttr2AttributeGetter(info); 2008 TestObjectV8Internal::conditionalAttr2AttributeGetter(info);
1892 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2009 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1893 } 2010 }
1894 #endif // ENABLE(Condition1) && ENABLE(Condition2) 2011 #endif // ENABLE(Condition1) && ENABLE(Condition2)
1895 2012
1896 #if ENABLE(Condition1) && ENABLE(Condition2) 2013 #if ENABLE(Condition1) && ENABLE(Condition2)
1897 static void conditionalAttr2AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2014 static void conditionalAttr2AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1898 { 2015 {
1899 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalAtt r2", "TestObject", info.Holder(), info.GetIsolate()); 2016 v8::Handle<v8::Object> holder = info.Holder();
1900 TestObject* impl = V8TestObject::toNative(info.Holder()); 2017 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalAtt r2", "TestObject", holder, info.GetIsolate());
2018 TestObject* impl = V8TestObject::toNative(holder);
1901 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2019 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
1902 impl->setConditionalAttr2(cppValue); 2020 impl->setConditionalAttr2(cppValue);
1903 } 2021 }
1904 #endif // ENABLE(Condition1) && ENABLE(Condition2) 2022 #endif // ENABLE(Condition1) && ENABLE(Condition2)
1905 2023
1906 #if ENABLE(Condition1) && ENABLE(Condition2) 2024 #if ENABLE(Condition1) && ENABLE(Condition2)
1907 static void conditionalAttr2AttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2025 static void conditionalAttr2AttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1908 { 2026 {
1909 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2027 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1910 TestObjectV8Internal::conditionalAttr2AttributeSetter(jsValue, info); 2028 TestObjectV8Internal::conditionalAttr2AttributeSetter(jsValue, info);
1911 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2029 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1912 } 2030 }
1913 #endif // ENABLE(Condition1) && ENABLE(Condition2) 2031 #endif // ENABLE(Condition1) && ENABLE(Condition2)
1914 2032
1915 #if ENABLE(Condition1) || ENABLE(Condition2) || ENABLE(Condition3) 2033 #if ENABLE(Condition1) || ENABLE(Condition2) || ENABLE(Condition3)
1916 static void conditionalAttr3AttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 2034 static void conditionalAttr3AttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
1917 { 2035 {
1918 TestObject* impl = V8TestObject::toNative(info.Holder()); 2036 v8::Handle<v8::Object> holder = info.Holder();
2037 TestObject* impl = V8TestObject::toNative(holder);
1919 v8SetReturnValueInt(info, impl->conditionalAttr3()); 2038 v8SetReturnValueInt(info, impl->conditionalAttr3());
1920 } 2039 }
1921 #endif // ENABLE(Condition1) || ENABLE(Condition2) || ENABLE(Condition3) 2040 #endif // ENABLE(Condition1) || ENABLE(Condition2) || ENABLE(Condition3)
1922 2041
1923 #if ENABLE(Condition1) || ENABLE(Condition2) || ENABLE(Condition3) 2042 #if ENABLE(Condition1) || ENABLE(Condition2) || ENABLE(Condition3)
1924 static void conditionalAttr3AttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2043 static void conditionalAttr3AttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1925 { 2044 {
1926 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2045 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1927 TestObjectV8Internal::conditionalAttr3AttributeGetter(info); 2046 TestObjectV8Internal::conditionalAttr3AttributeGetter(info);
1928 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2047 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1929 } 2048 }
1930 #endif // ENABLE(Condition1) || ENABLE(Condition2) || ENABLE(Condition3) 2049 #endif // ENABLE(Condition1) || ENABLE(Condition2) || ENABLE(Condition3)
1931 2050
1932 #if ENABLE(Condition1) || ENABLE(Condition2) || ENABLE(Condition3) 2051 #if ENABLE(Condition1) || ENABLE(Condition2) || ENABLE(Condition3)
1933 static void conditionalAttr3AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2052 static void conditionalAttr3AttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1934 { 2053 {
1935 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalAtt r3", "TestObject", info.Holder(), info.GetIsolate()); 2054 v8::Handle<v8::Object> holder = info.Holder();
1936 TestObject* impl = V8TestObject::toNative(info.Holder()); 2055 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalAtt r3", "TestObject", holder, info.GetIsolate());
2056 TestObject* impl = V8TestObject::toNative(holder);
1937 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2057 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
1938 impl->setConditionalAttr3(cppValue); 2058 impl->setConditionalAttr3(cppValue);
1939 } 2059 }
1940 #endif // ENABLE(Condition1) || ENABLE(Condition2) || ENABLE(Condition3) 2060 #endif // ENABLE(Condition1) || ENABLE(Condition2) || ENABLE(Condition3)
1941 2061
1942 #if ENABLE(Condition1) || ENABLE(Condition2) || ENABLE(Condition3) 2062 #if ENABLE(Condition1) || ENABLE(Condition2) || ENABLE(Condition3)
1943 static void conditionalAttr3AttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2063 static void conditionalAttr3AttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
1944 { 2064 {
1945 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2065 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1946 TestObjectV8Internal::conditionalAttr3AttributeSetter(jsValue, info); 2066 TestObjectV8Internal::conditionalAttr3AttributeSetter(jsValue, info);
1947 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2067 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1948 } 2068 }
1949 #endif // ENABLE(Condition1) || ENABLE(Condition2) || ENABLE(Condition3) 2069 #endif // ENABLE(Condition1) || ENABLE(Condition2) || ENABLE(Condition3)
1950 2070
1951 static void cachedAttribute1AttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 2071 static void cachedAttribute1AttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
1952 { 2072 {
1953 TestObject* impl = V8TestObject::toNative(info.Holder()); 2073 v8::Handle<v8::Object> holder = info.Holder();
2074 TestObject* impl = V8TestObject::toNative(holder);
1954 v8SetReturnValue(info, impl->cachedAttribute1().v8Value()); 2075 v8SetReturnValue(info, impl->cachedAttribute1().v8Value());
1955 } 2076 }
1956 2077
1957 static void cachedAttribute1AttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2078 static void cachedAttribute1AttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1958 { 2079 {
1959 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2080 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1960 TestObjectV8Internal::cachedAttribute1AttributeGetter(info); 2081 TestObjectV8Internal::cachedAttribute1AttributeGetter(info);
1961 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2082 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1962 } 2083 }
1963 2084
1964 static void cachedAttribute2AttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 2085 static void cachedAttribute2AttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
1965 { 2086 {
1966 TestObject* impl = V8TestObject::toNative(info.Holder()); 2087 v8::Handle<v8::Object> holder = info.Holder();
2088 TestObject* impl = V8TestObject::toNative(holder);
1967 v8SetReturnValue(info, impl->cachedAttribute2().v8Value()); 2089 v8SetReturnValue(info, impl->cachedAttribute2().v8Value());
1968 } 2090 }
1969 2091
1970 static void cachedAttribute2AttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2092 static void cachedAttribute2AttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1971 { 2093 {
1972 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2094 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1973 TestObjectV8Internal::cachedAttribute2AttributeGetter(info); 2095 TestObjectV8Internal::cachedAttribute2AttributeGetter(info);
1974 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2096 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1975 } 2097 }
1976 2098
1977 static void cachedDirtyableAttributeAttributeGetter(const v8::PropertyCallbackIn fo<v8::Value>& info) 2099 static void cachedDirtyableAttributeAttributeGetter(const v8::PropertyCallbackIn fo<v8::Value>& info)
1978 { 2100 {
2101 v8::Handle<v8::Object> holder = info.Holder();
1979 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac hedDirtyableAttribute"); 2102 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac hedDirtyableAttribute");
1980 TestObject* impl = V8TestObject::toNative(info.Holder()); 2103 TestObject* impl = V8TestObject::toNative(holder);
1981 if (!impl->isValueDirty()) { 2104 if (!impl->isValueDirty()) {
1982 v8::Handle<v8::Value> jsValue = V8HiddenValue::getHiddenValue(info.GetIs olate(), info.Holder(), propertyName); 2105 v8::Handle<v8::Value> jsValue = V8HiddenValue::getHiddenValue(info.GetIs olate(), holder, propertyName);
1983 if (!jsValue.IsEmpty()) { 2106 if (!jsValue.IsEmpty()) {
1984 v8SetReturnValue(info, jsValue); 2107 v8SetReturnValue(info, jsValue);
1985 return; 2108 return;
1986 } 2109 }
1987 } 2110 }
1988 ScriptValue jsValue = impl->cachedDirtyableAttribute(); 2111 ScriptValue jsValue = impl->cachedDirtyableAttribute();
1989 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), propertyName , jsValue.v8Value()); 2112 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, jsVal ue.v8Value());
1990 v8SetReturnValue(info, jsValue.v8Value()); 2113 v8SetReturnValue(info, jsValue.v8Value());
1991 } 2114 }
1992 2115
1993 static void cachedDirtyableAttributeAttributeGetterCallback(v8::Local<v8::String >, const v8::PropertyCallbackInfo<v8::Value>& info) 2116 static void cachedDirtyableAttributeAttributeGetterCallback(v8::Local<v8::String >, const v8::PropertyCallbackInfo<v8::Value>& info)
1994 { 2117 {
1995 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2118 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1996 TestObjectV8Internal::cachedDirtyableAttributeAttributeGetter(info); 2119 TestObjectV8Internal::cachedDirtyableAttributeAttributeGetter(info);
1997 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2120 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1998 } 2121 }
1999 2122
2000 static void cachedDirtyableAttributeRaisesAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info) 2123 static void cachedDirtyableAttributeRaisesAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info)
2001 { 2124 {
2125 v8::Handle<v8::Object> holder = info.Holder();
2002 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac hedDirtyableAttributeRaises"); 2126 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac hedDirtyableAttributeRaises");
2003 TestObject* impl = V8TestObject::toNative(info.Holder()); 2127 TestObject* impl = V8TestObject::toNative(holder);
2004 if (!impl->isValueDirty()) { 2128 if (!impl->isValueDirty()) {
2005 v8::Handle<v8::Value> jsValue = V8HiddenValue::getHiddenValue(info.GetIs olate(), info.Holder(), propertyName); 2129 v8::Handle<v8::Value> jsValue = V8HiddenValue::getHiddenValue(info.GetIs olate(), holder, propertyName);
2006 if (!jsValue.IsEmpty()) { 2130 if (!jsValue.IsEmpty()) {
2007 v8SetReturnValue(info, jsValue); 2131 v8SetReturnValue(info, jsValue);
2008 return; 2132 return;
2009 } 2133 }
2010 } 2134 }
2011 ExceptionState exceptionState(ExceptionState::GetterContext, "cachedDirtyabl eAttributeRaises", "TestObject", info.Holder(), info.GetIsolate()); 2135 ExceptionState exceptionState(ExceptionState::GetterContext, "cachedDirtyabl eAttributeRaises", "TestObject", holder, info.GetIsolate());
2012 ScriptValue jsValue = impl->cachedDirtyableAttributeRaises(exceptionState); 2136 ScriptValue jsValue = impl->cachedDirtyableAttributeRaises(exceptionState);
2013 if (UNLIKELY(exceptionState.throwIfNeeded())) 2137 if (UNLIKELY(exceptionState.throwIfNeeded()))
2014 return; 2138 return;
2015 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), propertyName , jsValue.v8Value()); 2139 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, jsVal ue.v8Value());
2016 v8SetReturnValue(info, jsValue.v8Value()); 2140 v8SetReturnValue(info, jsValue.v8Value());
2017 } 2141 }
2018 2142
2019 static void cachedDirtyableAttributeRaisesAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2143 static void cachedDirtyableAttributeRaisesAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2020 { 2144 {
2021 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2145 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2022 TestObjectV8Internal::cachedDirtyableAttributeRaisesAttributeGetter(info); 2146 TestObjectV8Internal::cachedDirtyableAttributeRaisesAttributeGetter(info);
2023 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2147 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2024 } 2148 }
2025 2149
2026 static void anyAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 2150 static void anyAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info)
2027 { 2151 {
2028 TestObject* impl = V8TestObject::toNative(info.Holder()); 2152 v8::Handle<v8::Object> holder = info.Holder();
2153 TestObject* impl = V8TestObject::toNative(holder);
2029 v8SetReturnValue(info, impl->anyAttribute().v8Value()); 2154 v8SetReturnValue(info, impl->anyAttribute().v8Value());
2030 } 2155 }
2031 2156
2032 static void anyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info) 2157 static void anyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info)
2033 { 2158 {
2034 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2159 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2035 TestObjectV8Internal::anyAttributeAttributeGetter(info); 2160 TestObjectV8Internal::anyAttributeAttributeGetter(info);
2036 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2161 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2037 } 2162 }
2038 2163
2039 static void anyAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8:: PropertyCallbackInfo<void>& info) 2164 static void anyAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8:: PropertyCallbackInfo<void>& info)
2040 { 2165 {
2041 TestObject* impl = V8TestObject::toNative(info.Holder()); 2166 v8::Handle<v8::Object> holder = info.Holder();
2167 TestObject* impl = V8TestObject::toNative(holder);
2042 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate( ))); 2168 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate( )));
2043 impl->setAnyAttribute(cppValue); 2169 impl->setAnyAttribute(cppValue);
2044 } 2170 }
2045 2171
2046 static void anyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2172 static void anyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2047 { 2173 {
2048 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2174 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2049 TestObjectV8Internal::anyAttributeAttributeSetter(jsValue, info); 2175 TestObjectV8Internal::anyAttributeAttributeSetter(jsValue, info);
2050 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2176 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2051 } 2177 }
2052 2178
2053 static void callbackFunctionAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 2179 static void callbackFunctionAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
2054 { 2180 {
2055 TestObject* impl = V8TestObject::toNative(info.Holder()); 2181 v8::Handle<v8::Object> holder = info.Holder();
2182 TestObject* impl = V8TestObject::toNative(holder);
2056 v8SetReturnValue(info, impl->callbackFunctionAttribute().v8Value()); 2183 v8SetReturnValue(info, impl->callbackFunctionAttribute().v8Value());
2057 } 2184 }
2058 2185
2059 static void callbackFunctionAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 2186 static void callbackFunctionAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
2060 { 2187 {
2061 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2188 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2062 TestObjectV8Internal::callbackFunctionAttributeAttributeGetter(info); 2189 TestObjectV8Internal::callbackFunctionAttributeAttributeGetter(info);
2063 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2190 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2064 } 2191 }
2065 2192
2066 static void callbackFunctionAttributeAttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info) 2193 static void callbackFunctionAttributeAttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info)
2067 { 2194 {
2068 TestObject* impl = V8TestObject::toNative(info.Holder()); 2195 v8::Handle<v8::Object> holder = info.Holder();
2196 TestObject* impl = V8TestObject::toNative(holder);
2069 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate( ))); 2197 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate( )));
2070 impl->setCallbackFunctionAttribute(cppValue); 2198 impl->setCallbackFunctionAttribute(cppValue);
2071 } 2199 }
2072 2200
2073 static void callbackFunctionAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2201 static void callbackFunctionAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2074 { 2202 {
2075 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2203 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2076 TestObjectV8Internal::callbackFunctionAttributeAttributeSetter(jsValue, info ); 2204 TestObjectV8Internal::callbackFunctionAttributeAttributeSetter(jsValue, info );
2077 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2205 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2078 } 2206 }
2079 2207
2080 static void enabledAtRuntimeAttrAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 2208 static void enabledAtRuntimeAttrAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
2081 { 2209 {
2082 TestObject* impl = V8TestObject::toNative(info.Holder()); 2210 v8::Handle<v8::Object> holder = info.Holder();
2211 TestObject* impl = V8TestObject::toNative(holder);
2083 v8SetReturnValueInt(info, impl->enabledAtRuntimeAttr()); 2212 v8SetReturnValueInt(info, impl->enabledAtRuntimeAttr());
2084 } 2213 }
2085 2214
2086 static void enabledAtRuntimeAttrAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 2215 static void enabledAtRuntimeAttrAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
2087 { 2216 {
2088 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2217 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2089 TestObjectV8Internal::enabledAtRuntimeAttrAttributeGetter(info); 2218 TestObjectV8Internal::enabledAtRuntimeAttrAttributeGetter(info);
2090 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2219 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2091 } 2220 }
2092 2221
2093 static void enabledAtRuntimeAttrAttributeSetter(v8::Local<v8::Value> jsValue, co nst v8::PropertyCallbackInfo<void>& info) 2222 static void enabledAtRuntimeAttrAttributeSetter(v8::Local<v8::Value> jsValue, co nst v8::PropertyCallbackInfo<void>& info)
2094 { 2223 {
2095 ExceptionState exceptionState(ExceptionState::SetterContext, "enabledAtRunti meAttr", "TestObject", info.Holder(), info.GetIsolate()); 2224 v8::Handle<v8::Object> holder = info.Holder();
2096 TestObject* impl = V8TestObject::toNative(info.Holder()); 2225 ExceptionState exceptionState(ExceptionState::SetterContext, "enabledAtRunti meAttr", "TestObject", holder, info.GetIsolate());
2226 TestObject* impl = V8TestObject::toNative(holder);
2097 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2227 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
2098 impl->setEnabledAtRuntimeAttr(cppValue); 2228 impl->setEnabledAtRuntimeAttr(cppValue);
2099 } 2229 }
2100 2230
2101 static void enabledAtRuntimeAttrAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2231 static void enabledAtRuntimeAttrAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2102 { 2232 {
2103 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2233 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2104 TestObjectV8Internal::enabledAtRuntimeAttrAttributeSetter(jsValue, info); 2234 TestObjectV8Internal::enabledAtRuntimeAttrAttributeSetter(jsValue, info);
2105 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2235 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2106 } 2236 }
2107 2237
2108 static void enabledPerContextAttrAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 2238 static void enabledPerContextAttrAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
2109 { 2239 {
2110 TestObject* impl = V8TestObject::toNative(info.Holder()); 2240 v8::Handle<v8::Object> holder = info.Holder();
2241 TestObject* impl = V8TestObject::toNative(holder);
2111 v8SetReturnValueInt(info, impl->enabledPerContextAttr()); 2242 v8SetReturnValueInt(info, impl->enabledPerContextAttr());
2112 } 2243 }
2113 2244
2114 static void enabledPerContextAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2245 static void enabledPerContextAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2115 { 2246 {
2116 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2247 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2117 TestObjectV8Internal::enabledPerContextAttrAttributeGetter(info); 2248 TestObjectV8Internal::enabledPerContextAttrAttributeGetter(info);
2118 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2249 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2119 } 2250 }
2120 2251
2121 static void enabledPerContextAttrAttributeSetter(v8::Local<v8::Value> jsValue, c onst v8::PropertyCallbackInfo<void>& info) 2252 static void enabledPerContextAttrAttributeSetter(v8::Local<v8::Value> jsValue, c onst v8::PropertyCallbackInfo<void>& info)
2122 { 2253 {
2123 ExceptionState exceptionState(ExceptionState::SetterContext, "enabledPerCont extAttr", "TestObject", info.Holder(), info.GetIsolate()); 2254 v8::Handle<v8::Object> holder = info.Holder();
2124 TestObject* impl = V8TestObject::toNative(info.Holder()); 2255 ExceptionState exceptionState(ExceptionState::SetterContext, "enabledPerCont extAttr", "TestObject", holder, info.GetIsolate());
2256 TestObject* impl = V8TestObject::toNative(holder);
2125 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2257 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
2126 impl->setEnabledPerContextAttr(cppValue); 2258 impl->setEnabledPerContextAttr(cppValue);
2127 } 2259 }
2128 2260
2129 static void enabledPerContextAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2261 static void enabledPerContextAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2130 { 2262 {
2131 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2263 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2132 TestObjectV8Internal::enabledPerContextAttrAttributeSetter(jsValue, info); 2264 TestObjectV8Internal::enabledPerContextAttrAttributeSetter(jsValue, info);
2133 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2265 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2134 } 2266 }
2135 2267
2136 static void floatArrayAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 2268 static void floatArrayAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
2137 { 2269 {
2138 TestObject* impl = V8TestObject::toNative(info.Holder()); 2270 v8::Handle<v8::Object> holder = info.Holder();
2271 TestObject* impl = V8TestObject::toNative(holder);
2139 v8SetReturnValue(info, v8Array(impl->floatArray(), info.GetIsolate())); 2272 v8SetReturnValue(info, v8Array(impl->floatArray(), info.GetIsolate()));
2140 } 2273 }
2141 2274
2142 static void floatArrayAttributeGetterCallback(v8::Local<v8::String>, const v8::P ropertyCallbackInfo<v8::Value>& info) 2275 static void floatArrayAttributeGetterCallback(v8::Local<v8::String>, const v8::P ropertyCallbackInfo<v8::Value>& info)
2143 { 2276 {
2144 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2277 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2145 TestObjectV8Internal::floatArrayAttributeGetter(info); 2278 TestObjectV8Internal::floatArrayAttributeGetter(info);
2146 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2279 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2147 } 2280 }
2148 2281
2149 static void floatArrayAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Pr opertyCallbackInfo<void>& info) 2282 static void floatArrayAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Pr opertyCallbackInfo<void>& info)
2150 { 2283 {
2151 TestObject* impl = V8TestObject::toNative(info.Holder()); 2284 v8::Handle<v8::Object> holder = info.Holder();
2285 TestObject* impl = V8TestObject::toNative(holder);
2152 V8TRYCATCH_VOID(Vector<float>, cppValue, toNativeArray<float>(jsValue, 0, in fo.GetIsolate())); 2286 V8TRYCATCH_VOID(Vector<float>, cppValue, toNativeArray<float>(jsValue, 0, in fo.GetIsolate()));
2153 impl->setFloatArray(cppValue); 2287 impl->setFloatArray(cppValue);
2154 } 2288 }
2155 2289
2156 static void floatArrayAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v 8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2290 static void floatArrayAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v 8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2157 { 2291 {
2158 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2292 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2159 TestObjectV8Internal::floatArrayAttributeSetter(jsValue, info); 2293 TestObjectV8Internal::floatArrayAttributeSetter(jsValue, info);
2160 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2294 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2161 } 2295 }
2162 2296
2163 static void doubleArrayAttributeGetter(const v8::PropertyCallbackInfo<v8::Value> & info) 2297 static void doubleArrayAttributeGetter(const v8::PropertyCallbackInfo<v8::Value> & info)
2164 { 2298 {
2165 TestObject* impl = V8TestObject::toNative(info.Holder()); 2299 v8::Handle<v8::Object> holder = info.Holder();
2300 TestObject* impl = V8TestObject::toNative(holder);
2166 v8SetReturnValue(info, v8Array(impl->doubleArray(), info.GetIsolate())); 2301 v8SetReturnValue(info, v8Array(impl->doubleArray(), info.GetIsolate()));
2167 } 2302 }
2168 2303
2169 static void doubleArrayAttributeGetterCallback(v8::Local<v8::String>, const v8:: PropertyCallbackInfo<v8::Value>& info) 2304 static void doubleArrayAttributeGetterCallback(v8::Local<v8::String>, const v8:: PropertyCallbackInfo<v8::Value>& info)
2170 { 2305 {
2171 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2306 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2172 TestObjectV8Internal::doubleArrayAttributeGetter(info); 2307 TestObjectV8Internal::doubleArrayAttributeGetter(info);
2173 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2308 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2174 } 2309 }
2175 2310
2176 static void doubleArrayAttributeSetter(v8::Local<v8::Value> jsValue, const v8::P ropertyCallbackInfo<void>& info) 2311 static void doubleArrayAttributeSetter(v8::Local<v8::Value> jsValue, const v8::P ropertyCallbackInfo<void>& info)
2177 { 2312 {
2178 TestObject* impl = V8TestObject::toNative(info.Holder()); 2313 v8::Handle<v8::Object> holder = info.Holder();
2314 TestObject* impl = V8TestObject::toNative(holder);
2179 V8TRYCATCH_VOID(Vector<double>, cppValue, toNativeArray<double>(jsValue, 0, info.GetIsolate())); 2315 V8TRYCATCH_VOID(Vector<double>, cppValue, toNativeArray<double>(jsValue, 0, info.GetIsolate()));
2180 impl->setDoubleArray(cppValue); 2316 impl->setDoubleArray(cppValue);
2181 } 2317 }
2182 2318
2183 static void doubleArrayAttributeSetterCallback(v8::Local<v8::String>, v8::Local< v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2319 static void doubleArrayAttributeSetterCallback(v8::Local<v8::String>, v8::Local< v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2184 { 2320 {
2185 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2321 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2186 TestObjectV8Internal::doubleArrayAttributeSetter(jsValue, info); 2322 TestObjectV8Internal::doubleArrayAttributeSetter(jsValue, info);
2187 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2323 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2188 } 2324 }
2189 2325
2190 static void messagePortArrayAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 2326 static void messagePortArrayAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
2191 { 2327 {
2192 TestObject* impl = V8TestObject::toNative(info.Holder()); 2328 v8::Handle<v8::Object> holder = info.Holder();
2329 TestObject* impl = V8TestObject::toNative(holder);
2193 v8SetReturnValue(info, v8Array(impl->messagePortArray(), info.GetIsolate())) ; 2330 v8SetReturnValue(info, v8Array(impl->messagePortArray(), info.GetIsolate())) ;
2194 } 2331 }
2195 2332
2196 static void messagePortArrayAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2333 static void messagePortArrayAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2197 { 2334 {
2198 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2335 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2199 TestObjectV8Internal::messagePortArrayAttributeGetter(info); 2336 TestObjectV8Internal::messagePortArrayAttributeGetter(info);
2200 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2337 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2201 } 2338 }
2202 2339
2203 static void messagePortArrayAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2340 static void messagePortArrayAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2204 { 2341 {
2205 TestObject* impl = V8TestObject::toNative(info.Holder()); 2342 v8::Handle<v8::Object> holder = info.Holder();
2343 TestObject* impl = V8TestObject::toNative(holder);
2206 V8TRYCATCH_VOID(Vector<RefPtr<MessagePort> >, cppValue, (toRefPtrNativeArray <MessagePort, V8MessagePort>(jsValue, 0, info.GetIsolate()))); 2344 V8TRYCATCH_VOID(Vector<RefPtr<MessagePort> >, cppValue, (toRefPtrNativeArray <MessagePort, V8MessagePort>(jsValue, 0, info.GetIsolate())));
2207 impl->setMessagePortArray(cppValue); 2345 impl->setMessagePortArray(cppValue);
2208 } 2346 }
2209 2347
2210 static void messagePortArrayAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2348 static void messagePortArrayAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2211 { 2349 {
2212 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2350 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2213 TestObjectV8Internal::messagePortArrayAttributeSetter(jsValue, info); 2351 TestObjectV8Internal::messagePortArrayAttributeSetter(jsValue, info);
2214 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2352 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2215 } 2353 }
2216 2354
2217 static void contentDocumentAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info) 2355 static void contentDocumentAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info)
2218 { 2356 {
2219 TestObject* impl = V8TestObject::toNative(info.Holder()); 2357 v8::Handle<v8::Object> holder = info.Holder();
2220 ExceptionState exceptionState(ExceptionState::GetterContext, "contentDocumen t", "TestObject", info.Holder(), info.GetIsolate()); 2358 TestObject* impl = V8TestObject::toNative(holder);
2359 ExceptionState exceptionState(ExceptionState::GetterContext, "contentDocumen t", "TestObject", holder, info.GetIsolate());
2221 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->conte ntDocument(), exceptionState)) { 2360 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->conte ntDocument(), exceptionState)) {
2222 v8SetReturnValueNull(info); 2361 v8SetReturnValueNull(info);
2223 exceptionState.throwIfNeeded(); 2362 exceptionState.throwIfNeeded();
2224 return; 2363 return;
2225 } 2364 }
2226 v8SetReturnValueFast(info, WTF::getPtr(impl->contentDocument()), impl); 2365 v8SetReturnValueFast(info, WTF::getPtr(impl->contentDocument()), impl);
2227 } 2366 }
2228 2367
2229 static void contentDocumentAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2368 static void contentDocumentAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2230 { 2369 {
2231 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2370 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2232 TestObjectV8Internal::contentDocumentAttributeGetter(info); 2371 TestObjectV8Internal::contentDocumentAttributeGetter(info);
2233 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2372 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2234 } 2373 }
2235 2374
2236 static void strawberryAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 2375 static void strawberryAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
2237 { 2376 {
2238 TestObject* impl = V8TestObject::toNative(info.Holder()); 2377 v8::Handle<v8::Object> holder = info.Holder();
2378 TestObject* impl = V8TestObject::toNative(holder);
2239 v8SetReturnValueInt(info, impl->blueberry()); 2379 v8SetReturnValueInt(info, impl->blueberry());
2240 } 2380 }
2241 2381
2242 static void strawberryAttributeGetterCallback(v8::Local<v8::String>, const v8::P ropertyCallbackInfo<v8::Value>& info) 2382 static void strawberryAttributeGetterCallback(v8::Local<v8::String>, const v8::P ropertyCallbackInfo<v8::Value>& info)
2243 { 2383 {
2244 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2384 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2245 TestObjectV8Internal::strawberryAttributeGetter(info); 2385 TestObjectV8Internal::strawberryAttributeGetter(info);
2246 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2386 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2247 } 2387 }
2248 2388
2249 static void strawberryAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Pr opertyCallbackInfo<void>& info) 2389 static void strawberryAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Pr opertyCallbackInfo<void>& info)
2250 { 2390 {
2251 ExceptionState exceptionState(ExceptionState::SetterContext, "strawberry", " TestObject", info.Holder(), info.GetIsolate()); 2391 v8::Handle<v8::Object> holder = info.Holder();
2252 TestObject* impl = V8TestObject::toNative(info.Holder()); 2392 ExceptionState exceptionState(ExceptionState::SetterContext, "strawberry", " TestObject", holder, info.GetIsolate());
2393 TestObject* impl = V8TestObject::toNative(holder);
2253 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2394 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
2254 impl->setBlueberry(cppValue); 2395 impl->setBlueberry(cppValue);
2255 } 2396 }
2256 2397
2257 static void strawberryAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v 8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2398 static void strawberryAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v 8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2258 { 2399 {
2259 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2400 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2260 TestObjectV8Internal::strawberryAttributeSetter(jsValue, info); 2401 TestObjectV8Internal::strawberryAttributeSetter(jsValue, info);
2261 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2402 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2262 } 2403 }
2263 2404
2264 static void strictFloatAttributeGetter(const v8::PropertyCallbackInfo<v8::Value> & info) 2405 static void strictFloatAttributeGetter(const v8::PropertyCallbackInfo<v8::Value> & info)
2265 { 2406 {
2266 TestObject* impl = V8TestObject::toNative(info.Holder()); 2407 v8::Handle<v8::Object> holder = info.Holder();
2408 TestObject* impl = V8TestObject::toNative(holder);
2267 v8SetReturnValue(info, impl->strictFloat()); 2409 v8SetReturnValue(info, impl->strictFloat());
2268 } 2410 }
2269 2411
2270 static void strictFloatAttributeGetterCallback(v8::Local<v8::String>, const v8:: PropertyCallbackInfo<v8::Value>& info) 2412 static void strictFloatAttributeGetterCallback(v8::Local<v8::String>, const v8:: PropertyCallbackInfo<v8::Value>& info)
2271 { 2413 {
2272 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2414 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2273 TestObjectV8Internal::strictFloatAttributeGetter(info); 2415 TestObjectV8Internal::strictFloatAttributeGetter(info);
2274 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2416 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2275 } 2417 }
2276 2418
2277 static void strictFloatAttributeSetter(v8::Local<v8::Value> jsValue, const v8::P ropertyCallbackInfo<void>& info) 2419 static void strictFloatAttributeSetter(v8::Local<v8::Value> jsValue, const v8::P ropertyCallbackInfo<void>& info)
2278 { 2420 {
2279 TestObject* impl = V8TestObject::toNative(info.Holder()); 2421 v8::Handle<v8::Object> holder = info.Holder();
2422 TestObject* impl = V8TestObject::toNative(holder);
2280 V8TRYCATCH_VOID(float, cppValue, static_cast<float>(jsValue->NumberValue())) ; 2423 V8TRYCATCH_VOID(float, cppValue, static_cast<float>(jsValue->NumberValue())) ;
2281 impl->setStrictFloat(cppValue); 2424 impl->setStrictFloat(cppValue);
2282 } 2425 }
2283 2426
2284 static void strictFloatAttributeSetterCallback(v8::Local<v8::String>, v8::Local< v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2427 static void strictFloatAttributeSetterCallback(v8::Local<v8::String>, v8::Local< v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2285 { 2428 {
2286 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2429 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2287 TestObjectV8Internal::strictFloatAttributeSetter(jsValue, info); 2430 TestObjectV8Internal::strictFloatAttributeSetter(jsValue, info);
2288 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2431 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2289 } 2432 }
2290 2433
2291 static void replaceableAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 2434 static void replaceableAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
2292 { 2435 {
2293 TestObject* impl = V8TestObject::toNative(info.Holder()); 2436 v8::Handle<v8::Object> holder = info.Holder();
2437 TestObject* impl = V8TestObject::toNative(holder);
2294 v8SetReturnValueInt(info, impl->replaceableAttribute()); 2438 v8SetReturnValueInt(info, impl->replaceableAttribute());
2295 } 2439 }
2296 2440
2297 static void replaceableAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 2441 static void replaceableAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
2298 { 2442 {
2299 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2443 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2300 TestObjectV8Internal::replaceableAttributeAttributeGetter(info); 2444 TestObjectV8Internal::replaceableAttributeAttributeGetter(info);
2301 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2445 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2302 } 2446 }
2303 2447
2304 static void nullableDoubleAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 2448 static void nullableDoubleAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
2305 { 2449 {
2306 TestObject* impl = V8TestObject::toNative(info.Holder()); 2450 v8::Handle<v8::Object> holder = info.Holder();
2451 TestObject* impl = V8TestObject::toNative(holder);
2307 bool isNull = false; 2452 bool isNull = false;
2308 double jsValue = impl->nullableDoubleAttribute(isNull); 2453 double jsValue = impl->nullableDoubleAttribute(isNull);
2309 if (isNull) { 2454 if (isNull) {
2310 v8SetReturnValueNull(info); 2455 v8SetReturnValueNull(info);
2311 return; 2456 return;
2312 } 2457 }
2313 v8SetReturnValue(info, jsValue); 2458 v8SetReturnValue(info, jsValue);
2314 } 2459 }
2315 2460
2316 static void nullableDoubleAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 2461 static void nullableDoubleAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info)
2317 { 2462 {
2318 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2463 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2319 TestObjectV8Internal::nullableDoubleAttributeAttributeGetter(info); 2464 TestObjectV8Internal::nullableDoubleAttributeAttributeGetter(info);
2320 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2465 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2321 } 2466 }
2322 2467
2323 static void nullableLongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 2468 static void nullableLongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
2324 { 2469 {
2325 TestObject* impl = V8TestObject::toNative(info.Holder()); 2470 v8::Handle<v8::Object> holder = info.Holder();
2471 TestObject* impl = V8TestObject::toNative(holder);
2326 bool isNull = false; 2472 bool isNull = false;
2327 int jsValue = impl->nullableLongAttribute(isNull); 2473 int jsValue = impl->nullableLongAttribute(isNull);
2328 if (isNull) { 2474 if (isNull) {
2329 v8SetReturnValueNull(info); 2475 v8SetReturnValueNull(info);
2330 return; 2476 return;
2331 } 2477 }
2332 v8SetReturnValueInt(info, jsValue); 2478 v8SetReturnValueInt(info, jsValue);
2333 } 2479 }
2334 2480
2335 static void nullableLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2481 static void nullableLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2336 { 2482 {
2337 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2483 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2338 TestObjectV8Internal::nullableLongAttributeAttributeGetter(info); 2484 TestObjectV8Internal::nullableLongAttributeAttributeGetter(info);
2339 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2485 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2340 } 2486 }
2341 2487
2342 static void nullableBooleanAttributeAttributeGetter(const v8::PropertyCallbackIn fo<v8::Value>& info) 2488 static void nullableBooleanAttributeAttributeGetter(const v8::PropertyCallbackIn fo<v8::Value>& info)
2343 { 2489 {
2344 TestObject* impl = V8TestObject::toNative(info.Holder()); 2490 v8::Handle<v8::Object> holder = info.Holder();
2491 TestObject* impl = V8TestObject::toNative(holder);
2345 bool isNull = false; 2492 bool isNull = false;
2346 bool jsValue = impl->nullableBooleanAttribute(isNull); 2493 bool jsValue = impl->nullableBooleanAttribute(isNull);
2347 if (isNull) { 2494 if (isNull) {
2348 v8SetReturnValueNull(info); 2495 v8SetReturnValueNull(info);
2349 return; 2496 return;
2350 } 2497 }
2351 v8SetReturnValueBool(info, jsValue); 2498 v8SetReturnValueBool(info, jsValue);
2352 } 2499 }
2353 2500
2354 static void nullableBooleanAttributeAttributeGetterCallback(v8::Local<v8::String >, const v8::PropertyCallbackInfo<v8::Value>& info) 2501 static void nullableBooleanAttributeAttributeGetterCallback(v8::Local<v8::String >, const v8::PropertyCallbackInfo<v8::Value>& info)
2355 { 2502 {
2356 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2503 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2357 TestObjectV8Internal::nullableBooleanAttributeAttributeGetter(info); 2504 TestObjectV8Internal::nullableBooleanAttributeAttributeGetter(info);
2358 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2505 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2359 } 2506 }
2360 2507
2361 static void nullableStringAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 2508 static void nullableStringAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
2362 { 2509 {
2363 TestObject* impl = V8TestObject::toNative(info.Holder()); 2510 v8::Handle<v8::Object> holder = info.Holder();
2511 TestObject* impl = V8TestObject::toNative(holder);
2364 bool isNull = false; 2512 bool isNull = false;
2365 String jsValue = impl->nullableStringAttribute(isNull); 2513 String jsValue = impl->nullableStringAttribute(isNull);
2366 if (isNull) { 2514 if (isNull) {
2367 v8SetReturnValueNull(info); 2515 v8SetReturnValueNull(info);
2368 return; 2516 return;
2369 } 2517 }
2370 v8SetReturnValueString(info, jsValue, info.GetIsolate()); 2518 v8SetReturnValueString(info, jsValue, info.GetIsolate());
2371 } 2519 }
2372 2520
2373 static void nullableStringAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 2521 static void nullableStringAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info)
2374 { 2522 {
2375 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2523 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2376 TestObjectV8Internal::nullableStringAttributeAttributeGetter(info); 2524 TestObjectV8Internal::nullableStringAttributeAttributeGetter(info);
2377 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2525 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2378 } 2526 }
2379 2527
2380 static void nullableLongSettableAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 2528 static void nullableLongSettableAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info)
2381 { 2529 {
2382 TestObject* impl = V8TestObject::toNative(info.Holder()); 2530 v8::Handle<v8::Object> holder = info.Holder();
2531 TestObject* impl = V8TestObject::toNative(holder);
2383 bool isNull = false; 2532 bool isNull = false;
2384 int jsValue = impl->nullableLongSettableAttribute(isNull); 2533 int jsValue = impl->nullableLongSettableAttribute(isNull);
2385 if (isNull) { 2534 if (isNull) {
2386 v8SetReturnValueNull(info); 2535 v8SetReturnValueNull(info);
2387 return; 2536 return;
2388 } 2537 }
2389 v8SetReturnValueInt(info, jsValue); 2538 v8SetReturnValueInt(info, jsValue);
2390 } 2539 }
2391 2540
2392 static void nullableLongSettableAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info) 2541 static void nullableLongSettableAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info)
2393 { 2542 {
2394 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2543 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2395 TestObjectV8Internal::nullableLongSettableAttributeAttributeGetter(info); 2544 TestObjectV8Internal::nullableLongSettableAttributeAttributeGetter(info);
2396 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2545 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2397 } 2546 }
2398 2547
2399 static void nullableLongSettableAttributeAttributeSetter(v8::Local<v8::Value> js Value, const v8::PropertyCallbackInfo<void>& info) 2548 static void nullableLongSettableAttributeAttributeSetter(v8::Local<v8::Value> js Value, const v8::PropertyCallbackInfo<void>& info)
2400 { 2549 {
2401 ExceptionState exceptionState(ExceptionState::SetterContext, "nullableLongSe ttableAttribute", "TestObject", info.Holder(), info.GetIsolate()); 2550 v8::Handle<v8::Object> holder = info.Holder();
2402 TestObject* impl = V8TestObject::toNative(info.Holder()); 2551 ExceptionState exceptionState(ExceptionState::SetterContext, "nullableLongSe ttableAttribute", "TestObject", holder, info.GetIsolate());
2552 TestObject* impl = V8TestObject::toNative(holder);
2403 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2553 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
2404 impl->setNullableLongSettableAttribute(cppValue); 2554 impl->setNullableLongSettableAttribute(cppValue);
2405 } 2555 }
2406 2556
2407 static void nullableLongSettableAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info ) 2557 static void nullableLongSettableAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info )
2408 { 2558 {
2409 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2559 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2410 TestObjectV8Internal::nullableLongSettableAttributeAttributeSetter(jsValue, info); 2560 TestObjectV8Internal::nullableLongSettableAttributeAttributeSetter(jsValue, info);
2411 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2561 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2412 } 2562 }
2413 2563
2414 static void perWorldReadOnlyAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 2564 static void perWorldReadOnlyAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
2415 { 2565 {
2416 TestObject* impl = V8TestObject::toNative(info.Holder()); 2566 v8::Handle<v8::Object> holder = info.Holder();
2567 TestObject* impl = V8TestObject::toNative(holder);
2417 RefPtr<TestObject> result(impl->perWorldReadOnlyAttribute()); 2568 RefPtr<TestObject> result(impl->perWorldReadOnlyAttribute());
2418 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestObject>(info.Get ReturnValue(), result.get())) 2569 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestObject>(info.Get ReturnValue(), result.get()))
2419 return; 2570 return;
2420 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs olate()); 2571 v8::Handle<v8::Value> wrapper = toV8(result.get(), holder, info.GetIsolate() );
2421 if (!wrapper.IsEmpty()) { 2572 if (!wrapper.IsEmpty()) {
2422 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8Atomic String(info.GetIsolate(), "perWorldReadOnlyAttribute"), wrapper); 2573 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "perWorldReadOnlyAttribute"), wrapper);
2423 v8SetReturnValue(info, wrapper); 2574 v8SetReturnValue(info, wrapper);
2424 } 2575 }
2425 } 2576 }
2426 2577
2427 static void perWorldReadOnlyAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 2578 static void perWorldReadOnlyAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
2428 { 2579 {
2429 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2580 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2430 TestObjectV8Internal::perWorldReadOnlyAttributeAttributeGetter(info); 2581 TestObjectV8Internal::perWorldReadOnlyAttributeAttributeGetter(info);
2431 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2582 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2432 } 2583 }
2433 2584
2434 static void perWorldReadOnlyAttributeAttributeGetterForMainWorld(const v8::Prope rtyCallbackInfo<v8::Value>& info) 2585 static void perWorldReadOnlyAttributeAttributeGetterForMainWorld(const v8::Prope rtyCallbackInfo<v8::Value>& info)
2435 { 2586 {
2436 TestObject* impl = V8TestObject::toNative(info.Holder()); 2587 v8::Handle<v8::Object> holder = info.Holder();
2588 TestObject* impl = V8TestObject::toNative(holder);
2437 RefPtr<TestObject> result(impl->perWorldReadOnlyAttribute()); 2589 RefPtr<TestObject> result(impl->perWorldReadOnlyAttribute());
2438 if (result && DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestObje ct>(info.GetReturnValue(), result.get())) 2590 if (result && DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestObje ct>(info.GetReturnValue(), result.get()))
2439 return; 2591 return;
2440 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs olate()); 2592 v8::Handle<v8::Value> wrapper = toV8(result.get(), holder, info.GetIsolate() );
2441 if (!wrapper.IsEmpty()) { 2593 if (!wrapper.IsEmpty()) {
2442 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8Atomic String(info.GetIsolate(), "perWorldReadOnlyAttribute"), wrapper); 2594 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "perWorldReadOnlyAttribute"), wrapper);
2443 v8SetReturnValue(info, wrapper); 2595 v8SetReturnValue(info, wrapper);
2444 } 2596 }
2445 } 2597 }
2446 2598
2447 static void perWorldReadOnlyAttributeAttributeGetterCallbackForMainWorld(v8::Loc al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2599 static void perWorldReadOnlyAttributeAttributeGetterCallbackForMainWorld(v8::Loc al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2448 { 2600 {
2449 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2601 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2450 TestObjectV8Internal::perWorldReadOnlyAttributeAttributeGetterForMainWorld(i nfo); 2602 TestObjectV8Internal::perWorldReadOnlyAttributeAttributeGetterForMainWorld(i nfo);
2451 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2603 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2452 } 2604 }
2453 2605
2454 static void perWorldAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info) 2606 static void perWorldAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info)
2455 { 2607 {
2456 TestObject* impl = V8TestObject::toNative(info.Holder()); 2608 v8::Handle<v8::Object> holder = info.Holder();
2609 TestObject* impl = V8TestObject::toNative(holder);
2457 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldAttribute()), impl); 2610 v8SetReturnValueFast(info, WTF::getPtr(impl->perWorldAttribute()), impl);
2458 } 2611 }
2459 2612
2460 static void perWorldAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 2613 static void perWorldAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info)
2461 { 2614 {
2462 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2615 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2463 TestObjectV8Internal::perWorldAttributeAttributeGetter(info); 2616 TestObjectV8Internal::perWorldAttributeAttributeGetter(info);
2464 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2617 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2465 } 2618 }
2466 2619
2467 static void perWorldAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2620 static void perWorldAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2468 { 2621 {
2469 TestObject* impl = V8TestObject::toNative(info.Holder()); 2622 v8::Handle<v8::Object> holder = info.Holder();
2623 TestObject* impl = V8TestObject::toNative(holder);
2470 V8TRYCATCH_VOID(TestObject*, cppValue, V8TestObject::toNativeWithTypeCheck(i nfo.GetIsolate(), jsValue)); 2624 V8TRYCATCH_VOID(TestObject*, cppValue, V8TestObject::toNativeWithTypeCheck(i nfo.GetIsolate(), jsValue));
2471 impl->setPerWorldAttribute(WTF::getPtr(cppValue)); 2625 impl->setPerWorldAttribute(WTF::getPtr(cppValue));
2472 } 2626 }
2473 2627
2474 static void perWorldAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2628 static void perWorldAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2475 { 2629 {
2476 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2630 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2477 TestObjectV8Internal::perWorldAttributeAttributeSetter(jsValue, info); 2631 TestObjectV8Internal::perWorldAttributeAttributeSetter(jsValue, info);
2478 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2632 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2479 } 2633 }
2480 2634
2481 static void perWorldAttributeAttributeGetterForMainWorld(const v8::PropertyCallb ackInfo<v8::Value>& info) 2635 static void perWorldAttributeAttributeGetterForMainWorld(const v8::PropertyCallb ackInfo<v8::Value>& info)
2482 { 2636 {
2483 TestObject* impl = V8TestObject::toNative(info.Holder()); 2637 v8::Handle<v8::Object> holder = info.Holder();
2638 TestObject* impl = V8TestObject::toNative(holder);
2484 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldAttribute())); 2639 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->perWorldAttribute()));
2485 } 2640 }
2486 2641
2487 static void perWorldAttributeAttributeGetterCallbackForMainWorld(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info) 2642 static void perWorldAttributeAttributeGetterCallbackForMainWorld(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info)
2488 { 2643 {
2489 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2644 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2490 TestObjectV8Internal::perWorldAttributeAttributeGetterForMainWorld(info); 2645 TestObjectV8Internal::perWorldAttributeAttributeGetterForMainWorld(info);
2491 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2646 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2492 } 2647 }
2493 2648
2494 static void perWorldAttributeAttributeSetterForMainWorld(v8::Local<v8::Value> js Value, const v8::PropertyCallbackInfo<void>& info) 2649 static void perWorldAttributeAttributeSetterForMainWorld(v8::Local<v8::Value> js Value, const v8::PropertyCallbackInfo<void>& info)
2495 { 2650 {
2496 TestObject* impl = V8TestObject::toNative(info.Holder()); 2651 v8::Handle<v8::Object> holder = info.Holder();
2652 TestObject* impl = V8TestObject::toNative(holder);
2497 V8TRYCATCH_VOID(TestObject*, cppValue, V8TestObject::toNativeWithTypeCheck(i nfo.GetIsolate(), jsValue)); 2653 V8TRYCATCH_VOID(TestObject*, cppValue, V8TestObject::toNativeWithTypeCheck(i nfo.GetIsolate(), jsValue));
2498 impl->setPerWorldAttribute(WTF::getPtr(cppValue)); 2654 impl->setPerWorldAttribute(WTF::getPtr(cppValue));
2499 } 2655 }
2500 2656
2501 static void perWorldAttributeAttributeSetterCallbackForMainWorld(v8::Local<v8::S tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info ) 2657 static void perWorldAttributeAttributeSetterCallbackForMainWorld(v8::Local<v8::S tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info )
2502 { 2658 {
2503 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2659 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2504 TestObjectV8Internal::perWorldAttributeAttributeSetterForMainWorld(jsValue, info); 2660 TestObjectV8Internal::perWorldAttributeAttributeSetterForMainWorld(jsValue, info);
2505 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2661 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2506 } 2662 }
2507 2663
2508 static void activityLoggedAttr1AttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 2664 static void activityLoggedAttr1AttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
2509 { 2665 {
2510 TestObject* impl = V8TestObject::toNative(info.Holder()); 2666 v8::Handle<v8::Object> holder = info.Holder();
2667 TestObject* impl = V8TestObject::toNative(holder);
2511 v8SetReturnValueInt(info, impl->activityLoggedAttr1()); 2668 v8SetReturnValueInt(info, impl->activityLoggedAttr1());
2512 } 2669 }
2513 2670
2514 static void activityLoggedAttr1AttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 2671 static void activityLoggedAttr1AttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
2515 { 2672 {
2516 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2673 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2517 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2674 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2518 if (contextData && contextData->activityLogger()) 2675 if (contextData && contextData->activityLogger())
2519 contextData->activityLogger()->log("TestObject.activityLoggedAttr1", 0, 0, "Getter"); 2676 contextData->activityLogger()->log("TestObject.activityLoggedAttr1", 0, 0, "Getter");
2520 TestObjectV8Internal::activityLoggedAttr1AttributeGetter(info); 2677 TestObjectV8Internal::activityLoggedAttr1AttributeGetter(info);
2521 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2678 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2522 } 2679 }
2523 2680
2524 static void activityLoggedAttr1AttributeSetter(v8::Local<v8::Value> jsValue, con st v8::PropertyCallbackInfo<void>& info) 2681 static void activityLoggedAttr1AttributeSetter(v8::Local<v8::Value> jsValue, con st v8::PropertyCallbackInfo<void>& info)
2525 { 2682 {
2526 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged Attr1", "TestObject", info.Holder(), info.GetIsolate()); 2683 v8::Handle<v8::Object> holder = info.Holder();
2527 TestObject* impl = V8TestObject::toNative(info.Holder()); 2684 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged Attr1", "TestObject", holder, info.GetIsolate());
2685 TestObject* impl = V8TestObject::toNative(holder);
2528 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2686 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
2529 impl->setActivityLoggedAttr1(cppValue); 2687 impl->setActivityLoggedAttr1(cppValue);
2530 } 2688 }
2531 2689
2532 static void activityLoggedAttr1AttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2690 static void activityLoggedAttr1AttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2533 { 2691 {
2534 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2692 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2535 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2693 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2536 if (contextData && contextData->activityLogger()) { 2694 if (contextData && contextData->activityLogger()) {
2537 v8::Handle<v8::Value> loggerArg[] = { jsValue }; 2695 v8::Handle<v8::Value> loggerArg[] = { jsValue };
2538 contextData->activityLogger()->log("TestObject.activityLoggedAttr1", 1, &loggerArg[0], "Setter"); 2696 contextData->activityLogger()->log("TestObject.activityLoggedAttr1", 1, &loggerArg[0], "Setter");
2539 } 2697 }
2540 TestObjectV8Internal::activityLoggedAttr1AttributeSetter(jsValue, info); 2698 TestObjectV8Internal::activityLoggedAttr1AttributeSetter(jsValue, info);
2541 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2699 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2542 } 2700 }
2543 2701
2544 static void activityLoggedAttr2AttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 2702 static void activityLoggedAttr2AttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
2545 { 2703 {
2546 TestObject* impl = V8TestObject::toNative(info.Holder()); 2704 v8::Handle<v8::Object> holder = info.Holder();
2705 TestObject* impl = V8TestObject::toNative(holder);
2547 v8SetReturnValueInt(info, impl->activityLoggedAttr2()); 2706 v8SetReturnValueInt(info, impl->activityLoggedAttr2());
2548 } 2707 }
2549 2708
2550 static void activityLoggedAttr2AttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 2709 static void activityLoggedAttr2AttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
2551 { 2710 {
2552 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2711 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2553 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2712 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2554 if (contextData && contextData->activityLogger()) 2713 if (contextData && contextData->activityLogger())
2555 contextData->activityLogger()->log("TestObject.activityLoggedAttr2", 0, 0, "Getter"); 2714 contextData->activityLogger()->log("TestObject.activityLoggedAttr2", 0, 0, "Getter");
2556 TestObjectV8Internal::activityLoggedAttr2AttributeGetter(info); 2715 TestObjectV8Internal::activityLoggedAttr2AttributeGetter(info);
2557 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2716 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2558 } 2717 }
2559 2718
2560 static void activityLoggedAttr2AttributeSetter(v8::Local<v8::Value> jsValue, con st v8::PropertyCallbackInfo<void>& info) 2719 static void activityLoggedAttr2AttributeSetter(v8::Local<v8::Value> jsValue, con st v8::PropertyCallbackInfo<void>& info)
2561 { 2720 {
2562 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged Attr2", "TestObject", info.Holder(), info.GetIsolate()); 2721 v8::Handle<v8::Object> holder = info.Holder();
2563 TestObject* impl = V8TestObject::toNative(info.Holder()); 2722 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged Attr2", "TestObject", holder, info.GetIsolate());
2723 TestObject* impl = V8TestObject::toNative(holder);
2564 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2724 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
2565 impl->setActivityLoggedAttr2(cppValue); 2725 impl->setActivityLoggedAttr2(cppValue);
2566 } 2726 }
2567 2727
2568 static void activityLoggedAttr2AttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2728 static void activityLoggedAttr2AttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2569 { 2729 {
2570 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2730 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2571 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2731 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2572 if (contextData && contextData->activityLogger()) { 2732 if (contextData && contextData->activityLogger()) {
2573 v8::Handle<v8::Value> loggerArg[] = { jsValue }; 2733 v8::Handle<v8::Value> loggerArg[] = { jsValue };
2574 contextData->activityLogger()->log("TestObject.activityLoggedAttr2", 1, &loggerArg[0], "Setter"); 2734 contextData->activityLogger()->log("TestObject.activityLoggedAttr2", 1, &loggerArg[0], "Setter");
2575 } 2735 }
2576 TestObjectV8Internal::activityLoggedAttr2AttributeSetter(jsValue, info); 2736 TestObjectV8Internal::activityLoggedAttr2AttributeSetter(jsValue, info);
2577 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2737 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2578 } 2738 }
2579 2739
2580 static void activityLoggedAttr2AttributeGetterForMainWorld(const v8::PropertyCal lbackInfo<v8::Value>& info) 2740 static void activityLoggedAttr2AttributeGetterForMainWorld(const v8::PropertyCal lbackInfo<v8::Value>& info)
2581 { 2741 {
2582 TestObject* impl = V8TestObject::toNative(info.Holder()); 2742 v8::Handle<v8::Object> holder = info.Holder();
2743 TestObject* impl = V8TestObject::toNative(holder);
2583 v8SetReturnValueInt(info, impl->activityLoggedAttr2()); 2744 v8SetReturnValueInt(info, impl->activityLoggedAttr2());
2584 } 2745 }
2585 2746
2586 static void activityLoggedAttr2AttributeGetterCallbackForMainWorld(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2747 static void activityLoggedAttr2AttributeGetterCallbackForMainWorld(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2587 { 2748 {
2588 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2749 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2589 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2750 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2590 if (contextData && contextData->activityLogger()) 2751 if (contextData && contextData->activityLogger())
2591 contextData->activityLogger()->log("TestObject.activityLoggedAttr2", 0, 0, "Getter"); 2752 contextData->activityLogger()->log("TestObject.activityLoggedAttr2", 0, 0, "Getter");
2592 TestObjectV8Internal::activityLoggedAttr2AttributeGetterForMainWorld(info); 2753 TestObjectV8Internal::activityLoggedAttr2AttributeGetterForMainWorld(info);
2593 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2754 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2594 } 2755 }
2595 2756
2596 static void activityLoggedAttr2AttributeSetterForMainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2757 static void activityLoggedAttr2AttributeSetterForMainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2597 { 2758 {
2598 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged Attr2", "TestObject", info.Holder(), info.GetIsolate()); 2759 v8::Handle<v8::Object> holder = info.Holder();
2599 TestObject* impl = V8TestObject::toNative(info.Holder()); 2760 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged Attr2", "TestObject", holder, info.GetIsolate());
2761 TestObject* impl = V8TestObject::toNative(holder);
2600 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2762 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
2601 impl->setActivityLoggedAttr2(cppValue); 2763 impl->setActivityLoggedAttr2(cppValue);
2602 } 2764 }
2603 2765
2604 static void activityLoggedAttr2AttributeSetterCallbackForMainWorld(v8::Local<v8: :String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in fo) 2766 static void activityLoggedAttr2AttributeSetterCallbackForMainWorld(v8::Local<v8: :String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in fo)
2605 { 2767 {
2606 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2768 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2607 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2769 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2608 if (contextData && contextData->activityLogger()) { 2770 if (contextData && contextData->activityLogger()) {
2609 v8::Handle<v8::Value> loggerArg[] = { jsValue }; 2771 v8::Handle<v8::Value> loggerArg[] = { jsValue };
2610 contextData->activityLogger()->log("TestObject.activityLoggedAttr2", 1, &loggerArg[0], "Setter"); 2772 contextData->activityLogger()->log("TestObject.activityLoggedAttr2", 1, &loggerArg[0], "Setter");
2611 } 2773 }
2612 TestObjectV8Internal::activityLoggedAttr2AttributeSetterForMainWorld(jsValue , info); 2774 TestObjectV8Internal::activityLoggedAttr2AttributeSetterForMainWorld(jsValue , info);
2613 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2775 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2614 } 2776 }
2615 2777
2616 static void activityLoggedInIsolatedWorldsAttrAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info) 2778 static void activityLoggedInIsolatedWorldsAttrAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info)
2617 { 2779 {
2618 TestObject* impl = V8TestObject::toNative(info.Holder()); 2780 v8::Handle<v8::Object> holder = info.Holder();
2781 TestObject* impl = V8TestObject::toNative(holder);
2619 v8SetReturnValueInt(info, impl->activityLoggedInIsolatedWorldsAttr()); 2782 v8SetReturnValueInt(info, impl->activityLoggedInIsolatedWorldsAttr());
2620 } 2783 }
2621 2784
2622 static void activityLoggedInIsolatedWorldsAttrAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2785 static void activityLoggedInIsolatedWorldsAttrAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2623 { 2786 {
2624 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2787 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2625 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2788 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2626 if (contextData && contextData->activityLogger()) 2789 if (contextData && contextData->activityLogger())
2627 contextData->activityLogger()->log("TestObject.activityLoggedInIsolatedW orldsAttr", 0, 0, "Getter"); 2790 contextData->activityLogger()->log("TestObject.activityLoggedInIsolatedW orldsAttr", 0, 0, "Getter");
2628 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrAttributeGetter(info ); 2791 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrAttributeGetter(info );
2629 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2792 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2630 } 2793 }
2631 2794
2632 static void activityLoggedInIsolatedWorldsAttrAttributeSetter(v8::Local<v8::Valu e> jsValue, const v8::PropertyCallbackInfo<void>& info) 2795 static void activityLoggedInIsolatedWorldsAttrAttributeSetter(v8::Local<v8::Valu e> jsValue, const v8::PropertyCallbackInfo<void>& info)
2633 { 2796 {
2634 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged InIsolatedWorldsAttr", "TestObject", info.Holder(), info.GetIsolate()); 2797 v8::Handle<v8::Object> holder = info.Holder();
2635 TestObject* impl = V8TestObject::toNative(info.Holder()); 2798 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged InIsolatedWorldsAttr", "TestObject", holder, info.GetIsolate());
2799 TestObject* impl = V8TestObject::toNative(holder);
2636 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2800 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
2637 impl->setActivityLoggedInIsolatedWorldsAttr(cppValue); 2801 impl->setActivityLoggedInIsolatedWorldsAttr(cppValue);
2638 } 2802 }
2639 2803
2640 static void activityLoggedInIsolatedWorldsAttrAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2804 static void activityLoggedInIsolatedWorldsAttrAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2641 { 2805 {
2642 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2806 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2643 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2807 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2644 if (contextData && contextData->activityLogger()) { 2808 if (contextData && contextData->activityLogger()) {
2645 v8::Handle<v8::Value> loggerArg[] = { jsValue }; 2809 v8::Handle<v8::Value> loggerArg[] = { jsValue };
2646 contextData->activityLogger()->log("TestObject.activityLoggedInIsolatedW orldsAttr", 1, &loggerArg[0], "Setter"); 2810 contextData->activityLogger()->log("TestObject.activityLoggedInIsolatedW orldsAttr", 1, &loggerArg[0], "Setter");
2647 } 2811 }
2648 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrAttributeSetter(jsVa lue, info); 2812 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrAttributeSetter(jsVa lue, info);
2649 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2813 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2650 } 2814 }
2651 2815
2652 static void activityLoggedInIsolatedWorldsAttrAttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 2816 static void activityLoggedInIsolatedWorldsAttrAttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
2653 { 2817 {
2654 TestObject* impl = V8TestObject::toNative(info.Holder()); 2818 v8::Handle<v8::Object> holder = info.Holder();
2819 TestObject* impl = V8TestObject::toNative(holder);
2655 v8SetReturnValueInt(info, impl->activityLoggedInIsolatedWorldsAttr()); 2820 v8SetReturnValueInt(info, impl->activityLoggedInIsolatedWorldsAttr());
2656 } 2821 }
2657 2822
2658 static void activityLoggedInIsolatedWorldsAttrAttributeGetterCallbackForMainWorl d(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2823 static void activityLoggedInIsolatedWorldsAttrAttributeGetterCallbackForMainWorl d(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2659 { 2824 {
2660 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2825 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2661 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrAttributeGetterForMa inWorld(info); 2826 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrAttributeGetterForMa inWorld(info);
2662 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2827 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2663 } 2828 }
2664 2829
2665 static void activityLoggedInIsolatedWorldsAttrAttributeSetterForMainWorld(v8::Lo cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2830 static void activityLoggedInIsolatedWorldsAttrAttributeSetterForMainWorld(v8::Lo cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2666 { 2831 {
2667 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged InIsolatedWorldsAttr", "TestObject", info.Holder(), info.GetIsolate()); 2832 v8::Handle<v8::Object> holder = info.Holder();
2668 TestObject* impl = V8TestObject::toNative(info.Holder()); 2833 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged InIsolatedWorldsAttr", "TestObject", holder, info.GetIsolate());
2834 TestObject* impl = V8TestObject::toNative(holder);
2669 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2835 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
2670 impl->setActivityLoggedInIsolatedWorldsAttr(cppValue); 2836 impl->setActivityLoggedInIsolatedWorldsAttr(cppValue);
2671 } 2837 }
2672 2838
2673 static void activityLoggedInIsolatedWorldsAttrAttributeSetterCallbackForMainWorl d(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbac kInfo<void>& info) 2839 static void activityLoggedInIsolatedWorldsAttrAttributeSetterCallbackForMainWorl d(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbac kInfo<void>& info)
2674 { 2840 {
2675 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2841 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2676 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrAttributeSetterForMa inWorld(jsValue, info); 2842 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrAttributeSetterForMa inWorld(jsValue, info);
2677 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2843 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2678 } 2844 }
2679 2845
2680 static void activityLoggedAttrSetter1AttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 2846 static void activityLoggedAttrSetter1AttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
2681 { 2847 {
2682 TestObject* impl = V8TestObject::toNative(info.Holder()); 2848 v8::Handle<v8::Object> holder = info.Holder();
2849 TestObject* impl = V8TestObject::toNative(holder);
2683 v8SetReturnValueInt(info, impl->activityLoggedAttrSetter1()); 2850 v8SetReturnValueInt(info, impl->activityLoggedAttrSetter1());
2684 } 2851 }
2685 2852
2686 static void activityLoggedAttrSetter1AttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 2853 static void activityLoggedAttrSetter1AttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
2687 { 2854 {
2688 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2855 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2689 TestObjectV8Internal::activityLoggedAttrSetter1AttributeGetter(info); 2856 TestObjectV8Internal::activityLoggedAttrSetter1AttributeGetter(info);
2690 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2857 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2691 } 2858 }
2692 2859
2693 static void activityLoggedAttrSetter1AttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info) 2860 static void activityLoggedAttrSetter1AttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info)
2694 { 2861 {
2695 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged AttrSetter1", "TestObject", info.Holder(), info.GetIsolate()); 2862 v8::Handle<v8::Object> holder = info.Holder();
2696 TestObject* impl = V8TestObject::toNative(info.Holder()); 2863 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged AttrSetter1", "TestObject", holder, info.GetIsolate());
2864 TestObject* impl = V8TestObject::toNative(holder);
2697 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2865 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
2698 impl->setActivityLoggedAttrSetter1(cppValue); 2866 impl->setActivityLoggedAttrSetter1(cppValue);
2699 } 2867 }
2700 2868
2701 static void activityLoggedAttrSetter1AttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2869 static void activityLoggedAttrSetter1AttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2702 { 2870 {
2703 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2871 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2704 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2872 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2705 if (contextData && contextData->activityLogger()) { 2873 if (contextData && contextData->activityLogger()) {
2706 v8::Handle<v8::Value> loggerArg[] = { jsValue }; 2874 v8::Handle<v8::Value> loggerArg[] = { jsValue };
2707 contextData->activityLogger()->log("TestObject.activityLoggedAttrSetter1 ", 1, &loggerArg[0], "Setter"); 2875 contextData->activityLogger()->log("TestObject.activityLoggedAttrSetter1 ", 1, &loggerArg[0], "Setter");
2708 } 2876 }
2709 TestObjectV8Internal::activityLoggedAttrSetter1AttributeSetter(jsValue, info ); 2877 TestObjectV8Internal::activityLoggedAttrSetter1AttributeSetter(jsValue, info );
2710 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2878 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2711 } 2879 }
2712 2880
2713 static void activityLoggedAttrSetter2AttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 2881 static void activityLoggedAttrSetter2AttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
2714 { 2882 {
2715 TestObject* impl = V8TestObject::toNative(info.Holder()); 2883 v8::Handle<v8::Object> holder = info.Holder();
2884 TestObject* impl = V8TestObject::toNative(holder);
2716 v8SetReturnValueInt(info, impl->activityLoggedAttrSetter2()); 2885 v8SetReturnValueInt(info, impl->activityLoggedAttrSetter2());
2717 } 2886 }
2718 2887
2719 static void activityLoggedAttrSetter2AttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 2888 static void activityLoggedAttrSetter2AttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
2720 { 2889 {
2721 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2890 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2722 TestObjectV8Internal::activityLoggedAttrSetter2AttributeGetter(info); 2891 TestObjectV8Internal::activityLoggedAttrSetter2AttributeGetter(info);
2723 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2892 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2724 } 2893 }
2725 2894
2726 static void activityLoggedAttrSetter2AttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info) 2895 static void activityLoggedAttrSetter2AttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info)
2727 { 2896 {
2728 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged AttrSetter2", "TestObject", info.Holder(), info.GetIsolate()); 2897 v8::Handle<v8::Object> holder = info.Holder();
2729 TestObject* impl = V8TestObject::toNative(info.Holder()); 2898 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged AttrSetter2", "TestObject", holder, info.GetIsolate());
2899 TestObject* impl = V8TestObject::toNative(holder);
2730 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2900 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
2731 impl->setActivityLoggedAttrSetter2(cppValue); 2901 impl->setActivityLoggedAttrSetter2(cppValue);
2732 } 2902 }
2733 2903
2734 static void activityLoggedAttrSetter2AttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2904 static void activityLoggedAttrSetter2AttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2735 { 2905 {
2736 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2906 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2737 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2907 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2738 if (contextData && contextData->activityLogger()) { 2908 if (contextData && contextData->activityLogger()) {
2739 v8::Handle<v8::Value> loggerArg[] = { jsValue }; 2909 v8::Handle<v8::Value> loggerArg[] = { jsValue };
2740 contextData->activityLogger()->log("TestObject.activityLoggedAttrSetter2 ", 1, &loggerArg[0], "Setter"); 2910 contextData->activityLogger()->log("TestObject.activityLoggedAttrSetter2 ", 1, &loggerArg[0], "Setter");
2741 } 2911 }
2742 TestObjectV8Internal::activityLoggedAttrSetter2AttributeSetter(jsValue, info ); 2912 TestObjectV8Internal::activityLoggedAttrSetter2AttributeSetter(jsValue, info );
2743 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2913 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2744 } 2914 }
2745 2915
2746 static void activityLoggedAttrSetter2AttributeGetterForMainWorld(const v8::Prope rtyCallbackInfo<v8::Value>& info) 2916 static void activityLoggedAttrSetter2AttributeGetterForMainWorld(const v8::Prope rtyCallbackInfo<v8::Value>& info)
2747 { 2917 {
2748 TestObject* impl = V8TestObject::toNative(info.Holder()); 2918 v8::Handle<v8::Object> holder = info.Holder();
2919 TestObject* impl = V8TestObject::toNative(holder);
2749 v8SetReturnValueInt(info, impl->activityLoggedAttrSetter2()); 2920 v8SetReturnValueInt(info, impl->activityLoggedAttrSetter2());
2750 } 2921 }
2751 2922
2752 static void activityLoggedAttrSetter2AttributeGetterCallbackForMainWorld(v8::Loc al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2923 static void activityLoggedAttrSetter2AttributeGetterCallbackForMainWorld(v8::Loc al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2753 { 2924 {
2754 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2925 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2755 TestObjectV8Internal::activityLoggedAttrSetter2AttributeGetterForMainWorld(i nfo); 2926 TestObjectV8Internal::activityLoggedAttrSetter2AttributeGetterForMainWorld(i nfo);
2756 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2927 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2757 } 2928 }
2758 2929
2759 static void activityLoggedAttrSetter2AttributeSetterForMainWorld(v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info) 2930 static void activityLoggedAttrSetter2AttributeSetterForMainWorld(v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info)
2760 { 2931 {
2761 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged AttrSetter2", "TestObject", info.Holder(), info.GetIsolate()); 2932 v8::Handle<v8::Object> holder = info.Holder();
2762 TestObject* impl = V8TestObject::toNative(info.Holder()); 2933 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged AttrSetter2", "TestObject", holder, info.GetIsolate());
2934 TestObject* impl = V8TestObject::toNative(holder);
2763 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2935 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
2764 impl->setActivityLoggedAttrSetter2(cppValue); 2936 impl->setActivityLoggedAttrSetter2(cppValue);
2765 } 2937 }
2766 2938
2767 static void activityLoggedAttrSetter2AttributeSetterCallbackForMainWorld(v8::Loc al<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<voi d>& info) 2939 static void activityLoggedAttrSetter2AttributeSetterCallbackForMainWorld(v8::Loc al<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<voi d>& info)
2768 { 2940 {
2769 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2941 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2770 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2942 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2771 if (contextData && contextData->activityLogger()) { 2943 if (contextData && contextData->activityLogger()) {
2772 v8::Handle<v8::Value> loggerArg[] = { jsValue }; 2944 v8::Handle<v8::Value> loggerArg[] = { jsValue };
2773 contextData->activityLogger()->log("TestObject.activityLoggedAttrSetter2 ", 1, &loggerArg[0], "Setter"); 2945 contextData->activityLogger()->log("TestObject.activityLoggedAttrSetter2 ", 1, &loggerArg[0], "Setter");
2774 } 2946 }
2775 TestObjectV8Internal::activityLoggedAttrSetter2AttributeSetterForMainWorld(j sValue, info); 2947 TestObjectV8Internal::activityLoggedAttrSetter2AttributeSetterForMainWorld(j sValue, info);
2776 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2948 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2777 } 2949 }
2778 2950
2779 static void activityLoggedInIsolatedWorldsAttrSetterAttributeGetter(const v8::Pr opertyCallbackInfo<v8::Value>& info) 2951 static void activityLoggedInIsolatedWorldsAttrSetterAttributeGetter(const v8::Pr opertyCallbackInfo<v8::Value>& info)
2780 { 2952 {
2781 TestObject* impl = V8TestObject::toNative(info.Holder()); 2953 v8::Handle<v8::Object> holder = info.Holder();
2954 TestObject* impl = V8TestObject::toNative(holder);
2782 v8SetReturnValueInt(info, impl->activityLoggedInIsolatedWorldsAttrSetter()); 2955 v8SetReturnValueInt(info, impl->activityLoggedInIsolatedWorldsAttrSetter());
2783 } 2956 }
2784 2957
2785 static void activityLoggedInIsolatedWorldsAttrSetterAttributeGetterCallback(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2958 static void activityLoggedInIsolatedWorldsAttrSetterAttributeGetterCallback(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2786 { 2959 {
2787 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2960 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2788 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrSetterAttributeGette r(info); 2961 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrSetterAttributeGette r(info);
2789 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2962 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2790 } 2963 }
2791 2964
2792 static void activityLoggedInIsolatedWorldsAttrSetterAttributeSetter(v8::Local<v8 ::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2965 static void activityLoggedInIsolatedWorldsAttrSetterAttributeSetter(v8::Local<v8 ::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2793 { 2966 {
2794 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged InIsolatedWorldsAttrSetter", "TestObject", info.Holder(), info.GetIsolate()); 2967 v8::Handle<v8::Object> holder = info.Holder();
2795 TestObject* impl = V8TestObject::toNative(info.Holder()); 2968 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged InIsolatedWorldsAttrSetter", "TestObject", holder, info.GetIsolate());
2969 TestObject* impl = V8TestObject::toNative(holder);
2796 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2970 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
2797 impl->setActivityLoggedInIsolatedWorldsAttrSetter(cppValue); 2971 impl->setActivityLoggedInIsolatedWorldsAttrSetter(cppValue);
2798 } 2972 }
2799 2973
2800 static void activityLoggedInIsolatedWorldsAttrSetterAttributeSetterCallback(v8:: Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo< void>& info) 2974 static void activityLoggedInIsolatedWorldsAttrSetterAttributeSetterCallback(v8:: Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo< void>& info)
2801 { 2975 {
2802 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2976 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2803 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2977 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2804 if (contextData && contextData->activityLogger()) { 2978 if (contextData && contextData->activityLogger()) {
2805 v8::Handle<v8::Value> loggerArg[] = { jsValue }; 2979 v8::Handle<v8::Value> loggerArg[] = { jsValue };
2806 contextData->activityLogger()->log("TestObject.activityLoggedInIsolatedW orldsAttrSetter", 1, &loggerArg[0], "Setter"); 2980 contextData->activityLogger()->log("TestObject.activityLoggedInIsolatedW orldsAttrSetter", 1, &loggerArg[0], "Setter");
2807 } 2981 }
2808 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrSetterAttributeSette r(jsValue, info); 2982 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrSetterAttributeSette r(jsValue, info);
2809 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2983 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2810 } 2984 }
2811 2985
2812 static void activityLoggedInIsolatedWorldsAttrSetterAttributeGetterForMainWorld( const v8::PropertyCallbackInfo<v8::Value>& info) 2986 static void activityLoggedInIsolatedWorldsAttrSetterAttributeGetterForMainWorld( const v8::PropertyCallbackInfo<v8::Value>& info)
2813 { 2987 {
2814 TestObject* impl = V8TestObject::toNative(info.Holder()); 2988 v8::Handle<v8::Object> holder = info.Holder();
2989 TestObject* impl = V8TestObject::toNative(holder);
2815 v8SetReturnValueInt(info, impl->activityLoggedInIsolatedWorldsAttrSetter()); 2990 v8SetReturnValueInt(info, impl->activityLoggedInIsolatedWorldsAttrSetter());
2816 } 2991 }
2817 2992
2818 static void activityLoggedInIsolatedWorldsAttrSetterAttributeGetterCallbackForMa inWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2993 static void activityLoggedInIsolatedWorldsAttrSetterAttributeGetterCallbackForMa inWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2819 { 2994 {
2820 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2995 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2821 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrSetterAttributeGette rForMainWorld(info); 2996 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrSetterAttributeGette rForMainWorld(info);
2822 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2997 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2823 } 2998 }
2824 2999
2825 static void activityLoggedInIsolatedWorldsAttrSetterAttributeSetterForMainWorld( v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3000 static void activityLoggedInIsolatedWorldsAttrSetterAttributeSetterForMainWorld( v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2826 { 3001 {
2827 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged InIsolatedWorldsAttrSetter", "TestObject", info.Holder(), info.GetIsolate()); 3002 v8::Handle<v8::Object> holder = info.Holder();
2828 TestObject* impl = V8TestObject::toNative(info.Holder()); 3003 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged InIsolatedWorldsAttrSetter", "TestObject", holder, info.GetIsolate());
3004 TestObject* impl = V8TestObject::toNative(holder);
2829 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 3005 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
2830 impl->setActivityLoggedInIsolatedWorldsAttrSetter(cppValue); 3006 impl->setActivityLoggedInIsolatedWorldsAttrSetter(cppValue);
2831 } 3007 }
2832 3008
2833 static void activityLoggedInIsolatedWorldsAttrSetterAttributeSetterCallbackForMa inWorld(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyC allbackInfo<void>& info) 3009 static void activityLoggedInIsolatedWorldsAttrSetterAttributeSetterCallbackForMa inWorld(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyC allbackInfo<void>& info)
2834 { 3010 {
2835 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3011 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2836 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrSetterAttributeSette rForMainWorld(jsValue, info); 3012 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrSetterAttributeSette rForMainWorld(jsValue, info);
2837 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3013 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2838 } 3014 }
2839 3015
2840 static void activityLoggedAttrGetter1AttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 3016 static void activityLoggedAttrGetter1AttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
2841 { 3017 {
2842 TestObject* impl = V8TestObject::toNative(info.Holder()); 3018 v8::Handle<v8::Object> holder = info.Holder();
3019 TestObject* impl = V8TestObject::toNative(holder);
2843 v8SetReturnValueInt(info, impl->activityLoggedAttrGetter1()); 3020 v8SetReturnValueInt(info, impl->activityLoggedAttrGetter1());
2844 } 3021 }
2845 3022
2846 static void activityLoggedAttrGetter1AttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 3023 static void activityLoggedAttrGetter1AttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
2847 { 3024 {
2848 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3025 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2849 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 3026 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2850 if (contextData && contextData->activityLogger()) 3027 if (contextData && contextData->activityLogger())
2851 contextData->activityLogger()->log("TestObject.activityLoggedAttrGetter1 ", 0, 0, "Getter"); 3028 contextData->activityLogger()->log("TestObject.activityLoggedAttrGetter1 ", 0, 0, "Getter");
2852 TestObjectV8Internal::activityLoggedAttrGetter1AttributeGetter(info); 3029 TestObjectV8Internal::activityLoggedAttrGetter1AttributeGetter(info);
2853 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3030 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2854 } 3031 }
2855 3032
2856 static void activityLoggedAttrGetter1AttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info) 3033 static void activityLoggedAttrGetter1AttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info)
2857 { 3034 {
2858 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged AttrGetter1", "TestObject", info.Holder(), info.GetIsolate()); 3035 v8::Handle<v8::Object> holder = info.Holder();
2859 TestObject* impl = V8TestObject::toNative(info.Holder()); 3036 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged AttrGetter1", "TestObject", holder, info.GetIsolate());
3037 TestObject* impl = V8TestObject::toNative(holder);
2860 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 3038 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
2861 impl->setActivityLoggedAttrGetter1(cppValue); 3039 impl->setActivityLoggedAttrGetter1(cppValue);
2862 } 3040 }
2863 3041
2864 static void activityLoggedAttrGetter1AttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3042 static void activityLoggedAttrGetter1AttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2865 { 3043 {
2866 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3044 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2867 TestObjectV8Internal::activityLoggedAttrGetter1AttributeSetter(jsValue, info ); 3045 TestObjectV8Internal::activityLoggedAttrGetter1AttributeSetter(jsValue, info );
2868 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3046 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2869 } 3047 }
2870 3048
2871 static void activityLoggedAttrGetter2AttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 3049 static void activityLoggedAttrGetter2AttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
2872 { 3050 {
2873 TestObject* impl = V8TestObject::toNative(info.Holder()); 3051 v8::Handle<v8::Object> holder = info.Holder();
3052 TestObject* impl = V8TestObject::toNative(holder);
2874 v8SetReturnValueInt(info, impl->activityLoggedAttrGetter2()); 3053 v8SetReturnValueInt(info, impl->activityLoggedAttrGetter2());
2875 } 3054 }
2876 3055
2877 static void activityLoggedAttrGetter2AttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 3056 static void activityLoggedAttrGetter2AttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
2878 { 3057 {
2879 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3058 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2880 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 3059 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2881 if (contextData && contextData->activityLogger()) 3060 if (contextData && contextData->activityLogger())
2882 contextData->activityLogger()->log("TestObject.activityLoggedAttrGetter2 ", 0, 0, "Getter"); 3061 contextData->activityLogger()->log("TestObject.activityLoggedAttrGetter2 ", 0, 0, "Getter");
2883 TestObjectV8Internal::activityLoggedAttrGetter2AttributeGetter(info); 3062 TestObjectV8Internal::activityLoggedAttrGetter2AttributeGetter(info);
2884 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3063 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2885 } 3064 }
2886 3065
2887 static void activityLoggedAttrGetter2AttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info) 3066 static void activityLoggedAttrGetter2AttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info)
2888 { 3067 {
2889 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged AttrGetter2", "TestObject", info.Holder(), info.GetIsolate()); 3068 v8::Handle<v8::Object> holder = info.Holder();
2890 TestObject* impl = V8TestObject::toNative(info.Holder()); 3069 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged AttrGetter2", "TestObject", holder, info.GetIsolate());
3070 TestObject* impl = V8TestObject::toNative(holder);
2891 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 3071 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
2892 impl->setActivityLoggedAttrGetter2(cppValue); 3072 impl->setActivityLoggedAttrGetter2(cppValue);
2893 } 3073 }
2894 3074
2895 static void activityLoggedAttrGetter2AttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3075 static void activityLoggedAttrGetter2AttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2896 { 3076 {
2897 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3077 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2898 TestObjectV8Internal::activityLoggedAttrGetter2AttributeSetter(jsValue, info ); 3078 TestObjectV8Internal::activityLoggedAttrGetter2AttributeSetter(jsValue, info );
2899 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3079 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2900 } 3080 }
2901 3081
2902 static void activityLoggedAttrGetter2AttributeGetterForMainWorld(const v8::Prope rtyCallbackInfo<v8::Value>& info) 3082 static void activityLoggedAttrGetter2AttributeGetterForMainWorld(const v8::Prope rtyCallbackInfo<v8::Value>& info)
2903 { 3083 {
2904 TestObject* impl = V8TestObject::toNative(info.Holder()); 3084 v8::Handle<v8::Object> holder = info.Holder();
3085 TestObject* impl = V8TestObject::toNative(holder);
2905 v8SetReturnValueInt(info, impl->activityLoggedAttrGetter2()); 3086 v8SetReturnValueInt(info, impl->activityLoggedAttrGetter2());
2906 } 3087 }
2907 3088
2908 static void activityLoggedAttrGetter2AttributeGetterCallbackForMainWorld(v8::Loc al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3089 static void activityLoggedAttrGetter2AttributeGetterCallbackForMainWorld(v8::Loc al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2909 { 3090 {
2910 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3091 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2911 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 3092 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2912 if (contextData && contextData->activityLogger()) 3093 if (contextData && contextData->activityLogger())
2913 contextData->activityLogger()->log("TestObject.activityLoggedAttrGetter2 ", 0, 0, "Getter"); 3094 contextData->activityLogger()->log("TestObject.activityLoggedAttrGetter2 ", 0, 0, "Getter");
2914 TestObjectV8Internal::activityLoggedAttrGetter2AttributeGetterForMainWorld(i nfo); 3095 TestObjectV8Internal::activityLoggedAttrGetter2AttributeGetterForMainWorld(i nfo);
2915 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3096 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2916 } 3097 }
2917 3098
2918 static void activityLoggedAttrGetter2AttributeSetterForMainWorld(v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info) 3099 static void activityLoggedAttrGetter2AttributeSetterForMainWorld(v8::Local<v8::V alue> jsValue, const v8::PropertyCallbackInfo<void>& info)
2919 { 3100 {
2920 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged AttrGetter2", "TestObject", info.Holder(), info.GetIsolate()); 3101 v8::Handle<v8::Object> holder = info.Holder();
2921 TestObject* impl = V8TestObject::toNative(info.Holder()); 3102 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged AttrGetter2", "TestObject", holder, info.GetIsolate());
3103 TestObject* impl = V8TestObject::toNative(holder);
2922 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 3104 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
2923 impl->setActivityLoggedAttrGetter2(cppValue); 3105 impl->setActivityLoggedAttrGetter2(cppValue);
2924 } 3106 }
2925 3107
2926 static void activityLoggedAttrGetter2AttributeSetterCallbackForMainWorld(v8::Loc al<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<voi d>& info) 3108 static void activityLoggedAttrGetter2AttributeSetterCallbackForMainWorld(v8::Loc al<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<voi d>& info)
2927 { 3109 {
2928 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3110 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2929 TestObjectV8Internal::activityLoggedAttrGetter2AttributeSetterForMainWorld(j sValue, info); 3111 TestObjectV8Internal::activityLoggedAttrGetter2AttributeSetterForMainWorld(j sValue, info);
2930 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3112 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2931 } 3113 }
2932 3114
2933 static void activityLoggedInIsolatedWorldsAttrGetterAttributeGetter(const v8::Pr opertyCallbackInfo<v8::Value>& info) 3115 static void activityLoggedInIsolatedWorldsAttrGetterAttributeGetter(const v8::Pr opertyCallbackInfo<v8::Value>& info)
2934 { 3116 {
2935 TestObject* impl = V8TestObject::toNative(info.Holder()); 3117 v8::Handle<v8::Object> holder = info.Holder();
3118 TestObject* impl = V8TestObject::toNative(holder);
2936 v8SetReturnValueInt(info, impl->activityLoggedInIsolatedWorldsAttrGetter()); 3119 v8SetReturnValueInt(info, impl->activityLoggedInIsolatedWorldsAttrGetter());
2937 } 3120 }
2938 3121
2939 static void activityLoggedInIsolatedWorldsAttrGetterAttributeGetterCallback(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3122 static void activityLoggedInIsolatedWorldsAttrGetterAttributeGetterCallback(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2940 { 3123 {
2941 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3124 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2942 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 3125 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2943 if (contextData && contextData->activityLogger()) 3126 if (contextData && contextData->activityLogger())
2944 contextData->activityLogger()->log("TestObject.activityLoggedInIsolatedW orldsAttrGetter", 0, 0, "Getter"); 3127 contextData->activityLogger()->log("TestObject.activityLoggedInIsolatedW orldsAttrGetter", 0, 0, "Getter");
2945 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrGetterAttributeGette r(info); 3128 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrGetterAttributeGette r(info);
2946 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3129 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2947 } 3130 }
2948 3131
2949 static void activityLoggedInIsolatedWorldsAttrGetterAttributeSetter(v8::Local<v8 ::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3132 static void activityLoggedInIsolatedWorldsAttrGetterAttributeSetter(v8::Local<v8 ::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2950 { 3133 {
2951 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged InIsolatedWorldsAttrGetter", "TestObject", info.Holder(), info.GetIsolate()); 3134 v8::Handle<v8::Object> holder = info.Holder();
2952 TestObject* impl = V8TestObject::toNative(info.Holder()); 3135 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged InIsolatedWorldsAttrGetter", "TestObject", holder, info.GetIsolate());
3136 TestObject* impl = V8TestObject::toNative(holder);
2953 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 3137 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
2954 impl->setActivityLoggedInIsolatedWorldsAttrGetter(cppValue); 3138 impl->setActivityLoggedInIsolatedWorldsAttrGetter(cppValue);
2955 } 3139 }
2956 3140
2957 static void activityLoggedInIsolatedWorldsAttrGetterAttributeSetterCallback(v8:: Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo< void>& info) 3141 static void activityLoggedInIsolatedWorldsAttrGetterAttributeSetterCallback(v8:: Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo< void>& info)
2958 { 3142 {
2959 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3143 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2960 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrGetterAttributeSette r(jsValue, info); 3144 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrGetterAttributeSette r(jsValue, info);
2961 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3145 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2962 } 3146 }
2963 3147
2964 static void activityLoggedInIsolatedWorldsAttrGetterAttributeGetterForMainWorld( const v8::PropertyCallbackInfo<v8::Value>& info) 3148 static void activityLoggedInIsolatedWorldsAttrGetterAttributeGetterForMainWorld( const v8::PropertyCallbackInfo<v8::Value>& info)
2965 { 3149 {
2966 TestObject* impl = V8TestObject::toNative(info.Holder()); 3150 v8::Handle<v8::Object> holder = info.Holder();
3151 TestObject* impl = V8TestObject::toNative(holder);
2967 v8SetReturnValueInt(info, impl->activityLoggedInIsolatedWorldsAttrGetter()); 3152 v8SetReturnValueInt(info, impl->activityLoggedInIsolatedWorldsAttrGetter());
2968 } 3153 }
2969 3154
2970 static void activityLoggedInIsolatedWorldsAttrGetterAttributeGetterCallbackForMa inWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3155 static void activityLoggedInIsolatedWorldsAttrGetterAttributeGetterCallbackForMa inWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2971 { 3156 {
2972 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3157 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2973 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrGetterAttributeGette rForMainWorld(info); 3158 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrGetterAttributeGette rForMainWorld(info);
2974 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3159 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2975 } 3160 }
2976 3161
2977 static void activityLoggedInIsolatedWorldsAttrGetterAttributeSetterForMainWorld( v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3162 static void activityLoggedInIsolatedWorldsAttrGetterAttributeSetterForMainWorld( v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2978 { 3163 {
2979 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged InIsolatedWorldsAttrGetter", "TestObject", info.Holder(), info.GetIsolate()); 3164 v8::Handle<v8::Object> holder = info.Holder();
2980 TestObject* impl = V8TestObject::toNative(info.Holder()); 3165 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLogged InIsolatedWorldsAttrGetter", "TestObject", holder, info.GetIsolate());
3166 TestObject* impl = V8TestObject::toNative(holder);
2981 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 3167 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
2982 impl->setActivityLoggedInIsolatedWorldsAttrGetter(cppValue); 3168 impl->setActivityLoggedInIsolatedWorldsAttrGetter(cppValue);
2983 } 3169 }
2984 3170
2985 static void activityLoggedInIsolatedWorldsAttrGetterAttributeSetterCallbackForMa inWorld(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyC allbackInfo<void>& info) 3171 static void activityLoggedInIsolatedWorldsAttrGetterAttributeSetterCallbackForMa inWorld(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyC allbackInfo<void>& info)
2986 { 3172 {
2987 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3173 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2988 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrGetterAttributeSette rForMainWorld(jsValue, info); 3174 TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrGetterAttributeSette rForMainWorld(jsValue, info);
2989 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3175 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2990 } 3176 }
(...skipping 19 matching lines...) Expand all
3010 static void deprecatedStaticAttrAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 3196 static void deprecatedStaticAttrAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
3011 { 3197 {
3012 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3198 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3013 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::StaticAttribute); 3199 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::StaticAttribute);
3014 TestObjectV8Internal::deprecatedStaticAttrAttributeGetter(info); 3200 TestObjectV8Internal::deprecatedStaticAttrAttributeGetter(info);
3015 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3201 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3016 } 3202 }
3017 3203
3018 static void deprecatedStaticAttrAttributeSetter(v8::Local<v8::Value> jsValue, co nst v8::PropertyCallbackInfo<void>& info) 3204 static void deprecatedStaticAttrAttributeSetter(v8::Local<v8::Value> jsValue, co nst v8::PropertyCallbackInfo<void>& info)
3019 { 3205 {
3020 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedStat icAttr", "TestObject", info.Holder(), info.GetIsolate()); 3206 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedStat icAttr", "TestObject", holder, info.GetIsolate());
3021 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 3207 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
3022 TestObject::setDeprecatedStaticAttr(cppValue); 3208 TestObject::setDeprecatedStaticAttr(cppValue);
3023 } 3209 }
3024 3210
3025 static void deprecatedStaticAttrAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3211 static void deprecatedStaticAttrAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
3026 { 3212 {
3027 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3213 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3028 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::StaticAttribute); 3214 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::StaticAttribute);
3029 TestObjectV8Internal::deprecatedStaticAttrAttributeSetter(jsValue, info); 3215 TestObjectV8Internal::deprecatedStaticAttrAttributeSetter(jsValue, info);
3030 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3216 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3031 } 3217 }
3032 3218
3033 static void deprecatedReadonlyAttrAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 3219 static void deprecatedReadonlyAttrAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
3034 { 3220 {
3035 TestObject* impl = V8TestObject::toNative(info.Holder()); 3221 v8::Handle<v8::Object> holder = info.Holder();
3222 TestObject* impl = V8TestObject::toNative(holder);
3036 v8SetReturnValueInt(info, impl->deprecatedReadonlyAttr()); 3223 v8SetReturnValueInt(info, impl->deprecatedReadonlyAttr());
3037 } 3224 }
3038 3225
3039 static void deprecatedReadonlyAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3226 static void deprecatedReadonlyAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3040 { 3227 {
3041 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3228 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3042 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::ReadonlyAttribute); 3229 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::ReadonlyAttribute);
3043 TestObjectV8Internal::deprecatedReadonlyAttrAttributeGetter(info); 3230 TestObjectV8Internal::deprecatedReadonlyAttrAttributeGetter(info);
3044 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3231 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3045 } 3232 }
3046 3233
3047 static void deprecatedAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 3234 static void deprecatedAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
3048 { 3235 {
3049 TestObject* impl = V8TestObject::toNative(info.Holder()); 3236 v8::Handle<v8::Object> holder = info.Holder();
3237 TestObject* impl = V8TestObject::toNative(holder);
3050 v8SetReturnValueInt(info, impl->deprecatedAttr()); 3238 v8SetReturnValueInt(info, impl->deprecatedAttr());
3051 } 3239 }
3052 3240
3053 static void deprecatedAttrAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 3241 static void deprecatedAttrAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info)
3054 { 3242 {
3055 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3243 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3056 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::Attribute); 3244 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::Attribute);
3057 TestObjectV8Internal::deprecatedAttrAttributeGetter(info); 3245 TestObjectV8Internal::deprecatedAttrAttributeGetter(info);
3058 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3246 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3059 } 3247 }
3060 3248
3061 static void deprecatedAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8 ::PropertyCallbackInfo<void>& info) 3249 static void deprecatedAttrAttributeSetter(v8::Local<v8::Value> jsValue, const v8 ::PropertyCallbackInfo<void>& info)
3062 { 3250 {
3063 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedAttr ", "TestObject", info.Holder(), info.GetIsolate()); 3251 v8::Handle<v8::Object> holder = info.Holder();
3064 TestObject* impl = V8TestObject::toNative(info.Holder()); 3252 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedAttr ", "TestObject", holder, info.GetIsolate());
3253 TestObject* impl = V8TestObject::toNative(holder);
3065 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 3254 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState);
3066 impl->setDeprecatedAttr(cppValue); 3255 impl->setDeprecatedAttr(cppValue);
3067 } 3256 }
3068 3257
3069 static void deprecatedAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3258 static void deprecatedAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
3070 { 3259 {
3071 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3260 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3072 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::Attribute); 3261 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::Attribute);
3073 TestObjectV8Internal::deprecatedAttrAttributeSetter(jsValue, info); 3262 TestObjectV8Internal::deprecatedAttrAttributeSetter(jsValue, info);
3074 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3263 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3075 } 3264 }
3076 3265
3077 static void locationAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& i nfo) 3266 static void locationAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& i nfo)
3078 { 3267 {
3079 TestObject* impl = V8TestObject::toNative(info.Holder()); 3268 v8::Handle<v8::Object> holder = info.Holder();
3269 TestObject* impl = V8TestObject::toNative(holder);
3080 v8SetReturnValueFast(info, WTF::getPtr(impl->location()), impl); 3270 v8SetReturnValueFast(info, WTF::getPtr(impl->location()), impl);
3081 } 3271 }
3082 3272
3083 static void locationAttributeGetterCallback(v8::Local<v8::String>, const v8::Pro pertyCallbackInfo<v8::Value>& info) 3273 static void locationAttributeGetterCallback(v8::Local<v8::String>, const v8::Pro pertyCallbackInfo<v8::Value>& info)
3084 { 3274 {
3085 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3275 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3086 TestObjectV8Internal::locationAttributeGetter(info); 3276 TestObjectV8Internal::locationAttributeGetter(info);
3087 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3277 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3088 } 3278 }
3089 3279
3090 static void locationAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Prop ertyCallbackInfo<void>& info) 3280 static void locationAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Prop ertyCallbackInfo<void>& info)
3091 { 3281 {
3092 TestObject* proxyImpl = V8TestObject::toNative(info.Holder()); 3282 v8::Handle<v8::Object> holder = info.Holder();
3283 TestObject* proxyImpl = V8TestObject::toNative(holder);
3093 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->location()); 3284 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->location());
3094 if (!impl) 3285 if (!impl)
3095 return; 3286 return;
3096 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 3287 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
3097 impl->setHref(cppValue); 3288 impl->setHref(cppValue);
3098 } 3289 }
3099 3290
3100 static void locationAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8: :Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3291 static void locationAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8: :Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
3101 { 3292 {
3102 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3293 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3103 TestObjectV8Internal::locationAttributeSetter(jsValue, info); 3294 TestObjectV8Internal::locationAttributeSetter(jsValue, info);
3104 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3295 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3105 } 3296 }
3106 3297
3107 static void locationWithExceptionAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 3298 static void locationWithExceptionAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
3108 { 3299 {
3109 TestObject* impl = V8TestObject::toNative(info.Holder()); 3300 v8::Handle<v8::Object> holder = info.Holder();
3301 TestObject* impl = V8TestObject::toNative(holder);
3110 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithException()), impl) ; 3302 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithException()), impl) ;
3111 } 3303 }
3112 3304
3113 static void locationWithExceptionAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3305 static void locationWithExceptionAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3114 { 3306 {
3115 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3307 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3116 TestObjectV8Internal::locationWithExceptionAttributeGetter(info); 3308 TestObjectV8Internal::locationWithExceptionAttributeGetter(info);
3117 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3309 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3118 } 3310 }
3119 3311
3120 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> jsValue, c onst v8::PropertyCallbackInfo<void>& info) 3312 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> jsValue, c onst v8::PropertyCallbackInfo<void>& info)
3121 { 3313 {
3122 TestObject* proxyImpl = V8TestObject::toNative(info.Holder()); 3314 v8::Handle<v8::Object> holder = info.Holder();
3315 TestObject* proxyImpl = V8TestObject::toNative(holder);
3123 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithException()); 3316 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithException());
3124 if (!impl) 3317 if (!impl)
3125 return; 3318 return;
3126 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 3319 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue);
3127 impl->setHrefThrows(cppValue); 3320 impl->setHrefThrows(cppValue);
3128 } 3321 }
3129 3322
3130 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3323 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
3131 { 3324 {
3132 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3325 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
(...skipping 2409 matching lines...) Expand 10 before | Expand all | Expand 10 after
5542 fromInternalPointer(object)->deref(); 5735 fromInternalPointer(object)->deref();
5543 } 5736 }
5544 5737
5545 template<> 5738 template<>
5546 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 5739 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
5547 { 5740 {
5548 return toV8(impl, creationContext, isolate); 5741 return toV8(impl, creationContext, isolate);
5549 } 5742 }
5550 5743
5551 } // namespace WebCore 5744 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestNode.cpp ('k') | Source/bindings/tests/results/V8TestObjectPython.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698