Fix --print-code-stubs during VM initialization

BUG=
TEST=

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7539 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
peterhal@chromium.org 2011-04-07 11:29:40 +00:00
parent 39ac44216e
commit c9daea09b9
2 changed files with 4 additions and 2 deletions

View File

@ -492,7 +492,8 @@ void RelocInfo::Print(FILE* out) {
target_address());
} else if (IsPosition(rmode_)) {
PrintF(out, " (%" V8_PTR_PREFIX "d)", data());
} else if (rmode_ == RelocInfo::RUNTIME_ENTRY) {
} else if (rmode_ == RelocInfo::RUNTIME_ENTRY &&
Isolate::Current()->deoptimizer_data() != NULL) {
// Depotimization bailouts are stored as runtime entries.
int id = Deoptimizer::GetDeoptimizationId(
target_address(), Deoptimizer::EAGER);

View File

@ -282,7 +282,8 @@ static int DecodeIt(FILE* f,
} else {
out.AddFormatted(" %s", Code::Kind2String(kind));
}
} else if (rmode == RelocInfo::RUNTIME_ENTRY) {
} else if (rmode == RelocInfo::RUNTIME_ENTRY &&
Isolate::Current()->deoptimizer_data() != NULL) {
// A runtime entry reloinfo might be a deoptimization bailout.
Address addr = relocinfo.target_address();
int id = Deoptimizer::GetDeoptimizationId(addr, Deoptimizer::EAGER);