Commit ab16c8a3 authored by jochen's avatar jochen Committed by Commit bot

When generating code for ia32, make sure that there is enough reloc space

Compare with LCodeGen::FinishCode

BUG=none
R=jarin@chromium.org,mstarzinger@chromium.org
LOG=n

Review URL: https://codereview.chromium.org/777243002

Cr-Commit-Position: refs/heads/master@{#25679}
parent bedb774a
......@@ -1104,6 +1104,9 @@ void CodeGenerator::EnsureSpaceForLazyDeopt() {
MarkLazyDeoptSite();
}
void CodeGenerator::EnsureRelocSpaceForLazyDeopt(Handle<Code> code) {}
#undef __
} // namespace compiler
......
......@@ -1159,6 +1159,9 @@ void CodeGenerator::EnsureSpaceForLazyDeopt() {
MarkLazyDeoptSite();
}
void CodeGenerator::EnsureRelocSpaceForLazyDeopt(Handle<Code> code) {}
#undef __
} // namespace compiler
......
......@@ -107,6 +107,8 @@ Handle<Code> CodeGenerator::GenerateCode() {
PopulateDeoptimizationData(result);
EnsureRelocSpaceForLazyDeopt(result);
// Emit a code line info recording stop event.
void* line_info = recorder->DetachJITHandlerData();
LOG_CODE_EVENT(isolate(), CodeEndLinePosInfoRecordEvent(*result, line_info));
......
......@@ -109,6 +109,7 @@ class CodeGenerator FINAL : public GapResolver::Assembler {
InstructionOperand* op, MachineType type);
void AddNopForSmiCodeInlining();
void EnsureSpaceForLazyDeopt();
void EnsureRelocSpaceForLazyDeopt(Handle<Code> code);
void MarkLazyDeoptSite();
// ===========================================================================
......
......@@ -1215,6 +1215,11 @@ void CodeGenerator::EnsureSpaceForLazyDeopt() {
MarkLazyDeoptSite();
}
void CodeGenerator::EnsureRelocSpaceForLazyDeopt(Handle<Code> code) {
Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(code);
}
#undef __
} // namespace compiler
......
......@@ -1105,6 +1105,9 @@ void CodeGenerator::EnsureSpaceForLazyDeopt() {
MarkLazyDeoptSite();
}
void CodeGenerator::EnsureRelocSpaceForLazyDeopt(Handle<Code> code) {}
#undef __
} // namespace compiler
......
......@@ -1380,6 +1380,9 @@ void CodeGenerator::EnsureSpaceForLazyDeopt() {
MarkLazyDeoptSite();
}
void CodeGenerator::EnsureRelocSpaceForLazyDeopt(Handle<Code> code) {}
#undef __
} // namespace compiler
......
......@@ -1249,6 +1249,9 @@ void CodeGenerator::EnsureSpaceForLazyDeopt() {
MarkLazyDeoptSite();
}
void CodeGenerator::EnsureRelocSpaceForLazyDeopt(Handle<Code> code) {}
#undef __
} // namespace internal
......
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