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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp

Issue 1578143002: Thread up UseCounters for a few new metrics from V8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase (and propagate extra counters to histograms.xml) 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 | « no previous file | third_party/WebKit/Source/core/frame/UseCounter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 break; 79 break;
80 case v8::Isolate::kStrongMode: 80 case v8::Isolate::kStrongMode:
81 blinkFeature = UseCounter::V8StrongMode; 81 blinkFeature = UseCounter::V8StrongMode;
82 break; 82 break;
83 case v8::Isolate::kRegExpPrototypeStickyGetter: 83 case v8::Isolate::kRegExpPrototypeStickyGetter:
84 blinkFeature = UseCounter::V8RegExpPrototypeStickyGetter; 84 blinkFeature = UseCounter::V8RegExpPrototypeStickyGetter;
85 break; 85 break;
86 case v8::Isolate::kRegExpPrototypeToString: 86 case v8::Isolate::kRegExpPrototypeToString:
87 blinkFeature = UseCounter::V8RegExpPrototypeToString; 87 blinkFeature = UseCounter::V8RegExpPrototypeToString;
88 break; 88 break;
89 case v8::Isolate::kRegExpPrototypeUnicodeGetter:
90 blinkFeature = UseCounter::V8RegExpPrototypeUnicodeGetter;
91 break;
92 case v8::Isolate::kIntlV8Parse:
93 blinkFeature = UseCounter::V8IntlV8Parse;
94 break;
95 case v8::Isolate::kIntlPattern:
96 blinkFeature = UseCounter::V8IntlPattern;
97 break;
98 case v8::Isolate::kIntlResolved:
99 blinkFeature = UseCounter::V8IntlResolved;
100 break;
101 case v8::Isolate::kPromiseChain:
102 blinkFeature = UseCounter::V8PromiseChain;
103 break;
104 case v8::Isolate::kPromiseAccept:
105 blinkFeature = UseCounter::V8PromiseAccept;
106 break;
107 case v8::Isolate::kPromiseDefer:
108 blinkFeature = UseCounter::V8PromiseDefer;
109 break;
89 default: 110 default:
90 // This can happen if V8 has added counters that this version of Blink 111 // This can happen if V8 has added counters that this version of Blink
91 // does not know about. It's harmless. 112 // does not know about. It's harmless.
92 return; 113 return;
93 } 114 }
94 if (deprecated) 115 if (deprecated)
95 UseCounter::countDeprecation(currentExecutionContext(isolate), blinkFeat ure); 116 UseCounter::countDeprecation(currentExecutionContext(isolate), blinkFeat ure);
96 else 117 else
97 UseCounter::count(currentExecutionContext(isolate), blinkFeature); 118 UseCounter::count(currentExecutionContext(isolate), blinkFeature);
98 } 119 }
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 m_endOfScopeTasks.clear(); 319 m_endOfScopeTasks.clear();
299 } 320 }
300 321
301 void V8PerIsolateData::setScriptDebugger(PassOwnPtr<MainThreadDebugger> debugger ) 322 void V8PerIsolateData::setScriptDebugger(PassOwnPtr<MainThreadDebugger> debugger )
302 { 323 {
303 ASSERT(!m_scriptDebugger); 324 ASSERT(!m_scriptDebugger);
304 m_scriptDebugger = std::move(debugger); 325 m_scriptDebugger = std::move(debugger);
305 } 326 }
306 327
307 } // namespace blink 328 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698