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

Unified Diff: test/cctest/test-serialize.cc

Issue 17157006: Remove unused counters (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/v8-counters.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-serialize.cc
diff --git a/test/cctest/test-serialize.cc b/test/cctest/test-serialize.cc
index 08c1375d3e62881e2fc9f80b19fae37e7ba3dd05..f95ff657251ba1f493fde17c7a7aad46826206f2 100644
--- a/test/cctest/test-serialize.cc
+++ b/test/cctest/test-serialize.cc
@@ -109,10 +109,10 @@ TEST(ExternalReferenceEncoder) {
Encode(encoder, Builtins::kArrayCode));
CHECK_EQ(make_code(v8::internal::RUNTIME_FUNCTION, Runtime::kAbort),
Encode(encoder, Runtime::kAbort));
- ExternalReference keyed_load_function_prototype =
- ExternalReference(isolate->counters()->keyed_load_function_prototype());
- CHECK_EQ(make_code(STATS_COUNTER, Counters::k_keyed_load_function_prototype),
- encoder.Encode(keyed_load_function_prototype.address()));
+ ExternalReference total_compile_size =
+ ExternalReference(isolate->counters()->total_compile_size());
+ CHECK_EQ(make_code(STATS_COUNTER, Counters::k_total_compile_size),
+ encoder.Encode(total_compile_size.address()));
ExternalReference stack_limit_address =
ExternalReference::address_of_stack_limit(isolate);
CHECK_EQ(make_code(UNCLASSIFIED, 4),
@@ -147,12 +147,12 @@ TEST(ExternalReferenceDecoder) {
CHECK_EQ(AddressOf(Runtime::kAbort),
decoder.Decode(make_code(v8::internal::RUNTIME_FUNCTION,
Runtime::kAbort)));
- ExternalReference keyed_load_function =
- ExternalReference(isolate->counters()->keyed_load_function_prototype());
- CHECK_EQ(keyed_load_function.address(),
+ ExternalReference total_compile_size =
+ ExternalReference(isolate->counters()->total_compile_size());
+ CHECK_EQ(total_compile_size.address(),
decoder.Decode(
make_code(STATS_COUNTER,
- Counters::k_keyed_load_function_prototype)));
+ Counters::k_total_compile_size)));
CHECK_EQ(ExternalReference::address_of_stack_limit(isolate).address(),
decoder.Decode(make_code(UNCLASSIFIED, 4)));
CHECK_EQ(ExternalReference::address_of_real_stack_limit(isolate).address(),
« no previous file with comments | « src/v8-counters.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698