| 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 "V8TestInterfaceNamedConstructor.h" | 8 #include "V8TestInterfaceNamedConstructor.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 defaultNullStringOptionalstringArg = nullptr; | 111 defaultNullStringOptionalstringArg = nullptr; |
| 112 } | 112 } |
| 113 if (UNLIKELY(info.Length() <= 5)) { | 113 if (UNLIKELY(info.Length() <= 5)) { |
| 114 Document& document = *toDocument(currentExecutionContext(info.GetIso
late())); | 114 Document& document = *toDocument(currentExecutionContext(info.GetIso
late())); |
| 115 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConst
ructor::createForJSConstructor(document, stringArg, defaultUndefinedOptionalBool
eanArg, defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defa
ultNullStringOptionalstringArg, exceptionState); | 115 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConst
ructor::createForJSConstructor(document, stringArg, defaultUndefinedOptionalBool
eanArg, defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defa
ultNullStringOptionalstringArg, exceptionState); |
| 116 if (exceptionState.hadException()) { | 116 if (exceptionState.hadException()) { |
| 117 exceptionState.throwIfNeeded(); | 117 exceptionState.throwIfNeeded(); |
| 118 return; | 118 return; |
| 119 } | 119 } |
| 120 v8::Handle<v8::Object> wrapper = info.Holder(); | 120 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 121 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNamedConstru
ctor>(impl.release(), &V8TestInterfaceNamedConstructorConstructor::wrapperTypeIn
fo, wrapper, info.GetIsolate()); | 121 impl.get()->associateWithWrapper(&V8TestInterfaceNamedConstructorCon
structor::wrapperTypeInfo, wrapper, info.GetIsolate()); |
| 122 v8SetReturnValue(info, wrapper); | 122 v8SetReturnValue(info, wrapper); |
| 123 return; | 123 return; |
| 124 } | 124 } |
| 125 TOSTRING_VOID_INTERNAL(optionalStringArg, info[5]); | 125 TOSTRING_VOID_INTERNAL(optionalStringArg, info[5]); |
| 126 } | 126 } |
| 127 Document& document = *toDocument(currentExecutionContext(info.GetIsolate()))
; | 127 Document& document = *toDocument(currentExecutionContext(info.GetIsolate()))
; |
| 128 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConstructor::
createForJSConstructor(document, stringArg, defaultUndefinedOptionalBooleanArg,
defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNullS
tringOptionalstringArg, optionalStringArg, exceptionState); | 128 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConstructor::
createForJSConstructor(document, stringArg, defaultUndefinedOptionalBooleanArg,
defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNullS
tringOptionalstringArg, optionalStringArg, exceptionState); |
| 129 if (exceptionState.hadException()) { | 129 if (exceptionState.hadException()) { |
| 130 exceptionState.throwIfNeeded(); | 130 exceptionState.throwIfNeeded(); |
| 131 return; | 131 return; |
| 132 } | 132 } |
| 133 v8::Handle<v8::Object> wrapper = info.Holder(); | 133 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 134 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNamedConstructor>(im
pl.release(), &V8TestInterfaceNamedConstructorConstructor::wrapperTypeInfo, wrap
per, info.GetIsolate()); | 134 impl.get()->associateWithWrapper(&V8TestInterfaceNamedConstructorConstructor
::wrapperTypeInfo, wrapper, info.GetIsolate()); |
| 135 v8SetReturnValue(info, wrapper); | 135 v8SetReturnValue(info, wrapper); |
| 136 } | 136 } |
| 137 | 137 |
| 138 v8::Handle<v8::FunctionTemplate> V8TestInterfaceNamedConstructorConstructor::dom
Template(v8::Isolate* isolate) | 138 v8::Handle<v8::FunctionTemplate> V8TestInterfaceNamedConstructorConstructor::dom
Template(v8::Isolate* isolate) |
| 139 { | 139 { |
| 140 static int domTemplateKey; // This address is used for a key to look up the
dom template. | 140 static int domTemplateKey; // This address is used for a key to look up the
dom template. |
| 141 V8PerIsolateData* data = V8PerIsolateData::from(isolate); | 141 V8PerIsolateData* data = V8PerIsolateData::from(isolate); |
| 142 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(&domTempl
ateKey); | 142 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(&domTempl
ateKey); |
| 143 if (!result.IsEmpty()) | 143 if (!result.IsEmpty()) |
| 144 return result; | 144 return result; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 return 0; | 212 return 0; |
| 213 } | 213 } |
| 214 | 214 |
| 215 template<> | 215 template<> |
| 216 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 216 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
| 217 { | 217 { |
| 218 return toV8(impl, creationContext, isolate); | 218 return toV8(impl, creationContext, isolate); |
| 219 } | 219 } |
| 220 | 220 |
| 221 } // namespace blink | 221 } // namespace blink |
| OLD | NEW |