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

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

Issue 690243002: 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 "V8TestInterfaceGarbageCollected.h" 8 #include "V8TestInterfaceGarbageCollected.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 static void attr1AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info) 56 static void attr1AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info)
57 { 57 {
58 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 58 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
59 TestInterfaceGarbageCollectedV8Internal::attr1AttributeSetter(v8Value, info) ; 59 TestInterfaceGarbageCollectedV8Internal::attr1AttributeSetter(v8Value, info) ;
60 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 60 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
61 } 61 }
62 62
63 static void funcMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 63 static void funcMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
64 { 64 {
65 if (UNLIKELY(info.Length() < 1)) { 65 if (UNLIKELY(info.Length() < 1)) {
66 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("f unc", "TestInterfaceGarbageCollected", 1, info.Length(), info.GetIsolate()), inf o.GetIsolate()); 66 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "func", "TestInterfaceGarbageCollected", 1, info.Length()), inf o.GetIsolate());
67 return; 67 return;
68 } 68 }
69 TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImp l(info.Holder()); 69 TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toImp l(info.Holder());
70 TestInterfaceGarbageCollected* arg; 70 TestInterfaceGarbageCollected* arg;
71 { 71 {
72 arg = V8TestInterfaceGarbageCollected::toImplWithTypeCheck(info.GetIsola te(), info[0]); 72 arg = V8TestInterfaceGarbageCollected::toImplWithTypeCheck(info.GetIsola te(), info[0]);
73 } 73 }
74 impl->func(arg); 74 impl->func(arg);
75 } 75 }
76 76
77 static void funcMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 77 static void funcMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
78 { 78 {
79 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 79 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
80 TestInterfaceGarbageCollectedV8Internal::funcMethod(info); 80 TestInterfaceGarbageCollectedV8Internal::funcMethod(info);
81 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 81 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
82 } 82 }
83 83
84 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) 84 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
85 { 85 {
86 if (UNLIKELY(info.Length() < 1)) { 86 if (UNLIKELY(info.Length() < 1)) {
87 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct or("TestInterfaceGarbageCollected", 1, info.Length(), info.GetIsolate()), info.G etIsolate()); 87 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct or(info.GetIsolate(), "TestInterfaceGarbageCollected", 1, info.Length()), info.G etIsolate());
88 return; 88 return;
89 } 89 }
90 V8StringResource<> str; 90 V8StringResource<> str;
91 { 91 {
92 TOSTRING_VOID_INTERNAL(str, info[0]); 92 TOSTRING_VOID_INTERNAL(str, info[0]);
93 } 93 }
94 RawPtr<TestInterfaceGarbageCollected> impl = TestInterfaceGarbageCollected:: create(str); 94 RawPtr<TestInterfaceGarbageCollected> impl = TestInterfaceGarbageCollected:: create(str);
95 v8::Handle<v8::Object> wrapper = info.Holder(); 95 v8::Handle<v8::Object> wrapper = info.Holder();
96 impl->associateWithWrapper(&V8TestInterfaceGarbageCollected::wrapperTypeInfo , wrapper, info.GetIsolate()); 96 impl->associateWithWrapper(&V8TestInterfaceGarbageCollected::wrapperTypeInfo , wrapper, info.GetIsolate());
97 v8SetReturnValue(info, wrapper); 97 v8SetReturnValue(info, wrapper);
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 { 177 {
178 } 178 }
179 179
180 template<> 180 template<>
181 v8::Handle<v8::Value> toV8NoInline(TestInterfaceGarbageCollected* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate) 181 v8::Handle<v8::Value> toV8NoInline(TestInterfaceGarbageCollected* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate)
182 { 182 {
183 return toV8(impl, creationContext, isolate); 183 return toV8(impl, creationContext, isolate);
184 } 184 }
185 185
186 } // namespace blink 186 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698