e2e7af1229
- Remove Timeline. - Remove more vmservice code. - Remove AST printing. - Remove IL printing. - Remove profiler. - Remove thread interrupter. - Remove disassembler. - Remove Library::CheckFunctionFingerprints. - Update test status files for product mode. Size of dart_bootstrap before: 5287631 Size of dart_bootstrap after: 5112783 Reduction in size: 174848 bytes. Total reduction in size (382734 + 174848): 557582 bytes. R=rmacnak@google.com Review URL: https://codereview.chromium.org/1678203002 .
30 lines
829 B
C++
30 lines
829 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.
|
|
|
|
#include "vm/assembler.h"
|
|
#include "vm/disassembler.h"
|
|
#include "vm/unit_test.h"
|
|
#include "vm/virtual_memory.h"
|
|
|
|
namespace dart {
|
|
|
|
#ifndef PRODUCT
|
|
|
|
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());
|
|
}
|
|
|
|
#endif // !PRODUCT
|
|
|
|
} // namespace dart
|