| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 // This several iterations should cause call IC for BeingReplaced call. This IC | 74 // This several iterations should cause call IC for BeingReplaced call. This IC |
| 75 // will keep reference to code object of BeingRepalced function. This reference | 75 // will keep reference to code object of BeingRepalced function. This reference |
| 76 // should also be patched. Unfortunately, this is a manually checked fact (from | 76 // should also be patched. Unfortunately, this is a manually checked fact (from |
| 77 // debugger or debug print) and doesn't work as an automatic test. | 77 // debugger or debug print) and doesn't work as an automatic test. |
| 78 CallM(NoOp); | 78 CallM(NoOp); |
| 79 CallM(NoOp); | 79 CallM(NoOp); |
| 80 CallM(NoOp); | 80 CallM(NoOp); |
| 81 | 81 |
| 82 var res = CallM(Changer); | 82 var res = CallM(Changer); |
| 83 assertEquals("Capybara", res); | 83 assertEquals("Capybara", res); |
| OLD | NEW |