Revision: 10843
Author: [email protected]
Date: Mon Feb 27 06:24:08 2012
Log: MIPS: Profiler experiments: Fix debugger in the presence of
self-optimization headers
Port r10834 (0ce8cc524).
Note: this commit is a simple fix-up for
FullCodeGenerator::self_optimization_header_size().
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/9466050
Patch from Daniel Kalmar <[email protected]>.
http://code.google.com/p/v8/source/detail?r=10843
Modified:
/branches/bleeding_edge/src/mips/full-codegen-mips.cc
=======================================
--- /branches/bleeding_edge/src/mips/full-codegen-mips.cc Sun Feb 26
23:49:14 2012
+++ /branches/bleeding_edge/src/mips/full-codegen-mips.cc Mon Feb 27
06:24:08 2012
@@ -120,7 +120,7 @@
int FullCodeGenerator::self_optimization_header_size() {
- return 0; // TODO(jkummerow): determine correct value.
+ return 11 * Instruction::kInstrSize;
}
@@ -164,7 +164,7 @@
Handle<Code> compile_stub(
isolate()->builtins()->builtin(Builtins::kLazyRecompile));
__ Jump(compile_stub, RelocInfo::CODE_TARGET, eq, a3,
Operand(zero_reg));
- ASSERT(masm_->pc_offset() == self_optimization_header_size());
+ ASSERT_EQ(masm_->pc_offset(), self_optimization_header_size());
}
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev