| 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 "bindings/core/v8/UnionTypesCore.h" | 8 #include "bindings/core/v8/UnionTypesCore.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/Dictionary.h" | 10 #include "bindings/core/v8/Dictionary.h" |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 case ArrayBufferOrArrayBufferViewOrDictionary::SpecificTypeArrayBufferView: | 134 case ArrayBufferOrArrayBufferViewOrDictionary::SpecificTypeArrayBufferView: |
| 135 return toV8(impl.getAsArrayBufferView(), creationContext, isolate); | 135 return toV8(impl.getAsArrayBufferView(), creationContext, isolate); |
| 136 case ArrayBufferOrArrayBufferViewOrDictionary::SpecificTypeDictionary: | 136 case ArrayBufferOrArrayBufferViewOrDictionary::SpecificTypeDictionary: |
| 137 return impl.getAsDictionary().v8Value(); | 137 return impl.getAsDictionary().v8Value(); |
| 138 default: | 138 default: |
| 139 ASSERT_NOT_REACHED(); | 139 ASSERT_NOT_REACHED(); |
| 140 } | 140 } |
| 141 return v8::Local<v8::Value>(); | 141 return v8::Local<v8::Value>(); |
| 142 } | 142 } |
| 143 | 143 |
| 144 ArrayBufferOrArrayBufferViewOrDictionary NativeValueTraits<ArrayBufferOrArrayBuf
ferViewOrDictionary>::nativeValue(const v8::Local<v8::Value>& value, v8::Isolate
* isolate, ExceptionState& exceptionState) | 144 ArrayBufferOrArrayBufferViewOrDictionary NativeValueTraits<ArrayBufferOrArrayBuf
ferViewOrDictionary>::nativeValue(v8::Local<v8::Value> value, v8::Isolate* isola
te, ExceptionState& exceptionState) |
| 145 { | 145 { |
| 146 ArrayBufferOrArrayBufferViewOrDictionary impl; | 146 ArrayBufferOrArrayBufferViewOrDictionary impl; |
| 147 V8ArrayBufferOrArrayBufferViewOrDictionary::toImpl(isolate, value, impl, exc
eptionState); | 147 V8ArrayBufferOrArrayBufferViewOrDictionary::toImpl(isolate, value, impl, exc
eptionState); |
| 148 return impl; | 148 return impl; |
| 149 } | 149 } |
| 150 | 150 |
| 151 BooleanOrStringOrUnrestrictedDouble::BooleanOrStringOrUnrestrictedDouble() | 151 BooleanOrStringOrUnrestrictedDouble::BooleanOrStringOrUnrestrictedDouble() |
| 152 : m_type(SpecificTypeNone) | 152 : m_type(SpecificTypeNone) |
| 153 { | 153 { |
| 154 } | 154 } |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 case BooleanOrStringOrUnrestrictedDouble::SpecificTypeString: | 251 case BooleanOrStringOrUnrestrictedDouble::SpecificTypeString: |
| 252 return v8String(isolate, impl.getAsString()); | 252 return v8String(isolate, impl.getAsString()); |
| 253 case BooleanOrStringOrUnrestrictedDouble::SpecificTypeUnrestrictedDouble: | 253 case BooleanOrStringOrUnrestrictedDouble::SpecificTypeUnrestrictedDouble: |
| 254 return v8::Number::New(isolate, impl.getAsUnrestrictedDouble()); | 254 return v8::Number::New(isolate, impl.getAsUnrestrictedDouble()); |
| 255 default: | 255 default: |
| 256 ASSERT_NOT_REACHED(); | 256 ASSERT_NOT_REACHED(); |
| 257 } | 257 } |
| 258 return v8::Local<v8::Value>(); | 258 return v8::Local<v8::Value>(); |
| 259 } | 259 } |
| 260 | 260 |
| 261 BooleanOrStringOrUnrestrictedDouble NativeValueTraits<BooleanOrStringOrUnrestric
tedDouble>::nativeValue(const v8::Local<v8::Value>& value, v8::Isolate* isolate,
ExceptionState& exceptionState) | 261 BooleanOrStringOrUnrestrictedDouble NativeValueTraits<BooleanOrStringOrUnrestric
tedDouble>::nativeValue(v8::Local<v8::Value> value, v8::Isolate* isolate, Except
ionState& exceptionState) |
| 262 { | 262 { |
| 263 BooleanOrStringOrUnrestrictedDouble impl; | 263 BooleanOrStringOrUnrestrictedDouble impl; |
| 264 V8BooleanOrStringOrUnrestrictedDouble::toImpl(isolate, value, impl, exceptio
nState); | 264 V8BooleanOrStringOrUnrestrictedDouble::toImpl(isolate, value, impl, exceptio
nState); |
| 265 return impl; | 265 return impl; |
| 266 } | 266 } |
| 267 | 267 |
| 268 DoubleOrString::DoubleOrString() | 268 DoubleOrString::DoubleOrString() |
| 269 : m_type(SpecificTypeNone) | 269 : m_type(SpecificTypeNone) |
| 270 { | 270 { |
| 271 } | 271 } |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 case DoubleOrString::SpecificTypeDouble: | 341 case DoubleOrString::SpecificTypeDouble: |
| 342 return v8::Number::New(isolate, impl.getAsDouble()); | 342 return v8::Number::New(isolate, impl.getAsDouble()); |
| 343 case DoubleOrString::SpecificTypeString: | 343 case DoubleOrString::SpecificTypeString: |
| 344 return v8String(isolate, impl.getAsString()); | 344 return v8String(isolate, impl.getAsString()); |
| 345 default: | 345 default: |
| 346 ASSERT_NOT_REACHED(); | 346 ASSERT_NOT_REACHED(); |
| 347 } | 347 } |
| 348 return v8::Local<v8::Value>(); | 348 return v8::Local<v8::Value>(); |
| 349 } | 349 } |
| 350 | 350 |
| 351 DoubleOrString NativeValueTraits<DoubleOrString>::nativeValue(const v8::Local<v8
::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState) | 351 DoubleOrString NativeValueTraits<DoubleOrString>::nativeValue(v8::Local<v8::Valu
e> value, v8::Isolate* isolate, ExceptionState& exceptionState) |
| 352 { | 352 { |
| 353 DoubleOrString impl; | 353 DoubleOrString impl; |
| 354 V8DoubleOrString::toImpl(isolate, value, impl, exceptionState); | 354 V8DoubleOrString::toImpl(isolate, value, impl, exceptionState); |
| 355 return impl; | 355 return impl; |
| 356 } | 356 } |
| 357 | 357 |
| 358 NodeOrNodeList::NodeOrNodeList() | 358 NodeOrNodeList::NodeOrNodeList() |
| 359 : m_type(SpecificTypeNone) | 359 : m_type(SpecificTypeNone) |
| 360 { | 360 { |
| 361 } | 361 } |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 case NodeOrNodeList::SpecificTypeNode: | 434 case NodeOrNodeList::SpecificTypeNode: |
| 435 return toV8(impl.getAsNode(), creationContext, isolate); | 435 return toV8(impl.getAsNode(), creationContext, isolate); |
| 436 case NodeOrNodeList::SpecificTypeNodeList: | 436 case NodeOrNodeList::SpecificTypeNodeList: |
| 437 return toV8(impl.getAsNodeList(), creationContext, isolate); | 437 return toV8(impl.getAsNodeList(), creationContext, isolate); |
| 438 default: | 438 default: |
| 439 ASSERT_NOT_REACHED(); | 439 ASSERT_NOT_REACHED(); |
| 440 } | 440 } |
| 441 return v8::Local<v8::Value>(); | 441 return v8::Local<v8::Value>(); |
| 442 } | 442 } |
| 443 | 443 |
| 444 NodeOrNodeList NativeValueTraits<NodeOrNodeList>::nativeValue(const v8::Local<v8
::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState) | 444 NodeOrNodeList NativeValueTraits<NodeOrNodeList>::nativeValue(v8::Local<v8::Valu
e> value, v8::Isolate* isolate, ExceptionState& exceptionState) |
| 445 { | 445 { |
| 446 NodeOrNodeList impl; | 446 NodeOrNodeList impl; |
| 447 V8NodeOrNodeList::toImpl(isolate, value, impl, exceptionState); | 447 V8NodeOrNodeList::toImpl(isolate, value, impl, exceptionState); |
| 448 return impl; | 448 return impl; |
| 449 } | 449 } |
| 450 | 450 |
| 451 StringOrArrayBufferOrArrayBufferView::StringOrArrayBufferOrArrayBufferView() | 451 StringOrArrayBufferOrArrayBufferView::StringOrArrayBufferOrArrayBufferView() |
| 452 : m_type(SpecificTypeNone) | 452 : m_type(SpecificTypeNone) |
| 453 { | 453 { |
| 454 } | 454 } |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 case StringOrArrayBufferOrArrayBufferView::SpecificTypeArrayBuffer: | 550 case StringOrArrayBufferOrArrayBufferView::SpecificTypeArrayBuffer: |
| 551 return toV8(impl.getAsArrayBuffer(), creationContext, isolate); | 551 return toV8(impl.getAsArrayBuffer(), creationContext, isolate); |
| 552 case StringOrArrayBufferOrArrayBufferView::SpecificTypeArrayBufferView: | 552 case StringOrArrayBufferOrArrayBufferView::SpecificTypeArrayBufferView: |
| 553 return toV8(impl.getAsArrayBufferView(), creationContext, isolate); | 553 return toV8(impl.getAsArrayBufferView(), creationContext, isolate); |
| 554 default: | 554 default: |
| 555 ASSERT_NOT_REACHED(); | 555 ASSERT_NOT_REACHED(); |
| 556 } | 556 } |
| 557 return v8::Local<v8::Value>(); | 557 return v8::Local<v8::Value>(); |
| 558 } | 558 } |
| 559 | 559 |
| 560 StringOrArrayBufferOrArrayBufferView NativeValueTraits<StringOrArrayBufferOrArra
yBufferView>::nativeValue(const v8::Local<v8::Value>& value, v8::Isolate* isolat
e, ExceptionState& exceptionState) | 560 StringOrArrayBufferOrArrayBufferView NativeValueTraits<StringOrArrayBufferOrArra
yBufferView>::nativeValue(v8::Local<v8::Value> value, v8::Isolate* isolate, Exce
ptionState& exceptionState) |
| 561 { | 561 { |
| 562 StringOrArrayBufferOrArrayBufferView impl; | 562 StringOrArrayBufferOrArrayBufferView impl; |
| 563 V8StringOrArrayBufferOrArrayBufferView::toImpl(isolate, value, impl, excepti
onState); | 563 V8StringOrArrayBufferOrArrayBufferView::toImpl(isolate, value, impl, excepti
onState); |
| 564 return impl; | 564 return impl; |
| 565 } | 565 } |
| 566 | 566 |
| 567 StringOrDouble::StringOrDouble() | 567 StringOrDouble::StringOrDouble() |
| 568 : m_type(SpecificTypeNone) | 568 : m_type(SpecificTypeNone) |
| 569 { | 569 { |
| 570 } | 570 } |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 640 case StringOrDouble::SpecificTypeString: | 640 case StringOrDouble::SpecificTypeString: |
| 641 return v8String(isolate, impl.getAsString()); | 641 return v8String(isolate, impl.getAsString()); |
| 642 case StringOrDouble::SpecificTypeDouble: | 642 case StringOrDouble::SpecificTypeDouble: |
| 643 return v8::Number::New(isolate, impl.getAsDouble()); | 643 return v8::Number::New(isolate, impl.getAsDouble()); |
| 644 default: | 644 default: |
| 645 ASSERT_NOT_REACHED(); | 645 ASSERT_NOT_REACHED(); |
| 646 } | 646 } |
| 647 return v8::Local<v8::Value>(); | 647 return v8::Local<v8::Value>(); |
| 648 } | 648 } |
| 649 | 649 |
| 650 StringOrDouble NativeValueTraits<StringOrDouble>::nativeValue(const v8::Local<v8
::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState) | 650 StringOrDouble NativeValueTraits<StringOrDouble>::nativeValue(v8::Local<v8::Valu
e> value, v8::Isolate* isolate, ExceptionState& exceptionState) |
| 651 { | 651 { |
| 652 StringOrDouble impl; | 652 StringOrDouble impl; |
| 653 V8StringOrDouble::toImpl(isolate, value, impl, exceptionState); | 653 V8StringOrDouble::toImpl(isolate, value, impl, exceptionState); |
| 654 return impl; | 654 return impl; |
| 655 } | 655 } |
| 656 | 656 |
| 657 StringOrStringSequence::StringOrStringSequence() | 657 StringOrStringSequence::StringOrStringSequence() |
| 658 : m_type(SpecificTypeNone) | 658 : m_type(SpecificTypeNone) |
| 659 { | 659 { |
| 660 } | 660 } |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 730 case StringOrStringSequence::SpecificTypeString: | 730 case StringOrStringSequence::SpecificTypeString: |
| 731 return v8String(isolate, impl.getAsString()); | 731 return v8String(isolate, impl.getAsString()); |
| 732 case StringOrStringSequence::SpecificTypeStringSequence: | 732 case StringOrStringSequence::SpecificTypeStringSequence: |
| 733 return toV8(impl.getAsStringSequence(), creationContext, isolate); | 733 return toV8(impl.getAsStringSequence(), creationContext, isolate); |
| 734 default: | 734 default: |
| 735 ASSERT_NOT_REACHED(); | 735 ASSERT_NOT_REACHED(); |
| 736 } | 736 } |
| 737 return v8::Local<v8::Value>(); | 737 return v8::Local<v8::Value>(); |
| 738 } | 738 } |
| 739 | 739 |
| 740 StringOrStringSequence NativeValueTraits<StringOrStringSequence>::nativeValue(co
nst v8::Local<v8::Value>& value, v8::Isolate* isolate, ExceptionState& exception
State) | 740 StringOrStringSequence NativeValueTraits<StringOrStringSequence>::nativeValue(v8
::Local<v8::Value> value, v8::Isolate* isolate, ExceptionState& exceptionState) |
| 741 { | 741 { |
| 742 StringOrStringSequence impl; | 742 StringOrStringSequence impl; |
| 743 V8StringOrStringSequence::toImpl(isolate, value, impl, exceptionState); | 743 V8StringOrStringSequence::toImpl(isolate, value, impl, exceptionState); |
| 744 return impl; | 744 return impl; |
| 745 } | 745 } |
| 746 | 746 |
| 747 TestEnumOrDouble::TestEnumOrDouble() | 747 TestEnumOrDouble::TestEnumOrDouble() |
| 748 : m_type(SpecificTypeNone) | 748 : m_type(SpecificTypeNone) |
| 749 { | 749 { |
| 750 } | 750 } |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 830 case TestEnumOrDouble::SpecificTypeTestEnum: | 830 case TestEnumOrDouble::SpecificTypeTestEnum: |
| 831 return v8String(isolate, impl.getAsTestEnum()); | 831 return v8String(isolate, impl.getAsTestEnum()); |
| 832 case TestEnumOrDouble::SpecificTypeDouble: | 832 case TestEnumOrDouble::SpecificTypeDouble: |
| 833 return v8::Number::New(isolate, impl.getAsDouble()); | 833 return v8::Number::New(isolate, impl.getAsDouble()); |
| 834 default: | 834 default: |
| 835 ASSERT_NOT_REACHED(); | 835 ASSERT_NOT_REACHED(); |
| 836 } | 836 } |
| 837 return v8::Local<v8::Value>(); | 837 return v8::Local<v8::Value>(); |
| 838 } | 838 } |
| 839 | 839 |
| 840 TestEnumOrDouble NativeValueTraits<TestEnumOrDouble>::nativeValue(const v8::Loca
l<v8::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState) | 840 TestEnumOrDouble NativeValueTraits<TestEnumOrDouble>::nativeValue(v8::Local<v8::
Value> value, v8::Isolate* isolate, ExceptionState& exceptionState) |
| 841 { | 841 { |
| 842 TestEnumOrDouble impl; | 842 TestEnumOrDouble impl; |
| 843 V8TestEnumOrDouble::toImpl(isolate, value, impl, exceptionState); | 843 V8TestEnumOrDouble::toImpl(isolate, value, impl, exceptionState); |
| 844 return impl; | 844 return impl; |
| 845 } | 845 } |
| 846 | 846 |
| 847 TestInterface2OrUint8Array::TestInterface2OrUint8Array() | 847 TestInterface2OrUint8Array::TestInterface2OrUint8Array() |
| 848 : m_type(SpecificTypeNone) | 848 : m_type(SpecificTypeNone) |
| 849 { | 849 { |
| 850 } | 850 } |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 917 case TestInterface2OrUint8Array::SpecificTypeTestInterface2: | 917 case TestInterface2OrUint8Array::SpecificTypeTestInterface2: |
| 918 return toV8(impl.getAsTestInterface2(), creationContext, isolate); | 918 return toV8(impl.getAsTestInterface2(), creationContext, isolate); |
| 919 case TestInterface2OrUint8Array::SpecificTypeUint8Array: | 919 case TestInterface2OrUint8Array::SpecificTypeUint8Array: |
| 920 return toV8(impl.getAsUint8Array(), creationContext, isolate); | 920 return toV8(impl.getAsUint8Array(), creationContext, isolate); |
| 921 default: | 921 default: |
| 922 ASSERT_NOT_REACHED(); | 922 ASSERT_NOT_REACHED(); |
| 923 } | 923 } |
| 924 return v8::Local<v8::Value>(); | 924 return v8::Local<v8::Value>(); |
| 925 } | 925 } |
| 926 | 926 |
| 927 TestInterface2OrUint8Array NativeValueTraits<TestInterface2OrUint8Array>::native
Value(const v8::Local<v8::Value>& value, v8::Isolate* isolate, ExceptionState& e
xceptionState) | 927 TestInterface2OrUint8Array NativeValueTraits<TestInterface2OrUint8Array>::native
Value(v8::Local<v8::Value> value, v8::Isolate* isolate, ExceptionState& exceptio
nState) |
| 928 { | 928 { |
| 929 TestInterface2OrUint8Array impl; | 929 TestInterface2OrUint8Array impl; |
| 930 V8TestInterface2OrUint8Array::toImpl(isolate, value, impl, exceptionState); | 930 V8TestInterface2OrUint8Array::toImpl(isolate, value, impl, exceptionState); |
| 931 return impl; | 931 return impl; |
| 932 } | 932 } |
| 933 | 933 |
| 934 TestInterfaceGarbageCollectedOrString::TestInterfaceGarbageCollectedOrString() | 934 TestInterfaceGarbageCollectedOrString::TestInterfaceGarbageCollectedOrString() |
| 935 : m_type(SpecificTypeNone) | 935 : m_type(SpecificTypeNone) |
| 936 { | 936 { |
| 937 } | 937 } |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1010 case TestInterfaceGarbageCollectedOrString::SpecificTypeTestInterfaceGarbage
Collected: | 1010 case TestInterfaceGarbageCollectedOrString::SpecificTypeTestInterfaceGarbage
Collected: |
| 1011 return toV8(impl.getAsTestInterfaceGarbageCollected(), creationContext,
isolate); | 1011 return toV8(impl.getAsTestInterfaceGarbageCollected(), creationContext,
isolate); |
| 1012 case TestInterfaceGarbageCollectedOrString::SpecificTypeString: | 1012 case TestInterfaceGarbageCollectedOrString::SpecificTypeString: |
| 1013 return v8String(isolate, impl.getAsString()); | 1013 return v8String(isolate, impl.getAsString()); |
| 1014 default: | 1014 default: |
| 1015 ASSERT_NOT_REACHED(); | 1015 ASSERT_NOT_REACHED(); |
| 1016 } | 1016 } |
| 1017 return v8::Local<v8::Value>(); | 1017 return v8::Local<v8::Value>(); |
| 1018 } | 1018 } |
| 1019 | 1019 |
| 1020 TestInterfaceGarbageCollectedOrString NativeValueTraits<TestInterfaceGarbageColl
ectedOrString>::nativeValue(const v8::Local<v8::Value>& value, v8::Isolate* isol
ate, ExceptionState& exceptionState) | 1020 TestInterfaceGarbageCollectedOrString NativeValueTraits<TestInterfaceGarbageColl
ectedOrString>::nativeValue(v8::Local<v8::Value> value, v8::Isolate* isolate, Ex
ceptionState& exceptionState) |
| 1021 { | 1021 { |
| 1022 TestInterfaceGarbageCollectedOrString impl; | 1022 TestInterfaceGarbageCollectedOrString impl; |
| 1023 V8TestInterfaceGarbageCollectedOrString::toImpl(isolate, value, impl, except
ionState); | 1023 V8TestInterfaceGarbageCollectedOrString::toImpl(isolate, value, impl, except
ionState); |
| 1024 return impl; | 1024 return impl; |
| 1025 } | 1025 } |
| 1026 | 1026 |
| 1027 TestInterfaceOrLong::TestInterfaceOrLong() | 1027 TestInterfaceOrLong::TestInterfaceOrLong() |
| 1028 : m_type(SpecificTypeNone) | 1028 : m_type(SpecificTypeNone) |
| 1029 { | 1029 { |
| 1030 } | 1030 } |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1106 case TestInterfaceOrLong::SpecificTypeTestInterface: | 1106 case TestInterfaceOrLong::SpecificTypeTestInterface: |
| 1107 return toV8(impl.getAsTestInterface(), creationContext, isolate); | 1107 return toV8(impl.getAsTestInterface(), creationContext, isolate); |
| 1108 case TestInterfaceOrLong::SpecificTypeLong: | 1108 case TestInterfaceOrLong::SpecificTypeLong: |
| 1109 return v8::Integer::New(isolate, impl.getAsLong()); | 1109 return v8::Integer::New(isolate, impl.getAsLong()); |
| 1110 default: | 1110 default: |
| 1111 ASSERT_NOT_REACHED(); | 1111 ASSERT_NOT_REACHED(); |
| 1112 } | 1112 } |
| 1113 return v8::Local<v8::Value>(); | 1113 return v8::Local<v8::Value>(); |
| 1114 } | 1114 } |
| 1115 | 1115 |
| 1116 TestInterfaceOrLong NativeValueTraits<TestInterfaceOrLong>::nativeValue(const v8
::Local<v8::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState) | 1116 TestInterfaceOrLong NativeValueTraits<TestInterfaceOrLong>::nativeValue(v8::Loca
l<v8::Value> value, v8::Isolate* isolate, ExceptionState& exceptionState) |
| 1117 { | 1117 { |
| 1118 TestInterfaceOrLong impl; | 1118 TestInterfaceOrLong impl; |
| 1119 V8TestInterfaceOrLong::toImpl(isolate, value, impl, exceptionState); | 1119 V8TestInterfaceOrLong::toImpl(isolate, value, impl, exceptionState); |
| 1120 return impl; | 1120 return impl; |
| 1121 } | 1121 } |
| 1122 | 1122 |
| 1123 TestInterfaceOrTestInterfaceEmpty::TestInterfaceOrTestInterfaceEmpty() | 1123 TestInterfaceOrTestInterfaceEmpty::TestInterfaceOrTestInterfaceEmpty() |
| 1124 : m_type(SpecificTypeNone) | 1124 : m_type(SpecificTypeNone) |
| 1125 { | 1125 { |
| 1126 } | 1126 } |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1193 case TestInterfaceOrTestInterfaceEmpty::SpecificTypeTestInterface: | 1193 case TestInterfaceOrTestInterfaceEmpty::SpecificTypeTestInterface: |
| 1194 return toV8(impl.getAsTestInterface(), creationContext, isolate); | 1194 return toV8(impl.getAsTestInterface(), creationContext, isolate); |
| 1195 case TestInterfaceOrTestInterfaceEmpty::SpecificTypeTestInterfaceEmpty: | 1195 case TestInterfaceOrTestInterfaceEmpty::SpecificTypeTestInterfaceEmpty: |
| 1196 return toV8(impl.getAsTestInterfaceEmpty(), creationContext, isolate); | 1196 return toV8(impl.getAsTestInterfaceEmpty(), creationContext, isolate); |
| 1197 default: | 1197 default: |
| 1198 ASSERT_NOT_REACHED(); | 1198 ASSERT_NOT_REACHED(); |
| 1199 } | 1199 } |
| 1200 return v8::Local<v8::Value>(); | 1200 return v8::Local<v8::Value>(); |
| 1201 } | 1201 } |
| 1202 | 1202 |
| 1203 TestInterfaceOrTestInterfaceEmpty NativeValueTraits<TestInterfaceOrTestInterface
Empty>::nativeValue(const v8::Local<v8::Value>& value, v8::Isolate* isolate, Exc
eptionState& exceptionState) | 1203 TestInterfaceOrTestInterfaceEmpty NativeValueTraits<TestInterfaceOrTestInterface
Empty>::nativeValue(v8::Local<v8::Value> value, v8::Isolate* isolate, ExceptionS
tate& exceptionState) |
| 1204 { | 1204 { |
| 1205 TestInterfaceOrTestInterfaceEmpty impl; | 1205 TestInterfaceOrTestInterfaceEmpty impl; |
| 1206 V8TestInterfaceOrTestInterfaceEmpty::toImpl(isolate, value, impl, exceptionS
tate); | 1206 V8TestInterfaceOrTestInterfaceEmpty::toImpl(isolate, value, impl, exceptionS
tate); |
| 1207 return impl; | 1207 return impl; |
| 1208 } | 1208 } |
| 1209 | 1209 |
| 1210 TestInterfaceWillBeGarbageCollectedOrTestDictionary::TestInterfaceWillBeGarbageC
ollectedOrTestDictionary() | 1210 TestInterfaceWillBeGarbageCollectedOrTestDictionary::TestInterfaceWillBeGarbageC
ollectedOrTestDictionary() |
| 1211 : m_type(SpecificTypeNone) | 1211 : m_type(SpecificTypeNone) |
| 1212 { | 1212 { |
| 1213 } | 1213 } |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1289 case TestInterfaceWillBeGarbageCollectedOrTestDictionary::SpecificTypeTestIn
terfaceWillBeGarbageCollected: | 1289 case TestInterfaceWillBeGarbageCollectedOrTestDictionary::SpecificTypeTestIn
terfaceWillBeGarbageCollected: |
| 1290 return toV8(impl.getAsTestInterfaceWillBeGarbageCollected(), creationCon
text, isolate); | 1290 return toV8(impl.getAsTestInterfaceWillBeGarbageCollected(), creationCon
text, isolate); |
| 1291 case TestInterfaceWillBeGarbageCollectedOrTestDictionary::SpecificTypeTestDi
ctionary: | 1291 case TestInterfaceWillBeGarbageCollectedOrTestDictionary::SpecificTypeTestDi
ctionary: |
| 1292 return toV8(impl.getAsTestDictionary(), creationContext, isolate); | 1292 return toV8(impl.getAsTestDictionary(), creationContext, isolate); |
| 1293 default: | 1293 default: |
| 1294 ASSERT_NOT_REACHED(); | 1294 ASSERT_NOT_REACHED(); |
| 1295 } | 1295 } |
| 1296 return v8::Local<v8::Value>(); | 1296 return v8::Local<v8::Value>(); |
| 1297 } | 1297 } |
| 1298 | 1298 |
| 1299 TestInterfaceWillBeGarbageCollectedOrTestDictionary NativeValueTraits<TestInterf
aceWillBeGarbageCollectedOrTestDictionary>::nativeValue(const v8::Local<v8::Valu
e>& value, v8::Isolate* isolate, ExceptionState& exceptionState) | 1299 TestInterfaceWillBeGarbageCollectedOrTestDictionary NativeValueTraits<TestInterf
aceWillBeGarbageCollectedOrTestDictionary>::nativeValue(v8::Local<v8::Value> val
ue, v8::Isolate* isolate, ExceptionState& exceptionState) |
| 1300 { | 1300 { |
| 1301 TestInterfaceWillBeGarbageCollectedOrTestDictionary impl; | 1301 TestInterfaceWillBeGarbageCollectedOrTestDictionary impl; |
| 1302 V8TestInterfaceWillBeGarbageCollectedOrTestDictionary::toImpl(isolate, value
, impl, exceptionState); | 1302 V8TestInterfaceWillBeGarbageCollectedOrTestDictionary::toImpl(isolate, value
, impl, exceptionState); |
| 1303 return impl; | 1303 return impl; |
| 1304 } | 1304 } |
| 1305 | 1305 |
| 1306 UnrestrictedDoubleOrString::UnrestrictedDoubleOrString() | 1306 UnrestrictedDoubleOrString::UnrestrictedDoubleOrString() |
| 1307 : m_type(SpecificTypeNone) | 1307 : m_type(SpecificTypeNone) |
| 1308 { | 1308 { |
| 1309 } | 1309 } |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1379 case UnrestrictedDoubleOrString::SpecificTypeUnrestrictedDouble: | 1379 case UnrestrictedDoubleOrString::SpecificTypeUnrestrictedDouble: |
| 1380 return v8::Number::New(isolate, impl.getAsUnrestrictedDouble()); | 1380 return v8::Number::New(isolate, impl.getAsUnrestrictedDouble()); |
| 1381 case UnrestrictedDoubleOrString::SpecificTypeString: | 1381 case UnrestrictedDoubleOrString::SpecificTypeString: |
| 1382 return v8String(isolate, impl.getAsString()); | 1382 return v8String(isolate, impl.getAsString()); |
| 1383 default: | 1383 default: |
| 1384 ASSERT_NOT_REACHED(); | 1384 ASSERT_NOT_REACHED(); |
| 1385 } | 1385 } |
| 1386 return v8::Local<v8::Value>(); | 1386 return v8::Local<v8::Value>(); |
| 1387 } | 1387 } |
| 1388 | 1388 |
| 1389 UnrestrictedDoubleOrString NativeValueTraits<UnrestrictedDoubleOrString>::native
Value(const v8::Local<v8::Value>& value, v8::Isolate* isolate, ExceptionState& e
xceptionState) | 1389 UnrestrictedDoubleOrString NativeValueTraits<UnrestrictedDoubleOrString>::native
Value(v8::Local<v8::Value> value, v8::Isolate* isolate, ExceptionState& exceptio
nState) |
| 1390 { | 1390 { |
| 1391 UnrestrictedDoubleOrString impl; | 1391 UnrestrictedDoubleOrString impl; |
| 1392 V8UnrestrictedDoubleOrString::toImpl(isolate, value, impl, exceptionState); | 1392 V8UnrestrictedDoubleOrString::toImpl(isolate, value, impl, exceptionState); |
| 1393 return impl; | 1393 return impl; |
| 1394 } | 1394 } |
| 1395 | 1395 |
| 1396 } // namespace blink | 1396 } // namespace blink |
| OLD | NEW |