| 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 "V8TestNode.h" | 8 #include "V8TestNode.h" |
| 9 | 9 |
| 10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 { | 54 { |
| 55 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 55 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 56 TestNodeV8Internal::hrefAttributeGetter(info); | 56 TestNodeV8Internal::hrefAttributeGetter(info); |
| 57 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 57 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 58 } | 58 } |
| 59 | 59 |
| 60 static void hrefAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property
CallbackInfo<void>& info) | 60 static void hrefAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property
CallbackInfo<void>& info) |
| 61 { | 61 { |
| 62 v8::Handle<v8::Object> holder = info.Holder(); | 62 v8::Handle<v8::Object> holder = info.Holder(); |
| 63 TestNode* impl = V8TestNode::toNative(holder); | 63 TestNode* impl = V8TestNode::toNative(holder); |
| 64 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 64 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
| 65 impl->setHref(cppValue); | 65 impl->setHref(cppValue); |
| 66 } | 66 } |
| 67 | 67 |
| 68 static void hrefAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 68 static void hrefAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 69 { | 69 { |
| 70 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 70 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 71 TestNodeV8Internal::hrefAttributeSetter(v8Value, info); | 71 TestNodeV8Internal::hrefAttributeSetter(v8Value, info); |
| 72 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 72 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 73 } | 73 } |
| 74 | 74 |
| 75 static void hrefThrowsAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>&
info) | 75 static void hrefThrowsAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>&
info) |
| 76 { | 76 { |
| 77 v8::Handle<v8::Object> holder = info.Holder(); | 77 v8::Handle<v8::Object> holder = info.Holder(); |
| 78 TestNode* impl = V8TestNode::toNative(holder); | 78 TestNode* impl = V8TestNode::toNative(holder); |
| 79 v8SetReturnValueString(info, impl->hrefThrows(), info.GetIsolate()); | 79 v8SetReturnValueString(info, impl->hrefThrows(), info.GetIsolate()); |
| 80 } | 80 } |
| 81 | 81 |
| 82 static void hrefThrowsAttributeGetterCallback(v8::Local<v8::String>, const v8::P
ropertyCallbackInfo<v8::Value>& info) | 82 static void hrefThrowsAttributeGetterCallback(v8::Local<v8::String>, const v8::P
ropertyCallbackInfo<v8::Value>& info) |
| 83 { | 83 { |
| 84 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 84 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 85 TestNodeV8Internal::hrefThrowsAttributeGetter(info); | 85 TestNodeV8Internal::hrefThrowsAttributeGetter(info); |
| 86 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 86 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 87 } | 87 } |
| 88 | 88 |
| 89 static void hrefThrowsAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Pr
opertyCallbackInfo<void>& info) | 89 static void hrefThrowsAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Pr
opertyCallbackInfo<void>& info) |
| 90 { | 90 { |
| 91 v8::Handle<v8::Object> holder = info.Holder(); | 91 v8::Handle<v8::Object> holder = info.Holder(); |
| 92 ExceptionState exceptionState(ExceptionState::SetterContext, "hrefThrows", "
TestNode", holder, info.GetIsolate()); | 92 ExceptionState exceptionState(ExceptionState::SetterContext, "hrefThrows", "
TestNode", holder, info.GetIsolate()); |
| 93 TestNode* impl = V8TestNode::toNative(holder); | 93 TestNode* impl = V8TestNode::toNative(holder); |
| 94 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 94 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
| 95 impl->setHrefThrows(cppValue, exceptionState); | 95 impl->setHrefThrows(cppValue, exceptionState); |
| 96 exceptionState.throwIfNeeded(); | 96 exceptionState.throwIfNeeded(); |
| 97 } | 97 } |
| 98 | 98 |
| 99 static void hrefThrowsAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v
8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 99 static void hrefThrowsAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v
8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 100 { | 100 { |
| 101 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 101 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 102 TestNodeV8Internal::hrefThrowsAttributeSetter(v8Value, info); | 102 TestNodeV8Internal::hrefThrowsAttributeSetter(v8Value, info); |
| 103 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 103 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 104 } | 104 } |
| 105 | 105 |
| 106 static void hrefCallWithAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 106 static void hrefCallWithAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
| 107 { | 107 { |
| 108 v8::Handle<v8::Object> holder = info.Holder(); | 108 v8::Handle<v8::Object> holder = info.Holder(); |
| 109 TestNode* impl = V8TestNode::toNative(holder); | 109 TestNode* impl = V8TestNode::toNative(holder); |
| 110 v8SetReturnValueString(info, impl->hrefCallWith(), info.GetIsolate()); | 110 v8SetReturnValueString(info, impl->hrefCallWith(), info.GetIsolate()); |
| 111 } | 111 } |
| 112 | 112 |
| 113 static void hrefCallWithAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 113 static void hrefCallWithAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
| 114 { | 114 { |
| 115 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 115 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 116 TestNodeV8Internal::hrefCallWithAttributeGetter(info); | 116 TestNodeV8Internal::hrefCallWithAttributeGetter(info); |
| 117 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 117 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 118 } | 118 } |
| 119 | 119 |
| 120 static void hrefCallWithAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) | 120 static void hrefCallWithAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) |
| 121 { | 121 { |
| 122 v8::Handle<v8::Object> holder = info.Holder(); | 122 v8::Handle<v8::Object> holder = info.Holder(); |
| 123 TestNode* impl = V8TestNode::toNative(holder); | 123 TestNode* impl = V8TestNode::toNative(holder); |
| 124 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 124 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
| 125 impl->setHrefCallWith(callingDOMWindow(info.GetIsolate()), enteredDOMWindow(
info.GetIsolate()), cppValue); | 125 impl->setHrefCallWith(callingDOMWindow(info.GetIsolate()), enteredDOMWindow(
info.GetIsolate()), cppValue); |
| 126 } | 126 } |
| 127 | 127 |
| 128 static void hrefCallWithAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 128 static void hrefCallWithAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 129 { | 129 { |
| 130 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 130 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 131 TestNodeV8Internal::hrefCallWithAttributeSetter(v8Value, info); | 131 TestNodeV8Internal::hrefCallWithAttributeSetter(v8Value, info); |
| 132 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 132 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 133 } | 133 } |
| 134 | 134 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 fromInternalPointer(object)->deref(); | 244 fromInternalPointer(object)->deref(); |
| 245 } | 245 } |
| 246 | 246 |
| 247 template<> | 247 template<> |
| 248 v8::Handle<v8::Value> toV8NoInline(TestNode* impl, v8::Handle<v8::Object> creati
onContext, v8::Isolate* isolate) | 248 v8::Handle<v8::Value> toV8NoInline(TestNode* impl, v8::Handle<v8::Object> creati
onContext, v8::Isolate* isolate) |
| 249 { | 249 { |
| 250 return toV8(impl, creationContext, isolate); | 250 return toV8(impl, creationContext, isolate); |
| 251 } | 251 } |
| 252 | 252 |
| 253 } // namespace WebCore | 253 } // namespace WebCore |
| OLD | NEW |