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

Side by Side Diff: test/mjsunit/unbox-double-arrays.js

Issue 32643004: Add a soft-deopt in keyed element access when current IC is pre-monomorphic and no type feedback wa… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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/type-info.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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 test_various_stores(large_array, 338 test_various_stores(large_array,
339 Infinity, 339 Infinity,
340 -Infinity, 340 -Infinity,
341 expected_array_value(7)); 341 expected_array_value(7));
342 342
343 test_various_loads7(large_array, 343 test_various_loads7(large_array,
344 Infinity, 344 Infinity,
345 -Infinity, 345 -Infinity,
346 expected_array_value(7)); 346 expected_array_value(7));
347 347
348 assertOptimized(test_various_stores);
349
350 // Make sure that we haven't converted from fast double. 348 // Make sure that we haven't converted from fast double.
351 assertTrue(%HasFastDoubleElements(large_array)); 349 assertTrue(%HasFastDoubleElements(large_array));
352 } 350 }
353 351
354 // Force gc here to start with a clean heap if we repeat this test multiple 352 // Force gc here to start with a clean heap if we repeat this test multiple
355 // times. 353 // times.
356 gc(); 354 gc();
357 testOneArrayType(make_object_like_array); 355 testOneArrayType(make_object_like_array);
358 testOneArrayType(Array); 356 testOneArrayType(Array);
359 357
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 assertEquals(expected_array_value(2), large_array4[2]); 540 assertEquals(expected_array_value(2), large_array4[2]);
543 } 541 }
544 542
545 test_setter(); 543 test_setter();
546 test_setter(); 544 test_setter();
547 test_setter(); 545 test_setter();
548 %OptimizeFunctionOnNextCall(test_setter); 546 %OptimizeFunctionOnNextCall(test_setter);
549 test_setter(); 547 test_setter();
550 test_setter(); 548 test_setter();
551 test_setter(); 549 test_setter();
OLDNEW
« no previous file with comments | « src/type-info.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698