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

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

Issue 2424433002: [ic] Delete old KeyedLoadIC code (Closed)
Patch Set: fix failing test Created 4 years, 2 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-api.cc ('k') | no next file » | 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 2425 matching lines...) Expand 10 before | Expand all | Expand 10 after
2436 "::(GC roots)", 2436 "::(GC roots)",
2437 "::(Strong roots)", 2437 "::(Strong roots)",
2438 "code_stubs::", 2438 "code_stubs::",
2439 "::(ArraySingleArgumentConstructorStub code)" 2439 "::(ArraySingleArgumentConstructorStub code)"
2440 }; 2440 };
2441 const v8::HeapGraphNode* node = GetNodeByPath(snapshot, 2441 const v8::HeapGraphNode* node = GetNodeByPath(snapshot,
2442 stub_path, arraysize(stub_path)); 2442 stub_path, arraysize(stub_path));
2443 CHECK(node); 2443 CHECK(node);
2444 2444
2445 const char* builtin_path1[] = {"::(GC roots)", "::(Builtins)", 2445 const char* builtin_path1[] = {"::(GC roots)", "::(Builtins)",
2446 "::(KeyedLoadIC_Megamorphic builtin)"}; 2446 "::(KeyedLoadIC_Slow builtin)"};
2447 node = GetNodeByPath(snapshot, builtin_path1, arraysize(builtin_path1)); 2447 node = GetNodeByPath(snapshot, builtin_path1, arraysize(builtin_path1));
2448 CHECK(node); 2448 CHECK(node);
2449 2449
2450 const char* builtin_path2[] = {"::(GC roots)", "::(Builtins)", 2450 const char* builtin_path2[] = {"::(GC roots)", "::(Builtins)",
2451 "::(CompileLazy builtin)"}; 2451 "::(CompileLazy builtin)"};
2452 node = GetNodeByPath(snapshot, builtin_path2, arraysize(builtin_path2)); 2452 node = GetNodeByPath(snapshot, builtin_path2, arraysize(builtin_path2));
2453 CHECK(node); 2453 CHECK(node);
2454 v8::String::Utf8Value node_name(node->GetName()); 2454 v8::String::Utf8Value node_name(node->GetName());
2455 CHECK_EQ(0, strcmp("(CompileLazy builtin)", *node_name)); 2455 CHECK_EQ(0, strcmp("(CompileLazy builtin)", *node_name));
2456 } 2456 }
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
3102 " a[i] = i;\n" 3102 " a[i] = i;\n"
3103 " for (var i = 0; i < 3; ++i)\n" 3103 " for (var i = 0; i < 3; ++i)\n"
3104 " a.shift();\n" 3104 " a.shift();\n"
3105 "}\n"); 3105 "}\n");
3106 3106
3107 CcTest::CollectGarbage(v8::internal::NEW_SPACE); 3107 CcTest::CollectGarbage(v8::internal::NEW_SPACE);
3108 // Should not crash. 3108 // Should not crash.
3109 3109
3110 heap_profiler->StopSamplingHeapProfiler(); 3110 heap_profiler->StopSamplingHeapProfiler();
3111 } 3111 }
OLDNEW
« no previous file with comments | « test/cctest/test-api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698