| Index: src/ppc/lithium-codegen-ppc.cc
|
| diff --git a/src/ppc/lithium-codegen-ppc.cc b/src/ppc/lithium-codegen-ppc.cc
|
| index 443d8e706be47813f0b1210ee12accfa3661bb96..bd4b810648fdef847aa230e051d2d0b649a89b6f 100644
|
| --- a/src/ppc/lithium-codegen-ppc.cc
|
| +++ b/src/ppc/lithium-codegen-ppc.cc
|
| @@ -50,8 +50,15 @@ bool LCodeGen::GenerateCode() {
|
| // the frame (that is done in GeneratePrologue).
|
| FrameScope frame_scope(masm_, StackFrame::NONE);
|
|
|
| - return GeneratePrologue() && GenerateBody() && GenerateDeferredCode() &&
|
| - GenerateJumpTable() && GenerateSafepointTable();
|
| + bool rc = GeneratePrologue() && GenerateBody() && GenerateDeferredCode() &&
|
| + GenerateJumpTable() && GenerateSafepointTable();
|
| +#ifdef DEBUG
|
| + if (!rc) {
|
| + // Avoid DCHECK(!is_linked()) failure in ~Label()
|
| + masm()->EmitConstantPool();
|
| + }
|
| +#endif
|
| + return rc;
|
| }
|
|
|
|
|
| @@ -373,6 +380,8 @@ bool LCodeGen::GenerateJumpTable() {
|
| __ Jump(ip);
|
| }
|
|
|
| + masm()->EmitConstantPool();
|
| +
|
| // The deoptimization jump table is the last part of the instruction
|
| // sequence. Mark the generated code as done unless we bailed out.
|
| if (!is_aborted()) status_ = DONE;
|
|
|