| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 5000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5011 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strictTypeCheckingS
tringArg, info[0]); | 5011 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strictTypeCheckingS
tringArg, info[0]); |
| 5012 imp->overloadedMethodG(strictTypeCheckingStringArg); | 5012 imp->overloadedMethodG(strictTypeCheckingStringArg); |
| 5013 } | 5013 } |
| 5014 | 5014 |
| 5015 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 5015 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 5016 { | 5016 { |
| 5017 if (((info.Length() == 0))) { | 5017 if (((info.Length() == 0))) { |
| 5018 overloadedMethodG1Method(info); | 5018 overloadedMethodG1Method(info); |
| 5019 return; | 5019 return; |
| 5020 } | 5020 } |
| 5021 if (((info.Length() == 1) && (info[0]->IsNull() || info[0]->IsUndefined() ||
info[0]->IsString() || info[0]->IsObject()))) { | 5021 if (((info.Length() == 1) && (isUndefinedOrNull(info[0]) || info[0]->IsStrin
g() || info[0]->IsObject()))) { |
| 5022 overloadedMethodG2Method(info); | 5022 overloadedMethodG2Method(info); |
| 5023 return; | 5023 return; |
| 5024 } | 5024 } |
| 5025 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodG", "Test
ObjectPython", "No function was found that matched the signature provided."), in
fo.GetIsolate()); | 5025 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodG", "Test
ObjectPython", "No function was found that matched the signature provided."), in
fo.GetIsolate()); |
| 5026 } | 5026 } |
| 5027 | 5027 |
| 5028 static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5028 static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 5029 { | 5029 { |
| 5030 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5030 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5031 TestObjectPythonV8Internal::overloadedMethodGMethod(info); | 5031 TestObjectPythonV8Internal::overloadedMethodGMethod(info); |
| (...skipping 1520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6552 fromInternalPointer(object)->deref(); | 6552 fromInternalPointer(object)->deref(); |
| 6553 } | 6553 } |
| 6554 | 6554 |
| 6555 template<> | 6555 template<> |
| 6556 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object
> creationContext, v8::Isolate* isolate) | 6556 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object
> creationContext, v8::Isolate* isolate) |
| 6557 { | 6557 { |
| 6558 return toV8(impl, creationContext, isolate); | 6558 return toV8(impl, creationContext, isolate); |
| 6559 } | 6559 } |
| 6560 | 6560 |
| 6561 } // namespace WebCore | 6561 } // namespace WebCore |
| OLD | NEW |