Commit 20db488f authored by Junliang Yan's avatar Junliang Yan Committed by V8 LUCI CQ

[liftoff] use LoadFullPointer for root slots

Root slots are full pointer size. Using tagged ptr loads
will lead to errors on big endian platform.

Change-Id: I477597fadee025b6fb060d67a83bee60290aeb14
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2857636
Commit-Queue: Junliang Yan <junyan@redhat.com>
Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#74273}
parent 3d1254dc
...@@ -5818,9 +5818,8 @@ class LiftoffCompiler { ...@@ -5818,9 +5818,8 @@ class LiftoffCompiler {
void LoadNullValue(Register null, LiftoffRegList pinned) { void LoadNullValue(Register null, LiftoffRegList pinned) {
LOAD_INSTANCE_FIELD(null, IsolateRoot, kSystemPointerSize, pinned); LOAD_INSTANCE_FIELD(null, IsolateRoot, kSystemPointerSize, pinned);
__ LoadTaggedPointer(null, null, no_reg, __ LoadFullPointer(null, null,
IsolateData::root_slot_offset(RootIndex::kNullValue), IsolateData::root_slot_offset(RootIndex::kNullValue));
pinned);
} }
void LoadExceptionSymbol(Register dst, LiftoffRegList pinned, void LoadExceptionSymbol(Register dst, LiftoffRegList pinned,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment