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

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

Issue 709743002: 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 "V8TestInterfaceConstructor.h" 8 #include "V8TestInterfaceConstructor.h"
9 9
10 #include "bindings/core/v8/Dictionary.h" 10 #include "bindings/core/v8/Dictionary.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 exceptionState.throwIfNeeded(); 207 exceptionState.throwIfNeeded();
208 } 208 }
209 209
210 } // namespace TestInterfaceConstructorV8Internal 210 } // namespace TestInterfaceConstructorV8Internal
211 211
212 const WrapperTypeInfo V8TestInterfaceConstructorConstructor::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterfaceConstructorConstructor::domTemplate, V8Test InterfaceConstructor::refObject, V8TestInterfaceConstructor::derefObject, V8Test InterfaceConstructor::trace, 0, 0, 0, V8TestInterfaceConstructor::installConditi onallyEnabledMethods, V8TestInterfaceConstructor::installConditionallyEnabledPro perties, 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::Object ClassId, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject }; 212 const WrapperTypeInfo V8TestInterfaceConstructorConstructor::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterfaceConstructorConstructor::domTemplate, V8Test InterfaceConstructor::refObject, V8TestInterfaceConstructor::derefObject, V8Test InterfaceConstructor::trace, 0, 0, 0, V8TestInterfaceConstructor::installConditi onallyEnabledMethods, V8TestInterfaceConstructor::installConditionallyEnabledPro perties, 0, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::Object ClassId, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject };
213 213
214 static void V8TestInterfaceConstructorConstructorCallback(const v8::FunctionCall backInfo<v8::Value>& info) 214 static void V8TestInterfaceConstructorConstructorCallback(const v8::FunctionCall backInfo<v8::Value>& info)
215 { 215 {
216 if (!info.IsConstructCall()) { 216 if (!info.IsConstructCall()) {
217 V8ThrowException::throwTypeError(ExceptionMessages::constructorNotCallab leAsFunction("Audio"), info.GetIsolate()); 217 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c onstructorNotCallableAsFunction("Audio"));
218 return; 218 return;
219 } 219 }
220 220
221 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis tingObject) { 221 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis tingObject) {
222 v8SetReturnValue(info, info.Holder()); 222 v8SetReturnValue(info, info.Holder());
223 return; 223 return;
224 } 224 }
225 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rfaceConstructor", info.Holder(), info.GetIsolate()); 225 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rfaceConstructor", info.Holder(), info.GetIsolate());
226 if (UNLIKELY(info.Length() < 1)) { 226 if (UNLIKELY(info.Length() < 1)) {
227 setMinimumArityTypeError(exceptionState, 1, info.Length()); 227 setMinimumArityTypeError(exceptionState, 1, info.Length());
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 result->Inherit(V8TestInterfaceConstructor::domTemplate(isolate)); 275 result->Inherit(V8TestInterfaceConstructor::domTemplate(isolate));
276 data->setDOMTemplate(&domTemplateKey, result); 276 data->setDOMTemplate(&domTemplateKey, result);
277 return result; 277 return result;
278 } 278 }
279 279
280 void V8TestInterfaceConstructor::constructorCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 280 void V8TestInterfaceConstructor::constructorCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
281 { 281 {
282 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); 282 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor");
283 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature); 283 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte xt(info.GetIsolate()), UseCounter::TestFeature);
284 if (!info.IsConstructCall()) { 284 if (!info.IsConstructCall()) {
285 V8ThrowException::throwTypeError(ExceptionMessages::constructorNotCallab leAsFunction("TestInterfaceConstructor"), info.GetIsolate()); 285 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c onstructorNotCallableAsFunction("TestInterfaceConstructor"));
286 return; 286 return;
287 } 287 }
288 288
289 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis tingObject) { 289 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis tingObject) {
290 v8SetReturnValue(info, info.Holder()); 290 v8SetReturnValue(info, info.Holder());
291 return; 291 return;
292 } 292 }
293 293
294 TestInterfaceConstructorV8Internal::constructor(info); 294 TestInterfaceConstructorV8Internal::constructor(info);
295 } 295 }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 scriptWrappableBase->toImpl<TestInterfaceConstructor>()->deref(); 345 scriptWrappableBase->toImpl<TestInterfaceConstructor>()->deref();
346 } 346 }
347 347
348 template<> 348 template<>
349 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8 ::Object> creationContext, v8::Isolate* isolate) 349 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8 ::Object> creationContext, v8::Isolate* isolate)
350 { 350 {
351 return toV8(impl, creationContext, isolate); 351 return toV8(impl, creationContext, isolate);
352 } 352 }
353 353
354 } // namespace blink 354 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698