| Index: test/cctest/test-heap-profiler.cc
|
| diff --git a/test/cctest/test-heap-profiler.cc b/test/cctest/test-heap-profiler.cc
|
| index 4416f38973ae1123130fb1f395fd4d5e77d2c34f..c6f00c070ac6219c30056857489f155d4db8037e 100644
|
| --- a/test/cctest/test-heap-profiler.cc
|
| +++ b/test/cctest/test-heap-profiler.cc
|
| @@ -481,6 +481,23 @@ TEST(HeapSnapshotSymbol) {
|
| }
|
|
|
|
|
| +TEST(HeapSnapshotFloat32x4) {
|
| + i::FLAG_harmony_simd = true;
|
| + LocalContext env;
|
| + v8::HandleScope scope(env->GetIsolate());
|
| + v8::HeapProfiler* heap_profiler = env->GetIsolate()->GetHeapProfiler();
|
| +
|
| + CompileRun("a = SIMD.float32x4(1, 2, 3, 4);\n");
|
| + const v8::HeapSnapshot* snapshot = heap_profiler->TakeHeapSnapshot();
|
| + CHECK(ValidateSnapshot(snapshot));
|
| + const v8::HeapGraphNode* global = GetGlobalObject(snapshot);
|
| + const v8::HeapGraphNode* a =
|
| + GetProperty(global, v8::HeapGraphEdge::kProperty, "a");
|
| + CHECK(a);
|
| + CHECK_EQ(a->GetType(), v8::HeapGraphNode::kSimdValue);
|
| +}
|
| +
|
| +
|
| TEST(HeapSnapshotWeakCollection) {
|
| LocalContext env;
|
| v8::HandleScope scope(env->GetIsolate());
|
|
|