2fe51715e5
Most new code is in constants_arm64.h and
{assembler,disassembler,simulator}_arm64.{h,cc}
The rest of the CL just #def's out tests, modifies status files,
and adds UNIMPLEMENTED functions, etc.
R=regis@google.com
Review URL: https://codereview.chromium.org//221133002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34654 260f80e4-7a28-3924-810f-c04153c831b5
32 lines
947 B
C++
32 lines
947 B
C++
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
// TODO(zra): Remove when tests are ready to enable.
|
|
#include "platform/globals.h"
|
|
#if !defined(TARGET_ARCH_ARM64)
|
|
|
|
#include "vm/assembler.h"
|
|
#include "vm/disassembler.h"
|
|
#include "vm/unit_test.h"
|
|
#include "vm/virtual_memory.h"
|
|
|
|
namespace dart {
|
|
|
|
TEST_CASE(Disassembler) {
|
|
Assembler assembler;
|
|
// The used instructions work on all platforms.
|
|
Register reg = static_cast<Register>(0);
|
|
assembler.PopRegister(reg);
|
|
assembler.Stop("testing disassembler");
|
|
|
|
// Only verify that the disassembler does not crash.
|
|
AssemblerTest test("Disassembler", &assembler);
|
|
test.Assemble();
|
|
Disassembler::Disassemble(test.entry(), test.entry() + assembler.CodeSize());
|
|
}
|
|
|
|
} // namespace dart
|
|
|
|
#endif // !defined(TARGET_ARCH_ARM64)
|