// Copyright 2014 the V8 project authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.// Flags: --allow-natives-syntaxvarbig=1e10;varbackup=newFloat64Array(1);functionmult0(val){varprod=val*big;backup[0]=prod;varrounded=Math.round(prod);assertEquals(prod,backup[0]);returnrounded;}varcount=5;for(vari=0;i<count;i++){if(i==count-1)%OptimizeFunctionOnNextCall(mult0);varresult=mult0(-1);assertEquals(result,-big);}