mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 23:29:47 +00:00
[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:
parent
227ff83571
commit
0506882b37
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue