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 6634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6645 | 6645 |
6646 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 6646 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
6647 { | 6647 { |
6648 if (UNLIKELY(info.Length() < 1)) { | 6648 if (UNLIKELY(info.Length() < 1)) { |
6649 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodTestEnumArg", "TestObject", 1, info.Length(), info.GetIsolate()), info.
GetIsolate()); | 6649 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodTestEnumArg", "TestObject", 1, info.Length(), info.GetIsolate()), info.
GetIsolate()); |
6650 return; | 6650 return; |
6651 } | 6651 } |
6652 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6652 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6653 V8StringResource<> testEnumTypeArg; | 6653 V8StringResource<> testEnumTypeArg; |
6654 { | 6654 { |
6655 v8::TryCatch block; | |
6656 V8RethrowTryCatchScope rethrow(block); | |
6657 TOSTRING_VOID_INTERNAL(testEnumTypeArg, info[0]); | 6655 TOSTRING_VOID_INTERNAL(testEnumTypeArg, info[0]); |
6658 String string = testEnumTypeArg; | 6656 String string = testEnumTypeArg; |
6659 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" |
| string == "EnumValue3")) { | 6657 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" |
| string == "EnumValue3")) { |
6660 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute(
"voidMethodTestEnumArg", "TestObject", "parameter 1 ('" + string + "') is not a
valid enum value."), info.GetIsolate()); | 6658 V8ThrowException::throwTypeError(ExceptionMessages::failedToExecute(
"voidMethodTestEnumArg", "TestObject", "parameter 1 ('" + string + "') is not a
valid enum value."), info.GetIsolate()); |
6661 return; | 6659 return; |
6662 } | 6660 } |
6663 } | 6661 } |
6664 impl->voidMethodTestEnumArg(testEnumTypeArg); | 6662 impl->voidMethodTestEnumArg(testEnumTypeArg); |
6665 } | 6663 } |
6666 | 6664 |
(...skipping 4617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11284 // FIXME: We should support more exceptions. | 11282 // FIXME: We should support more exceptions. |
11285 RELEASE_ASSERT_NOT_REACHED(); | 11283 RELEASE_ASSERT_NOT_REACHED(); |
11286 } | 11284 } |
11287 block.ReThrow(); | 11285 block.ReThrow(); |
11288 return false; | 11286 return false; |
11289 } | 11287 } |
11290 return true; | 11288 return true; |
11291 } | 11289 } |
11292 | 11290 |
11293 } // namespace blink | 11291 } // namespace blink |
OLD | NEW |