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

Unified Diff: Source/bindings/core/v8/V8PerIsolateData.cpp

Issue 639703003: Collect use counter for v8BreakIterator (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Switch to callingExecutionContext Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/V8PerIsolateData.cpp
diff --git a/Source/bindings/core/v8/V8PerIsolateData.cpp b/Source/bindings/core/v8/V8PerIsolateData.cpp
index bfca715e18ab407bc1631c1be874600e8220e350..9e0f163f98707a0912947f0c0da060195f72d7bc 100644
--- a/Source/bindings/core/v8/V8PerIsolateData.cpp
+++ b/Source/bindings/core/v8/V8PerIsolateData.cpp
@@ -54,12 +54,13 @@ static void useCounterCallback(v8::Isolate* isolate, v8::Isolate::UseCounterFeat
{
switch (feature) {
case v8::Isolate::kUseAsm:
- UseCounter::count(currentExecutionContext(isolate), UseCounter::UseAsm);
+ UseCounter::count(callingExecutionContext(isolate), UseCounter::UseAsm);
+ break;
+ case v8::Isolate::kBreakIterator:
+ UseCounter::count(callingExecutionContext(isolate), UseCounter::BreakIterator);
break;
default:
- // V8 may be a newer version that has some use counters we don't know
- // about yet. FIXME: Add support for v8::Isolate::kBreakIterator and
- // UseCounter::BreakIterator.
+ ASSERT_NOT_REACHED();
break;
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698