Chromium Code Reviews| Index: test/cctest/test-heap-profiler.cc |
| diff --git a/test/cctest/test-heap-profiler.cc b/test/cctest/test-heap-profiler.cc |
| index fdaf9fa6c9a7fa111848b0b20bc57f39aa087fe4..23472a571ab2d3aa4f9da30b56dfbfb7c6f33f97 100644 |
| --- a/test/cctest/test-heap-profiler.cc |
| +++ b/test/cctest/test-heap-profiler.cc |
| @@ -344,6 +344,15 @@ TEST(HeapSnapshotCodeObjects) { |
| GetProperty(lazy, v8::HeapGraphEdge::kInternal, "shared"); |
| CHECK_NE(NULL, lazy_code); |
| + // Check that there's no strong next_code_link. There might be a weak one |
| + // but might be not, so we can't check that fact. |
| + const v8::HeapGraphNode* code = |
| + GetProperty(compiled_code, v8::HeapGraphEdge::kInternal, "code"); |
|
yurys
2014/01/27 15:50:57
Can we force presence of the weak link in the test
alph
2014/01/29 13:41:33
I'm not sure how to do that. Once I find a way, I'
|
| + CHECK_NE(NULL, code); |
| + const v8::HeapGraphNode* next_code_link = |
| + GetProperty(code, v8::HeapGraphEdge::kInternal, "code"); |
| + CHECK_EQ(NULL, next_code_link); |
| + |
| // Verify that non-compiled code doesn't contain references to "x" |
| // literal, while compiled code does. The scope info is stored in FixedArray |
| // objects attached to the SharedFunctionInfo. |