OLD | NEW |
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 Loading... |
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 Loading... |
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(); |
OLD | NEW |