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

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

Issue 12867002: Fixed two register allocator bugs (off-by-one error/failure propagation). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed MIPS Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/x64/lithium-x64.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 1713 matching lines...) Expand 10 before | Expand all | Expand 10 after
1724 CHECK_NE(NULL, own_descriptors); 1724 CHECK_NE(NULL, own_descriptors);
1725 const v8::HeapGraphNode* own_transitions = GetProperty( 1725 const v8::HeapGraphNode* own_transitions = GetProperty(
1726 map, v8::HeapGraphEdge::kInternal, "transitions"); 1726 map, v8::HeapGraphEdge::kInternal, "transitions");
1727 CHECK_EQ(NULL, own_transitions); 1727 CHECK_EQ(NULL, own_transitions);
1728 } 1728 }
1729 1729
1730 1730
1731 TEST(ManyLocalsInSharedContext) { 1731 TEST(ManyLocalsInSharedContext) {
1732 v8::HandleScope scope; 1732 v8::HandleScope scope;
1733 LocalContext env; 1733 LocalContext env;
1734 int num_objects = 5000; 1734 int num_objects = 6000;
1735 CompileRun( 1735 CompileRun(
1736 "var n = 5000;" 1736 "var n = 6000;"
1737 "var result = [];" 1737 "var result = [];"
1738 "result.push('(function outer() {');" 1738 "result.push('(function outer() {');"
1739 "for (var i = 0; i < n; i++) {" 1739 "for (var i = 0; i < n; i++) {"
1740 " var f = 'function f_' + i + '() { ';" 1740 " var f = 'function f_' + i + '() { ';"
1741 " if (i > 0)" 1741 " if (i > 0)"
1742 " f += 'f_' + (i - 1) + '();';" 1742 " f += 'f_' + (i - 1) + '();';"
1743 " f += ' }';" 1743 " f += ' }';"
1744 " result.push(f);" 1744 " result.push(f);"
1745 "}" 1745 "}"
1746 "result.push('return f_' + (n - 1) + ';');" 1746 "result.push('return f_' + (n - 1) + ';');"
(...skipping 15 matching lines...) Expand all
1762 // Check all the objects have got their names. 1762 // Check all the objects have got their names.
1763 // ... well check just every 8th because otherwise it's too slow in debug. 1763 // ... well check just every 8th because otherwise it's too slow in debug.
1764 for (int i = 0; i < num_objects - 1; i += 8) { 1764 for (int i = 0; i < num_objects - 1; i += 8) {
1765 i::EmbeddedVector<char, 100> var_name; 1765 i::EmbeddedVector<char, 100> var_name;
1766 i::OS::SNPrintF(var_name, "f_%d", i); 1766 i::OS::SNPrintF(var_name, "f_%d", i);
1767 const v8::HeapGraphNode* f_object = GetProperty( 1767 const v8::HeapGraphNode* f_object = GetProperty(
1768 context_object, v8::HeapGraphEdge::kContextVariable, var_name.start()); 1768 context_object, v8::HeapGraphEdge::kContextVariable, var_name.start());
1769 CHECK_NE(NULL, f_object); 1769 CHECK_NE(NULL, f_object);
1770 } 1770 }
1771 } 1771 }
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698