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

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

Issue 1135753002: Add support for new-ish V8 use counters (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix merge Created 5 years, 7 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 | Source/core/frame/UseCounter.h » ('j') | 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 60420989c06c785084fac723e8cc0ecdbf6cd024..7f375e2e1563725e6d4da431d55808c0c4cb549c 100644
--- a/Source/bindings/core/v8/V8PerIsolateData.cpp
+++ b/Source/bindings/core/v8/V8PerIsolateData.cpp
@@ -66,6 +66,18 @@ static void useCounterCallback(v8::Isolate* isolate, v8::Isolate::UseCounterFeat
case v8::Isolate::kLegacyConst:
UseCounter::count(callingExecutionContext(isolate), UseCounter::LegacyConst);
break;
+ case v8::Isolate::kMarkDequeOverflow:
+ UseCounter::count(callingExecutionContext(isolate), UseCounter::MarkDequeOverflow);
+ break;
+ case v8::Isolate::kStoreBufferOverflow:
+ UseCounter::count(callingExecutionContext(isolate), UseCounter::StoreBufferOverflow);
+ break;
+ case v8::Isolate::kSlotsBufferOverflow:
+ UseCounter::count(callingExecutionContext(isolate), UseCounter::SlotsBufferOverflow);
+ break;
+ case v8::Isolate::kObjectObserve:
+ UseCounter::count(callingExecutionContext(isolate), UseCounter::ObjectObserve);
+ break;
default:
// This can happen if V8 has added counters that this version of Blink
// does not know about. It's harmless.
« no previous file with comments | « no previous file | Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698