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(); | |
haraken
2014/08/26 04:00:40
Can you add a test case for this branch to a layou
bashi
2014/08/27 05:06:32
Done.
| |
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 3118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
11322 // FIXME: We should support more exceptions. | 11326 // FIXME: We should support more exceptions. |
11323 RELEASE_ASSERT_NOT_REACHED(); | 11327 RELEASE_ASSERT_NOT_REACHED(); |
11324 } | 11328 } |
11325 block.ReThrow(); | 11329 block.ReThrow(); |
11326 return false; | 11330 return false; |
11327 } | 11331 } |
11328 return true; | 11332 return true; |
11329 } | 11333 } |
11330 | 11334 |
11331 } // namespace blink | 11335 } // namespace blink |
OLD | NEW |