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

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

Issue 2163543003: Hook up new V8 use counters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 break; 184 break;
185 case v8::Isolate::kRegExpPrototypeOldFlagGetter: 185 case v8::Isolate::kRegExpPrototypeOldFlagGetter:
186 blinkFeature = UseCounter::V8RegExpPrototypeOldFlagGetter; 186 blinkFeature = UseCounter::V8RegExpPrototypeOldFlagGetter;
187 break; 187 break;
188 case v8::Isolate::kDecimalWithLeadingZeroInStrictMode: 188 case v8::Isolate::kDecimalWithLeadingZeroInStrictMode:
189 blinkFeature = UseCounter::V8DecimalWithLeadingZeroInStrictMode; 189 blinkFeature = UseCounter::V8DecimalWithLeadingZeroInStrictMode;
190 break; 190 break;
191 case v8::Isolate::kLegacyDateParser: 191 case v8::Isolate::kLegacyDateParser:
192 blinkFeature = UseCounter::V8LegacyDateParser; 192 blinkFeature = UseCounter::V8LegacyDateParser;
193 break; 193 break;
194 case v8::Isolate::kDefineGetterOrSetterWouldThrow:
195 blinkFeature = UseCounter::V8DefineGetterOrSetterWouldThrow;
196 break;
197 case v8::Isolate::kFunctionConstructorReturnedUndefined:
198 blinkFeature = UseCounter::V8FunctionConstructorReturnedUndefined;
199 break;
194 default: 200 default:
195 // This can happen if V8 has added counters that this version of Blink 201 // This can happen if V8 has added counters that this version of Blink
196 // does not know about. It's harmless. 202 // does not know about. It's harmless.
197 return; 203 return;
198 } 204 }
199 if (deprecated) 205 if (deprecated)
200 Deprecation::countDeprecation(currentExecutionContext(isolate), blinkFea ture); 206 Deprecation::countDeprecation(currentExecutionContext(isolate), blinkFea ture);
201 else 207 else
202 UseCounter::count(currentExecutionContext(isolate), blinkFeature); 208 UseCounter::count(currentExecutionContext(isolate), blinkFeature);
203 } 209 }
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 382
377 void V8PerIsolateData::addActiveScriptWrappable(ActiveScriptWrappable* wrappable ) 383 void V8PerIsolateData::addActiveScriptWrappable(ActiveScriptWrappable* wrappable )
378 { 384 {
379 if (!m_activeScriptWrappables) 385 if (!m_activeScriptWrappables)
380 m_activeScriptWrappables = new ActiveScriptWrappableSet(); 386 m_activeScriptWrappables = new ActiveScriptWrappableSet();
381 387
382 m_activeScriptWrappables->add(wrappable); 388 m_activeScriptWrappables->add(wrappable);
383 } 389 }
384 390
385 } // namespace blink 391 } // 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