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

Unified Diff: test/cctest/compiler/test-run-intrinsics.cc

Issue 1821123002: [intrinsics] Remove unused intrinsic %_IncrementStatsCounter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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 | « src/runtime/runtime-internal.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/compiler/test-run-intrinsics.cc
diff --git a/test/cctest/compiler/test-run-intrinsics.cc b/test/cctest/compiler/test-run-intrinsics.cc
index 6e9ebf2282bd1b386a09521045ec97ef6f76d8b0..6aa5f391adeb6e392153148a58071df71a183747 100644
--- a/test/cctest/compiler/test-run-intrinsics.cc
+++ b/test/cctest/compiler/test-run-intrinsics.cc
@@ -34,31 +34,6 @@ TEST(ClassOf) {
}
-#define COUNTER_NAME "hurz"
-
-static int* LookupCounter(const char* name) {
- static int counter = 1234;
- return strcmp(name, COUNTER_NAME) == 0 ? &counter : nullptr;
-}
-
-
-TEST(IncrementStatsCounter) {
- FLAG_native_code_counters = true;
- reinterpret_cast<v8::Isolate*>(CcTest::InitIsolateOnce())
- ->SetCounterFunction(LookupCounter);
- FunctionTester T(
- "(function() { %_IncrementStatsCounter('" COUNTER_NAME "'); })", flags);
- StatsCounter counter(T.main_isolate(), COUNTER_NAME);
- if (!counter.Enabled()) return;
-
- int old_value = *counter.GetInternalPointer();
- T.CheckCall(T.undefined());
- CHECK_EQ(old_value + 1, *counter.GetInternalPointer());
-}
-
-#undef COUNTER_NAME
-
-
TEST(IsArray) {
FunctionTester T("(function(a) { return %_IsArray(a); })", flags);
« no previous file with comments | « src/runtime/runtime-internal.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698