Reland r11425 "Re-enable optimization for hot functions that have optimization disabl...
authorulan@chromium.org <ulan@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 11 Jun 2012 16:57:27 +0000 (16:57 +0000)
committerulan@chromium.org <ulan@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 11 Jun 2012 16:57:27 +0000 (16:57 +0000)
commit75a1fa91ef18cecf9ef9389fc9436c3d254df5a8
treeadd07954d50f841eef81ac38a7f38164787aba68
parentd67e1d4fe96d20975b932c6c409cec8d2a6a12db
Reland r11425 "Re-enable optimization for hot functions that have optimization disabled due to many deopts."

Fix performance regressions introduced in r11425 by
- counting number of function deoptimizations instead of function optimizations,
- packing several counters into one field of shared function info.

BUG=v8:2040,121196
R=jkummerow@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10534063

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11766 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/deoptimizer.cc
src/heap.cc
src/heap.h
src/ia32/lithium-codegen-ia32.cc
src/objects-inl.h
src/objects.cc
src/objects.h
src/runtime-profiler.cc