Index: src/ppc/lithium-codegen-ppc.cc |
diff --git a/src/ppc/lithium-codegen-ppc.cc b/src/ppc/lithium-codegen-ppc.cc |
index 11ea4bd0495bbb8ea76ac5655453c07dfceb7bd1..6db655e9c1f5936b9684bfc11273cf9666cee876 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; |
} |