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

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

Issue 1547143002: Thread up two new V8 UseCounters for ES2015 RegExp compat (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 break; 71 break;
72 case v8::Isolate::kSloppyMode: 72 case v8::Isolate::kSloppyMode:
73 blinkFeature = UseCounter::V8SloppyMode; 73 blinkFeature = UseCounter::V8SloppyMode;
74 break; 74 break;
75 case v8::Isolate::kStrictMode: 75 case v8::Isolate::kStrictMode:
76 blinkFeature = UseCounter::V8StrictMode; 76 blinkFeature = UseCounter::V8StrictMode;
77 break; 77 break;
78 case v8::Isolate::kStrongMode: 78 case v8::Isolate::kStrongMode:
79 blinkFeature = UseCounter::V8StrongMode; 79 blinkFeature = UseCounter::V8StrongMode;
80 break; 80 break;
81 case v8::Isolate::kRegExpPrototypeStickyGetter:
82 blinkFeature = UseCounter::V8RegExpPrototypeStickyGetter;
83 break;
84 case v8::Isolate::kRegExpPrototypeToString:
85 blinkFeature = UseCounter::V8RegExpPrototypeToString;
86 break;
81 default: 87 default:
82 // This can happen if V8 has added counters that this version of Blink 88 // This can happen if V8 has added counters that this version of Blink
83 // does not know about. It's harmless. 89 // does not know about. It's harmless.
84 return; 90 return;
85 } 91 }
86 UseCounter::count(callingExecutionContext(isolate), blinkFeature); 92 UseCounter::count(callingExecutionContext(isolate), blinkFeature);
87 } 93 }
88 94
89 V8PerIsolateData::V8PerIsolateData() 95 V8PerIsolateData::V8PerIsolateData()
90 : m_destructionPending(false) 96 : m_destructionPending(false)
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 m_endOfScopeTasks.clear(); 293 m_endOfScopeTasks.clear();
288 } 294 }
289 295
290 void V8PerIsolateData::setScriptDebugger(PassOwnPtr<MainThreadDebugger> debugger ) 296 void V8PerIsolateData::setScriptDebugger(PassOwnPtr<MainThreadDebugger> debugger )
291 { 297 {
292 ASSERT(!m_scriptDebugger); 298 ASSERT(!m_scriptDebugger);
293 m_scriptDebugger = std::move(debugger); 299 m_scriptDebugger = std::move(debugger);
294 } 300 }
295 301
296 } // namespace blink 302 } // 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