File tree Expand file tree Collapse file tree 6 files changed +22
-20
lines changed Expand file tree Collapse file tree 6 files changed +22
-20
lines changed Original file line number Diff line number Diff line change @@ -731,24 +731,6 @@ DART_FORCE_INLINE D bit_copy(const S& source) {
731731// Undefine math.h definition which clashes with our condition names.
732732#undef OVERFLOW
733733
734- // Include IL printer and disassembler functionality into non-PRODUCT builds,
735- // in all AOT compiler builds or when forced.
736- #if !defined(PRODUCT) || defined(DART_PRECOMPILER) || \
737- defined (FORCE_INCLUDE_DISASSEMBLER)
738- #if defined(DART_PRECOMPILED_RUNTIME) && defined(PRODUCT)
739- #error Requested to include IL printer into PRODUCT AOT runtime
740- #endif
741- #define INCLUDE_IL_PRINTER 1
742- #if !defined(FORCE_INCLUDE_DISASSEMBLER)
743- #define FORCE_INCLUDE_DISASSEMBLER 1
744- #endif
745- #endif
746-
747- // Include HeapSnapshotWriter functionality if not in PRODUCT.
748- #if !defined(DART_ENABLE_HEAP_SNAPSHOT_WRITER) && !defined(PRODUCT)
749- #define DART_ENABLE_HEAP_SNAPSHOT_WRITER 1
750- #endif
751-
752734#if defined(DART_HOST_OS_ANDROID)
753735#define kHostOperatingSystemName " android"
754736#elif defined(DART_HOST_OS_FUCHSIA)
Original file line number Diff line number Diff line change 11// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
22// for details. All rights reserved. Use of this source code is governed by a
33// BSD-style license that can be found in the LICENSE file.
4- #include " platform /globals.h" // For INCLUDE_IL_PRINTER
4+ #include " vm /globals.h" // For INCLUDE_IL_PRINTER
55#if defined(INCLUDE_IL_PRINTER)
66
77#include " vm/compiler/api/print_filter.h"
Original file line number Diff line number Diff line change 55#ifndef RUNTIME_VM_COMPILER_API_PRINT_FILTER_H_
66#define RUNTIME_VM_COMPILER_API_PRINT_FILTER_H_
77
8- #include " platform /globals.h" // For INCLUDE_IL_PRINTER
8+ #include " vm /globals.h" // For INCLUDE_IL_PRINTER
99
1010#if defined(INCLUDE_IL_PRINTER)
1111
Original file line number Diff line number Diff line change 1212#include " vm/compiler/backend/linearscan.h"
1313#include " vm/compiler/backend/range_analysis.h"
1414#include " vm/compiler/ffi/native_calling_convention.h"
15+ #include " vm/globals.h"
1516#include " vm/os.h"
1617#include " vm/parser.h"
1718
Original file line number Diff line number Diff line change 66#define RUNTIME_VM_FLAG_LIST_H_
77
88#include " platform/thread_sanitizer.h"
9+ #include " vm/globals.h"
910
1011// Don't use USING_PRODUCT outside of this file.
1112#if defined(PRODUCT)
Original file line number Diff line number Diff line change @@ -112,6 +112,24 @@ const intptr_t kDefaultNewGenSemiMaxSize = (kWordSize <= 4) ? 8 : 16;
112112#define SUPPORT_TIMELINE 1
113113#endif
114114
115+ // Include IL printer and disassembler functionality into non-PRODUCT builds,
116+ // in all AOT compiler builds or when forced.
117+ #if !defined(PRODUCT) || defined(DART_PRECOMPILER) || \
118+ defined (FORCE_INCLUDE_DISASSEMBLER)
119+ #if defined(DART_PRECOMPILED_RUNTIME) && defined(PRODUCT)
120+ #error Requested to include IL printer into PRODUCT AOT runtime
121+ #endif
122+ #define INCLUDE_IL_PRINTER 1
123+ #if !defined(FORCE_INCLUDE_DISASSEMBLER)
124+ #define FORCE_INCLUDE_DISASSEMBLER 1
125+ #endif
126+ #endif
127+
128+ // Include HeapSnapshotWriter functionality if not in PRODUCT.
129+ #if !defined(DART_ENABLE_HEAP_SNAPSHOT_WRITER) && !defined(PRODUCT)
130+ #define DART_ENABLE_HEAP_SNAPSHOT_WRITER 1
131+ #endif
132+
115133#if defined(ARCH_IS_64_BIT) && !defined(IS_SIMARM_HOST64)
116134#define HASH_IN_OBJECT_HEADER 1
117135#endif
You can’t perform that action at this time.
0 commit comments