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

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

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