Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index 153241c77a24163482cfaabf0bb8dd9e50213eff..eb9297829f904024f3fc79dd0e26c6d9b9e9112b 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -3561,8 +3561,7 @@ void JSEntryStub::GenerateBody(MacroAssembler* masm, bool is_construct) { |
// Set up the roots and smi constant registers. |
// Needs to be done before any further smi loads. |
- ExternalReference roots_address = ExternalReference::roots_address(); |
- __ movq(kRootRegister, roots_address); |
+ __ InitializeRootRegister(); |
__ InitializeSmiConstantRegister(); |
#ifdef ENABLE_LOGGING_AND_PROFILING |