Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: Source/bindings/tests/results/core/V8TestInterfaceNamedConstructor.cpp

Issue 698023005: Move the v8::Isolate* parameter to the first parameter of various binding methods in third_party/We… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 defaultNullStringOptionalstringArg = nullptr; 93 defaultNullStringOptionalstringArg = nullptr;
94 } 94 }
95 if (UNLIKELY(info.Length() <= 5)) { 95 if (UNLIKELY(info.Length() <= 5)) {
96 Document& document = *toDocument(currentExecutionContext(info.GetIso late())); 96 Document& document = *toDocument(currentExecutionContext(info.GetIso late()));
97 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConst ructor::createForJSConstructor(document, stringArg, defaultUndefinedOptionalBool eanArg, defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defa ultNullStringOptionalstringArg, exceptionState); 97 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConst ructor::createForJSConstructor(document, stringArg, defaultUndefinedOptionalBool eanArg, defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defa ultNullStringOptionalstringArg, exceptionState);
98 if (exceptionState.hadException()) { 98 if (exceptionState.hadException()) {
99 exceptionState.throwIfNeeded(); 99 exceptionState.throwIfNeeded();
100 return; 100 return;
101 } 101 }
102 v8::Handle<v8::Object> wrapper = info.Holder(); 102 v8::Handle<v8::Object> wrapper = info.Holder();
103 impl->associateWithWrapper(&V8TestInterfaceNamedConstructorConstruct or::wrapperTypeInfo, wrapper, info.GetIsolate()); 103 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceNamedC onstructorConstructor::wrapperTypeInfo, wrapper);
104 v8SetReturnValue(info, wrapper); 104 v8SetReturnValue(info, wrapper);
105 return; 105 return;
106 } 106 }
107 TOSTRING_VOID_INTERNAL(optionalStringArg, info[5]); 107 TOSTRING_VOID_INTERNAL(optionalStringArg, info[5]);
108 } 108 }
109 Document& document = *toDocument(currentExecutionContext(info.GetIsolate())) ; 109 Document& document = *toDocument(currentExecutionContext(info.GetIsolate())) ;
110 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConstructor:: createForJSConstructor(document, stringArg, defaultUndefinedOptionalBooleanArg, defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNullS tringOptionalstringArg, optionalStringArg, exceptionState); 110 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConstructor:: createForJSConstructor(document, stringArg, defaultUndefinedOptionalBooleanArg, defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNullS tringOptionalstringArg, optionalStringArg, exceptionState);
111 if (exceptionState.hadException()) { 111 if (exceptionState.hadException()) {
112 exceptionState.throwIfNeeded(); 112 exceptionState.throwIfNeeded();
113 return; 113 return;
114 } 114 }
115 v8::Handle<v8::Object> wrapper = info.Holder(); 115 v8::Handle<v8::Object> wrapper = info.Holder();
116 impl->associateWithWrapper(&V8TestInterfaceNamedConstructorConstructor::wrap perTypeInfo, wrapper, info.GetIsolate()); 116 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceNamedConstruct orConstructor::wrapperTypeInfo, wrapper);
117 v8SetReturnValue(info, wrapper); 117 v8SetReturnValue(info, wrapper);
118 } 118 }
119 119
120 v8::Handle<v8::FunctionTemplate> V8TestInterfaceNamedConstructorConstructor::dom Template(v8::Isolate* isolate) 120 v8::Handle<v8::FunctionTemplate> V8TestInterfaceNamedConstructorConstructor::dom Template(v8::Isolate* isolate)
121 { 121 {
122 static int domTemplateKey; // This address is used for a key to look up the dom template. 122 static int domTemplateKey; // This address is used for a key to look up the dom template.
123 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 123 V8PerIsolateData* data = V8PerIsolateData::from(isolate);
124 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(&domTempl ateKey); 124 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(&domTempl ateKey);
125 if (!result.IsEmpty()) 125 if (!result.IsEmpty())
126 return result; 126 return result;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->deref(); 189 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->deref();
190 } 190 }
191 191
192 template<> 192 template<>
193 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate) 193 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate)
194 { 194 {
195 return toV8(impl, creationContext, isolate); 195 return toV8(impl, creationContext, isolate);
196 } 196 }
197 197
198 } // namespace blink 198 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698