Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
|
Jakob Kummerow
2013/10/01 11:59:20
You can drop this file; it is already present as t
danno
2013/10/23 11:46:51
Done.
| |
| 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 |
| 11 // with the distribution. | 11 // with the distribution. |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 38 return a; | 38 return a; |
| 39 } | 39 } |
| 40 return 0; | 40 return 0; |
| 41 } | 41 } |
| 42 | 42 |
| 43 assertEquals(0, foo(1, funky)); | 43 assertEquals(0, foo(1, funky)); |
| 44 assertEquals(0, foo(1, funky)); | 44 assertEquals(0, foo(1, funky)); |
| 45 %OptimizeFunctionOnNextCall(foo); | 45 %OptimizeFunctionOnNextCall(foo); |
| 46 assertEquals(0, foo(1, funky)); | 46 assertEquals(0, foo(1, funky)); |
| 47 assertEquals(2, foo(1, function() { return true; })); | 47 assertEquals(2, foo(1, function() { return true; })); |
| OLD | NEW |