| Index: test/mjsunit/compiler/assignment.js
|
| ===================================================================
|
| --- test/mjsunit/compiler/assignment.js (revision 4699)
|
| +++ test/mjsunit/compiler/assignment.js (working copy)
|
| @@ -262,3 +262,15 @@
|
| }
|
|
|
| bar_loop();
|
| +
|
| +
|
| +// Test for assignment using a keyed store ic:
|
| +function store_i_in_element_i_of_object_i() {
|
| + var i = new Object();
|
| + i[i] = i;
|
| +}
|
| +
|
| +// Run three times to exercise caches.
|
| +store_i_in_element_i_of_object_i();
|
| +store_i_in_element_i_of_object_i();
|
| +store_i_in_element_i_of_object_i();
|
|
|