| 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 #if ENABLE(CONDITION) | 8 #if ENABLE(CONDITION) |
| 9 #include "V8TestInterface.h" | 9 #include "V8TestInterface.h" |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 { | 64 { |
| 65 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 65 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 66 TestInterfaceImplementationV8Internal::testInterfaceAttributeAttributeGetter
(info); | 66 TestInterfaceImplementationV8Internal::testInterfaceAttributeAttributeGetter
(info); |
| 67 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 67 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 68 } | 68 } |
| 69 | 69 |
| 70 static void testInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 70 static void testInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
| 71 { | 71 { |
| 72 v8::Handle<v8::Object> holder = info.Holder(); | 72 v8::Handle<v8::Object> holder = info.Holder(); |
| 73 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceA
ttribute", "TestInterface", holder, info.GetIsolate()); | 73 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceA
ttribute", "TestInterface", holder, info.GetIsolate()); |
| 74 if (!isUndefinedOrNull(v8Value) && !V8TestInterface::hasInstance(v8Value, in
fo.GetIsolate())) { | 74 if (!V8TestInterface::hasInstance(v8Value, info.GetIsolate())) { |
| 75 exceptionState.throwTypeError("The provided value is not of type 'TestIn
terface'."); | 75 exceptionState.throwTypeError("The provided value is not of type 'TestIn
terface'."); |
| 76 exceptionState.throwIfNeeded(); | 76 exceptionState.throwIfNeeded(); |
| 77 return; | 77 return; |
| 78 } | 78 } |
| 79 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); | 79 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
| 80 V8TRYCATCH_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toN
ativeWithTypeCheck(info.GetIsolate(), v8Value)); | 80 V8TRYCATCH_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toN
ativeWithTypeCheck(info.GetIsolate(), v8Value)); |
| 81 impl->setTestInterfaceAttribute(WTF::getPtr(cppValue)); | 81 impl->setTestInterfaceAttribute(WTF::getPtr(cppValue)); |
| 82 } | 82 } |
| 83 | 83 |
| 84 static void testInterfaceAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 84 static void testInterfaceAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 { | 262 { |
| 263 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 263 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 264 TestInterfaceImplementationV8Internal::implementsNodeAttributeAttributeGette
r(info); | 264 TestInterfaceImplementationV8Internal::implementsNodeAttributeAttributeGette
r(info); |
| 265 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 265 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 266 } | 266 } |
| 267 | 267 |
| 268 static void implementsNodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 268 static void implementsNodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
| 269 { | 269 { |
| 270 v8::Handle<v8::Object> holder = info.Holder(); | 270 v8::Handle<v8::Object> holder = info.Holder(); |
| 271 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsNode
Attribute", "TestInterface", holder, info.GetIsolate()); | 271 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsNode
Attribute", "TestInterface", holder, info.GetIsolate()); |
| 272 if (!isUndefinedOrNull(v8Value) && !V8Node::hasInstance(v8Value, info.GetIso
late())) { | 272 if (!V8Node::hasInstance(v8Value, info.GetIsolate())) { |
| 273 exceptionState.throwTypeError("The provided value is not of type 'Node'.
"); | 273 exceptionState.throwTypeError("The provided value is not of type 'Node'.
"); |
| 274 exceptionState.throwIfNeeded(); | 274 exceptionState.throwIfNeeded(); |
| 275 return; | 275 return; |
| 276 } | 276 } |
| 277 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); | 277 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
| 278 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), v8Value)); | 278 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), v8Value)); |
| 279 impl->setImplementsNodeAttribute(WTF::getPtr(cppValue)); | 279 impl->setImplementsNodeAttribute(WTF::getPtr(cppValue)); |
| 280 } | 280 } |
| 281 | 281 |
| 282 static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 282 static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 { | 327 { |
| 328 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 328 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 329 TestInterfaceImplementationV8Internal::implementsRuntimeEnabledNodeAttribute
AttributeGetter(info); | 329 TestInterfaceImplementationV8Internal::implementsRuntimeEnabledNodeAttribute
AttributeGetter(info); |
| 330 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 330 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 331 } | 331 } |
| 332 | 332 |
| 333 static void implementsRuntimeEnabledNodeAttributeAttributeSetter(v8::Local<v8::V
alue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 333 static void implementsRuntimeEnabledNodeAttributeAttributeSetter(v8::Local<v8::V
alue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 334 { | 334 { |
| 335 v8::Handle<v8::Object> holder = info.Holder(); | 335 v8::Handle<v8::Object> holder = info.Holder(); |
| 336 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsRunt
imeEnabledNodeAttribute", "TestInterface", holder, info.GetIsolate()); | 336 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsRunt
imeEnabledNodeAttribute", "TestInterface", holder, info.GetIsolate()); |
| 337 if (!isUndefinedOrNull(v8Value) && !V8Node::hasInstance(v8Value, info.GetIso
late())) { | 337 if (!V8Node::hasInstance(v8Value, info.GetIsolate())) { |
| 338 exceptionState.throwTypeError("The provided value is not of type 'Node'.
"); | 338 exceptionState.throwTypeError("The provided value is not of type 'Node'.
"); |
| 339 exceptionState.throwIfNeeded(); | 339 exceptionState.throwIfNeeded(); |
| 340 return; | 340 return; |
| 341 } | 341 } |
| 342 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); | 342 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
| 343 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), v8Value)); | 343 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), v8Value)); |
| 344 impl->setImplementsRuntimeEnabledNodeAttribute(WTF::getPtr(cppValue)); | 344 impl->setImplementsRuntimeEnabledNodeAttribute(WTF::getPtr(cppValue)); |
| 345 } | 345 } |
| 346 | 346 |
| 347 static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(v8::Loc
al<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<voi
d>& info) | 347 static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(v8::Loc
al<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<voi
d>& info) |
| (...skipping 14 matching lines...) Expand all Loading... |
| 362 { | 362 { |
| 363 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 363 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 364 TestInterfaceImplementationV8Internal::implementsPerContextEnabledNodeAttrib
uteAttributeGetter(info); | 364 TestInterfaceImplementationV8Internal::implementsPerContextEnabledNodeAttrib
uteAttributeGetter(info); |
| 365 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 365 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 366 } | 366 } |
| 367 | 367 |
| 368 static void implementsPerContextEnabledNodeAttributeAttributeSetter(v8::Local<v8
::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 368 static void implementsPerContextEnabledNodeAttributeAttributeSetter(v8::Local<v8
::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 369 { | 369 { |
| 370 v8::Handle<v8::Object> holder = info.Holder(); | 370 v8::Handle<v8::Object> holder = info.Holder(); |
| 371 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsPerC
ontextEnabledNodeAttribute", "TestInterface", holder, info.GetIsolate()); | 371 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsPerC
ontextEnabledNodeAttribute", "TestInterface", holder, info.GetIsolate()); |
| 372 if (!isUndefinedOrNull(v8Value) && !V8Node::hasInstance(v8Value, info.GetIso
late())) { | 372 if (!V8Node::hasInstance(v8Value, info.GetIsolate())) { |
| 373 exceptionState.throwTypeError("The provided value is not of type 'Node'.
"); | 373 exceptionState.throwTypeError("The provided value is not of type 'Node'.
"); |
| 374 exceptionState.throwIfNeeded(); | 374 exceptionState.throwIfNeeded(); |
| 375 return; | 375 return; |
| 376 } | 376 } |
| 377 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); | 377 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
| 378 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), v8Value)); | 378 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), v8Value)); |
| 379 impl->setImplementsPerContextEnabledNodeAttribute(WTF::getPtr(cppValue)); | 379 impl->setImplementsPerContextEnabledNodeAttribute(WTF::getPtr(cppValue)); |
| 380 } | 380 } |
| 381 | 381 |
| 382 static void implementsPerContextEnabledNodeAttributeAttributeSetterCallback(v8::
Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<
void>& info) | 382 static void implementsPerContextEnabledNodeAttributeAttributeSetterCallback(v8::
Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<
void>& info) |
| (...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1371 } | 1371 } |
| 1372 | 1372 |
| 1373 template<> | 1373 template<> |
| 1374 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle
<v8::Object> creationContext, v8::Isolate* isolate) | 1374 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle
<v8::Object> creationContext, v8::Isolate* isolate) |
| 1375 { | 1375 { |
| 1376 return toV8(impl, creationContext, isolate); | 1376 return toV8(impl, creationContext, isolate); |
| 1377 } | 1377 } |
| 1378 | 1378 |
| 1379 } // namespace WebCore | 1379 } // namespace WebCore |
| 1380 #endif // ENABLE(CONDITION) | 1380 #endif // ENABLE(CONDITION) |
| OLD | NEW |