3871bc8466
The old code was relying on identical alignment of both the source and the destination of the Relaxed_Memcpy. This is not always given, thus check for alignment of both. R=mlippautz@chromium.org Bug: chromium:1208782, v8:11704 Change-Id: Ic5dca3a5f0ecaea0df6eb123105520bd7785853c Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2905611 Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Commit-Queue: Clemens Backes <clemensb@chromium.org> Cr-Commit-Position: refs/heads/master@{#74694}
7 lines
245 B
JavaScript
7 lines
245 B
JavaScript
// Copyright 2021 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
var arr = new Int8Array(new SharedArrayBuffer(16), 13);
|
|
new Uint8Array(arr);
|