Reviewers: jarin, Michael Starzinger,

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

Compare with LCodeGen::FinishCode

BUG=none
[email protected],[email protected]
LOG=n

Please review this at https://codereview.chromium.org/777243002/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+6, -0 lines):
  M src/compiler/code-generator.cc


Index: src/compiler/code-generator.cc
diff --git a/src/compiler/code-generator.cc b/src/compiler/code-generator.cc
index d4622c0a351d1962c415bee3d9f92050e1e53d50..49b39f61760a2a3d6047c42e0989e457ff45323c 100644
--- a/src/compiler/code-generator.cc
+++ b/src/compiler/code-generator.cc
@@ -107,6 +107,12 @@ Handle<Code> CodeGenerator::GenerateCode() {

   PopulateDeoptimizationData(result);

+#if V8_TARGET_ARCH_IA32
+  if (!info->IsStub()) {
+    Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(result);
+  }
+#endif
+
   // Emit a code line info recording stop event.
   void* line_info = recorder->DetachJITHandlerData();
LOG_CODE_EVENT(isolate(), CodeEndLinePosInfoRecordEvent(*result, line_info));


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to