mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 21:31:20 +00:00
[vm] Fix a small ELF serialization issue for simarm_x64
Bug: https://github.com/dart-lang/sdk/issues/36839 Change-Id: I6b7748c12cf35b16b733ebe7984c4968364a8bdf Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/110132 Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Liam Appelbe <liama@google.com>
This commit is contained in:
parent
ecaa530faf
commit
4d62935fe5
|
@ -6,6 +6,7 @@
|
|||
#define RUNTIME_VM_ELF_H_
|
||||
|
||||
#include "vm/allocation.h"
|
||||
#include "vm/compiler/runtime_api.h"
|
||||
#include "vm/datastream.h"
|
||||
#include "vm/growable_array.h"
|
||||
#include "vm/zone.h"
|
||||
|
@ -42,10 +43,10 @@ class Elf : public ZoneAllocated {
|
|||
void WriteWord(uint32_t value) {
|
||||
stream_->WriteBytes(reinterpret_cast<uint8_t*>(&value), sizeof(value));
|
||||
}
|
||||
void WriteAddr(uword value) {
|
||||
void WriteAddr(compiler::target::uword value) {
|
||||
stream_->WriteBytes(reinterpret_cast<uint8_t*>(&value), sizeof(value));
|
||||
}
|
||||
void WriteOff(uword value) {
|
||||
void WriteOff(compiler::target::uword value) {
|
||||
stream_->WriteBytes(reinterpret_cast<uint8_t*>(&value), sizeof(value));
|
||||
}
|
||||
#if defined(TARGET_ARCH_IS_64_BIT)
|
||||
|
|
Loading…
Reference in a new issue