Reviewers: Mads Ager,

Message:
Please review.

This fixes a bunch of tests that didn't trigger optimization before because
their loops didn't run long enough.
It also reduces the time needed for the tests run by "tools/test.py --arch=x64
-j16" on my machine from 38 to 36 seconds :-)

Description:
Introduce runtime function %OptimizeFunctionOnNextCall to manually trigger
optimization.


TEST=existing unit tests still pass


Please review this at http://codereview.chromium.org/6821009/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/objects-inl.h
  M src/objects.h
  M src/runtime-profiler.cc
  M src/runtime.h
  M src/runtime.cc
  M test/mjsunit/compiler/array-length.js
  M test/mjsunit/compiler/assignment-deopt.js
  M test/mjsunit/compiler/count-deopt.js
  M test/mjsunit/compiler/deopt-args.js
  M test/mjsunit/compiler/inline-compare.js
  M test/mjsunit/compiler/inline-global-access.js
  M test/mjsunit/compiler/inline-param.js
  M test/mjsunit/compiler/inline-two.js
  M test/mjsunit/compiler/optimized-function-calls.js
  M test/mjsunit/compiler/pic.js
  M test/mjsunit/compiler/property-calls.js
  M test/mjsunit/compiler/property-refs.js
  M test/mjsunit/compiler/property-stores.js
  M test/mjsunit/compiler/recursive-deopt.js
  M test/mjsunit/compiler/regress-3218915.js
  M test/mjsunit/compiler/regress-loadfield.js
  M test/mjsunit/compiler/regress-max.js
  M test/mjsunit/compiler/regress-stacktrace-methods.js
  M test/mjsunit/compiler/simple-deopt.js
  M test/mjsunit/compiler/simple-inlining.js
  M test/mjsunit/compiler/switch-bailout.js
  M test/mjsunit/const-eval-init.js
  M test/mjsunit/external-array.js
  M test/mjsunit/regress/regress-1079.js
  M test/mjsunit/regress/regress-1106.js
  M test/mjsunit/regress/regress-1166.js
  M test/mjsunit/regress/regress-1167.js
  M test/mjsunit/regress/regress-1210.js
  M test/mjsunit/regress/regress-1229.js
  M test/mjsunit/regress/regress-1237.js
  M test/mjsunit/regress/regress-3218915.js
  M test/mjsunit/regress/regress-962.js
  M test/mjsunit/string-charcodeat.js
  M test/mjsunit/sum-0-plus-undefined-is-NaN.js


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to