 Chromium Code Reviews
 Chromium Code Reviews Issue 6821009:
  Introduce runtime function %OptimizeFunctionOnNextCall to manually trigger optimization.  (Closed) 
  Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
    
  
    Issue 6821009:
  Introduce runtime function %OptimizeFunctionOnNextCall to manually trigger optimization.  (Closed) 
  Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge| Index: test/mjsunit/compiler/regress-loadfield.js | 
| diff --git a/test/mjsunit/compiler/regress-loadfield.js b/test/mjsunit/compiler/regress-loadfield.js | 
| index a2028919000ffce52bbd40b5ebefe02684e4a482..664e7bbaf1c1e98d3358ac77145bdc6775bd66cc 100644 | 
| --- a/test/mjsunit/compiler/regress-loadfield.js | 
| +++ b/test/mjsunit/compiler/regress-loadfield.js | 
| @@ -25,6 +25,8 @@ | 
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 
| +// Flags: --allow-natives-syntax | 
| + | 
| // Regression test for GVN on field loads. | 
| function bar() {} | 
| @@ -58,8 +60,11 @@ a.p9 = ""; | 
| a.p10 = ""; | 
| a.p11 = ""; | 
| a.foo = "foo"; | 
| -for (var i = 0; i < 100000; i++) { | 
| +for (var i = 0; i < 5; i++) { | 
| test(a); | 
| } | 
| +%OptimizeFunctionOnNextCall(bar); | 
| 
Mads Ager (chromium)
2011/04/11 11:06:38
Shouldn't be necessary to optimize bar here. It sh
 
Jakob Kummerow
2011/04/11 12:55:51
Done.
 | 
| +%OptimizeFunctionOnNextCall(test); | 
| +test(a); | 
| test(""); |