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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 expected_array_value(7)); | 271 expected_array_value(7)); |
272 | 272 |
273 delete large_array[5]; | 273 delete large_array[5]; |
274 delete large_array[6]; | 274 delete large_array[6]; |
275 test_various_loads6(large_array, | 275 test_various_loads6(large_array, |
276 undefined, | 276 undefined, |
277 undefined, | 277 undefined, |
278 expected_array_value(7)); | 278 expected_array_value(7)); |
279 | 279 |
280 %DeoptimizeFunction(test_various_loads6); | 280 %DeoptimizeFunction(test_various_loads6); |
281 gc(); | 281 %ClearFunctionTypeFeedback(test_various_stores); |
| 282 %ClearFunctionTypeFeedback(test_various_loads7); |
282 | 283 |
283 // Test stores for non-NaN. | 284 // Test stores for non-NaN. |
284 var large_array = new allocator(large_array_size); | 285 var large_array = new allocator(large_array_size); |
285 force_to_fast_double_array(large_array); | 286 force_to_fast_double_array(large_array); |
286 %OptimizeFunctionOnNextCall(test_various_stores); | 287 %OptimizeFunctionOnNextCall(test_various_stores); |
287 test_various_stores(large_array, | 288 test_various_stores(large_array, |
288 expected_array_value(5), | 289 expected_array_value(5), |
289 expected_array_value(6), | 290 expected_array_value(6), |
290 expected_array_value(7)); | 291 expected_array_value(7)); |
291 | 292 |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 assertEquals(expected_array_value(2), large_array4[2]); | 538 assertEquals(expected_array_value(2), large_array4[2]); |
538 } | 539 } |
539 | 540 |
540 test_setter(); | 541 test_setter(); |
541 test_setter(); | 542 test_setter(); |
542 test_setter(); | 543 test_setter(); |
543 %OptimizeFunctionOnNextCall(test_setter); | 544 %OptimizeFunctionOnNextCall(test_setter); |
544 test_setter(); | 545 test_setter(); |
545 test_setter(); | 546 test_setter(); |
546 test_setter(); | 547 test_setter(); |
OLD | NEW |