OLD | NEW |
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 "V8TestSpecialOperationsIdentifierRaisesException.h" | 8 #include "V8TestSpecialOperationsIdentifierRaisesException.h" |
9 | 9 |
10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 v8SetReturnValueFast(info, WTF::getPtr(result.release()), impl); | 195 v8SetReturnValueFast(info, WTF::getPtr(result.release()), impl); |
196 } | 196 } |
197 | 197 |
198 static void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCall
backInfo<v8::Value>& info) | 198 static void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCall
backInfo<v8::Value>& info) |
199 { | 199 { |
200 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMIndexedProperty"); | 200 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMIndexedProperty"); |
201 TestSpecialOperationsIdentifierRaisesExceptionV8Internal::indexedPropertyGet
ter(index, info); | 201 TestSpecialOperationsIdentifierRaisesExceptionV8Internal::indexedPropertyGet
ter(index, info); |
202 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 202 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
203 } | 203 } |
204 | 204 |
205 static void indexedPropertySetter(uint32_t index, v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<v8::Value>& info) | 205 static void indexedPropertySetter(uint32_t index, v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<v8::Value>& info) |
206 { | 206 { |
207 TestSpecialOperationsIdentifierRaisesException* impl = V8TestSpecialOperatio
nsIdentifierRaisesException::toNative(info.Holder()); | 207 TestSpecialOperationsIdentifierRaisesException* impl = V8TestSpecialOperatio
nsIdentifierRaisesException::toNative(info.Holder()); |
208 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, propertyValue, jsVa
lue); | 208 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, propertyValue, v8Va
lue); |
209 ExceptionState exceptionState(ExceptionState::IndexedSetterContext, "TestSpe
cialOperationsIdentifierRaisesException", info.Holder(), info.GetIsolate()); | 209 ExceptionState exceptionState(ExceptionState::IndexedSetterContext, "TestSpe
cialOperationsIdentifierRaisesException", info.Holder(), info.GetIsolate()); |
210 bool result = impl->setItem(index, propertyValue, exceptionState); | 210 bool result = impl->setItem(index, propertyValue, exceptionState); |
211 if (exceptionState.throwIfNeeded()) | 211 if (exceptionState.throwIfNeeded()) |
212 return; | 212 return; |
213 if (!result) | 213 if (!result) |
214 return; | 214 return; |
215 v8SetReturnValue(info, jsValue); | 215 v8SetReturnValue(info, v8Value); |
216 } | 216 } |
217 | 217 |
218 static void indexedPropertySetterCallback(uint32_t index, v8::Local<v8::Value> j
sValue, const v8::PropertyCallbackInfo<v8::Value>& info) | 218 static void indexedPropertySetterCallback(uint32_t index, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<v8::Value>& info) |
219 { | 219 { |
220 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMIndexedProperty"); | 220 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMIndexedProperty"); |
221 TestSpecialOperationsIdentifierRaisesExceptionV8Internal::indexedPropertySet
ter(index, jsValue, info); | 221 TestSpecialOperationsIdentifierRaisesExceptionV8Internal::indexedPropertySet
ter(index, v8Value, info); |
222 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 222 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
223 } | 223 } |
224 | 224 |
225 static void indexedPropertyDeleter(uint32_t index, const v8::PropertyCallbackInf
o<v8::Boolean>& info) | 225 static void indexedPropertyDeleter(uint32_t index, const v8::PropertyCallbackInf
o<v8::Boolean>& info) |
226 { | 226 { |
227 TestSpecialOperationsIdentifierRaisesException* impl = V8TestSpecialOperatio
nsIdentifierRaisesException::toNative(info.Holder()); | 227 TestSpecialOperationsIdentifierRaisesException* impl = V8TestSpecialOperatio
nsIdentifierRaisesException::toNative(info.Holder()); |
228 ExceptionState exceptionState(ExceptionState::IndexedDeletionContext, "TestS
pecialOperationsIdentifierRaisesException", info.Holder(), info.GetIsolate()); | 228 ExceptionState exceptionState(ExceptionState::IndexedDeletionContext, "TestS
pecialOperationsIdentifierRaisesException", info.Holder(), info.GetIsolate()); |
229 DeleteResult result = impl->deleteItem(index, exceptionState); | 229 DeleteResult result = impl->deleteItem(index, exceptionState); |
230 if (exceptionState.throwIfNeeded()) | 230 if (exceptionState.throwIfNeeded()) |
231 return; | 231 return; |
(...skipping 27 matching lines...) Expand all Loading... |
259 v8SetReturnValueFast(info, WTF::getPtr(result.release()), impl); | 259 v8SetReturnValueFast(info, WTF::getPtr(result.release()), impl); |
260 } | 260 } |
261 | 261 |
262 static void namedPropertyGetterCallback(v8::Local<v8::String> name, const v8::Pr
opertyCallbackInfo<v8::Value>& info) | 262 static void namedPropertyGetterCallback(v8::Local<v8::String> name, const v8::Pr
opertyCallbackInfo<v8::Value>& info) |
263 { | 263 { |
264 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); | 264 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); |
265 TestSpecialOperationsIdentifierRaisesExceptionV8Internal::namedPropertyGette
r(name, info); | 265 TestSpecialOperationsIdentifierRaisesExceptionV8Internal::namedPropertyGette
r(name, info); |
266 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 266 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
267 } | 267 } |
268 | 268 |
269 static void namedPropertySetter(v8::Local<v8::String> name, v8::Local<v8::Value>
jsValue, const v8::PropertyCallbackInfo<v8::Value>& info) | 269 static void namedPropertySetter(v8::Local<v8::String> name, v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) |
270 { | 270 { |
271 if (info.Holder()->HasRealNamedProperty(name)) | 271 if (info.Holder()->HasRealNamedProperty(name)) |
272 return; | 272 return; |
273 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) | 273 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) |
274 return; | 274 return; |
275 | 275 |
276 TestSpecialOperationsIdentifierRaisesException* impl = V8TestSpecialOperatio
nsIdentifierRaisesException::toNative(info.Holder()); | 276 TestSpecialOperationsIdentifierRaisesException* impl = V8TestSpecialOperatio
nsIdentifierRaisesException::toNative(info.Holder()); |
277 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, propertyName, name)
; | 277 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, propertyName, name)
; |
278 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, propertyValue, jsVa
lue); | 278 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, propertyValue, v8Va
lue); |
279 v8::String::Utf8Value namedProperty(name); | 279 v8::String::Utf8Value namedProperty(name); |
280 ExceptionState exceptionState(ExceptionState::SetterContext, *namedProperty,
"TestSpecialOperationsIdentifierRaisesException", info.Holder(), info.GetIsolat
e()); | 280 ExceptionState exceptionState(ExceptionState::SetterContext, *namedProperty,
"TestSpecialOperationsIdentifierRaisesException", info.Holder(), info.GetIsolat
e()); |
281 bool result = impl->setNamedItem(propertyName, propertyValue, exceptionState
); | 281 bool result = impl->setNamedItem(propertyName, propertyValue, exceptionState
); |
282 if (exceptionState.throwIfNeeded()) | 282 if (exceptionState.throwIfNeeded()) |
283 return; | 283 return; |
284 if (!result) | 284 if (!result) |
285 return; | 285 return; |
286 v8SetReturnValue(info, jsValue); | 286 v8SetReturnValue(info, v8Value); |
287 } | 287 } |
288 | 288 |
289 static void namedPropertySetterCallback(v8::Local<v8::String> name, v8::Local<v8
::Value> jsValue, const v8::PropertyCallbackInfo<v8::Value>& info) | 289 static void namedPropertySetterCallback(v8::Local<v8::String> name, v8::Local<v8
::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) |
290 { | 290 { |
291 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); | 291 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); |
292 TestSpecialOperationsIdentifierRaisesExceptionV8Internal::namedPropertySette
r(name, jsValue, info); | 292 TestSpecialOperationsIdentifierRaisesExceptionV8Internal::namedPropertySette
r(name, v8Value, info); |
293 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 293 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
294 } | 294 } |
295 | 295 |
296 static void namedPropertyQuery(v8::Local<v8::String> name, const v8::PropertyCal
lbackInfo<v8::Integer>& info) | 296 static void namedPropertyQuery(v8::Local<v8::String> name, const v8::PropertyCal
lbackInfo<v8::Integer>& info) |
297 { | 297 { |
298 TestSpecialOperationsIdentifierRaisesException* impl = V8TestSpecialOperatio
nsIdentifierRaisesException::toNative(info.Holder()); | 298 TestSpecialOperationsIdentifierRaisesException* impl = V8TestSpecialOperatio
nsIdentifierRaisesException::toNative(info.Holder()); |
299 AtomicString propertyName = toCoreAtomicString(name); | 299 AtomicString propertyName = toCoreAtomicString(name); |
300 v8::String::Utf8Value namedProperty(name); | 300 v8::String::Utf8Value namedProperty(name); |
301 ExceptionState exceptionState(ExceptionState::GetterContext, *namedProperty,
"TestSpecialOperationsIdentifierRaisesException", info.Holder(), info.GetIsolat
e()); | 301 ExceptionState exceptionState(ExceptionState::GetterContext, *namedProperty,
"TestSpecialOperationsIdentifierRaisesException", info.Holder(), info.GetIsolat
e()); |
302 bool result = impl->namedPropertyQuery(propertyName, exceptionState); | 302 bool result = impl->namedPropertyQuery(propertyName, exceptionState); |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 if (!result.IsEmpty()) | 393 if (!result.IsEmpty()) |
394 return result; | 394 return result; |
395 | 395 |
396 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); | 396 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); |
397 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); | 397 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); |
398 configureV8TestSpecialOperationsIdentifierRaisesExceptionTemplate(result, is
olate); | 398 configureV8TestSpecialOperationsIdentifierRaisesExceptionTemplate(result, is
olate); |
399 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; | 399 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; |
400 return result; | 400 return result; |
401 } | 401 } |
402 | 402 |
403 bool V8TestSpecialOperationsIdentifierRaisesException::hasInstance(v8::Handle<v8
::Value> jsValue, v8::Isolate* isolate) | 403 bool V8TestSpecialOperationsIdentifierRaisesException::hasInstance(v8::Handle<v8
::Value> v8Value, v8::Isolate* isolate) |
404 { | 404 { |
405 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, jsValu
e); | 405 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
406 } | 406 } |
407 | 407 |
408 v8::Handle<v8::Object> V8TestSpecialOperationsIdentifierRaisesException::findIns
tanceInPrototypeChain(v8::Handle<v8::Value> jsValue, v8::Isolate* isolate) | 408 v8::Handle<v8::Object> V8TestSpecialOperationsIdentifierRaisesException::findIns
tanceInPrototypeChain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |
409 { | 409 { |
410 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, jsValue); | 410 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
411 } | 411 } |
412 | 412 |
413 TestSpecialOperationsIdentifierRaisesException* V8TestSpecialOperationsIdentifie
rRaisesException::toNativeWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Val
ue> value) | 413 TestSpecialOperationsIdentifierRaisesException* V8TestSpecialOperationsIdentifie
rRaisesException::toNativeWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Val
ue> value) |
414 { | 414 { |
415 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 415 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; |
416 } | 416 } |
417 | 417 |
418 v8::Handle<v8::Object> V8TestSpecialOperationsIdentifierRaisesException::createW
rapper(PassRefPtr<TestSpecialOperationsIdentifierRaisesException> impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 418 v8::Handle<v8::Object> V8TestSpecialOperationsIdentifierRaisesException::createW
rapper(PassRefPtr<TestSpecialOperationsIdentifierRaisesException> impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
419 { | 419 { |
420 ASSERT(impl); | 420 ASSERT(impl); |
(...skipping 19 matching lines...) Expand all Loading... |
440 fromInternalPointer(object)->deref(); | 440 fromInternalPointer(object)->deref(); |
441 } | 441 } |
442 | 442 |
443 template<> | 443 template<> |
444 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperationsIdentifierRaisesExceptio
n* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 444 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperationsIdentifierRaisesExceptio
n* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
445 { | 445 { |
446 return toV8(impl, creationContext, isolate); | 446 return toV8(impl, creationContext, isolate); |
447 } | 447 } |
448 | 448 |
449 } // namespace WebCore | 449 } // namespace WebCore |
OLD | NEW |