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

Side by Side Diff: test/cctest/test-heap-profiler.cc

Issue 1294513004: [simd.js] Update to spec version 0.8.2. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 5 years, 4 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 unified diff | Download patch
« no previous file with comments | « test/cctest/test-heap.cc ('k') | test/cctest/test-simd.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 const v8::HeapGraphNode* var = 496 const v8::HeapGraphNode* var =
497 GetProperty(global, v8::HeapGraphEdge::kProperty, var_name); 497 GetProperty(global, v8::HeapGraphEdge::kProperty, var_name);
498 CHECK(var); 498 CHECK(var);
499 CHECK_EQ(var->GetType(), v8::HeapGraphNode::kSimdValue); 499 CHECK_EQ(var->GetType(), v8::HeapGraphNode::kSimdValue);
500 } 500 }
501 501
502 502
503 TEST(HeapSnapshotSimd) { 503 TEST(HeapSnapshotSimd) {
504 CheckSimdSnapshot("a = SIMD.Float32x4();\n", "a"); 504 CheckSimdSnapshot("a = SIMD.Float32x4();\n", "a");
505 CheckSimdSnapshot("a = SIMD.Int32x4();\n", "a"); 505 CheckSimdSnapshot("a = SIMD.Int32x4();\n", "a");
506 CheckSimdSnapshot("a = SIMD.Uint32x4();\n", "a");
506 CheckSimdSnapshot("a = SIMD.Bool32x4();\n", "a"); 507 CheckSimdSnapshot("a = SIMD.Bool32x4();\n", "a");
507 CheckSimdSnapshot("a = SIMD.Int16x8();\n", "a"); 508 CheckSimdSnapshot("a = SIMD.Int16x8();\n", "a");
509 CheckSimdSnapshot("a = SIMD.Uint16x8();\n", "a");
508 CheckSimdSnapshot("a = SIMD.Bool16x8();\n", "a"); 510 CheckSimdSnapshot("a = SIMD.Bool16x8();\n", "a");
509 CheckSimdSnapshot("a = SIMD.Int8x16();\n", "a"); 511 CheckSimdSnapshot("a = SIMD.Int8x16();\n", "a");
512 CheckSimdSnapshot("a = SIMD.Uint8x16();\n", "a");
510 CheckSimdSnapshot("a = SIMD.Bool8x16();\n", "a"); 513 CheckSimdSnapshot("a = SIMD.Bool8x16();\n", "a");
511 } 514 }
512 515
513 516
514 TEST(HeapSnapshotWeakCollection) { 517 TEST(HeapSnapshotWeakCollection) {
515 LocalContext env; 518 LocalContext env;
516 v8::HandleScope scope(env->GetIsolate()); 519 v8::HandleScope scope(env->GetIsolate());
517 v8::HeapProfiler* heap_profiler = env->GetIsolate()->GetHeapProfiler(); 520 v8::HeapProfiler* heap_profiler = env->GetIsolate()->GetHeapProfiler();
518 521
519 CompileRun( 522 CompileRun(
(...skipping 2270 matching lines...) Expand 10 before | Expand all | Expand 10 after
2790 map.AddRange(ToAddress(0x180), 0x80, 6U); 2793 map.AddRange(ToAddress(0x180), 0x80, 6U);
2791 map.AddRange(ToAddress(0x180), 0x80, 7U); 2794 map.AddRange(ToAddress(0x180), 0x80, 7U);
2792 CHECK_EQ(7u, map.GetTraceNodeId(ToAddress(0x180))); 2795 CHECK_EQ(7u, map.GetTraceNodeId(ToAddress(0x180)));
2793 CHECK_EQ(5u, map.GetTraceNodeId(ToAddress(0x200))); 2796 CHECK_EQ(5u, map.GetTraceNodeId(ToAddress(0x200)));
2794 CHECK_EQ(3u, map.size()); 2797 CHECK_EQ(3u, map.size());
2795 2798
2796 map.Clear(); 2799 map.Clear();
2797 CHECK_EQ(0u, map.size()); 2800 CHECK_EQ(0u, map.size());
2798 CHECK_EQ(0u, map.GetTraceNodeId(ToAddress(0x400))); 2801 CHECK_EQ(0u, map.GetTraceNodeId(ToAddress(0x400)));
2799 } 2802 }
OLDNEW
« no previous file with comments | « test/cctest/test-heap.cc ('k') | test/cctest/test-simd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698