| 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 "V8TestInterface2.h" | 8 #include "V8TestInterface2.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 { | 40 { |
| 41 ExceptionState exceptionState(ExceptionState::ExecutionContext, "item", "Tes
tInterface2", info.Holder(), info.GetIsolate()); | 41 ExceptionState exceptionState(ExceptionState::ExecutionContext, "item", "Tes
tInterface2", info.Holder(), info.GetIsolate()); |
| 42 if (UNLIKELY(info.Length() < 1)) { | 42 if (UNLIKELY(info.Length() < 1)) { |
| 43 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 43 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 44 exceptionState.throwIfNeeded(); | 44 exceptionState.throwIfNeeded(); |
| 45 return; | 45 return; |
| 46 } | 46 } |
| 47 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); | 47 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
| 48 unsigned index; | 48 unsigned index; |
| 49 { | 49 { |
| 50 index = toUInt32(info.GetIsolate(), info[0], exceptionState); | 50 index = toUInt32(info.GetIsolate(), info[0], NormalConversion, exception
State); |
| 51 if (exceptionState.throwIfNeeded()) | 51 if (exceptionState.throwIfNeeded()) |
| 52 return; | 52 return; |
| 53 } | 53 } |
| 54 RefPtr<TestInterfaceEmpty> result = impl->item(index, exceptionState); | 54 RefPtr<TestInterfaceEmpty> result = impl->item(index, exceptionState); |
| 55 if (exceptionState.hadException()) { | 55 if (exceptionState.hadException()) { |
| 56 exceptionState.throwIfNeeded(); | 56 exceptionState.throwIfNeeded(); |
| 57 return; | 57 return; |
| 58 } | 58 } |
| 59 v8SetReturnValue(info, result.release()); | 59 v8SetReturnValue(info, result.release()); |
| 60 } | 60 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 71 ExceptionState exceptionState(ExceptionState::ExecutionContext, "setItem", "
TestInterface2", info.Holder(), info.GetIsolate()); | 71 ExceptionState exceptionState(ExceptionState::ExecutionContext, "setItem", "
TestInterface2", info.Holder(), info.GetIsolate()); |
| 72 if (UNLIKELY(info.Length() < 2)) { | 72 if (UNLIKELY(info.Length() < 2)) { |
| 73 setMinimumArityTypeError(exceptionState, 2, info.Length()); | 73 setMinimumArityTypeError(exceptionState, 2, info.Length()); |
| 74 exceptionState.throwIfNeeded(); | 74 exceptionState.throwIfNeeded(); |
| 75 return; | 75 return; |
| 76 } | 76 } |
| 77 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); | 77 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
| 78 unsigned index; | 78 unsigned index; |
| 79 TestInterfaceEmpty* value; | 79 TestInterfaceEmpty* value; |
| 80 { | 80 { |
| 81 index = toUInt32(info.GetIsolate(), info[0], exceptionState); | 81 index = toUInt32(info.GetIsolate(), info[0], NormalConversion, exception
State); |
| 82 if (exceptionState.throwIfNeeded()) | 82 if (exceptionState.throwIfNeeded()) |
| 83 return; | 83 return; |
| 84 value = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIsolate(), inf
o[1]); | 84 value = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIsolate(), inf
o[1]); |
| 85 if (!value) { | 85 if (!value) { |
| 86 exceptionState.throwTypeError("parameter 2 is not of type 'TestInter
faceEmpty'."); | 86 exceptionState.throwTypeError("parameter 2 is not of type 'TestInter
faceEmpty'."); |
| 87 exceptionState.throwIfNeeded(); | 87 exceptionState.throwIfNeeded(); |
| 88 return; | 88 return; |
| 89 } | 89 } |
| 90 } | 90 } |
| 91 RefPtr<TestInterfaceEmpty> result = impl->setItem(index, value, exceptionSta
te); | 91 RefPtr<TestInterfaceEmpty> result = impl->setItem(index, value, exceptionSta
te); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 107 { | 107 { |
| 108 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deleteItem"
, "TestInterface2", info.Holder(), info.GetIsolate()); | 108 ExceptionState exceptionState(ExceptionState::ExecutionContext, "deleteItem"
, "TestInterface2", info.Holder(), info.GetIsolate()); |
| 109 if (UNLIKELY(info.Length() < 1)) { | 109 if (UNLIKELY(info.Length() < 1)) { |
| 110 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 110 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 111 exceptionState.throwIfNeeded(); | 111 exceptionState.throwIfNeeded(); |
| 112 return; | 112 return; |
| 113 } | 113 } |
| 114 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); | 114 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
| 115 unsigned index; | 115 unsigned index; |
| 116 { | 116 { |
| 117 index = toUInt32(info.GetIsolate(), info[0], exceptionState); | 117 index = toUInt32(info.GetIsolate(), info[0], NormalConversion, exception
State); |
| 118 if (exceptionState.throwIfNeeded()) | 118 if (exceptionState.throwIfNeeded()) |
| 119 return; | 119 return; |
| 120 } | 120 } |
| 121 bool result = impl->deleteItem(index, exceptionState); | 121 bool result = impl->deleteItem(index, exceptionState); |
| 122 if (exceptionState.hadException()) { | 122 if (exceptionState.hadException()) { |
| 123 exceptionState.throwIfNeeded(); | 123 exceptionState.throwIfNeeded(); |
| 124 return; | 124 return; |
| 125 } | 125 } |
| 126 v8SetReturnValueBool(info, result); | 126 v8SetReturnValueBool(info, result); |
| 127 } | 127 } |
| (...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 { | 707 { |
| 708 scriptWrappable->toImpl<TestInterface2>()->ref(); | 708 scriptWrappable->toImpl<TestInterface2>()->ref(); |
| 709 } | 709 } |
| 710 | 710 |
| 711 void V8TestInterface2::derefObject(ScriptWrappable* scriptWrappable) | 711 void V8TestInterface2::derefObject(ScriptWrappable* scriptWrappable) |
| 712 { | 712 { |
| 713 scriptWrappable->toImpl<TestInterface2>()->deref(); | 713 scriptWrappable->toImpl<TestInterface2>()->deref(); |
| 714 } | 714 } |
| 715 | 715 |
| 716 } // namespace blink | 716 } // namespace blink |
| OLD | NEW |