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

Side by Side Diff: Source/bindings/tests/results/V8TestInterface2.cpp

Issue 386613002: FYI: Compile fixes when always using a local for method return value Base URL: https://chromium.googlesource.com/chromium/blink.git@idl-nullable-method-return-type
Patch Set: Created 6 years, 5 months 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 "V8TestInterface2.h" 8 #include "V8TestInterface2.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 static void deleteNamedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Val ue>& info) 215 static void deleteNamedItemMethodCallback(const v8::FunctionCallbackInfo<v8::Val ue>& info)
216 { 216 {
217 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 217 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
218 TestInterface2V8Internal::deleteNamedItemMethod(info); 218 TestInterface2V8Internal::deleteNamedItemMethod(info);
219 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 219 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
220 } 220 }
221 221
222 static void stringifierMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 222 static void stringifierMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
223 { 223 {
224 TestInterface2* impl = V8TestInterface2::toNative(info.Holder()); 224 TestInterface2* impl = V8TestInterface2::toNative(info.Holder());
225 v8SetReturnValueString(info, impl->stringifierMethod(), info.GetIsolate()); 225 String result = impl->stringifierMethod();
226 v8SetReturnValueString(info, result, info.GetIsolate());
226 } 227 }
227 228
228 static void stringifierMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 229 static void stringifierMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
229 { 230 {
230 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 231 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
231 TestInterface2V8Internal::stringifierMethodMethod(info); 232 TestInterface2V8Internal::stringifierMethodMethod(info);
232 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 233 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
233 } 234 }
234 235
235 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 236 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
236 { 237 {
237 TestInterface2* impl = V8TestInterface2::toNative(info.Holder()); 238 TestInterface2* impl = V8TestInterface2::toNative(info.Holder());
238 v8SetReturnValueString(info, impl->stringifierMethod(), info.GetIsolate()); 239 String result = impl->stringifierMethod();
240 v8SetReturnValueString(info, result, info.GetIsolate());
239 } 241 }
240 242
241 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo) 243 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo)
242 { 244 {
243 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 245 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
244 TestInterface2V8Internal::toStringMethod(info); 246 TestInterface2V8Internal::toStringMethod(info);
245 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 247 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
246 } 248 }
247 249
248 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) 250 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 fromInternalPointer(object)->deref(); 546 fromInternalPointer(object)->deref();
545 } 547 }
546 548
547 template<> 549 template<>
548 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) 550 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
549 { 551 {
550 return toV8(impl, creationContext, isolate); 552 return toV8(impl, creationContext, isolate);
551 } 553 }
552 554
553 } // namespace WebCore 555 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698