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

Side by Side Diff: test/mjsunit/elements-transition-hoisting.js

Issue 14996004: Track heap objects. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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/stub-cache-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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 testExactMapHoisting2(new Array(5)); 122 testExactMapHoisting2(new Array(5));
123 // Temporarily disabled - see bug 2176. 123 // Temporarily disabled - see bug 2176.
124 // assertTrue(2 != %GetOptimizationStatus(testExactMapHoisting2)); 124 // assertTrue(2 != %GetOptimizationStatus(testExactMapHoisting2));
125 %ClearFunctionTypeFeedback(testExactMapHoisting2); 125 %ClearFunctionTypeFeedback(testExactMapHoisting2);
126 126
127 // Make sure that non-element related map checks do get hoisted if they use 127 // Make sure that non-element related map checks do get hoisted if they use
128 // the transitioned map for the check and all transitions that they depend 128 // the transitioned map for the check and all transitions that they depend
129 // upon can hoisted, too. 129 // upon can hoisted, too.
130 function testExactMapHoisting3(a) { 130 function testExactMapHoisting3(a) {
131 var object = new Object(); 131 var object = new Object();
132 a.foo = 0; 132 a.foo = null;
133 a[0] = 0; 133 a[0] = 0;
134 a[1] = 1; 134 a[1] = 1;
135 var count = 3; 135 var count = 3;
136 do { 136 do {
137 a[1] = 2.5; 137 a[1] = 2.5;
138 a.foo = object; // This map check should be hoistable because all element s 138 a.foo = object; // This map check should be hoistable because all element s
139 // transitions in the loop can also be hoisted. 139 // transitions in the loop can also be hoisted.
140 } while (--count > 0); 140 } while (--count > 0);
141 } 141 }
142 142
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 testStraightLineDupeElinination(new Array(5),0,.5,0,0,0); 233 testStraightLineDupeElinination(new Array(5),0,.5,0,0,0);
234 testStraightLineDupeElinination(new Array(5),0,0,.5,0,0); 234 testStraightLineDupeElinination(new Array(5),0,0,.5,0,0);
235 testStraightLineDupeElinination(new Array(5),0,0,0,.5,0); 235 testStraightLineDupeElinination(new Array(5),0,0,0,.5,0);
236 testStraightLineDupeElinination(new Array(5),0,0,0,0,.5); 236 testStraightLineDupeElinination(new Array(5),0,0,0,0,.5);
237 %OptimizeFunctionOnNextCall(testStraightLineDupeElinination); 237 %OptimizeFunctionOnNextCall(testStraightLineDupeElinination);
238 testStraightLineDupeElinination(new Array(5),0,0,0,0,0); 238 testStraightLineDupeElinination(new Array(5),0,0,0,0,0);
239 testStraightLineDupeElinination(new Array(5),0,0,0,0,0); 239 testStraightLineDupeElinination(new Array(5),0,0,0,0,0);
240 assertTrue(2 != %GetOptimizationStatus(testStraightLineDupeElinination)); 240 assertTrue(2 != %GetOptimizationStatus(testStraightLineDupeElinination));
241 %ClearFunctionTypeFeedback(testStraightLineDupeElinination); 241 %ClearFunctionTypeFeedback(testStraightLineDupeElinination);
242 } 242 }
OLDNEW
« no previous file with comments | « src/x64/stub-cache-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698