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 "V8TestDictionary.h" | 8 #include "V8TestDictionary.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 | 209 |
210 { | 210 { |
211 v8::Local<v8::Value> internalDictionarySequenceMemberValue; | 211 v8::Local<v8::Value> internalDictionarySequenceMemberValue; |
212 if (!v8Object->Get(isolate->GetCurrentContext(), v8String(isolate, "inte
rnalDictionarySequenceMember")).ToLocal(&internalDictionarySequenceMemberValue))
{ | 212 if (!v8Object->Get(isolate->GetCurrentContext(), v8String(isolate, "inte
rnalDictionarySequenceMember")).ToLocal(&internalDictionarySequenceMemberValue))
{ |
213 exceptionState.rethrowV8Exception(block.Exception()); | 213 exceptionState.rethrowV8Exception(block.Exception()); |
214 return; | 214 return; |
215 } | 215 } |
216 if (internalDictionarySequenceMemberValue.IsEmpty() || internalDictionar
ySequenceMemberValue->IsUndefined()) { | 216 if (internalDictionarySequenceMemberValue.IsEmpty() || internalDictionar
ySequenceMemberValue->IsUndefined()) { |
217 // Do nothing. | 217 // Do nothing. |
218 } else { | 218 } else { |
219 Vector<InternalDictionary> internalDictionarySequenceMember = toImpl
Array<InternalDictionary>(internalDictionarySequenceMemberValue, 0, isolate, exc
eptionState); | 219 HeapVector<InternalDictionary> internalDictionarySequenceMember = to
ImplHeapArray<InternalDictionary>(internalDictionarySequenceMemberValue, 0, isol
ate, exceptionState); |
220 if (exceptionState.hadException()) | 220 if (exceptionState.hadException()) |
221 return; | 221 return; |
222 impl.setInternalDictionarySequenceMember(internalDictionarySequenceM
ember); | 222 impl.setInternalDictionarySequenceMember(internalDictionarySequenceM
ember); |
223 } | 223 } |
224 } | 224 } |
225 | 225 |
226 { | 226 { |
227 v8::Local<v8::Value> longMemberValue; | 227 v8::Local<v8::Value> longMemberValue; |
228 if (!v8Object->Get(isolate->GetCurrentContext(), v8String(isolate, "long
Member")).ToLocal(&longMemberValue)) { | 228 if (!v8Object->Get(isolate->GetCurrentContext(), v8String(isolate, "long
Member")).ToLocal(&longMemberValue)) { |
229 exceptionState.rethrowV8Exception(block.Exception()); | 229 exceptionState.rethrowV8Exception(block.Exception()); |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
723 } | 723 } |
724 | 724 |
725 TestDictionary NativeValueTraits<TestDictionary>::nativeValue(v8::Isolate* isola
te, v8::Local<v8::Value> value, ExceptionState& exceptionState) | 725 TestDictionary NativeValueTraits<TestDictionary>::nativeValue(v8::Isolate* isola
te, v8::Local<v8::Value> value, ExceptionState& exceptionState) |
726 { | 726 { |
727 TestDictionary impl; | 727 TestDictionary impl; |
728 V8TestDictionary::toImpl(isolate, value, impl, exceptionState); | 728 V8TestDictionary::toImpl(isolate, value, impl, exceptionState); |
729 return impl; | 729 return impl; |
730 } | 730 } |
731 | 731 |
732 } // namespace blink | 732 } // namespace blink |
OLD | NEW |