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

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

Issue 970843002: IDL: Implement float/double correctly (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 418 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
419 TestObjectV8Internal::doubleAttributeAttributeGetter(info); 419 TestObjectV8Internal::doubleAttributeAttributeGetter(info);
420 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 420 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
421 } 421 }
422 422
423 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info) 423 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info)
424 { 424 {
425 v8::Local<v8::Object> holder = info.Holder(); 425 v8::Local<v8::Object> holder = info.Holder();
426 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut e", "TestObject", holder, info.GetIsolate()); 426 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut e", "TestObject", holder, info.GetIsolate());
427 TestObject* impl = V8TestObject::toImpl(holder); 427 TestObject* impl = V8TestObject::toImpl(holder);
428 double cppValue = toDouble(v8Value, exceptionState); 428 double cppValue = toRestrictedDouble(v8Value, exceptionState);
429 if (exceptionState.throwIfNeeded()) 429 if (exceptionState.throwIfNeeded())
430 return; 430 return;
431 impl->setDoubleAttribute(cppValue); 431 impl->setDoubleAttribute(cppValue);
432 } 432 }
433 433
434 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 434 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
435 { 435 {
436 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 436 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
437 TestObjectV8Internal::doubleAttributeAttributeSetter(v8Value, info); 437 TestObjectV8Internal::doubleAttributeAttributeSetter(v8Value, info);
438 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 438 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 11 matching lines...) Expand all
450 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 450 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
451 TestObjectV8Internal::floatAttributeAttributeGetter(info); 451 TestObjectV8Internal::floatAttributeAttributeGetter(info);
452 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 452 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
453 } 453 }
454 454
455 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 455 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info)
456 { 456 {
457 v8::Local<v8::Object> holder = info.Holder(); 457 v8::Local<v8::Object> holder = info.Holder();
458 ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute ", "TestObject", holder, info.GetIsolate()); 458 ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute ", "TestObject", holder, info.GetIsolate());
459 TestObject* impl = V8TestObject::toImpl(holder); 459 TestObject* impl = V8TestObject::toImpl(holder);
460 float cppValue = toFloat(v8Value, exceptionState); 460 float cppValue = toRestrictedFloat(v8Value, exceptionState);
461 if (exceptionState.throwIfNeeded()) 461 if (exceptionState.throwIfNeeded())
462 return; 462 return;
463 impl->setFloatAttribute(cppValue); 463 impl->setFloatAttribute(cppValue);
464 } 464 }
465 465
466 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 466 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
467 { 467 {
468 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 468 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
469 TestObjectV8Internal::floatAttributeAttributeSetter(v8Value, info); 469 TestObjectV8Internal::floatAttributeAttributeSetter(v8Value, info);
470 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 470 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 4432 matching lines...) Expand 10 before | Expand all | Expand 10 after
4903 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4903 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4904 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeGetter(inf o); 4904 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeGetter(inf o);
4905 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4905 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4906 } 4906 }
4907 4907
4908 static void typeCheckingInterfaceFloatAttributeAttributeSetter(v8::Local<v8::Val ue> v8Value, const v8::PropertyCallbackInfo<void>& info) 4908 static void typeCheckingInterfaceFloatAttributeAttributeSetter(v8::Local<v8::Val ue> v8Value, const v8::PropertyCallbackInfo<void>& info)
4909 { 4909 {
4910 v8::Local<v8::Object> holder = info.Holder(); 4910 v8::Local<v8::Object> holder = info.Holder();
4911 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceFloatAttribute", "TestObject", holder, info.GetIsolate()); 4911 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn terfaceFloatAttribute", "TestObject", holder, info.GetIsolate());
4912 TestObject* impl = V8TestObject::toImpl(holder); 4912 TestObject* impl = V8TestObject::toImpl(holder);
4913 float cppValue = toFloat(v8Value, exceptionState); 4913 float cppValue = toRestrictedFloat(v8Value, exceptionState);
4914 if (exceptionState.throwIfNeeded()) 4914 if (exceptionState.throwIfNeeded())
4915 return; 4915 return;
4916 impl->setTypeCheckingInterfaceFloatAttribute(cppValue); 4916 impl->setTypeCheckingInterfaceFloatAttribute(cppValue);
4917 } 4917 }
4918 4918
4919 static void typeCheckingInterfaceFloatAttributeAttributeSetterCallback(v8::Local <v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void> & info) 4919 static void typeCheckingInterfaceFloatAttributeAttributeSetterCallback(v8::Local <v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void> & info)
4920 { 4920 {
4921 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4921 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4922 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeSetter(v8V alue, info); 4922 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeSetter(v8V alue, info);
4923 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4923 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
(...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after
5850 { 5850 {
5851 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD oubleArg", "TestObject", info.Holder(), info.GetIsolate()); 5851 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD oubleArg", "TestObject", info.Holder(), info.GetIsolate());
5852 if (UNLIKELY(info.Length() < 1)) { 5852 if (UNLIKELY(info.Length() < 1)) {
5853 setMinimumArityTypeError(exceptionState, 1, info.Length()); 5853 setMinimumArityTypeError(exceptionState, 1, info.Length());
5854 exceptionState.throwIfNeeded(); 5854 exceptionState.throwIfNeeded();
5855 return; 5855 return;
5856 } 5856 }
5857 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5857 TestObject* impl = V8TestObject::toImpl(info.Holder());
5858 double doubleArg; 5858 double doubleArg;
5859 { 5859 {
5860 doubleArg = toDouble(info[0], exceptionState); 5860 doubleArg = toRestrictedDouble(info[0], exceptionState);
5861 if (exceptionState.throwIfNeeded()) 5861 if (exceptionState.throwIfNeeded())
5862 return; 5862 return;
5863 } 5863 }
5864 impl->voidMethodDoubleArg(doubleArg); 5864 impl->voidMethodDoubleArg(doubleArg);
5865 } 5865 }
5866 5866
5867 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info) 5867 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8: :Value>& info)
5868 { 5868 {
5869 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5869 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5870 TestObjectV8Internal::voidMethodDoubleArgMethod(info); 5870 TestObjectV8Internal::voidMethodDoubleArgMethod(info);
5871 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5871 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5872 } 5872 }
5873 5873
5874 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 5874 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
5875 { 5875 {
5876 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodF loatArg", "TestObject", info.Holder(), info.GetIsolate()); 5876 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodF loatArg", "TestObject", info.Holder(), info.GetIsolate());
5877 if (UNLIKELY(info.Length() < 1)) { 5877 if (UNLIKELY(info.Length() < 1)) {
5878 setMinimumArityTypeError(exceptionState, 1, info.Length()); 5878 setMinimumArityTypeError(exceptionState, 1, info.Length());
5879 exceptionState.throwIfNeeded(); 5879 exceptionState.throwIfNeeded();
5880 return; 5880 return;
5881 } 5881 }
5882 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5882 TestObject* impl = V8TestObject::toImpl(info.Holder());
5883 float floatArg; 5883 float floatArg;
5884 { 5884 {
5885 floatArg = toFloat(info[0], exceptionState); 5885 floatArg = toRestrictedFloat(info[0], exceptionState);
5886 if (exceptionState.throwIfNeeded()) 5886 if (exceptionState.throwIfNeeded())
5887 return; 5887 return;
5888 } 5888 }
5889 impl->voidMethodFloatArg(floatArg); 5889 impl->voidMethodFloatArg(floatArg);
5890 } 5890 }
5891 5891
5892 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 5892 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
5893 { 5893 {
5894 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5894 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5895 TestObjectV8Internal::voidMethodFloatArgMethod(info); 5895 TestObjectV8Internal::voidMethodFloatArgMethod(info);
(...skipping 2099 matching lines...) Expand 10 before | Expand all | Expand 10 after
7995 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 7995 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
7996 } 7996 }
7997 7997
7998 static void voidMethodDefaultDoubleArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 7998 static void voidMethodDefaultDoubleArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
7999 { 7999 {
8000 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultDoubleArg", "TestObject", info.Holder(), info.GetIsolate()); 8000 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultDoubleArg", "TestObject", info.Holder(), info.GetIsolate());
8001 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8001 TestObject* impl = V8TestObject::toImpl(info.Holder());
8002 double defaultDoubleArg; 8002 double defaultDoubleArg;
8003 { 8003 {
8004 if (!info[0]->IsUndefined()) { 8004 if (!info[0]->IsUndefined()) {
8005 defaultDoubleArg = toDouble(info[0], exceptionState); 8005 defaultDoubleArg = toRestrictedDouble(info[0], exceptionState);
8006 if (exceptionState.throwIfNeeded()) 8006 if (exceptionState.throwIfNeeded())
8007 return; 8007 return;
8008 } else { 8008 } else {
8009 defaultDoubleArg = 0.5; 8009 defaultDoubleArg = 0.5;
8010 } 8010 }
8011 } 8011 }
8012 impl->voidMethodDefaultDoubleArg(defaultDoubleArg); 8012 impl->voidMethodDefaultDoubleArg(defaultDoubleArg);
8013 } 8013 }
8014 8014
8015 static void voidMethodDefaultDoubleArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 8015 static void voidMethodDefaultDoubleArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
8686 } 8686 }
8687 impl->overloadedMethodF(stringArg); 8687 impl->overloadedMethodF(stringArg);
8688 } 8688 }
8689 8689
8690 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 8690 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
8691 { 8691 {
8692 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodF", "TestObject", info.Holder(), info.GetIsolate()); 8692 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodF", "TestObject", info.Holder(), info.GetIsolate());
8693 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8693 TestObject* impl = V8TestObject::toImpl(info.Holder());
8694 double doubleArg; 8694 double doubleArg;
8695 { 8695 {
8696 doubleArg = toDouble(info[0], exceptionState); 8696 doubleArg = toRestrictedDouble(info[0], exceptionState);
8697 if (exceptionState.throwIfNeeded()) 8697 if (exceptionState.throwIfNeeded())
8698 return; 8698 return;
8699 } 8699 }
8700 impl->overloadedMethodF(doubleArg); 8700 impl->overloadedMethodF(doubleArg);
8701 } 8701 }
8702 8702
8703 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 8703 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
8704 { 8704 {
8705 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodF", "TestObject", info.Holder(), info.GetIsolate()); 8705 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodF", "TestObject", info.Holder(), info.GetIsolate());
8706 switch (std::min(1, info.Length())) { 8706 switch (std::min(1, info.Length())) {
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
8878 } 8878 }
8879 impl->overloadedMethodI(stringArg); 8879 impl->overloadedMethodI(stringArg);
8880 } 8880 }
8881 8881
8882 static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 8882 static void overloadedMethodI2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
8883 { 8883 {
8884 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodI", "TestObject", info.Holder(), info.GetIsolate()); 8884 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodI", "TestObject", info.Holder(), info.GetIsolate());
8885 TestObject* impl = V8TestObject::toImpl(info.Holder()); 8885 TestObject* impl = V8TestObject::toImpl(info.Holder());
8886 double doubleArg; 8886 double doubleArg;
8887 { 8887 {
8888 doubleArg = toDouble(info[0], exceptionState); 8888 doubleArg = toRestrictedDouble(info[0], exceptionState);
8889 if (exceptionState.throwIfNeeded()) 8889 if (exceptionState.throwIfNeeded())
8890 return; 8890 return;
8891 } 8891 }
8892 impl->overloadedMethodI(doubleArg); 8892 impl->overloadedMethodI(doubleArg);
8893 } 8893 }
8894 8894
8895 static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 8895 static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
8896 { 8896 {
8897 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodI", "TestObject", info.Holder(), info.GetIsolate()); 8897 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodI", "TestObject", info.Holder(), info.GetIsolate());
8898 switch (std::min(1, info.Length())) { 8898 switch (std::min(1, info.Length())) {
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
9146 v8SetReturnValue(info, impl->promiseOverloadMethod().v8Value()); 9146 v8SetReturnValue(info, impl->promiseOverloadMethod().v8Value());
9147 } 9147 }
9148 9148
9149 static void promiseOverloadMethod2MethodPromise(const v8::FunctionCallbackInfo<v 8::Value>& info, ExceptionState& exceptionState) 9149 static void promiseOverloadMethod2MethodPromise(const v8::FunctionCallbackInfo<v 8::Value>& info, ExceptionState& exceptionState)
9150 { 9150 {
9151 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9151 TestObject* impl = V8TestObject::toImpl(info.Holder());
9152 DOMWindow* arg1; 9152 DOMWindow* arg1;
9153 double arg2; 9153 double arg2;
9154 { 9154 {
9155 arg1 = toDOMWindow(info.GetIsolate(), info[0]); 9155 arg1 = toDOMWindow(info.GetIsolate(), info[0]);
9156 arg2 = toDouble(info[1], exceptionState); 9156 arg2 = toRestrictedDouble(info[1], exceptionState);
9157 if (exceptionState.hadException()) 9157 if (exceptionState.hadException())
9158 return; 9158 return;
9159 } 9159 }
9160 v8SetReturnValue(info, impl->promiseOverloadMethod(arg1, arg2).v8Value()); 9160 v8SetReturnValue(info, impl->promiseOverloadMethod(arg1, arg2).v8Value());
9161 } 9161 }
9162 9162
9163 static void promiseOverloadMethod2Method(const v8::FunctionCallbackInfo<v8::Valu e>& info) 9163 static void promiseOverloadMethod2Method(const v8::FunctionCallbackInfo<v8::Valu e>& info)
9164 { 9164 {
9165 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver loadMethod", "TestObject", info.Holder(), info.GetIsolate()); 9165 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver loadMethod", "TestObject", info.Holder(), info.GetIsolate());
9166 promiseOverloadMethod2MethodPromise(info, exceptionState); 9166 promiseOverloadMethod2MethodPromise(info, exceptionState);
9167 if (exceptionState.hadException()) 9167 if (exceptionState.hadException())
9168 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G etIsolate())).v8Value()); 9168 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G etIsolate())).v8Value());
9169 } 9169 }
9170 9170
9171 static void promiseOverloadMethod3MethodPromise(const v8::FunctionCallbackInfo<v 8::Value>& info, ExceptionState& exceptionState) 9171 static void promiseOverloadMethod3MethodPromise(const v8::FunctionCallbackInfo<v 8::Value>& info, ExceptionState& exceptionState)
9172 { 9172 {
9173 TestObject* impl = V8TestObject::toImpl(info.Holder()); 9173 TestObject* impl = V8TestObject::toImpl(info.Holder());
9174 Document* arg1; 9174 Document* arg1;
9175 double arg2; 9175 double arg2;
9176 { 9176 {
9177 arg1 = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); 9177 arg1 = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]);
9178 arg2 = toDouble(info[1], exceptionState); 9178 arg2 = toRestrictedDouble(info[1], exceptionState);
9179 if (exceptionState.hadException()) 9179 if (exceptionState.hadException())
9180 return; 9180 return;
9181 } 9181 }
9182 v8SetReturnValue(info, impl->promiseOverloadMethod(arg1, arg2).v8Value()); 9182 v8SetReturnValue(info, impl->promiseOverloadMethod(arg1, arg2).v8Value());
9183 } 9183 }
9184 9184
9185 static void promiseOverloadMethod3Method(const v8::FunctionCallbackInfo<v8::Valu e>& info) 9185 static void promiseOverloadMethod3Method(const v8::FunctionCallbackInfo<v8::Valu e>& info)
9186 { 9186 {
9187 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver loadMethod", "TestObject", info.Holder(), info.GetIsolate()); 9187 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseOver loadMethod", "TestObject", info.Holder(), info.GetIsolate());
9188 promiseOverloadMethod3MethodPromise(info, exceptionState); 9188 promiseOverloadMethod3MethodPromise(info, exceptionState);
(...skipping 2079 matching lines...) Expand 10 before | Expand all | Expand 10 after
11268 Node* node; 11268 Node* node;
11269 int value1; 11269 int value1;
11270 double value2; 11270 double value2;
11271 V8StringResource<> string; 11271 V8StringResource<> string;
11272 { 11272 {
11273 document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); 11273 document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]);
11274 node = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]); 11274 node = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[1]);
11275 value1 = toInt16(info[2], exceptionState); 11275 value1 = toInt16(info[2], exceptionState);
11276 if (exceptionState.throwIfNeeded()) 11276 if (exceptionState.throwIfNeeded())
11277 return; 11277 return;
11278 value2 = toDouble(info[3], exceptionState); 11278 value2 = toRestrictedDouble(info[3], exceptionState);
11279 if (exceptionState.throwIfNeeded()) 11279 if (exceptionState.throwIfNeeded())
11280 return; 11280 return;
11281 string = info[4]; 11281 string = info[4];
11282 if (!string.prepare()) 11282 if (!string.prepare())
11283 return; 11283 return;
11284 } 11284 }
11285 RefPtrWillBeRawPtr<Node> result = nullptr; 11285 RefPtrWillBeRawPtr<Node> result = nullptr;
11286 if (!V8TestObject::PrivateScript::nodeMethodWithVariousArgumentsImplementedI nPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCur rentContext())), impl, document, node, value1, value2, string, &result)) 11286 if (!V8TestObject::PrivateScript::nodeMethodWithVariousArgumentsImplementedI nPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCur rentContext())), impl, document, node, value1, value2, string, &result))
11287 return; 11287 return;
11288 v8SetReturnValue(info, result.release()); 11288 v8SetReturnValue(info, result.release());
(...skipping 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after
12682 return false; 12682 return false;
12683 12683
12684 ScriptState::Scope scope(scriptState); 12684 ScriptState::Scope scope(scriptState);
12685 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 12685 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
12686 12686
12687 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 12687 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
12688 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 12688 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
12689 } 12689 }
12690 12690
12691 } // namespace blink 12691 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698