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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp

Issue 1678003002: Remove sampling trace events from the binding layer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "V8TestInterfacePartial.h" 7 #include "V8TestInterfacePartial.h"
8 8
9 #include "bindings/core/v8/ExceptionState.h" 9 #include "bindings/core/v8/ExceptionState.h"
10 #include "bindings/core/v8/PrivateScriptRunner.h" 10 #include "bindings/core/v8/PrivateScriptRunner.h"
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 if (!isValidEnum(arg, validValues, WTF_ARRAY_LENGTH(validValues), "TestE numModules", exceptionState)) { 237 if (!isValidEnum(arg, validValues, WTF_ARRAY_LENGTH(validValues), "TestE numModules", exceptionState)) {
238 exceptionState.throwIfNeeded(); 238 exceptionState.throwIfNeeded();
239 return; 239 return;
240 } 240 }
241 } 241 }
242 TestPartialInterfaceImplementation3::partialVoidTestEnumModulesArgMethod(*im pl, arg); 242 TestPartialInterfaceImplementation3::partialVoidTestEnumModulesArgMethod(*im pl, arg);
243 } 243 }
244 244
245 static void partialVoidTestEnumModulesArgMethodMethodCallback(const v8::Function CallbackInfo<v8::Value>& info) 245 static void partialVoidTestEnumModulesArgMethodMethodCallback(const v8::Function CallbackInfo<v8::Value>& info)
246 { 246 {
247 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
248 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 247 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
249 String errorMessage; 248 String errorMessage;
250 if (!OriginTrials::featureNameEnabled(executionContext, errorMessage)) { 249 if (!OriginTrials::featureNameEnabled(executionContext, errorMessage)) {
251 v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); 250 v8SetReturnValue(info, v8::Undefined(info.GetIsolate()));
252 if (!errorMessage.isEmpty()) { 251 if (!errorMessage.isEmpty()) {
253 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::cre ate(JSMessageSource, ErrorMessageLevel, errorMessage)); 252 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::cre ate(JSMessageSource, ErrorMessageLevel, errorMessage));
254 } 253 }
255 return; 254 return;
256 } 255 }
257 TestInterfaceImplementationPartialV8Internal::partialVoidTestEnumModulesArgM ethodMethod(info); 256 TestInterfaceImplementationPartialV8Internal::partialVoidTestEnumModulesArgM ethodMethod(info);
258 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
259 } 257 }
260 258
261 static void partial2StaticVoidMethod2Method(const v8::FunctionCallbackInfo<v8::V alue>& info) 259 static void partial2StaticVoidMethod2Method(const v8::FunctionCallbackInfo<v8::V alue>& info)
262 { 260 {
263 V8StringResource<> value; 261 V8StringResource<> value;
264 { 262 {
265 value = info[0]; 263 value = info[0];
266 if (!value.prepare()) 264 if (!value.prepare())
267 return; 265 return;
268 } 266 }
(...skipping 21 matching lines...) Expand all
290 } 288 }
291 289
292 static void unscopeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 290 static void unscopeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
293 { 291 {
294 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 292 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
295 TestPartialInterfaceImplementation3::unscopeableVoidMethod(*impl); 293 TestPartialInterfaceImplementation3::unscopeableVoidMethod(*impl);
296 } 294 }
297 295
298 static void unscopeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 296 static void unscopeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
299 { 297 {
300 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
301 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ()); 298 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate ());
302 String errorMessage; 299 String errorMessage;
303 if (!OriginTrials::featureNameEnabled(executionContext, errorMessage)) { 300 if (!OriginTrials::featureNameEnabled(executionContext, errorMessage)) {
304 v8SetReturnValue(info, v8::Undefined(info.GetIsolate())); 301 v8SetReturnValue(info, v8::Undefined(info.GetIsolate()));
305 if (!errorMessage.isEmpty()) { 302 if (!errorMessage.isEmpty()) {
306 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::cre ate(JSMessageSource, ErrorMessageLevel, errorMessage)); 303 toDocument(executionContext)->addConsoleMessage(ConsoleMessage::cre ate(JSMessageSource, ErrorMessageLevel, errorMessage));
307 } 304 }
308 return; 305 return;
309 } 306 }
310 TestInterfaceImplementationPartialV8Internal::unscopeableVoidMethodMethod(in fo); 307 TestInterfaceImplementationPartialV8Internal::unscopeableVoidMethodMethod(in fo);
311 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
312 } 308 }
313 309
314 } // namespace TestInterfaceImplementationPartialV8Internal 310 } // namespace TestInterfaceImplementationPartialV8Internal
315 311
316 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { 312 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = {
317 {"partialVoidTestEnumModulesArgMethod", TestInterfaceImplementationPartialV8 Internal::partialVoidTestEnumModulesArgMethodMethodCallback, 0, 1, v8::None, V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, 313 {"partialVoidTestEnumModulesArgMethod", TestInterfaceImplementationPartialV8 Internal::partialVoidTestEnumModulesArgMethodMethodCallback, 0, 1, v8::None, V8D OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype},
318 {"unscopeableVoidMethod", TestInterfaceImplementationPartialV8Internal::unsc opeableVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAl lScripts, V8DOMConfiguration::OnPrototype}, 314 {"unscopeableVoidMethod", TestInterfaceImplementationPartialV8Internal::unsc opeableVoidMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAl lScripts, V8DOMConfiguration::OnPrototype},
319 }; 315 };
320 316
321 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Local<v8::Functi onTemplate> functionTemplate, v8::Isolate* isolate) 317 void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Local<v8::Functi onTemplate> functionTemplate, v8::Isolate* isolate)
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 &V8TestInterfacePartial::preparePrototypeAndInterfaceObject); 356 &V8TestInterfacePartial::preparePrototypeAndInterfaceObject);
361 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface( &TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); 357 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface( &TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod);
362 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver loadMethod); 358 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver loadMethod);
363 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe thod); 359 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe thod);
364 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti alOverloadMethod); 360 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti alOverloadMethod);
365 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); 361 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn terfaceImplementationPartialV8Internal::partial2VoidMethodMethod);
366 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(& TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); 362 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(& TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod);
367 } 363 }
368 364
369 } // namespace blink 365 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698