Commit 2746f658 authored by Michael Achenbach's avatar Michael Achenbach Committed by Commit Bot

Revert "Force proper code aligment in wasm serializer."

This reverts commit 5dca2bd7.

Reason for revert: Breaks roll:
https://chromium-review.googlesource.com/c/chromium/src/+/977945

Original change's description:
> Force proper code aligment in wasm serializer.
> 
> Change-Id: Iace7040f7327cbc76e75a0cd7229221c93a9456e
> Reviewed-on: https://chromium-review.googlesource.com/975547
> Reviewed-by: Andreas Haas <ahaas@chromium.org>
> Commit-Queue: Ivica Bogosavljevic <ivica.bogosavljevic@mips.com>
> Cr-Commit-Position: refs/heads/master@{#52174}

TBR=ahaas@chromium.org,ivica.bogosavljevic@mips.com,ivo.markovic@mips.com

# Not skipping CQ checks because original CL landed > 1 day ago.

Change-Id: If8d2b66573b9c39fdf5e6e4faf399ecde7005e6e
Reviewed-on: https://chromium-review.googlesource.com/979532Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#52201}
parent 815c6596
......@@ -100,7 +100,7 @@ class V8_EXPORT_PRIVATE WasmCode final {
// kOther is used if we have WasmCode that is neither
// liftoff- nor turbofan-compiled, i.e. if Kind is
// not a kFunction.
enum Tier : int32_t { kLiftoff, kTurbofan, kOther };
enum Tier : int8_t { kLiftoff, kTurbofan, kOther };
Vector<byte> instructions() const { return instructions_; }
Vector<const byte> reloc_info() const {
......
......@@ -351,7 +351,6 @@ void NativeModuleSerializer::BufferCodeInAllocatedScratch(
writer.Write(code->tier());
// next is the code, which we have to reloc.
Address serialized_code_start = writer.current_buffer().start();
DCHECK(IsAddressAligned(serialized_code_start, 4));
// write the code and everything else
writer.WriteVector(code->instructions());
writer.WriteVector(code->reloc_info());
......
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