Commit 25959978 authored by Mike Stanton's avatar Mike Stanton Committed by Commit Bot

Enable disabled profiler test

test-heap-profiler/AllocationSitesAreVisible was disabled unnecessarily
for quite some time. With a minor fix, it's possible to validate that
an AllocationSite can be seen through the heap profiler interface.

Change-Id: I0ac6c218da12ab268bd08c65926149f5c00e5b06
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2474778
Commit-Queue: Michael Stanton <mvstanton@chromium.org>
Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#70537}
parent 13436edc
......@@ -32,10 +32,6 @@
##############################################################################
# This test is so detailed in it's look at the literals array, I can't
# maintain it until the CL is done.
'test-heap-profiler/AllocationSitesAreVisible': [FAIL, ['lite_mode == True', SKIP]],
# These tests always fail. They are here to test test.py. If
# they don't fail then test.py has failed.
'test-serialize/TestThatAlwaysFails': [FAIL],
......
......@@ -2600,8 +2600,8 @@ TEST(ManyLocalsInSharedContext) {
}
}
TEST(AllocationSitesAreVisible) {
i::FLAG_lazy_feedback_allocation = false;
LocalContext env;
v8::Isolate* isolate = env->GetIsolate();
v8::HandleScope scope(isolate);
......@@ -2623,12 +2623,12 @@ TEST(AllocationSitesAreVisible) {
CHECK(feedback_cell);
const v8::HeapGraphNode* vector = GetProperty(
env->GetIsolate(), feedback_cell, v8::HeapGraphEdge::kInternal, "value");
CHECK_EQ(v8::HeapGraphNode::kArray, vector->GetType());
CHECK_EQ(3, vector->GetChildrenCount());
CHECK_EQ(v8::HeapGraphNode::kHidden, vector->GetType());
CHECK_EQ(4, vector->GetChildrenCount());
// The first value in the feedback vector should be the boilerplate,
// after an AllocationSite.
const v8::HeapGraphEdge* prop = vector->GetChild(2);
// The last value in the feedback vector should be the boilerplate,
// found in AllocationSite.transition_info.
const v8::HeapGraphEdge* prop = vector->GetChild(3);
const v8::HeapGraphNode* allocation_site = prop->GetToNode();
v8::String::Utf8Value name(env->GetIsolate(), allocation_site->GetName());
CHECK_EQ(0, strcmp("system / AllocationSite", *name));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment