Fix bug when generating padding to ensure space for lazy deoptimization.

BUG=v8:1846
Review URL: http://codereview.chromium.org/8725030

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10087 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent e9b6e585
...@@ -4582,7 +4582,7 @@ void LCodeGen::EnsureSpaceForLazyDeopt() { ...@@ -4582,7 +4582,7 @@ void LCodeGen::EnsureSpaceForLazyDeopt() {
padding_size -= Assembler::kInstrSize; padding_size -= Assembler::kInstrSize;
} }
} }
last_lazy_deopt_pc_ = current_pc; last_lazy_deopt_pc_ = masm()->pc_offset();
} }
......
...@@ -4491,7 +4491,7 @@ void LCodeGen::EnsureSpaceForLazyDeopt() { ...@@ -4491,7 +4491,7 @@ void LCodeGen::EnsureSpaceForLazyDeopt() {
__ nop(); __ nop();
} }
} }
last_lazy_deopt_pc_ = current_pc; last_lazy_deopt_pc_ = masm()->pc_offset();
} }
......
...@@ -4518,7 +4518,7 @@ void LCodeGen::EnsureSpaceForLazyDeopt() { ...@@ -4518,7 +4518,7 @@ void LCodeGen::EnsureSpaceForLazyDeopt() {
padding_size -= Assembler::kInstrSize; padding_size -= Assembler::kInstrSize;
} }
} }
last_lazy_deopt_pc_ = current_pc; last_lazy_deopt_pc_ = masm()->pc_offset();
} }
......
...@@ -4189,7 +4189,7 @@ void LCodeGen::EnsureSpaceForLazyDeopt() { ...@@ -4189,7 +4189,7 @@ void LCodeGen::EnsureSpaceForLazyDeopt() {
padding_size -= nop_size; padding_size -= nop_size;
} }
} }
last_lazy_deopt_pc_ = current_pc; last_lazy_deopt_pc_ = masm()->pc_offset();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment