Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1266)

Unified Diff: src/ppc/lithium-codegen-ppc.cc

Issue 1131783003: Embedded constant pools. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address remaining comments. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..ec7860bcbd696c00f507db46a429783b5103c551 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()
rmcilroy 2015/06/01 09:52:09 Won't this cause issues in non-debug code if the l
MTBrandyberry 2015/06/01 21:01:30 Not quite. The label gets deleted upon destructio
rmcilroy 2015/06/02 13:57:21 The more I think about it the less keen I am to be
MTBrandyberry 2015/06/02 15:36:10 Loading the offset from the code object is problem
rmcilroy 2015/06/02 16:40:12 OK.
MTBrandyberry 2015/06/02 16:55:31 sgtm
+ masm()->EmitConstantPool();
+ }
+#endif
+ return rc;
}

Powered by Google App Engine
This is Rietveld 408576698