| 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 "V8TestDictionaryDerived.h" | 8 #include "V8TestDictionaryDerived.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 return; | 21 return; |
| 22 } | 22 } |
| 23 | 23 |
| 24 V8TestDictionary::toImpl(isolate, v8Value, impl, exceptionState); | 24 V8TestDictionary::toImpl(isolate, v8Value, impl, exceptionState); |
| 25 if (exceptionState.hadException()) | 25 if (exceptionState.hadException()) |
| 26 return; | 26 return; |
| 27 | 27 |
| 28 v8::Local<v8::Object> v8Object = v8Value->ToObject(isolate); | 28 v8::Local<v8::Object> v8Object = v8Value->ToObject(isolate); |
| 29 v8::TryCatch block; | 29 v8::TryCatch block; |
| 30 v8::Local<v8::Value> derivedStringMemberValue = v8Object->Get(v8String(isola
te, "derivedStringMember")); | 30 v8::Local<v8::Value> derivedStringMemberValue = v8Object->Get(v8String(isola
te, "derivedStringMember")); |
| 31 if (!derivedStringMemberValue.IsEmpty() && !isUndefinedOrNull(derivedStringM
emberValue)) { | 31 if (!derivedStringMemberValue.IsEmpty() && !derivedStringMemberValue->IsUnde
fined()) { |
| 32 TOSTRING_VOID(V8StringResource<>, derivedStringMember, derivedStringMemb
erValue); | 32 TOSTRING_VOID(V8StringResource<>, derivedStringMember, derivedStringMemb
erValue); |
| 33 impl.setDerivedStringMember(derivedStringMember); | 33 impl.setDerivedStringMember(derivedStringMember); |
| 34 } else if (block.HasCaught()) { | 34 } else if (block.HasCaught()) { |
| 35 exceptionState.rethrowV8Exception(block.Exception()); | 35 exceptionState.rethrowV8Exception(block.Exception()); |
| 36 return; | 36 return; |
| 37 } | 37 } |
| 38 | 38 |
| 39 v8::Local<v8::Value> derivedStringMemberWithDefaultValue = v8Object->Get(v8S
tring(isolate, "derivedStringMemberWithDefault")); | 39 v8::Local<v8::Value> derivedStringMemberWithDefaultValue = v8Object->Get(v8S
tring(isolate, "derivedStringMemberWithDefault")); |
| 40 if (!derivedStringMemberWithDefaultValue.IsEmpty() && !isUndefinedOrNull(der
ivedStringMemberWithDefaultValue)) { | 40 if (!derivedStringMemberWithDefaultValue.IsEmpty() && !derivedStringMemberWi
thDefaultValue->IsUndefined()) { |
| 41 TOSTRING_VOID(V8StringResource<>, derivedStringMemberWithDefault, derive
dStringMemberWithDefaultValue); | 41 TOSTRING_VOID(V8StringResource<>, derivedStringMemberWithDefault, derive
dStringMemberWithDefaultValue); |
| 42 impl.setDerivedStringMemberWithDefault(derivedStringMemberWithDefault); | 42 impl.setDerivedStringMemberWithDefault(derivedStringMemberWithDefault); |
| 43 } else if (block.HasCaught()) { | 43 } else if (block.HasCaught()) { |
| 44 exceptionState.rethrowV8Exception(block.Exception()); | 44 exceptionState.rethrowV8Exception(block.Exception()); |
| 45 return; | 45 return; |
| 46 } | 46 } |
| 47 | 47 |
| 48 } | 48 } |
| 49 | 49 |
| 50 v8::Handle<v8::Value> toV8(const TestDictionaryDerivedImplementedAs& impl, v8::H
andle<v8::Object> creationContext, v8::Isolate* isolate) | 50 v8::Handle<v8::Value> toV8(const TestDictionaryDerivedImplementedAs& impl, v8::H
andle<v8::Object> creationContext, v8::Isolate* isolate) |
| (...skipping 25 matching lines...) Expand all Loading... |
| 76 } | 76 } |
| 77 | 77 |
| 78 TestDictionaryDerivedImplementedAs NativeValueTraits<TestDictionaryDerivedImplem
entedAs>::nativeValue(const v8::Handle<v8::Value>& value, v8::Isolate* isolate,
ExceptionState& exceptionState) | 78 TestDictionaryDerivedImplementedAs NativeValueTraits<TestDictionaryDerivedImplem
entedAs>::nativeValue(const v8::Handle<v8::Value>& value, v8::Isolate* isolate,
ExceptionState& exceptionState) |
| 79 { | 79 { |
| 80 TestDictionaryDerivedImplementedAs impl; | 80 TestDictionaryDerivedImplementedAs impl; |
| 81 V8TestDictionaryDerivedImplementedAs::toImpl(isolate, value, impl, exception
State); | 81 V8TestDictionaryDerivedImplementedAs::toImpl(isolate, value, impl, exception
State); |
| 82 return impl; | 82 return impl; |
| 83 } | 83 } |
| 84 | 84 |
| 85 } // namespace blink | 85 } // namespace blink |
| OLD | NEW |