[vm] Fix a couple more host vs target architecture bugs

Bug: https://github.com/dart-lang/sdk/issues/36839
Change-Id: I6ba25df7b5c8ebeda89a838377cb3af167dd91ac
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109421
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Liam Appelbe <liama@google.com>
This commit is contained in:
Liam Appelbe 2019-07-17 18:57:04 +00:00 committed by commit-bot@chromium.org
parent 227ff83571
commit 0506882b37
2 changed files with 3 additions and 3 deletions

View file

@ -12,9 +12,9 @@ namespace dart {
#ifdef DART_PRECOMPILER
#if defined(ARCH_IS_32_BIT)
#if defined(TARGET_ARCH_IS_32_BIT)
#define FORM_ADDR ".4byte"
#elif defined(ARCH_IS_64_BIT)
#elif defined(TARGET_ARCH_IS_64_BIT)
#define FORM_ADDR ".8byte"
#endif

View file

@ -315,7 +315,7 @@ class AssemblyImageWriter : public ImageWriter {
intptr_t WriteByteSequence(uword start, uword end);
void WriteWordLiteralText(uword value) {
// Padding is helpful for comparing the .S with --disassemble.
#if defined(ARCH_IS_64_BIT)
#if defined(TARGET_ARCH_IS_64_BIT)
assembly_stream_.Print(".quad 0x%0.16" Px "\n", value);
#else
assembly_stream_.Print(".long 0x%0.8" Px "\n", value);