From 2bcd96f3fa94e3aba02c1867d8c7e810d5d3e431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Fl=C3=BCckiger?= Date: Thu, 2 Feb 2023 19:32:59 +0100 Subject: [PATCH] [static-roots][x64] Load tagged root as quad word MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Experiment to see if this resolves a particular regression. Bug: chromium:1407581 Bug: v8:13466 Change-Id: I45d68a14fab43775fae65dbe710d24db504f5486 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4218393 Reviewed-by: Jakob Linke Commit-Queue: Jakob Linke Auto-Submit: Olivier Flückiger Cr-Commit-Position: refs/heads/main@{#85667} --- src/codegen/x64/macro-assembler-x64.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codegen/x64/macro-assembler-x64.cc b/src/codegen/x64/macro-assembler-x64.cc index 53cdb123b2..75891c3237 100644 --- a/src/codegen/x64/macro-assembler-x64.cc +++ b/src/codegen/x64/macro-assembler-x64.cc @@ -165,7 +165,7 @@ Operand MacroAssembler::RootAsOperand(RootIndex index) { void MacroAssembler::LoadTaggedRoot(Register destination, RootIndex index) { if (V8_STATIC_ROOTS_BOOL && RootsTable::IsReadOnly(index)) { - mov_tagged(destination, Immediate(ReadOnlyRootPtr(index))); + movq(destination, Immediate(ReadOnlyRootPtr(index))); return; } DCHECK(root_array_available_);