OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
6 | 6 |
7 #include "config.h" | 7 #include "config.h" |
8 #include "V8TestObject.h" | 8 #include "V8TestObject.h" |
9 | 9 |
10 #include "bindings/core/v8/BindingSecurity.h" | 10 #include "bindings/core/v8/BindingSecurity.h" |
(...skipping 8172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8183 impl->overloadedMethodJ(stringArg); | 8183 impl->overloadedMethodJ(stringArg); |
8184 } | 8184 } |
8185 | 8185 |
8186 static void overloadedMethodJ2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8186 static void overloadedMethodJ2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
8187 { | 8187 { |
8188 TestObject* impl = V8TestObject::toNative(info.Holder()); | 8188 TestObject* impl = V8TestObject::toNative(info.Holder()); |
8189 TestDictionary* testDictionaryArg; | 8189 TestDictionary* testDictionaryArg; |
8190 { | 8190 { |
8191 v8::TryCatch block; | 8191 v8::TryCatch block; |
8192 V8RethrowTryCatchScope rethrow(block); | 8192 V8RethrowTryCatchScope rethrow(block); |
8193 TONATIVE_VOID_INTERNAL(testDictionaryArg, V8TestDictionary::toNative(inf
o.GetIsolate(), info[0])); | 8193 if (!info[0]->IsUndefined()) { |
| 8194 TONATIVE_VOID_INTERNAL(testDictionaryArg, V8TestDictionary::toNative
(info.GetIsolate(), info[0])); |
| 8195 } else { |
| 8196 testDictionaryArg = TestDictionary::create(); |
| 8197 } |
8194 } | 8198 } |
8195 impl->overloadedMethodJ(testDictionaryArg); | 8199 impl->overloadedMethodJ(testDictionaryArg); |
8196 } | 8200 } |
8197 | 8201 |
8198 static void overloadedMethodJMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 8202 static void overloadedMethodJMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
8199 { | 8203 { |
8200 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodJ", "TestObject", info.Holder(), info.GetIsolate()); | 8204 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodJ", "TestObject", info.Holder(), info.GetIsolate()); |
8201 switch (std::min(1, info.Length())) { | 8205 switch (std::min(1, info.Length())) { |
8202 case 1: | 8206 case 1: |
8203 if (info[0]->IsObject()) { | 8207 if (info[0]->IsObject()) { |
(...skipping 3124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11328 // FIXME: We should support more exceptions. | 11332 // FIXME: We should support more exceptions. |
11329 RELEASE_ASSERT_NOT_REACHED(); | 11333 RELEASE_ASSERT_NOT_REACHED(); |
11330 } | 11334 } |
11331 block.ReThrow(); | 11335 block.ReThrow(); |
11332 return false; | 11336 return false; |
11333 } | 11337 } |
11334 return true; | 11338 return true; |
11335 } | 11339 } |
11336 | 11340 |
11337 } // namespace blink | 11341 } // namespace blink |
OLD | NEW |