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

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

Issue 690243002: Move the v8::Isolate* parameter to the first parameter of various binding methods in third_party/We… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 5178 matching lines...) Expand 10 before | Expand all | Expand 10 after
5189 static void unsignedShortMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 5189 static void unsignedShortMethodMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
5190 { 5190 {
5191 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5191 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5192 TestObjectV8Internal::unsignedShortMethodMethod(info); 5192 TestObjectV8Internal::unsignedShortMethodMethod(info);
5193 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5193 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5194 } 5194 }
5195 5195
5196 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 5196 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
5197 { 5197 {
5198 if (UNLIKELY(info.Length() < 1)) { 5198 if (UNLIKELY(info.Length() < 1)) {
5199 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodDateArg", "TestObject", 1, info.Length(), info.GetIsolate()), info.GetI solate()); 5199 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodDateArg", "TestObject", 1, info.Length()), info.GetI solate());
5200 return; 5200 return;
5201 } 5201 }
5202 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5202 TestObject* impl = V8TestObject::toImpl(info.Holder());
5203 double dateArg; 5203 double dateArg;
5204 { 5204 {
5205 dateArg = toCoreDate(info[0]); 5205 dateArg = toCoreDate(info[0]);
5206 } 5206 }
5207 impl->voidMethodDateArg(dateArg); 5207 impl->voidMethodDateArg(dateArg);
5208 } 5208 }
5209 5209
5210 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 5210 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
5211 { 5211 {
5212 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5212 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5213 TestObjectV8Internal::voidMethodDateArgMethod(info); 5213 TestObjectV8Internal::voidMethodDateArgMethod(info);
5214 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5214 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5215 } 5215 }
5216 5216
5217 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 5217 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
5218 { 5218 {
5219 if (UNLIKELY(info.Length() < 1)) { 5219 if (UNLIKELY(info.Length() < 1)) {
5220 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodStringArg", "TestObject", 1, info.Length(), info.GetIsolate()), info.Ge tIsolate()); 5220 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodStringArg", "TestObject", 1, info.Length()), info.Ge tIsolate());
5221 return; 5221 return;
5222 } 5222 }
5223 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5223 TestObject* impl = V8TestObject::toImpl(info.Holder());
5224 V8StringResource<> stringArg; 5224 V8StringResource<> stringArg;
5225 { 5225 {
5226 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 5226 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
5227 } 5227 }
5228 impl->voidMethodStringArg(stringArg); 5228 impl->voidMethodStringArg(stringArg);
5229 } 5229 }
5230 5230
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
5300 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5300 static void voidMethodDOMTimeStampArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5301 { 5301 {
5302 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5302 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5303 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info); 5303 TestObjectV8Internal::voidMethodDOMTimeStampArgMethod(info);
5304 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5304 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5305 } 5305 }
5306 5306
5307 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 5307 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
5308 { 5308 {
5309 if (UNLIKELY(info.Length() < 1)) { 5309 if (UNLIKELY(info.Length() < 1)) {
5310 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodBooleanArg", "TestObject", 1, info.Length(), info.GetIsolate()), info.G etIsolate()); 5310 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodBooleanArg", "TestObject", 1, info.Length()), info.G etIsolate());
5311 return; 5311 return;
5312 } 5312 }
5313 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5313 TestObject* impl = V8TestObject::toImpl(info.Holder());
5314 bool booleanArg; 5314 bool booleanArg;
5315 { 5315 {
5316 booleanArg = info[0]->BooleanValue(); 5316 booleanArg = info[0]->BooleanValue();
5317 } 5317 }
5318 impl->voidMethodBooleanArg(booleanArg); 5318 impl->voidMethodBooleanArg(booleanArg);
5319 } 5319 }
5320 5320
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
5564 static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 5564 static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
5565 { 5565 {
5566 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5566 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5567 TestObjectV8Internal::testInterfaceEmptyMethodMethod(info); 5567 TestObjectV8Internal::testInterfaceEmptyMethodMethod(info);
5568 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5568 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5569 } 5569 }
5570 5570
5571 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 5571 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
5572 { 5572 {
5573 if (UNLIKELY(info.Length() < 1)) { 5573 if (UNLIKELY(info.Length() < 1)) {
5574 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodTestInterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate ()), info.GetIsolate()); 5574 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodTestInterfaceEmptyArg", "TestObject", 1, info.Length ()), info.GetIsolate());
5575 return; 5575 return;
5576 } 5576 }
5577 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5577 TestObject* impl = V8TestObject::toImpl(info.Holder());
5578 TestInterfaceEmpty* testInterfaceEmptyArg; 5578 TestInterfaceEmpty* testInterfaceEmptyArg;
5579 { 5579 {
5580 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G etIsolate(), info[0]); 5580 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G etIsolate(), info[0]);
5581 } 5581 }
5582 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); 5582 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg);
5583 } 5583 }
5584 5584
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
5636 static void anyCallbackFunctionOptionalAnyArgMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 5636 static void anyCallbackFunctionOptionalAnyArgMethodMethodCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
5637 { 5637 {
5638 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5638 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5639 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgMethodMethod(info); 5639 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgMethodMethod(info);
5640 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5640 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5641 } 5641 }
5642 5642
5643 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info) 5643 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn fo<v8::Value>& info)
5644 { 5644 {
5645 if (UNLIKELY(info.Length() < 1)) { 5645 if (UNLIKELY(info.Length() < 1)) {
5646 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodVoidCallbackFunctionArg", "TestObject", 1, info.Length(), info.GetIsola te()), info.GetIsolate()); 5646 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodVoidCallbackFunctionArg", "TestObject", 1, info.Leng th()), info.GetIsolate());
5647 return; 5647 return;
5648 } 5648 }
5649 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5649 TestObject* impl = V8TestObject::toImpl(info.Holder());
5650 ScriptValue voidCallbackFunctionArg; 5650 ScriptValue voidCallbackFunctionArg;
5651 { 5651 {
5652 voidCallbackFunctionArg = ScriptValue(ScriptState::current(info.GetIsola te()), info[0]); 5652 voidCallbackFunctionArg = ScriptValue(ScriptState::current(info.GetIsola te()), info[0]);
5653 } 5653 }
5654 impl->voidMethodVoidCallbackFunctionArg(voidCallbackFunctionArg); 5654 impl->voidMethodVoidCallbackFunctionArg(voidCallbackFunctionArg);
5655 } 5655 }
5656 5656
5657 static void voidMethodVoidCallbackFunctionArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info) 5657 static void voidMethodVoidCallbackFunctionArgMethodCallback(const v8::FunctionCa llbackInfo<v8::Value>& info)
5658 { 5658 {
5659 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5659 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5660 TestObjectV8Internal::voidMethodVoidCallbackFunctionArgMethod(info); 5660 TestObjectV8Internal::voidMethodVoidCallbackFunctionArgMethod(info);
5661 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5661 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5662 } 5662 }
5663 5663
5664 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::Function CallbackInfo<v8::Value>& info) 5664 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::Function CallbackInfo<v8::Value>& info)
5665 { 5665 {
5666 if (UNLIKELY(info.Length() < 1)) { 5666 if (UNLIKELY(info.Length() < 1)) {
5667 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodAnyCallbackFunctionOptionalAnyArg", "TestObject", 1, info.Length(), inf o.GetIsolate()), info.GetIsolate()); 5667 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodAnyCallbackFunctionOptionalAnyArg", "TestObject", 1, info.Length()), info.GetIsolate());
5668 return; 5668 return;
5669 } 5669 }
5670 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5670 TestObject* impl = V8TestObject::toImpl(info.Holder());
5671 ScriptValue anyCallbackFunctionOptionalAnyArgArg; 5671 ScriptValue anyCallbackFunctionOptionalAnyArgArg;
5672 { 5672 {
5673 anyCallbackFunctionOptionalAnyArgArg = ScriptValue(ScriptState::current( info.GetIsolate()), info[0]); 5673 anyCallbackFunctionOptionalAnyArgArg = ScriptValue(ScriptState::current( info.GetIsolate()), info[0]);
5674 } 5674 }
5675 impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptiona lAnyArgArg); 5675 impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptiona lAnyArgArg);
5676 } 5676 }
5677 5677
(...skipping 13 matching lines...) Expand all
5691 static void anyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 5691 static void anyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
5692 { 5692 {
5693 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5693 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5694 TestObjectV8Internal::anyMethodMethod(info); 5694 TestObjectV8Internal::anyMethodMethod(info);
5695 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5695 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5696 } 5696 }
5697 5697
5698 static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5698 static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5699 { 5699 {
5700 if (UNLIKELY(info.Length() < 1)) { 5700 if (UNLIKELY(info.Length() < 1)) {
5701 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodEventTargetArg", "TestObject", 1, info.Length(), info.GetIsolate()), in fo.GetIsolate()); 5701 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodEventTargetArg", "TestObject", 1, info.Length()), in fo.GetIsolate());
5702 return; 5702 return;
5703 } 5703 }
5704 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5704 TestObject* impl = V8TestObject::toImpl(info.Holder());
5705 EventTarget* eventTargetArg; 5705 EventTarget* eventTargetArg;
5706 { 5706 {
5707 eventTargetArg = V8DOMWrapper::isDOMWrapper(info[0]) ? toWrapperTypeInfo (v8::Handle<v8::Object>::Cast(info[0]))->toEventTarget(v8::Handle<v8::Object>::C ast(info[0])) : 0; 5707 eventTargetArg = V8DOMWrapper::isDOMWrapper(info[0]) ? toWrapperTypeInfo (v8::Handle<v8::Object>::Cast(info[0]))->toEventTarget(v8::Handle<v8::Object>::C ast(info[0])) : 0;
5708 } 5708 }
5709 impl->voidMethodEventTargetArg(eventTargetArg); 5709 impl->voidMethodEventTargetArg(eventTargetArg);
5710 } 5710 }
5711 5711
5712 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 5712 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
5713 { 5713 {
5714 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5714 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5715 TestObjectV8Internal::voidMethodEventTargetArgMethod(info); 5715 TestObjectV8Internal::voidMethodEventTargetArgMethod(info);
5716 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5716 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5717 } 5717 }
5718 5718
5719 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) 5719 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo)
5720 { 5720 {
5721 if (UNLIKELY(info.Length() < 1)) { 5721 if (UNLIKELY(info.Length() < 1)) {
5722 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodAnyArg", "TestObject", 1, info.Length(), info.GetIsolate()), info.GetIs olate()); 5722 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodAnyArg", "TestObject", 1, info.Length()), info.GetIs olate());
5723 return; 5723 return;
5724 } 5724 }
5725 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5725 TestObject* impl = V8TestObject::toImpl(info.Holder());
5726 ScriptValue anyArg; 5726 ScriptValue anyArg;
5727 { 5727 {
5728 anyArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[0]); 5728 anyArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[0]);
5729 } 5729 }
5730 impl->voidMethodAnyArg(anyArg); 5730 impl->voidMethodAnyArg(anyArg);
5731 } 5731 }
5732 5732
5733 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5733 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5734 { 5734 {
5735 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5735 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5736 TestObjectV8Internal::voidMethodAnyArgMethod(info); 5736 TestObjectV8Internal::voidMethodAnyArgMethod(info);
5737 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5737 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5738 } 5738 }
5739 5739
5740 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 5740 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
5741 { 5741 {
5742 if (UNLIKELY(info.Length() < 1)) { 5742 if (UNLIKELY(info.Length() < 1)) {
5743 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodAttrArg", "TestObject", 1, info.Length(), info.GetIsolate()), info.GetI solate()); 5743 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodAttrArg", "TestObject", 1, info.Length()), info.GetI solate());
5744 return; 5744 return;
5745 } 5745 }
5746 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5746 TestObject* impl = V8TestObject::toImpl(info.Holder());
5747 Attr* attrArg; 5747 Attr* attrArg;
5748 { 5748 {
5749 attrArg = V8Attr::toImplWithTypeCheck(info.GetIsolate(), info[0]); 5749 attrArg = V8Attr::toImplWithTypeCheck(info.GetIsolate(), info[0]);
5750 } 5750 }
5751 impl->voidMethodAttrArg(attrArg); 5751 impl->voidMethodAttrArg(attrArg);
5752 } 5752 }
5753 5753
5754 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 5754 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
5755 { 5755 {
5756 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5756 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5757 TestObjectV8Internal::voidMethodAttrArgMethod(info); 5757 TestObjectV8Internal::voidMethodAttrArgMethod(info);
5758 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5758 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5759 } 5759 }
5760 5760
5761 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 5761 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
5762 { 5762 {
5763 if (UNLIKELY(info.Length() < 1)) { 5763 if (UNLIKELY(info.Length() < 1)) {
5764 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodDocumentArg", "TestObject", 1, info.Length(), info.GetIsolate()), info. GetIsolate()); 5764 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodDocumentArg", "TestObject", 1, info.Length()), info. GetIsolate());
5765 return; 5765 return;
5766 } 5766 }
5767 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5767 TestObject* impl = V8TestObject::toImpl(info.Holder());
5768 Document* documentArg; 5768 Document* documentArg;
5769 { 5769 {
5770 documentArg = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0] ); 5770 documentArg = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0] );
5771 } 5771 }
5772 impl->voidMethodDocumentArg(documentArg); 5772 impl->voidMethodDocumentArg(documentArg);
5773 } 5773 }
5774 5774
5775 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 5775 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
5776 { 5776 {
5777 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5777 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5778 TestObjectV8Internal::voidMethodDocumentArgMethod(info); 5778 TestObjectV8Internal::voidMethodDocumentArgMethod(info);
5779 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5779 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5780 } 5780 }
5781 5781
5782 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 5782 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
5783 { 5783 {
5784 if (UNLIKELY(info.Length() < 1)) { 5784 if (UNLIKELY(info.Length() < 1)) {
5785 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodDocumentTypeArg", "TestObject", 1, info.Length(), info.GetIsolate()), i nfo.GetIsolate()); 5785 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodDocumentTypeArg", "TestObject", 1, info.Length()), i nfo.GetIsolate());
5786 return; 5786 return;
5787 } 5787 }
5788 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5788 TestObject* impl = V8TestObject::toImpl(info.Holder());
5789 DocumentType* documentTypeArg; 5789 DocumentType* documentTypeArg;
5790 { 5790 {
5791 documentTypeArg = V8DocumentType::toImplWithTypeCheck(info.GetIsolate(), info[0]); 5791 documentTypeArg = V8DocumentType::toImplWithTypeCheck(info.GetIsolate(), info[0]);
5792 } 5792 }
5793 impl->voidMethodDocumentTypeArg(documentTypeArg); 5793 impl->voidMethodDocumentTypeArg(documentTypeArg);
5794 } 5794 }
5795 5795
5796 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5796 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5797 { 5797 {
5798 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5798 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5799 TestObjectV8Internal::voidMethodDocumentTypeArgMethod(info); 5799 TestObjectV8Internal::voidMethodDocumentTypeArgMethod(info);
5800 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5800 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5801 } 5801 }
5802 5802
5803 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 5803 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
5804 { 5804 {
5805 if (UNLIKELY(info.Length() < 1)) { 5805 if (UNLIKELY(info.Length() < 1)) {
5806 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodElementArg", "TestObject", 1, info.Length(), info.GetIsolate()), info.G etIsolate()); 5806 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodElementArg", "TestObject", 1, info.Length()), info.G etIsolate());
5807 return; 5807 return;
5808 } 5808 }
5809 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5809 TestObject* impl = V8TestObject::toImpl(info.Holder());
5810 Element* elementArg; 5810 Element* elementArg;
5811 { 5811 {
5812 elementArg = V8Element::toImplWithTypeCheck(info.GetIsolate(), info[0]); 5812 elementArg = V8Element::toImplWithTypeCheck(info.GetIsolate(), info[0]);
5813 } 5813 }
5814 impl->voidMethodElementArg(elementArg); 5814 impl->voidMethodElementArg(elementArg);
5815 } 5815 }
5816 5816
5817 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 5817 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
5818 { 5818 {
5819 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5819 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5820 TestObjectV8Internal::voidMethodElementArgMethod(info); 5820 TestObjectV8Internal::voidMethodElementArgMethod(info);
5821 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5821 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5822 } 5822 }
5823 5823
5824 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 5824 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
5825 { 5825 {
5826 if (UNLIKELY(info.Length() < 1)) { 5826 if (UNLIKELY(info.Length() < 1)) {
5827 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodNodeArg", "TestObject", 1, info.Length(), info.GetIsolate()), info.GetI solate()); 5827 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodNodeArg", "TestObject", 1, info.Length()), info.GetI solate());
5828 return; 5828 return;
5829 } 5829 }
5830 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5830 TestObject* impl = V8TestObject::toImpl(info.Holder());
5831 Node* nodeArg; 5831 Node* nodeArg;
5832 { 5832 {
5833 nodeArg = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]); 5833 nodeArg = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
5834 } 5834 }
5835 impl->voidMethodNodeArg(nodeArg); 5835 impl->voidMethodNodeArg(nodeArg);
5836 } 5836 }
5837 5837
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
5903 static void uint8ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5903 static void uint8ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5904 { 5904 {
5905 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5905 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5906 TestObjectV8Internal::uint8ArrayMethodMethod(info); 5906 TestObjectV8Internal::uint8ArrayMethodMethod(info);
5907 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5907 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5908 } 5908 }
5909 5909
5910 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5910 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5911 { 5911 {
5912 if (UNLIKELY(info.Length() < 1)) { 5912 if (UNLIKELY(info.Length() < 1)) {
5913 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodArrayBufferArg", "TestObject", 1, info.Length(), info.GetIsolate()), in fo.GetIsolate()); 5913 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodArrayBufferArg", "TestObject", 1, info.Length()), in fo.GetIsolate());
5914 return; 5914 return;
5915 } 5915 }
5916 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5916 TestObject* impl = V8TestObject::toImpl(info.Holder());
5917 TestArrayBuffer* arrayBufferArg; 5917 TestArrayBuffer* arrayBufferArg;
5918 { 5918 {
5919 arrayBufferArg = info[0]->IsArrayBuffer() ? V8ArrayBuffer::toImpl(v8::Ha ndle<v8::ArrayBuffer>::Cast(info[0])) : 0; 5919 arrayBufferArg = info[0]->IsArrayBuffer() ? V8ArrayBuffer::toImpl(v8::Ha ndle<v8::ArrayBuffer>::Cast(info[0])) : 0;
5920 } 5920 }
5921 impl->voidMethodArrayBufferArg(arrayBufferArg); 5921 impl->voidMethodArrayBufferArg(arrayBufferArg);
5922 } 5922 }
5923 5923
5924 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 5924 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
5925 { 5925 {
5926 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5926 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5927 TestObjectV8Internal::voidMethodArrayBufferArgMethod(info); 5927 TestObjectV8Internal::voidMethodArrayBufferArgMethod(info);
5928 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5928 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5929 } 5929 }
5930 5930
5931 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info) 5931 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
5932 { 5932 {
5933 if (UNLIKELY(info.Length() < 1)) { 5933 if (UNLIKELY(info.Length() < 1)) {
5934 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodArrayBufferOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate( )), info.GetIsolate()); 5934 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodArrayBufferOrNullArg", "TestObject", 1, info.Length( )), info.GetIsolate());
5935 return; 5935 return;
5936 } 5936 }
5937 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5937 TestObject* impl = V8TestObject::toImpl(info.Holder());
5938 TestArrayBuffer* arrayBufferArg; 5938 TestArrayBuffer* arrayBufferArg;
5939 { 5939 {
5940 arrayBufferArg = info[0]->IsArrayBuffer() ? V8ArrayBuffer::toImpl(v8::Ha ndle<v8::ArrayBuffer>::Cast(info[0])) : 0; 5940 arrayBufferArg = info[0]->IsArrayBuffer() ? V8ArrayBuffer::toImpl(v8::Ha ndle<v8::ArrayBuffer>::Cast(info[0])) : 0;
5941 } 5941 }
5942 impl->voidMethodArrayBufferOrNullArg(arrayBufferArg); 5942 impl->voidMethodArrayBufferOrNullArg(arrayBufferArg);
5943 } 5943 }
5944 5944
5945 static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 5945 static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
5946 { 5946 {
5947 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5947 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5948 TestObjectV8Internal::voidMethodArrayBufferOrNullArgMethod(info); 5948 TestObjectV8Internal::voidMethodArrayBufferOrNullArgMethod(info);
5949 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5949 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5950 } 5950 }
5951 5951
5952 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 5952 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
5953 { 5953 {
5954 if (UNLIKELY(info.Length() < 1)) { 5954 if (UNLIKELY(info.Length() < 1)) {
5955 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodArrayBufferViewArg", "TestObject", 1, info.Length(), info.GetIsolate()) , info.GetIsolate()); 5955 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodArrayBufferViewArg", "TestObject", 1, info.Length()) , info.GetIsolate());
5956 return; 5956 return;
5957 } 5957 }
5958 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5958 TestObject* impl = V8TestObject::toImpl(info.Holder());
5959 TestArrayBufferView* arrayBufferViewArg; 5959 TestArrayBufferView* arrayBufferViewArg;
5960 { 5960 {
5961 arrayBufferViewArg = info[0]->IsArrayBufferView() ? V8ArrayBufferView::t oImpl(v8::Handle<v8::ArrayBufferView>::Cast(info[0])) : 0; 5961 arrayBufferViewArg = info[0]->IsArrayBufferView() ? V8ArrayBufferView::t oImpl(v8::Handle<v8::ArrayBufferView>::Cast(info[0])) : 0;
5962 } 5962 }
5963 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg); 5963 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg);
5964 } 5964 }
5965 5965
5966 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 5966 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
5967 { 5967 {
5968 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5968 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5969 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info); 5969 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info);
5970 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5970 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5971 } 5971 }
5972 5972
5973 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 5973 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
5974 { 5974 {
5975 if (UNLIKELY(info.Length() < 1)) { 5975 if (UNLIKELY(info.Length() < 1)) {
5976 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodFloat32ArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()), i nfo.GetIsolate()); 5976 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodFloat32ArrayArg", "TestObject", 1, info.Length()), i nfo.GetIsolate());
5977 return; 5977 return;
5978 } 5978 }
5979 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5979 TestObject* impl = V8TestObject::toImpl(info.Holder());
5980 DOMFloat32Array* float32ArrayArg; 5980 DOMFloat32Array* float32ArrayArg;
5981 { 5981 {
5982 float32ArrayArg = info[0]->IsFloat32Array() ? V8Float32Array::toImpl(v8: :Handle<v8::Float32Array>::Cast(info[0])) : 0; 5982 float32ArrayArg = info[0]->IsFloat32Array() ? V8Float32Array::toImpl(v8: :Handle<v8::Float32Array>::Cast(info[0])) : 0;
5983 } 5983 }
5984 impl->voidMethodFloat32ArrayArg(float32ArrayArg); 5984 impl->voidMethodFloat32ArrayArg(float32ArrayArg);
5985 } 5985 }
5986 5986
5987 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5987 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5988 { 5988 {
5989 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5989 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5990 TestObjectV8Internal::voidMethodFloat32ArrayArgMethod(info); 5990 TestObjectV8Internal::voidMethodFloat32ArrayArgMethod(info);
5991 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5991 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5992 } 5992 }
5993 5993
5994 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 5994 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
5995 { 5995 {
5996 if (UNLIKELY(info.Length() < 1)) { 5996 if (UNLIKELY(info.Length() < 1)) {
5997 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodInt32ArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()), inf o.GetIsolate()); 5997 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodInt32ArrayArg", "TestObject", 1, info.Length()), inf o.GetIsolate());
5998 return; 5998 return;
5999 } 5999 }
6000 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6000 TestObject* impl = V8TestObject::toImpl(info.Holder());
6001 DOMInt32Array* int32ArrayArg; 6001 DOMInt32Array* int32ArrayArg;
6002 { 6002 {
6003 int32ArrayArg = info[0]->IsInt32Array() ? V8Int32Array::toImpl(v8::Handl e<v8::Int32Array>::Cast(info[0])) : 0; 6003 int32ArrayArg = info[0]->IsInt32Array() ? V8Int32Array::toImpl(v8::Handl e<v8::Int32Array>::Cast(info[0])) : 0;
6004 } 6004 }
6005 impl->voidMethodInt32ArrayArg(int32ArrayArg); 6005 impl->voidMethodInt32ArrayArg(int32ArrayArg);
6006 } 6006 }
6007 6007
6008 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 6008 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
6009 { 6009 {
6010 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6010 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6011 TestObjectV8Internal::voidMethodInt32ArrayArgMethod(info); 6011 TestObjectV8Internal::voidMethodInt32ArrayArgMethod(info);
6012 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6012 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6013 } 6013 }
6014 6014
6015 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 6015 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
6016 { 6016 {
6017 if (UNLIKELY(info.Length() < 1)) { 6017 if (UNLIKELY(info.Length() < 1)) {
6018 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodUint8ArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()), inf o.GetIsolate()); 6018 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodUint8ArrayArg", "TestObject", 1, info.Length()), inf o.GetIsolate());
6019 return; 6019 return;
6020 } 6020 }
6021 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6021 TestObject* impl = V8TestObject::toImpl(info.Holder());
6022 DOMUint8Array* uint8ArrayArg; 6022 DOMUint8Array* uint8ArrayArg;
6023 { 6023 {
6024 uint8ArrayArg = info[0]->IsUint8Array() ? V8Uint8Array::toImpl(v8::Handl e<v8::Uint8Array>::Cast(info[0])) : 0; 6024 uint8ArrayArg = info[0]->IsUint8Array() ? V8Uint8Array::toImpl(v8::Handl e<v8::Uint8Array>::Cast(info[0])) : 0;
6025 } 6025 }
6026 impl->voidMethodUint8ArrayArg(uint8ArrayArg); 6026 impl->voidMethodUint8ArrayArg(uint8ArrayArg);
6027 } 6027 }
6028 6028
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
6388 static void testInterfaceOrLongMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 6388 static void testInterfaceOrLongMethodMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
6389 { 6389 {
6390 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6390 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6391 TestObjectV8Internal::testInterfaceOrLongMethodMethod(info); 6391 TestObjectV8Internal::testInterfaceOrLongMethodMethod(info);
6392 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6392 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6393 } 6393 }
6394 6394
6395 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba ckInfo<v8::Value>& info) 6395 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba ckInfo<v8::Value>& info)
6396 { 6396 {
6397 if (UNLIKELY(info.Length() < 1)) { 6397 if (UNLIKELY(info.Length() < 1)) {
6398 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodTestInterfaceEmptyOrNullArg", "TestObject", 1, info.Length(), info.GetI solate()), info.GetIsolate()); 6398 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodTestInterfaceEmptyOrNullArg", "TestObject", 1, info. Length()), info.GetIsolate());
6399 return; 6399 return;
6400 } 6400 }
6401 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6401 TestObject* impl = V8TestObject::toImpl(info.Holder());
6402 TestInterfaceEmpty* nullableTestInterfaceEmptyArg; 6402 TestInterfaceEmpty* nullableTestInterfaceEmptyArg;
6403 { 6403 {
6404 nullableTestInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeChec k(info.GetIsolate(), info[0]); 6404 nullableTestInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeChec k(info.GetIsolate(), info[0]);
6405 } 6405 }
6406 impl->voidMethodTestInterfaceEmptyOrNullArg(nullableTestInterfaceEmptyArg); 6406 impl->voidMethodTestInterfaceEmptyOrNullArg(nullableTestInterfaceEmptyArg);
6407 } 6407 }
6408 6408
6409 static void voidMethodTestInterfaceEmptyOrNullArgMethodCallback(const v8::Functi onCallbackInfo<v8::Value>& info) 6409 static void voidMethodTestInterfaceEmptyOrNullArgMethodCallback(const v8::Functi onCallbackInfo<v8::Value>& info)
6410 { 6410 {
6411 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6411 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6412 TestObjectV8Internal::voidMethodTestInterfaceEmptyOrNullArgMethod(info); 6412 TestObjectV8Internal::voidMethodTestInterfaceEmptyOrNullArgMethod(info);
6413 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6413 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6414 } 6414 }
6415 6415
6416 static void voidMethodTestCallbackInterfaceArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 6416 static void voidMethodTestCallbackInterfaceArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
6417 { 6417 {
6418 if (UNLIKELY(info.Length() < 1)) { 6418 if (UNLIKELY(info.Length() < 1)) {
6419 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodTestCallbackInterfaceArg", "TestObject", 1, info.Length(), info.GetIsol ate()), info.GetIsolate()); 6419 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodTestCallbackInterfaceArg", "TestObject", 1, info.Len gth()), info.GetIsolate());
6420 return; 6420 return;
6421 } 6421 }
6422 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6422 TestObject* impl = V8TestObject::toImpl(info.Holder());
6423 TestCallbackInterface* testCallbackInterfaceArg; 6423 TestCallbackInterface* testCallbackInterfaceArg;
6424 { 6424 {
6425 if (info.Length() <= 0 || !info[0]->IsFunction()) { 6425 if (info.Length() <= 0 || !info[0]->IsFunction()) {
6426 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "voidMethodTestCallbackInterfaceArg", "TestObject", "The callback provided as pa rameter 1 is not a function."), info.GetIsolate()); 6426 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "voidMethodTestCallbackInterfaceArg", "TestObject", "The callback provided as pa rameter 1 is not a function."), info.GetIsolate());
6427 return; 6427 return;
6428 } 6428 }
6429 testCallbackInterfaceArg = V8TestCallbackInterface::create(v8::Handle<v8 ::Function>::Cast(info[0]), ScriptState::current(info.GetIsolate())); 6429 testCallbackInterfaceArg = V8TestCallbackInterface::create(v8::Handle<v8 ::Function>::Cast(info[0]), ScriptState::current(info.GetIsolate()));
(...skipping 29 matching lines...) Expand all
6459 static void voidMethodOptionalTestCallbackInterfaceArgMethodCallback(const v8::F unctionCallbackInfo<v8::Value>& info) 6459 static void voidMethodOptionalTestCallbackInterfaceArgMethodCallback(const v8::F unctionCallbackInfo<v8::Value>& info)
6460 { 6460 {
6461 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6461 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6462 TestObjectV8Internal::voidMethodOptionalTestCallbackInterfaceArgMethod(info) ; 6462 TestObjectV8Internal::voidMethodOptionalTestCallbackInterfaceArgMethod(info) ;
6463 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6463 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6464 } 6464 }
6465 6465
6466 static void voidMethodTestCallbackInterfaceOrNullArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 6466 static void voidMethodTestCallbackInterfaceOrNullArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
6467 { 6467 {
6468 if (UNLIKELY(info.Length() < 1)) { 6468 if (UNLIKELY(info.Length() < 1)) {
6469 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodTestCallbackInterfaceOrNullArg", "TestObject", 1, info.Length(), info.G etIsolate()), info.GetIsolate()); 6469 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodTestCallbackInterfaceOrNullArg", "TestObject", 1, in fo.Length()), info.GetIsolate());
6470 return; 6470 return;
6471 } 6471 }
6472 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6472 TestObject* impl = V8TestObject::toImpl(info.Holder());
6473 TestCallbackInterface* testCallbackInterfaceArg; 6473 TestCallbackInterface* testCallbackInterfaceArg;
6474 { 6474 {
6475 if (info.Length() <= 0 || !(info[0]->IsFunction() || info[0]->IsNull())) { 6475 if (info.Length() <= 0 || !(info[0]->IsFunction() || info[0]->IsNull())) {
6476 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "voidMethodTestCallbackInterfaceOrNullArg", "TestObject", "The callback provided as parameter 1 is not a function."), info.GetIsolate()); 6476 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "voidMethodTestCallbackInterfaceOrNullArg", "TestObject", "The callback provided as parameter 1 is not a function."), info.GetIsolate());
6477 return; 6477 return;
6478 } 6478 }
6479 testCallbackInterfaceArg = info[0]->IsNull() ? nullptr : V8TestCallbackI nterface::create(v8::Handle<v8::Function>::Cast(info[0]), ScriptState::current(i nfo.GetIsolate())); 6479 testCallbackInterfaceArg = info[0]->IsNull() ? nullptr : V8TestCallbackI nterface::create(v8::Handle<v8::Function>::Cast(info[0]), ScriptState::current(i nfo.GetIsolate()));
(...skipping 17 matching lines...) Expand all
6497 static void testEnumMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info) 6497 static void testEnumMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info)
6498 { 6498 {
6499 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6499 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6500 TestObjectV8Internal::testEnumMethodMethod(info); 6500 TestObjectV8Internal::testEnumMethodMethod(info);
6501 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6501 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6502 } 6502 }
6503 6503
6504 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 6504 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
6505 { 6505 {
6506 if (UNLIKELY(info.Length() < 1)) { 6506 if (UNLIKELY(info.Length() < 1)) {
6507 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodTestEnumArg", "TestObject", 1, info.Length(), info.GetIsolate()), info. GetIsolate()); 6507 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodTestEnumArg", "TestObject", 1, info.Length()), info. GetIsolate());
6508 return; 6508 return;
6509 } 6509 }
6510 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6510 TestObject* impl = V8TestObject::toImpl(info.Holder());
6511 V8StringResource<> testEnumTypeArg; 6511 V8StringResource<> testEnumTypeArg;
6512 { 6512 {
6513 TOSTRING_VOID_INTERNAL(testEnumTypeArg, info[0]); 6513 TOSTRING_VOID_INTERNAL(testEnumTypeArg, info[0]);
6514 String string = testEnumTypeArg; 6514 String string = testEnumTypeArg;
6515 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" | | string == "EnumValue3")) { 6515 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" | | string == "EnumValue3")) {
6516 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "voidMethodTestEnumArg", "TestObject", "parameter 1 ('" + string + "') is not a valid enum value."), info.GetIsolate()); 6516 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "voidMethodTestEnumArg", "TestObject", "parameter 1 ('" + string + "') is not a valid enum value."), info.GetIsolate());
6517 return; 6517 return;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
6598 static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value >& info) 6598 static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value >& info)
6599 { 6599 {
6600 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6600 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6601 TestObjectV8Internal::promiseMethodMethod(info); 6601 TestObjectV8Internal::promiseMethodMethod(info);
6602 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6602 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6603 } 6603 }
6604 6604
6605 static void promiseMethodWithoutExceptionStateMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 6605 static void promiseMethodWithoutExceptionStateMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
6606 { 6606 {
6607 if (UNLIKELY(info.Length() < 1)) { 6607 if (UNLIKELY(info.Length() < 1)) {
6608 v8SetReturnValue(info, ScriptPromise::rejectRaw(info.GetIsolate(), creat eMinimumArityTypeErrorForMethod("promiseMethodWithoutExceptionState", "TestObjec t", 1, info.Length(), info.GetIsolate()))); 6608 v8SetReturnValue(info, ScriptPromise::rejectRaw(info.GetIsolate(), creat eMinimumArityTypeErrorForMethod(info.GetIsolate(), "promiseMethodWithoutExceptio nState", "TestObject", 1, info.Length())));
6609 return; 6609 return;
6610 } 6610 }
6611 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6611 TestObject* impl = V8TestObject::toImpl(info.Holder());
6612 Dictionary arg1; 6612 Dictionary arg1;
6613 { 6613 {
6614 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { 6614 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) {
6615 v8SetReturnValue(info, ScriptPromise::rejectRaw(info.GetIsolate(), V 8ThrowException::createTypeError(info.GetIsolate(), ExceptionMessages::failedToE xecute("promiseMethodWithoutExceptionState", "TestObject", "parameter 1 ('arg1') is not an object.")))); 6615 v8SetReturnValue(info, ScriptPromise::rejectRaw(info.GetIsolate(), V 8ThrowException::createTypeError(info.GetIsolate(), ExceptionMessages::failedToE xecute("promiseMethodWithoutExceptionState", "TestObject", "parameter 1 ('arg1') is not an object."))));
6616 return; 6616 return;
6617 } 6617 }
6618 arg1 = Dictionary(info[0], info.GetIsolate()); 6618 arg1 = Dictionary(info[0], info.GetIsolate());
(...skipping 30 matching lines...) Expand all
6649 static void xPathNSResolverMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 6649 static void xPathNSResolverMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
6650 { 6650 {
6651 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6651 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6652 TestObjectV8Internal::xPathNSResolverMethodMethod(info); 6652 TestObjectV8Internal::xPathNSResolverMethodMethod(info);
6653 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6653 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6654 } 6654 }
6655 6655
6656 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 6656 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
6657 { 6657 {
6658 if (UNLIKELY(info.Length() < 1)) { 6658 if (UNLIKELY(info.Length() < 1)) {
6659 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodDictionaryArg", "TestObject", 1, info.Length(), info.GetIsolate()), inf o.GetIsolate()); 6659 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodDictionaryArg", "TestObject", 1, info.Length()), inf o.GetIsolate());
6660 return; 6660 return;
6661 } 6661 }
6662 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6662 TestObject* impl = V8TestObject::toImpl(info.Holder());
6663 Dictionary dictionaryArg; 6663 Dictionary dictionaryArg;
6664 { 6664 {
6665 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) { 6665 if (!isUndefinedOrNull(info[0]) && !info[0]->IsObject()) {
6666 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "voidMethodDictionaryArg", "TestObject", "parameter 1 ('dictionaryArg') is not a n object."), info.GetIsolate()); 6666 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "voidMethodDictionaryArg", "TestObject", "parameter 1 ('dictionaryArg') is not a n object."), info.GetIsolate());
6667 return; 6667 return;
6668 } 6668 }
6669 dictionaryArg = Dictionary(info[0], info.GetIsolate()); 6669 dictionaryArg = Dictionary(info[0], info.GetIsolate());
6670 } 6670 }
6671 impl->voidMethodDictionaryArg(dictionaryArg); 6671 impl->voidMethodDictionaryArg(dictionaryArg);
6672 } 6672 }
6673 6673
6674 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 6674 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
6675 { 6675 {
6676 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6676 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6677 TestObjectV8Internal::voidMethodDictionaryArgMethod(info); 6677 TestObjectV8Internal::voidMethodDictionaryArgMethod(info);
6678 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6678 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6679 } 6679 }
6680 6680
6681 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 6681 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
6682 { 6682 {
6683 if (UNLIKELY(info.Length() < 1)) { 6683 if (UNLIKELY(info.Length() < 1)) {
6684 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodNodeFilterArg", "TestObject", 1, info.Length(), info.GetIsolate()), inf o.GetIsolate()); 6684 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodNodeFilterArg", "TestObject", 1, info.Length()), inf o.GetIsolate());
6685 return; 6685 return;
6686 } 6686 }
6687 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6687 TestObject* impl = V8TestObject::toImpl(info.Holder());
6688 RefPtrWillBeRawPtr<NodeFilter> nodeFilterArg; 6688 RefPtrWillBeRawPtr<NodeFilter> nodeFilterArg;
6689 { 6689 {
6690 nodeFilterArg = toNodeFilter(info[0], info.Holder(), ScriptState::curren t(info.GetIsolate())); 6690 nodeFilterArg = toNodeFilter(info[0], info.Holder(), ScriptState::curren t(info.GetIsolate()));
6691 } 6691 }
6692 impl->voidMethodNodeFilterArg(nodeFilterArg.release()); 6692 impl->voidMethodNodeFilterArg(nodeFilterArg.release());
6693 } 6693 }
6694 6694
6695 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 6695 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
6696 { 6696 {
6697 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6697 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6698 TestObjectV8Internal::voidMethodNodeFilterArgMethod(info); 6698 TestObjectV8Internal::voidMethodNodeFilterArgMethod(info);
6699 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6699 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6700 } 6700 }
6701 6701
6702 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info) 6702 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value> & info)
6703 { 6703 {
6704 if (UNLIKELY(info.Length() < 1)) { 6704 if (UNLIKELY(info.Length() < 1)) {
6705 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodPromiseArg", "TestObject", 1, info.Length(), info.GetIsolate()), info.G etIsolate()); 6705 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodPromiseArg", "TestObject", 1, info.Length()), info.G etIsolate());
6706 return; 6706 return;
6707 } 6707 }
6708 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6708 TestObject* impl = V8TestObject::toImpl(info.Holder());
6709 ScriptPromise promiseArg; 6709 ScriptPromise promiseArg;
6710 { 6710 {
6711 promiseArg = ScriptPromise::cast(ScriptState::current(info.GetIsolate()) , info[0]); 6711 promiseArg = ScriptPromise::cast(ScriptState::current(info.GetIsolate()) , info[0]);
6712 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) { 6712 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) {
6713 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "voidMethodPromiseArg", "TestObject", "parameter 1 ('promiseArg') is not an obje ct."), info.GetIsolate()); 6713 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "voidMethodPromiseArg", "TestObject", "parameter 1 ('promiseArg') is not an obje ct."), info.GetIsolate());
6714 return; 6714 return;
6715 } 6715 }
(...skipping 27 matching lines...) Expand all
6743 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 6743 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
6744 { 6744 {
6745 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6745 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6746 TestObjectV8Internal::voidMethodSerializedScriptValueArgMethod(info); 6746 TestObjectV8Internal::voidMethodSerializedScriptValueArgMethod(info);
6747 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6747 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6748 } 6748 }
6749 6749
6750 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 6750 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
6751 { 6751 {
6752 if (UNLIKELY(info.Length() < 1)) { 6752 if (UNLIKELY(info.Length() < 1)) {
6753 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodXPathNSResolverArg", "TestObject", 1, info.Length(), info.GetIsolate()) , info.GetIsolate()); 6753 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodXPathNSResolverArg", "TestObject", 1, info.Length()) , info.GetIsolate());
6754 return; 6754 return;
6755 } 6755 }
6756 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6756 TestObject* impl = V8TestObject::toImpl(info.Holder());
6757 RefPtrWillBeRawPtr<XPathNSResolver> xPathNSResolverArg; 6757 RefPtrWillBeRawPtr<XPathNSResolver> xPathNSResolverArg;
6758 { 6758 {
6759 xPathNSResolverArg = toXPathNSResolver(info.GetIsolate(), info[0]); 6759 xPathNSResolverArg = toXPathNSResolver(info.GetIsolate(), info[0]);
6760 } 6760 }
6761 impl->voidMethodXPathNSResolverArg(xPathNSResolverArg.release()); 6761 impl->voidMethodXPathNSResolverArg(xPathNSResolverArg.release());
6762 } 6762 }
6763 6763
(...skipping 1603 matching lines...) Expand 10 before | Expand all | Expand 10 after
8367 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info) 8367 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
8368 { 8368 {
8369 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 8369 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
8370 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info); 8370 TestObjectV8Internal::voidMethodEnforceRangeLongArgMethod(info);
8371 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8371 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8372 } 8372 }
8373 8373
8374 static void voidMethodTreatNullAsEmptyStringStringArgMethod(const v8::FunctionCa llbackInfo<v8::Value>& info) 8374 static void voidMethodTreatNullAsEmptyStringStringArgMethod(const v8::FunctionCa llbackInfo<v8::Value>& info)
8375 { 8375 {
8376 if (UNLIKELY(info.Length() < 1)) { 8376 if (UNLIKELY(info.Length() < 1)) {
8377 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodTreatNullAsEmptyStringStringArg", "TestObject", 1, info.Length(), info. GetIsolate()), info.GetIsolate()); 8377 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodTreatNullAsEmptyStringStringArg", "TestObject", 1, i nfo.Length()), info.GetIsolate());
8378 return; 8378 return;
8379 } 8379 }
8380 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8380 TestObject* impl = V8TestObject::toImpl(info.Holder());
8381 V8StringResource<TreatNullAsEmptyString> treatNullAsEmptyStringStringArg; 8381 V8StringResource<TreatNullAsEmptyString> treatNullAsEmptyStringStringArg;
8382 { 8382 {
8383 TOSTRING_VOID_INTERNAL(treatNullAsEmptyStringStringArg, info[0]); 8383 TOSTRING_VOID_INTERNAL(treatNullAsEmptyStringStringArg, info[0]);
8384 } 8384 }
8385 impl->voidMethodTreatNullAsEmptyStringStringArg(treatNullAsEmptyStringString Arg); 8385 impl->voidMethodTreatNullAsEmptyStringStringArg(treatNullAsEmptyStringString Arg);
8386 } 8386 }
8387 8387
8388 static void voidMethodTreatNullAsEmptyStringStringArgMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) 8388 static void voidMethodTreatNullAsEmptyStringStringArgMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info)
8389 { 8389 {
8390 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 8390 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
8391 TestObjectV8Internal::voidMethodTreatNullAsEmptyStringStringArgMethod(info); 8391 TestObjectV8Internal::voidMethodTreatNullAsEmptyStringStringArgMethod(info);
8392 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8392 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8393 } 8393 }
8394 8394
8395 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info) 8395 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal lbackInfo<v8::Value>& info)
8396 { 8396 {
8397 if (UNLIKELY(info.Length() < 1)) { 8397 if (UNLIKELY(info.Length() < 1)) {
8398 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodTreatNullAsNullStringStringArg", "TestObject", 1, info.Length(), info.G etIsolate()), info.GetIsolate()); 8398 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodTreatNullAsNullStringStringArg", "TestObject", 1, in fo.Length()), info.GetIsolate());
8399 return; 8399 return;
8400 } 8400 }
8401 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8401 TestObject* impl = V8TestObject::toImpl(info.Holder());
8402 V8StringResource<TreatNullAsNullString> treatNullAsNullStringStringArg; 8402 V8StringResource<TreatNullAsNullString> treatNullAsNullStringStringArg;
8403 { 8403 {
8404 TOSTRING_VOID_INTERNAL(treatNullAsNullStringStringArg, info[0]); 8404 TOSTRING_VOID_INTERNAL(treatNullAsNullStringStringArg, info[0]);
8405 } 8405 }
8406 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr g); 8406 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr g);
8407 } 8407 }
8408 8408
8409 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info) 8409 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun ctionCallbackInfo<v8::Value>& info)
8410 { 8410 {
8411 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 8411 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
8412 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info); 8412 TestObjectV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(info);
8413 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8413 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8414 } 8414 }
8415 8415
8416 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thod(const v8::FunctionCallbackInfo<v8::Value>& info) 8416 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe thod(const v8::FunctionCallbackInfo<v8::Value>& info)
8417 { 8417 {
8418 if (UNLIKELY(info.Length() < 1)) { 8418 if (UNLIKELY(info.Length() < 1)) {
8419 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", "TestObject" , 1, info.Length(), info.GetIsolate()), info.GetIsolate()); 8419 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStrin gArg", "TestObject", 1, info.Length()), info.GetIsolate());
8420 return; 8420 return;
8421 } 8421 }
8422 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8422 TestObject* impl = V8TestObject::toImpl(info.Holder());
8423 V8StringResource<TreatNullAndUndefinedAsNullString> treatNullAsNullStringStr ingArg; 8423 V8StringResource<TreatNullAndUndefinedAsNullString> treatNullAsNullStringStr ingArg;
8424 { 8424 {
8425 TOSTRING_VOID_INTERNAL(treatNullAsNullStringStringArg, info[0]); 8425 TOSTRING_VOID_INTERNAL(treatNullAsNullStringStringArg, info[0]);
8426 } 8426 }
8427 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre atNullAsNullStringStringArg); 8427 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre atNullAsNullStringStringArg);
8428 } 8428 }
8429 8429
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
9118 static void perWorldBindingsVoidMethodMethodCallbackForMainWorld(const v8::Funct ionCallbackInfo<v8::Value>& info) 9118 static void perWorldBindingsVoidMethodMethodCallbackForMainWorld(const v8::Funct ionCallbackInfo<v8::Value>& info)
9119 { 9119 {
9120 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9120 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9121 TestObjectV8Internal::perWorldBindingsVoidMethodMethodForMainWorld(info); 9121 TestObjectV8Internal::perWorldBindingsVoidMethodMethodForMainWorld(info);
9122 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9122 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9123 } 9123 }
9124 9124
9125 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info) 9125 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func tionCallbackInfo<v8::Value>& info)
9126 { 9126 {
9127 if (UNLIKELY(info.Length() < 1)) { 9127 if (UNLIKELY(info.Length() < 1)) {
9128 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("p erWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()), info.GetIsolate()); 9128 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "perWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObject" , 1, info.Length()), info.GetIsolate());
9129 return; 9129 return;
9130 } 9130 }
9131 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9131 TestObject* impl = V8TestObject::toImpl(info.Holder());
9132 TestInterfaceEmpty* testInterfaceEmptyArg; 9132 TestInterfaceEmpty* testInterfaceEmptyArg;
9133 { 9133 {
9134 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G etIsolate(), info[0]); 9134 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G etIsolate(), info[0]);
9135 } 9135 }
9136 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ; 9136 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ;
9137 } 9137 }
9138 9138
9139 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 9139 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
9140 { 9140 {
9141 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9141 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9142 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod( info); 9142 TestObjectV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod( info);
9143 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9143 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9144 } 9144 }
9145 9145
9146 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co nst v8::FunctionCallbackInfo<v8::Value>& info) 9146 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co nst v8::FunctionCallbackInfo<v8::Value>& info)
9147 { 9147 {
9148 if (UNLIKELY(info.Length() < 1)) { 9148 if (UNLIKELY(info.Length() < 1)) {
9149 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("p erWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()), info.GetIsolate()); 9149 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "perWorldBindingsVoidMethodTestInterfaceEmptyArg", "TestObject" , 1, info.Length()), info.GetIsolate());
9150 return; 9150 return;
9151 } 9151 }
9152 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9152 TestObject* impl = V8TestObject::toImpl(info.Holder());
9153 TestInterfaceEmpty* testInterfaceEmptyArg; 9153 TestInterfaceEmpty* testInterfaceEmptyArg;
9154 { 9154 {
9155 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G etIsolate(), info[0]); 9155 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G etIsolate(), info[0]);
9156 } 9156 }
9157 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ; 9157 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg) ;
9158 } 9158 }
9159 9159
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
9655 static void treatReturnedNullStringAsUndefinedUSVStringMethodMethodCallback(cons t v8::FunctionCallbackInfo<v8::Value>& info) 9655 static void treatReturnedNullStringAsUndefinedUSVStringMethodMethodCallback(cons t v8::FunctionCallbackInfo<v8::Value>& info)
9656 { 9656 {
9657 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9657 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9658 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringMethodMetho d(info); 9658 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringMethodMetho d(info);
9659 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9659 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9660 } 9660 }
9661 9661
9662 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info) 9662 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info)
9663 { 9663 {
9664 if (UNLIKELY(info.Length() < 1)) { 9664 if (UNLIKELY(info.Length() < 1)) {
9665 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("t ypeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", "TestObject", 1, info.Leng th(), info.GetIsolate()), info.GetIsolate()); 9665 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", "TestOb ject", 1, info.Length()), info.GetIsolate());
9666 return; 9666 return;
9667 } 9667 }
9668 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9668 TestObject* impl = V8TestObject::toImpl(info.Holder());
9669 TestInterfaceEmpty* testInterfaceEmptyArg; 9669 TestInterfaceEmpty* testInterfaceEmptyArg;
9670 { 9670 {
9671 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], inf o.GetIsolate())) { 9671 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], inf o.GetIsolate())) {
9672 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'."), info.GetIsolate()); 9672 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", "TestObject", "parameter 1 is not of type 'TestInterfaceEmpty'."), info.GetIsolate());
9673 return; 9673 return;
9674 } 9674 }
9675 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImpl(v8::Handle<v8::Obje ct>::Cast(info[0])); 9675 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImpl(v8::Handle<v8::Obje ct>::Cast(info[0]));
(...skipping 29 matching lines...) Expand all
9705 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethodCa llback(const v8::FunctionCallbackInfo<v8::Value>& info) 9705 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyVariadicArgMethodCa llback(const v8::FunctionCallbackInfo<v8::Value>& info)
9706 { 9706 {
9707 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9707 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9708 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyVaria dicArgMethod(info); 9708 TestObjectV8Internal::typeCheckingInterfaceVoidMethodTestInterfaceEmptyVaria dicArgMethod(info);
9709 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9709 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9710 } 9710 }
9711 9711
9712 static void useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info) 9712 static void useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info)
9713 { 9713 {
9714 if (UNLIKELY(info.Length() < 1)) { 9714 if (UNLIKELY(info.Length() < 1)) {
9715 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("u seToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", "TestObject", 1, info.Leng th(), info.GetIsolate()), info.GetIsolate()); 9715 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", "TestOb ject", 1, info.Length()), info.GetIsolate());
9716 return; 9716 return;
9717 } 9717 }
9718 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9718 TestObject* impl = V8TestObject::toImpl(info.Holder());
9719 Node* node1; 9719 Node* node1;
9720 Node* node2; 9720 Node* node2;
9721 { 9721 {
9722 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) { 9722 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) {
9723 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", "TestObject", "parameter 1 is not of type 'Node'."), info.GetIsolate()); 9723 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "useToImpl4ArgumentsCheckingIfPossibleWithOptionalArg", "TestObject", "parameter 1 is not of type 'Node'."), info.GetIsolate());
9724 return; 9724 return;
9725 } 9725 }
(...skipping 14 matching lines...) Expand all
9740 static void useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info) 9740 static void useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info)
9741 { 9741 {
9742 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9742 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9743 TestObjectV8Internal::useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMe thod(info); 9743 TestObjectV8Internal::useToImpl4ArgumentsCheckingIfPossibleWithOptionalArgMe thod(info);
9744 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9744 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9745 } 9745 }
9746 9746
9747 static void useToImpl4ArgumentsCheckingIfPossibleWithNullableArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info) 9747 static void useToImpl4ArgumentsCheckingIfPossibleWithNullableArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info)
9748 { 9748 {
9749 if (UNLIKELY(info.Length() < 2)) { 9749 if (UNLIKELY(info.Length() < 2)) {
9750 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("u seToImpl4ArgumentsCheckingIfPossibleWithNullableArg", "TestObject", 2, info.Leng th(), info.GetIsolate()), info.GetIsolate()); 9750 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "useToImpl4ArgumentsCheckingIfPossibleWithNullableArg", "TestOb ject", 2, info.Length()), info.GetIsolate());
9751 return; 9751 return;
9752 } 9752 }
9753 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9753 TestObject* impl = V8TestObject::toImpl(info.Holder());
9754 Node* node1; 9754 Node* node1;
9755 Node* node2; 9755 Node* node2;
9756 { 9756 {
9757 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) { 9757 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) {
9758 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "useToImpl4ArgumentsCheckingIfPossibleWithNullableArg", "TestObject", "parameter 1 is not of type 'Node'."), info.GetIsolate()); 9758 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "useToImpl4ArgumentsCheckingIfPossibleWithNullableArg", "TestObject", "parameter 1 is not of type 'Node'."), info.GetIsolate());
9759 return; 9759 return;
9760 } 9760 }
(...skipping 10 matching lines...) Expand all
9771 static void useToImpl4ArgumentsCheckingIfPossibleWithNullableArgMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info) 9771 static void useToImpl4ArgumentsCheckingIfPossibleWithNullableArgMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info)
9772 { 9772 {
9773 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9773 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
9774 TestObjectV8Internal::useToImpl4ArgumentsCheckingIfPossibleWithNullableArgMe thod(info); 9774 TestObjectV8Internal::useToImpl4ArgumentsCheckingIfPossibleWithNullableArgMe thod(info);
9775 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 9775 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
9776 } 9776 }
9777 9777
9778 static void useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info) 9778 static void useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArgMethod(const v8 ::FunctionCallbackInfo<v8::Value>& info)
9779 { 9779 {
9780 if (UNLIKELY(info.Length() < 1)) { 9780 if (UNLIKELY(info.Length() < 1)) {
9781 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("u seToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg", "TestObject", 1, info.Len gth(), info.GetIsolate()), info.GetIsolate()); 9781 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg", "TestO bject", 1, info.Length()), info.GetIsolate());
9782 return; 9782 return;
9783 } 9783 }
9784 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9784 TestObject* impl = V8TestObject::toImpl(info.Holder());
9785 Node* node1; 9785 Node* node1;
9786 Node* node2; 9786 Node* node2;
9787 { 9787 {
9788 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) { 9788 if (info.Length() > 0 && !V8Node::hasInstance(info[0], info.GetIsolate() )) {
9789 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg", "TestObject", "paramete r 1 is not of type 'Node'."), info.GetIsolate()); 9789 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute( "useToImpl4ArgumentsCheckingIfPossibleWithUndefinedArg", "TestObject", "paramete r 1 is not of type 'Node'."), info.GetIsolate());
9790 return; 9790 return;
9791 } 9791 }
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
9997 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback (const v8::FunctionCallbackInfo<v8::Value>& info) 9997 static void shortMethodWithShortArgumentImplementedInPrivateScriptMethodCallback (const v8::FunctionCallbackInfo<v8::Value>& info)
9998 { 9998 {
9999 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 9999 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10000 TestObjectV8Internal::shortMethodWithShortArgumentImplementedInPrivateScript Method(info); 10000 TestObjectV8Internal::shortMethodWithShortArgumentImplementedInPrivateScript Method(info);
10001 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 10001 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
10002 } 10002 }
10003 10003
10004 static void stringMethodWithStringArgumentImplementedInPrivateScriptMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 10004 static void stringMethodWithStringArgumentImplementedInPrivateScriptMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
10005 { 10005 {
10006 if (UNLIKELY(info.Length() < 1)) { 10006 if (UNLIKELY(info.Length() < 1)) {
10007 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("s tringMethodWithStringArgumentImplementedInPrivateScript", "TestObject", 1, info. Length(), info.GetIsolate()), info.GetIsolate()); 10007 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "stringMethodWithStringArgumentImplementedInPrivateScript", "Te stObject", 1, info.Length()), info.GetIsolate());
10008 return; 10008 return;
10009 } 10009 }
10010 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10010 TestObject* impl = V8TestObject::toImpl(info.Holder());
10011 V8StringResource<> value; 10011 V8StringResource<> value;
10012 { 10012 {
10013 TOSTRING_VOID_INTERNAL(value, info[0]); 10013 TOSTRING_VOID_INTERNAL(value, info[0]);
10014 } 10014 }
10015 String result; 10015 String result;
10016 if (!V8TestObject::PrivateScript::stringMethodWithStringArgumentImplementedI nPrivateScriptMethod(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext() ), impl, value, &result)) 10016 if (!V8TestObject::PrivateScript::stringMethodWithStringArgumentImplementedI nPrivateScriptMethod(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext() ), impl, value, &result))
10017 return; 10017 return;
10018 v8SetReturnValueString(info, result, info.GetIsolate()); 10018 v8SetReturnValueString(info, result, info.GetIsolate());
10019 } 10019 }
10020 10020
10021 static void stringMethodWithStringArgumentImplementedInPrivateScriptMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info) 10021 static void stringMethodWithStringArgumentImplementedInPrivateScriptMethodCallba ck(const v8::FunctionCallbackInfo<v8::Value>& info)
10022 { 10022 {
10023 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 10023 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
10024 TestObjectV8Internal::stringMethodWithStringArgumentImplementedInPrivateScri ptMethod(info); 10024 TestObjectV8Internal::stringMethodWithStringArgumentImplementedInPrivateScri ptMethod(info);
10025 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 10025 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
10026 } 10026 }
10027 10027
10028 static void nodeMethodWithNodeArgumentImplementedInPrivateScriptMethod(const v8: :FunctionCallbackInfo<v8::Value>& info) 10028 static void nodeMethodWithNodeArgumentImplementedInPrivateScriptMethod(const v8: :FunctionCallbackInfo<v8::Value>& info)
10029 { 10029 {
10030 if (UNLIKELY(info.Length() < 1)) { 10030 if (UNLIKELY(info.Length() < 1)) {
10031 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("n odeMethodWithNodeArgumentImplementedInPrivateScript", "TestObject", 1, info.Leng th(), info.GetIsolate()), info.GetIsolate()); 10031 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "nodeMethodWithNodeArgumentImplementedInPrivateScript", "TestOb ject", 1, info.Length()), info.GetIsolate());
10032 return; 10032 return;
10033 } 10033 }
10034 TestObject* impl = V8TestObject::toImpl(info.Holder()); 10034 TestObject* impl = V8TestObject::toImpl(info.Holder());
10035 Node* value; 10035 Node* value;
10036 { 10036 {
10037 value = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]); 10037 value = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
10038 } 10038 }
10039 RefPtrWillBeRawPtr<Node> result = nullptr; 10039 RefPtrWillBeRawPtr<Node> result = nullptr;
10040 if (!V8TestObject::PrivateScript::nodeMethodWithNodeArgumentImplementedInPri vateScriptMethod(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext()), i mpl, value, &result)) 10040 if (!V8TestObject::PrivateScript::nodeMethodWithNodeArgumentImplementedInPri vateScriptMethod(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext()), i mpl, value, &result))
10041 return; 10041 return;
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after
11158 return false; 11158 return false;
11159 11159
11160 ScriptState::Scope scope(scriptState); 11160 ScriptState::Scope scope(scriptState);
11161 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11161 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate());
11162 11162
11163 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 11163 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
11164 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 11164 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
11165 } 11165 }
11166 11166
11167 } // namespace blink 11167 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698