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

Side by Side Diff: Source/bindings/tests/results/core/V8TestInterfaceConstructor3.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 "V8TestInterfaceConstructor3.h" 8 #include "V8TestInterfaceConstructor3.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 24 matching lines...) Expand all
35 if (UNLIKELY(info.Length() < 1)) { 35 if (UNLIKELY(info.Length() < 1)) {
36 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct or(info.GetIsolate(), "TestInterfaceConstructor3", 1, info.Length()), info.GetIs olate()); 36 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct or(info.GetIsolate(), "TestInterfaceConstructor3", 1, info.Length()), info.GetIs olate());
37 return; 37 return;
38 } 38 }
39 V8StringResource<> stringArg; 39 V8StringResource<> stringArg;
40 { 40 {
41 TOSTRING_VOID_INTERNAL(stringArg, info[0]); 41 TOSTRING_VOID_INTERNAL(stringArg, info[0]);
42 } 42 }
43 RefPtr<TestInterfaceConstructor3> impl = TestInterfaceConstructor3::create(s tringArg); 43 RefPtr<TestInterfaceConstructor3> impl = TestInterfaceConstructor3::create(s tringArg);
44 v8::Handle<v8::Object> wrapper = info.Holder(); 44 v8::Handle<v8::Object> wrapper = info.Holder();
45 impl->associateWithWrapper(&V8TestInterfaceConstructor3::wrapperTypeInfo, wr apper, info.GetIsolate()); 45 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceConstructor3:: wrapperTypeInfo, wrapper);
46 v8SetReturnValue(info, wrapper); 46 v8SetReturnValue(info, wrapper);
47 } 47 }
48 48
49 } // namespace TestInterfaceConstructor3V8Internal 49 } // namespace TestInterfaceConstructor3V8Internal
50 50
51 void V8TestInterfaceConstructor3::constructorCallback(const v8::FunctionCallback Info<v8::Value>& info) 51 void V8TestInterfaceConstructor3::constructorCallback(const v8::FunctionCallback Info<v8::Value>& info)
52 { 52 {
53 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); 53 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor");
54 if (!info.IsConstructCall()) { 54 if (!info.IsConstructCall()) {
55 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c onstructorNotCallableAsFunction("TestInterfaceConstructor3")); 55 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c onstructorNotCallableAsFunction("TestInterfaceConstructor3"));
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 scriptWrappable->toImpl<TestInterfaceConstructor3>()->deref(); 115 scriptWrappable->toImpl<TestInterfaceConstructor3>()->deref();
116 } 116 }
117 117
118 template<> 118 template<>
119 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor3* impl, v8::Handle<v 8::Object> creationContext, v8::Isolate* isolate) 119 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor3* impl, v8::Handle<v 8::Object> creationContext, v8::Isolate* isolate)
120 { 120 {
121 return toV8(impl, creationContext, isolate); 121 return toV8(impl, creationContext, isolate);
122 } 122 }
123 123
124 } // namespace blink 124 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698