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 "V8TestSpecialOperationsNotEnumerable.h" | 7 #include "V8TestSpecialOperationsNotEnumerable.h" |
8 | 8 |
9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
10 #include "bindings/core/v8/V8DOMConfiguration.h" | 10 #include "bindings/core/v8/V8DOMConfiguration.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 v8SetReturnValueString(info, result, info.GetIsolate()); | 42 v8SetReturnValueString(info, result, info.GetIsolate()); |
43 } | 43 } |
44 | 44 |
45 static void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCall
backInfo<v8::Value>& info) | 45 static void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCall
backInfo<v8::Value>& info) |
46 { | 46 { |
47 TestSpecialOperationsNotEnumerableV8Internal::indexedPropertyGetter(index, i
nfo); | 47 TestSpecialOperationsNotEnumerableV8Internal::indexedPropertyGetter(index, i
nfo); |
48 } | 48 } |
49 | 49 |
50 static void namedPropertyGetter(v8::Local<v8::Name> name, const v8::PropertyCall
backInfo<v8::Value>& info) | 50 static void namedPropertyGetter(v8::Local<v8::Name> name, const v8::PropertyCall
backInfo<v8::Value>& info) |
51 { | 51 { |
52 if (!name->IsString()) | |
53 return; | |
54 auto nameString = name.As<v8::String>(); | 52 auto nameString = name.As<v8::String>(); |
55 TestSpecialOperationsNotEnumerable* impl = V8TestSpecialOperationsNotEnumera
ble::toImpl(info.Holder()); | 53 TestSpecialOperationsNotEnumerable* impl = V8TestSpecialOperationsNotEnumera
ble::toImpl(info.Holder()); |
56 AtomicString propertyName = toCoreAtomicString(nameString); | 54 AtomicString propertyName = toCoreAtomicString(nameString); |
57 String result = impl->anonymousNamedGetter(propertyName); | 55 String result = impl->anonymousNamedGetter(propertyName); |
58 if (result.isNull()) | 56 if (result.isNull()) |
59 return; | 57 return; |
60 v8SetReturnValueString(info, result, info.GetIsolate()); | 58 v8SetReturnValueString(info, result, info.GetIsolate()); |
61 } | 59 } |
62 | 60 |
63 static void namedPropertyGetterCallback(v8::Local<v8::Name> name, const v8::Prop
ertyCallbackInfo<v8::Value>& info) | 61 static void namedPropertyGetterCallback(v8::Local<v8::Name> name, const v8::Prop
ertyCallbackInfo<v8::Value>& info) |
64 { | 62 { |
| 63 if (!name->IsString()) |
| 64 return; |
65 TestSpecialOperationsNotEnumerableV8Internal::namedPropertyGetter(name, info
); | 65 TestSpecialOperationsNotEnumerableV8Internal::namedPropertyGetter(name, info
); |
66 } | 66 } |
67 | 67 |
68 } // namespace TestSpecialOperationsNotEnumerableV8Internal | 68 } // namespace TestSpecialOperationsNotEnumerableV8Internal |
69 | 69 |
70 static void installV8TestSpecialOperationsNotEnumerableTemplate(v8::Isolate* iso
late, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTem
plate) | 70 static void installV8TestSpecialOperationsNotEnumerableTemplate(v8::Isolate* iso
late, const DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTem
plate) |
71 { | 71 { |
72 // Initialize the interface object's template. | 72 // Initialize the interface object's template. |
73 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplat
e, V8TestSpecialOperationsNotEnumerable::wrapperTypeInfo.interfaceName, v8::Loca
l<v8::FunctionTemplate>(), V8TestSpecialOperationsNotEnumerable::internalFieldCo
unt); | 73 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplat
e, V8TestSpecialOperationsNotEnumerable::wrapperTypeInfo.interfaceName, v8::Loca
l<v8::FunctionTemplate>(), V8TestSpecialOperationsNotEnumerable::internalFieldCo
unt); |
74 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe
mplate); | 74 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe
mplate); |
(...skipping 27 matching lines...) Expand all Loading... |
102 { | 102 { |
103 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 103 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
104 } | 104 } |
105 | 105 |
106 TestSpecialOperationsNotEnumerable* V8TestSpecialOperationsNotEnumerable::toImpl
WithTypeCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) | 106 TestSpecialOperationsNotEnumerable* V8TestSpecialOperationsNotEnumerable::toImpl
WithTypeCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) |
107 { | 107 { |
108 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; | 108 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; |
109 } | 109 } |
110 | 110 |
111 } // namespace blink | 111 } // namespace blink |
OLD | NEW |