| 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 } | 372 } |
| 373 | 373 |
| 374 v8::Local<v8::Value> uint8ArrayMemberValue = v8Object->Get(v8String(isolate,
"uint8ArrayMember")); | 374 v8::Local<v8::Value> uint8ArrayMemberValue = v8Object->Get(v8String(isolate,
"uint8ArrayMember")); |
| 375 if (block.HasCaught()) { | 375 if (block.HasCaught()) { |
| 376 exceptionState.rethrowV8Exception(block.Exception()); | 376 exceptionState.rethrowV8Exception(block.Exception()); |
| 377 return; | 377 return; |
| 378 } | 378 } |
| 379 if (uint8ArrayMemberValue.IsEmpty() || uint8ArrayMemberValue->IsUndefined())
{ | 379 if (uint8ArrayMemberValue.IsEmpty() || uint8ArrayMemberValue->IsUndefined())
{ |
| 380 // Do nothing. | 380 // Do nothing. |
| 381 } else { | 381 } else { |
| 382 DOMUint8Array* uint8ArrayMember = uint8ArrayMemberValue->IsUint8Array()
? V8Uint8Array::toImpl(v8::Handle<v8::Uint8Array>::Cast(uint8ArrayMemberValue))
: 0; | 382 DOMUint8Array* uint8ArrayMember = uint8ArrayMemberValue->IsUint8Array()
? V8Uint8Array::toImpl(v8::Local<v8::Uint8Array>::Cast(uint8ArrayMemberValue)) :
0; |
| 383 if (!uint8ArrayMember && !uint8ArrayMemberValue->IsNull()) { | 383 if (!uint8ArrayMember && !uint8ArrayMemberValue->IsNull()) { |
| 384 exceptionState.throwTypeError("member uint8ArrayMember is not of typ
e Uint8Array."); | 384 exceptionState.throwTypeError("member uint8ArrayMember is not of typ
e Uint8Array."); |
| 385 return; | 385 return; |
| 386 } | 386 } |
| 387 impl.setUint8ArrayMember(uint8ArrayMember); | 387 impl.setUint8ArrayMember(uint8ArrayMember); |
| 388 } | 388 } |
| 389 | 389 |
| 390 } | 390 } |
| 391 | 391 |
| 392 v8::Local<v8::Value> toV8(const TestDictionary& impl, v8::Local<v8::Object> crea
tionContext, v8::Isolate* isolate) | 392 v8::Local<v8::Value> toV8(const TestDictionary& impl, v8::Local<v8::Object> crea
tionContext, v8::Isolate* isolate) |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 } | 507 } |
| 508 | 508 |
| 509 TestDictionary NativeValueTraits<TestDictionary>::nativeValue(const v8::Local<v8
::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState) | 509 TestDictionary NativeValueTraits<TestDictionary>::nativeValue(const v8::Local<v8
::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState) |
| 510 { | 510 { |
| 511 TestDictionary impl; | 511 TestDictionary impl; |
| 512 V8TestDictionary::toImpl(isolate, value, impl, exceptionState); | 512 V8TestDictionary::toImpl(isolate, value, impl, exceptionState); |
| 513 return impl; | 513 return impl; |
| 514 } | 514 } |
| 515 | 515 |
| 516 } // namespace blink | 516 } // namespace blink |
| OLD | NEW |