X64: Implement DoComputeOsrOutputFrame and fix Generate_OnStackReplacement.
authorricow@chromium.org <ricow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 24 Feb 2011 12:01:24 +0000 (12:01 +0000)
committerricow@chromium.org <ricow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 24 Feb 2011 12:01:24 +0000 (12:01 +0000)
commit77fffe2207c55991895878043b487e07cf87f7af
tree83fdc38c4b7924945d970d130bd0b17b8e77b049
parentbd2fb51375f3a3cdee7248c20ee47e71f07e24f7
X64: Implement DoComputeOsrOutputFrame and fix Generate_OnStackReplacement.

The existing version does not have a correct implementation of
Generate_OnStackReplacement since we do not correctly find the loop
depth. This is mainly because EmitStackCheck in full-codegen-x64.cc
did not write it and partly due to us reading at the wrong offset
(which had no effect when it was not written in the first place, we
simply got a random number from the next instruction).

The DoComputeOsrOoutputFrame is very similar to the ia32 version.

Review URL: http://codereview.chromium.org/6581028

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6931 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/flag-definitions.h
src/x64/deoptimizer-x64.cc
src/x64/full-codegen-x64.cc