Index: src/ppc/lithium-codegen-ppc.cc |
diff --git a/src/ppc/lithium-codegen-ppc.cc b/src/ppc/lithium-codegen-ppc.cc |
index 716486ec4e28d161cafd0bc667d4fa98f9941732..e54371e4d7145f02f6adf8f056df57ca3182f006 100644 |
--- a/src/ppc/lithium-codegen-ppc.cc |
+++ b/src/ppc/lithium-codegen-ppc.cc |
@@ -50,8 +50,12 @@ 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(); |
+ if (FLAG_enable_embedded_constant_pool && !rc) { |
+ masm()->AbortConstantPoolBuilding(); |
+ } |
+ return rc; |
} |