Index: src/compiler/code-generator.cc |
diff --git a/src/compiler/code-generator.cc b/src/compiler/code-generator.cc |
index 313567ed87fe6e2fe095b841aec63d0620ede5a7..68d4cc38575eb9438d6ee354f756276b6878f23f 100644 |
--- a/src/compiler/code-generator.cc |
+++ b/src/compiler/code-generator.cc |
@@ -78,10 +78,12 @@ Handle<Code> CodeGenerator::GenerateCode() { |
if (linkage()->GetIncomingDescriptor()->IsJSFunctionCall()) { |
ProfileEntryHookStub::MaybeCallEntryHook(masm()); |
} |
- |
// Architecture-specific, linkage-specific prologue. |
info->set_prologue_offset(masm()->pc_offset()); |
AssemblePrologue(); |
+ if (linkage()->GetIncomingDescriptor()->InitializeRootRegister()) { |
+ masm()->InitializeRootRegister(); |
+ } |
// Define deoptimization literals for all inlined functions. |
DCHECK_EQ(0u, deoptimization_literals_.size()); |