Revert "[vm/compiler] Add check to prevent inclusion of compiler headers into AOT runtime"
This reverts commit b0a71d364c as it broke precomp builds.
Change-Id: Ieb776739b8d3e9ac74794e05fc20a793625e5f09
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/143865
Commit-Queue: Alexander Aprelev <aam@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
This commit is contained in:
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_AOT_AOT_CALL_SPECIALIZER_H_
|
||||
#define RUNTIME_VM_COMPILER_AOT_AOT_CALL_SPECIALIZER_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/call_specializer.h"
|
||||
|
||||
namespace dart {
|
||||
|
||||
@@ -5,13 +5,11 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_AOT_DISPATCH_TABLE_GENERATOR_H_
|
||||
#define RUNTIME_VM_COMPILER_AOT_DISPATCH_TABLE_GENERATOR_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/frontend/kernel_translation_helper.h"
|
||||
#include "vm/object.h"
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
namespace dart {
|
||||
|
||||
class ClassTable;
|
||||
@@ -111,4 +109,6 @@ class DispatchTableGenerator {
|
||||
} // namespace compiler
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#endif // RUNTIME_VM_COMPILER_AOT_DISPATCH_TABLE_GENERATOR_H_
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
#include "vm/compiler/aot/precompiler.h"
|
||||
|
||||
#ifndef DART_PRECOMPILED_RUNTIME
|
||||
|
||||
#include "platform/unicode.h"
|
||||
#include "vm/class_finalizer.h"
|
||||
#include "vm/code_patcher.h"
|
||||
@@ -3125,3 +3127,5 @@ const char** Obfuscator::SerializeMap(Thread* thread) {
|
||||
#endif // defined(DART_PRECOMPILER) && !defined(TARGET_ARCH_IA32)
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // DART_PRECOMPILED_RUNTIME
|
||||
|
||||
@@ -5,9 +5,7 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_AOT_PRECOMPILER_H_
|
||||
#define RUNTIME_VM_COMPILER_AOT_PRECOMPILER_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
#ifndef DART_PRECOMPILED_RUNTIME
|
||||
|
||||
#include "vm/allocation.h"
|
||||
#include "vm/compiler/aot/dispatch_table_generator.h"
|
||||
@@ -565,4 +563,6 @@ class Obfuscator {
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // DART_PRECOMPILED_RUNTIME
|
||||
|
||||
#endif // RUNTIME_VM_COMPILER_AOT_PRECOMPILER_H_
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
// 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.
|
||||
// Class for intrinsifying functions.
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#define SHOULD_NOT_INCLUDE_RUNTIME
|
||||
|
||||
#include "vm/compiler/asm_intrinsifier.h"
|
||||
@@ -33,3 +36,5 @@ void AsmIntrinsifier::RegExp_ExecuteMatchSticky(Assembler* assembler,
|
||||
|
||||
} // namespace compiler
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -6,10 +6,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_ASM_INTRINSIFIER_H_
|
||||
#define RUNTIME_VM_COMPILER_ASM_INTRINSIFIER_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/allocation.h"
|
||||
#include "vm/compiler/recognized_methods_list.h"
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
#include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
|
||||
#if defined(TARGET_ARCH_ARM)
|
||||
#if defined(TARGET_ARCH_ARM) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#define SHOULD_NOT_INCLUDE_RUNTIME
|
||||
|
||||
@@ -2345,4 +2345,4 @@ void AsmIntrinsifier::SetAsyncThreadStackTrace(Assembler* assembler,
|
||||
} // namespace compiler
|
||||
} // namespace dart
|
||||
|
||||
#endif // defined(TARGET_ARCH_ARM)
|
||||
#endif // defined(TARGET_ARCH_ARM) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
#include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64.
|
||||
#if defined(TARGET_ARCH_ARM64)
|
||||
#if defined(TARGET_ARCH_ARM64) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#define SHOULD_NOT_INCLUDE_RUNTIME
|
||||
|
||||
@@ -2418,4 +2418,4 @@ void AsmIntrinsifier::SetAsyncThreadStackTrace(Assembler* assembler,
|
||||
} // namespace compiler
|
||||
} // namespace dart
|
||||
|
||||
#endif // defined(TARGET_ARCH_ARM64)
|
||||
#endif // defined(TARGET_ARCH_ARM64) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
// Dart method was intrinsified.
|
||||
|
||||
#include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
|
||||
#if defined(TARGET_ARCH_IA32)
|
||||
#if defined(TARGET_ARCH_IA32) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#define SHOULD_NOT_INCLUDE_RUNTIME
|
||||
|
||||
@@ -2355,4 +2355,4 @@ void AsmIntrinsifier::SetAsyncThreadStackTrace(Assembler* assembler,
|
||||
} // namespace compiler
|
||||
} // namespace dart
|
||||
|
||||
#endif // defined(TARGET_ARCH_IA32)
|
||||
#endif // defined(TARGET_ARCH_IA32) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
#include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
|
||||
#if defined(TARGET_ARCH_X64)
|
||||
#if defined(TARGET_ARCH_X64) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#define SHOULD_NOT_INCLUDE_RUNTIME
|
||||
|
||||
@@ -2386,4 +2386,4 @@ void AsmIntrinsifier::SetAsyncThreadStackTrace(Assembler* assembler,
|
||||
} // namespace compiler
|
||||
} // namespace dart
|
||||
|
||||
#endif // defined(TARGET_ARCH_X64)
|
||||
#endif // defined(TARGET_ARCH_X64) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_ASSEMBLER_ASSEMBLER_H_
|
||||
#define RUNTIME_VM_COMPILER_ASSEMBLER_ASSEMBLER_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "platform/assert.h"
|
||||
#include "vm/allocation.h"
|
||||
#include "vm/compiler/assembler/object_pool_builder.h"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
#include "vm/globals.h" // NOLINT
|
||||
#if defined(TARGET_ARCH_ARM)
|
||||
#if defined(TARGET_ARCH_ARM) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#define SHOULD_NOT_INCLUDE_RUNTIME
|
||||
|
||||
@@ -3806,4 +3806,4 @@ void Assembler::StoreWordUnaligned(Register src, Register addr, Register tmp) {
|
||||
} // namespace compiler
|
||||
} // namespace dart
|
||||
|
||||
#endif // defined(TARGET_ARCH_ARM)
|
||||
#endif // defined(TARGET_ARCH_ARM) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_ASSEMBLER_ASSEMBLER_ARM_H_
|
||||
#define RUNTIME_VM_COMPILER_ASSEMBLER_ASSEMBLER_ARM_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#ifndef RUNTIME_VM_COMPILER_ASSEMBLER_ASSEMBLER_H_
|
||||
#error Do not include assembler_arm.h directly; use assembler.h instead.
|
||||
#endif
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
#include "vm/globals.h" // NOLINT
|
||||
#if defined(TARGET_ARCH_ARM64)
|
||||
#if defined(TARGET_ARCH_ARM64) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#define SHOULD_NOT_INCLUDE_RUNTIME
|
||||
|
||||
@@ -1985,4 +1985,4 @@ void Assembler::GenerateXCbzTbz(Register rn, Condition cond, Label* label) {
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // defined(TARGET_ARCH_ARM64)
|
||||
#endif // defined(TARGET_ARCH_ARM64) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_ASSEMBLER_ASSEMBLER_ARM64_H_
|
||||
#define RUNTIME_VM_COMPILER_ASSEMBLER_ASSEMBLER_ARM64_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#ifndef RUNTIME_VM_COMPILER_ASSEMBLER_ASSEMBLER_H_
|
||||
#error Do not include assembler_arm64.h directly; use assembler.h instead.
|
||||
#endif
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/assembler/assembler_base.h"
|
||||
|
||||
#include "platform/utils.h"
|
||||
@@ -387,3 +389,5 @@ bool ObjectPoolBuilder::TryCommitToParent() {
|
||||
} // namespace compiler
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_ASSEMBLER_ASSEMBLER_BASE_H_
|
||||
#define RUNTIME_VM_COMPILER_ASSEMBLER_ASSEMBLER_BASE_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "platform/assert.h"
|
||||
#include "vm/allocation.h"
|
||||
#include "vm/compiler/assembler/object_pool_builder.h"
|
||||
|
||||
@@ -14,11 +14,15 @@
|
||||
|
||||
namespace dart {
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
DECLARE_FLAG(bool, inline_alloc);
|
||||
DECLARE_FLAG(bool, use_slow_path);
|
||||
#endif
|
||||
|
||||
namespace compiler {
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
class DirectCallRelocation : public AssemblerFixup {
|
||||
public:
|
||||
void Process(const MemoryRegion& region, intptr_t position) {
|
||||
@@ -2791,6 +2795,8 @@ Address Assembler::ElementAddressForRegIndex(bool is_external,
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
} // namespace compiler
|
||||
} // namespace dart
|
||||
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_ASSEMBLER_ASSEMBLER_IA32_H_
|
||||
#define RUNTIME_VM_COMPILER_ASSEMBLER_ASSEMBLER_IA32_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#ifndef RUNTIME_VM_COMPILER_ASSEMBLER_ASSEMBLER_H_
|
||||
#error Do not include assembler_ia32.h directly; use assembler.h instead.
|
||||
#endif
|
||||
|
||||
@@ -14,13 +14,17 @@
|
||||
|
||||
namespace dart {
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
DECLARE_FLAG(bool, check_code_pointer);
|
||||
DECLARE_FLAG(bool, inline_alloc);
|
||||
DECLARE_FLAG(bool, precompiled_mode);
|
||||
DECLARE_FLAG(bool, use_slow_path);
|
||||
#endif
|
||||
|
||||
namespace compiler {
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
Assembler::Assembler(ObjectPoolBuilder* object_pool_builder,
|
||||
bool use_far_branches)
|
||||
: AssemblerBase(object_pool_builder), constant_pool_allowed_(false) {
|
||||
@@ -2296,6 +2300,8 @@ Address Assembler::ElementAddressForRegIndex(bool is_external,
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
} // namespace compiler
|
||||
} // namespace dart
|
||||
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_ASSEMBLER_ASSEMBLER_X64_H_
|
||||
#define RUNTIME_VM_COMPILER_ASSEMBLER_ASSEMBLER_X64_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#ifndef RUNTIME_VM_COMPILER_ASSEMBLER_ASSEMBLER_H_
|
||||
#error Do not include assembler_x64.h directly; use assembler.h instead.
|
||||
#endif
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_BACKEND_BLOCK_BUILDER_H_
|
||||
#define RUNTIME_VM_COMPILER_BACKEND_BLOCK_BUILDER_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/flow_graph.h"
|
||||
#include "vm/compiler/backend/il.h"
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/block_scheduler.h"
|
||||
|
||||
#include "vm/allocation.h"
|
||||
@@ -302,3 +304,5 @@ void BlockScheduler::ReorderBlocksAOT(FlowGraph* flow_graph) {
|
||||
}
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_BACKEND_BLOCK_SCHEDULER_H_
|
||||
#define RUNTIME_VM_COMPILER_BACKEND_BLOCK_SCHEDULER_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/allocation.h"
|
||||
|
||||
namespace dart {
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/branch_optimizer.h"
|
||||
|
||||
#include "vm/compiler/backend/flow_graph.h"
|
||||
@@ -347,3 +349,5 @@ void IfConverter::Simplify(FlowGraph* flow_graph) {
|
||||
}
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_BACKEND_BRANCH_OPTIMIZER_H_
|
||||
#define RUNTIME_VM_COMPILER_BACKEND_BRANCH_OPTIMIZER_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/allocation.h"
|
||||
|
||||
namespace dart {
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_BACKEND_CODE_STATISTICS_H_
|
||||
#define RUNTIME_VM_COMPILER_BACKEND_CODE_STATISTICS_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/assembler/assembler.h"
|
||||
#include "vm/compiler/backend/il.h"
|
||||
#include "vm/object.h"
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_BACKEND_COMPILE_TYPE_H_
|
||||
#define RUNTIME_VM_COMPILER_BACKEND_COMPILE_TYPE_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/allocation.h"
|
||||
#include "vm/class_id.h"
|
||||
#include "vm/compiler/runtime_api.h"
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/constant_propagator.h"
|
||||
|
||||
#include "vm/bit_vector.h"
|
||||
@@ -1672,3 +1674,5 @@ bool ConstantPropagator::TransformDefinition(Definition* defn) {
|
||||
}
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_BACKEND_CONSTANT_PROPAGATOR_H_
|
||||
#define RUNTIME_VM_COMPILER_BACKEND_CONSTANT_PROPAGATOR_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/flow_graph.h"
|
||||
#include "vm/compiler/backend/il.h"
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/evaluator.h"
|
||||
|
||||
namespace dart {
|
||||
@@ -235,3 +237,5 @@ bool Evaluator::ToIntegerConstant(Value* value, int64_t* result) {
|
||||
}
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_BACKEND_EVALUATOR_H_
|
||||
#define RUNTIME_VM_COMPILER_BACKEND_EVALUATOR_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/allocation.h"
|
||||
#include "vm/compiler/backend/flow_graph.h"
|
||||
#include "vm/compiler/backend/il.h"
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/flow_graph.h"
|
||||
|
||||
#include "vm/bit_vector.h"
|
||||
@@ -2701,3 +2703,5 @@ void FlowGraph::InsertPushArguments() {
|
||||
}
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_BACKEND_FLOW_GRAPH_H_
|
||||
#define RUNTIME_VM_COMPILER_BACKEND_FLOW_GRAPH_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/bit_vector.h"
|
||||
#include "vm/compiler/backend/il.h"
|
||||
#include "vm/growable_array.h"
|
||||
@@ -160,10 +156,11 @@ class FlowGraph : public ZoneAllocated {
|
||||
}
|
||||
|
||||
intptr_t CurrentContextEnvIndex() const {
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
if (function().HasBytecode()) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
return EnvIndex(parsed_function().current_context_var());
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// 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.
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
#if defined(DEBUG)
|
||||
|
||||
#include "vm/compiler/backend/flow_graph_checker.h"
|
||||
@@ -473,3 +474,4 @@ void FlowGraphChecker::Check(const char* pass_name) {
|
||||
} // namespace dart
|
||||
|
||||
#endif // defined(DEBUG)
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,10 +5,7 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_BACKEND_FLOW_GRAPH_CHECKER_H_
|
||||
#define RUNTIME_VM_COMPILER_BACKEND_FLOW_GRAPH_CHECKER_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
#if defined(DEBUG)
|
||||
|
||||
#include "vm/compiler/backend/flow_graph.h"
|
||||
@@ -72,5 +69,6 @@ class FlowGraphChecker : public FlowGraphVisitor {
|
||||
} // namespace dart
|
||||
|
||||
#endif // defined(DEBUG)
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#endif // RUNTIME_VM_COMPILER_BACKEND_FLOW_GRAPH_CHECKER_H_
|
||||
|
||||
@@ -44,6 +44,8 @@ DEFINE_FLAG(bool,
|
||||
|
||||
DEFINE_FLAG(bool, enable_peephole, true, "Enable peephole optimization");
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
DEFINE_FLAG(bool,
|
||||
enable_simd_inline,
|
||||
true,
|
||||
@@ -2786,5 +2788,6 @@ void FlowGraphCompiler::EmitMoveConst(const compiler::ffi::NativeLocation& dst,
|
||||
}
|
||||
|
||||
#undef __
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
} // namespace dart
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_BACKEND_FLOW_GRAPH_COMPILER_H_
|
||||
#define RUNTIME_VM_COMPILER_BACKEND_FLOW_GRAPH_COMPILER_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include <functional>
|
||||
|
||||
#include "vm/allocation.h"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
#include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
|
||||
#if defined(TARGET_ARCH_ARM)
|
||||
#if defined(TARGET_ARCH_ARM) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/flow_graph_compiler.h"
|
||||
|
||||
@@ -1871,4 +1871,4 @@ void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) {
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // defined(TARGET_ARCH_ARM)
|
||||
#endif // defined(TARGET_ARCH_ARM) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
#include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64.
|
||||
#if defined(TARGET_ARCH_ARM64)
|
||||
#if defined(TARGET_ARCH_ARM64) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/flow_graph_compiler.h"
|
||||
|
||||
@@ -1794,4 +1794,4 @@ void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) {
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // defined(TARGET_ARCH_ARM64)
|
||||
#endif // defined(TARGET_ARCH_ARM64) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
#include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
|
||||
#if defined(TARGET_ARCH_IA32)
|
||||
#if defined(TARGET_ARCH_IA32) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/flow_graph_compiler.h"
|
||||
|
||||
@@ -1602,4 +1602,4 @@ void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) {
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // defined(TARGET_ARCH_IA32)
|
||||
#endif // defined(TARGET_ARCH_IA32) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
#include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
|
||||
#if defined(TARGET_ARCH_X64)
|
||||
#if defined(TARGET_ARCH_X64) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/flow_graph_compiler.h"
|
||||
|
||||
@@ -1763,4 +1763,4 @@ void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) {
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // defined(TARGET_ARCH_X64)
|
||||
#endif // defined(TARGET_ARCH_X64) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/il.h"
|
||||
|
||||
#include "vm/bit_vector.h"
|
||||
@@ -6150,3 +6152,5 @@ bool SimdOpInstr::HasMask() const {
|
||||
#undef __
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_BACKEND_IL_H_
|
||||
#define RUNTIME_VM_COMPILER_BACKEND_IL_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
#include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
|
||||
#if defined(TARGET_ARCH_ARM)
|
||||
#if defined(TARGET_ARCH_ARM) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/il.h"
|
||||
|
||||
@@ -7491,4 +7491,4 @@ void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // defined(TARGET_ARCH_ARM)
|
||||
#endif // defined(TARGET_ARCH_ARM) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
#include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64.
|
||||
#if defined(TARGET_ARCH_ARM64)
|
||||
#if defined(TARGET_ARCH_ARM64) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/il.h"
|
||||
|
||||
@@ -6434,4 +6434,4 @@ void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // defined(TARGET_ARCH_ARM64)
|
||||
#endif // defined(TARGET_ARCH_ARM64) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/il_deserializer.h"
|
||||
|
||||
#include "vm/compiler/backend/il_serializer.h"
|
||||
@@ -2483,3 +2485,5 @@ void FlowGraphDeserializer::ReportError() const {
|
||||
}
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_BACKEND_IL_DESERIALIZER_H_
|
||||
#define RUNTIME_VM_COMPILER_BACKEND_IL_DESERIALIZER_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "platform/assert.h"
|
||||
|
||||
#include "vm/allocation.h"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "platform/globals.h"
|
||||
#include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
|
||||
#if defined(TARGET_ARCH_IA32)
|
||||
#if defined(TARGET_ARCH_IA32) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/il.h"
|
||||
|
||||
@@ -6340,4 +6340,4 @@ void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
||||
|
||||
#undef __
|
||||
|
||||
#endif // defined(TARGET_ARCH_IA32)
|
||||
#endif // defined(TARGET_ARCH_IA32) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_BACKEND_IL_PRINTER_H_
|
||||
#define RUNTIME_VM_COMPILER_BACKEND_IL_PRINTER_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "platform/text_buffer.h"
|
||||
#include "vm/compiler/backend/flow_graph.h"
|
||||
#include "vm/compiler/backend/il.h"
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/il_serializer.h"
|
||||
|
||||
#include "vm/compiler/backend/flow_graph.h"
|
||||
@@ -1482,3 +1484,5 @@ SExpression* Environment::ToSExpression(FlowGraphSerializer* s) const {
|
||||
}
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_BACKEND_IL_SERIALIZER_H_
|
||||
#define RUNTIME_VM_COMPILER_BACKEND_IL_SERIALIZER_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "platform/assert.h"
|
||||
#include "platform/text_buffer.h"
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
#include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
|
||||
#if defined(TARGET_ARCH_X64)
|
||||
#if defined(TARGET_ARCH_X64) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/il.h"
|
||||
|
||||
@@ -6720,4 +6720,4 @@ void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
||||
|
||||
#undef __
|
||||
|
||||
#endif // defined(TARGET_ARCH_X64)
|
||||
#endif // defined(TARGET_ARCH_X64) && !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/inliner.h"
|
||||
|
||||
#include "vm/compiler/aot/aot_call_specializer.h"
|
||||
@@ -4265,3 +4267,5 @@ bool FlowGraphInliner::TryInlineRecognizedMethod(
|
||||
}
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_BACKEND_INLINER_H_
|
||||
#define RUNTIME_VM_COMPILER_BACKEND_INLINER_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/allocation.h"
|
||||
#include "vm/growable_array.h"
|
||||
#include "vm/token_position.h"
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/linearscan.h"
|
||||
|
||||
#include "vm/bit_vector.h"
|
||||
@@ -2989,3 +2991,5 @@ void FlowGraphAllocator::AllocateRegisters() {
|
||||
}
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_BACKEND_LINEARSCAN_H_
|
||||
#define RUNTIME_VM_COMPILER_BACKEND_LINEARSCAN_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/flow_graph.h"
|
||||
#include "vm/compiler/backend/il.h"
|
||||
#include "vm/growable_array.h"
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/locations.h"
|
||||
|
||||
#include "vm/compiler/assembler/assembler.h"
|
||||
@@ -392,3 +394,5 @@ void LocationSummary::CheckWritableInputs() {
|
||||
#endif
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_BACKEND_LOCATIONS_H_
|
||||
#define RUNTIME_VM_COMPILER_BACKEND_LOCATIONS_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/allocation.h"
|
||||
#include "vm/bitfield.h"
|
||||
#include "vm/bitmap.h"
|
||||
|
||||
@@ -43,10 +43,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_BACKEND_LOCATIONS_HELPERS_H_
|
||||
#define RUNTIME_VM_COMPILER_BACKEND_LOCATIONS_HELPERS_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/locations.h"
|
||||
|
||||
namespace dart {
|
||||
|
||||
@@ -9,10 +9,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_BACKEND_LOCATIONS_HELPERS_ARM_H_
|
||||
#define RUNTIME_VM_COMPILER_BACKEND_LOCATIONS_HELPERS_ARM_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
namespace dart {
|
||||
|
||||
// QRegisterView is a wrapper around QRegister that provides helpers for
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/loops.h"
|
||||
|
||||
#include "vm/bit_vector.h"
|
||||
@@ -1190,3 +1192,5 @@ void LoopHierarchy::ComputeInduction() const {
|
||||
}
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_BACKEND_LOOPS_H_
|
||||
#define RUNTIME_VM_COMPILER_BACKEND_LOOPS_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "vm/allocation.h"
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/range_analysis.h"
|
||||
|
||||
#include "vm/bit_vector.h"
|
||||
@@ -3043,3 +3045,5 @@ bool CheckBoundBase::IsRedundant(bool use_loops) {
|
||||
}
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_BACKEND_RANGE_ANALYSIS_H_
|
||||
#define RUNTIME_VM_COMPILER_BACKEND_RANGE_ANALYSIS_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/flow_graph.h"
|
||||
#include "vm/compiler/backend/il.h"
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/redundancy_elimination.h"
|
||||
|
||||
#include "vm/bit_vector.h"
|
||||
@@ -3838,3 +3840,5 @@ void CheckStackOverflowElimination::EliminateStackOverflow(FlowGraph* graph) {
|
||||
}
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_BACKEND_REDUNDANCY_ELIMINATION_H_
|
||||
#define RUNTIME_VM_COMPILER_BACKEND_REDUNDANCY_ELIMINATION_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/flow_graph.h"
|
||||
#include "vm/compiler/backend/il.h"
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/sexpression.h"
|
||||
|
||||
#include <ctype.h>
|
||||
@@ -685,3 +687,5 @@ void SExpParser::ReportError() const {
|
||||
}
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_BACKEND_SEXPRESSION_H_
|
||||
#define RUNTIME_VM_COMPILER_BACKEND_SEXPRESSION_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "platform/text_buffer.h"
|
||||
|
||||
#include "vm/allocation.h"
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
#include "vm/compiler/backend/slot.h"
|
||||
|
||||
#ifndef DART_PRECOMPILED_RUNTIME
|
||||
|
||||
#include "vm/compiler/compiler_state.h"
|
||||
#include "vm/hash_map.h"
|
||||
#include "vm/parser.h"
|
||||
@@ -321,3 +323,5 @@ intptr_t Slot::Hashcode() const {
|
||||
}
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // DART_PRECOMPILED_RUNTIME
|
||||
|
||||
@@ -24,10 +24,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_BACKEND_SLOT_H_
|
||||
#define RUNTIME_VM_COMPILER_BACKEND_SLOT_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/compile_type.h"
|
||||
#include "vm/thread.h"
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/type_propagator.h"
|
||||
|
||||
#include "platform/text_buffer.h"
|
||||
@@ -1748,3 +1750,5 @@ CompileType LoadIndexedInstr::ComputeType() const {
|
||||
}
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_BACKEND_TYPE_PROPAGATOR_H_
|
||||
#define RUNTIME_VM_COMPILER_BACKEND_TYPE_PROPAGATOR_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/flow_graph.h"
|
||||
#include "vm/compiler/backend/il.h"
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// 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.
|
||||
|
||||
#ifndef DART_PRECOMPILED_RUNTIME
|
||||
#include "vm/compiler/call_specializer.h"
|
||||
|
||||
#include "vm/compiler/backend/flow_graph_compiler.h"
|
||||
@@ -1793,3 +1794,4 @@ void CallSpecializer::ReplaceInstanceCallsWithDispatchTableCalls() {
|
||||
}
|
||||
|
||||
} // namespace dart
|
||||
#endif // DART_PRECOMPILED_RUNTIME
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_CALL_SPECIALIZER_H_
|
||||
#define RUNTIME_VM_COMPILER_CALL_SPECIALIZER_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/flow_graph.h"
|
||||
#include "vm/compiler/backend/il.h"
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/cha.h"
|
||||
#include "vm/class_table.h"
|
||||
#include "vm/flags.h"
|
||||
@@ -171,3 +173,5 @@ void CHA::RegisterDependencies(const Code& code) const {
|
||||
}
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_CHA_H_
|
||||
#define RUNTIME_VM_COMPILER_CHA_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/allocation.h"
|
||||
#include "vm/growable_array.h"
|
||||
#include "vm/thread.h"
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
#include "vm/compiler/compiler_pass.h"
|
||||
|
||||
#ifndef DART_PRECOMPILED_RUNTIME
|
||||
|
||||
#include "vm/compiler/backend/block_scheduler.h"
|
||||
#include "vm/compiler/backend/branch_optimizer.h"
|
||||
#include "vm/compiler/backend/constant_propagator.h"
|
||||
@@ -573,3 +575,5 @@ COMPILER_PASS(RoundTripSerialization, {
|
||||
})
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // DART_PRECOMPILED_RUNTIME
|
||||
|
||||
@@ -5,9 +5,7 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_COMPILER_PASS_H_
|
||||
#define RUNTIME_VM_COMPILER_COMPILER_PASS_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
#ifndef DART_PRECOMPILED_RUNTIME
|
||||
|
||||
#include <initializer_list>
|
||||
|
||||
@@ -203,4 +201,6 @@ class CompilerPass {
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif
|
||||
|
||||
#endif // RUNTIME_VM_COMPILER_COMPILER_PASS_H_
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_COMPILER_STATE_H_
|
||||
#define RUNTIME_VM_COMPILER_COMPILER_STATE_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/api/deopt_id.h"
|
||||
#include "vm/compiler/cha.h"
|
||||
#include "vm/heap/safepoint.h"
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_FFI_ABI_H_
|
||||
#define RUNTIME_VM_COMPILER_FFI_ABI_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include <platform/globals.h>
|
||||
|
||||
namespace dart {
|
||||
|
||||
@@ -12,6 +12,8 @@ namespace compiler {
|
||||
|
||||
namespace ffi {
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
// TODO(dartbug.com/36607): Cache the trampolines.
|
||||
RawFunction* TrampolineFunction(const Function& dart_signature,
|
||||
const Function& c_signature) {
|
||||
@@ -53,6 +55,8 @@ RawFunction* TrampolineFunction(const Function& dart_signature,
|
||||
return function.raw();
|
||||
}
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
} // namespace ffi
|
||||
|
||||
} // namespace compiler
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_FFI_CALL_H_
|
||||
#define RUNTIME_VM_COMPILER_FFI_CALL_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include <platform/globals.h>
|
||||
|
||||
#include "vm/raw_object.h"
|
||||
|
||||
@@ -12,6 +12,8 @@ namespace compiler {
|
||||
|
||||
namespace ffi {
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
RawFunction* NativeCallbackFunction(const Function& c_signature,
|
||||
const Function& dart_target,
|
||||
const Instance& exceptional_return) {
|
||||
@@ -64,6 +66,8 @@ RawFunction* NativeCallbackFunction(const Function& c_signature,
|
||||
return function.raw();
|
||||
}
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
} // namespace ffi
|
||||
|
||||
} // namespace compiler
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_FFI_CALLBACK_H_
|
||||
#define RUNTIME_VM_COMPILER_FFI_CALLBACK_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include <platform/globals.h>
|
||||
|
||||
#include "vm/raw_object.h"
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/ffi/frame_rebase.h"
|
||||
|
||||
namespace dart {
|
||||
@@ -45,3 +47,5 @@ Location FrameRebase::Rebase(const Location loc) const {
|
||||
} // namespace compiler
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_FFI_FRAME_REBASE_H_
|
||||
#define RUNTIME_VM_COMPILER_FFI_FRAME_REBASE_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/locations.h"
|
||||
#include "vm/compiler/ffi/native_location.h"
|
||||
#include "vm/compiler/ffi/native_type.h"
|
||||
|
||||
@@ -17,6 +17,8 @@ namespace compiler {
|
||||
|
||||
namespace ffi {
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
Location CallMarshaller::LocInFfiCall(intptr_t arg_index) const {
|
||||
if (arg_index == kResultIndex) {
|
||||
return Location(arg_index).AsLocation();
|
||||
@@ -152,6 +154,8 @@ CallbackMarshaller::CallbackMarshaller(Zone* zone,
|
||||
CallbackArgumentTranslator::TranslateArgumentLocations(arg_locs_,
|
||||
zone_)) {}
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
} // namespace ffi
|
||||
|
||||
} // namespace compiler
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_FFI_MARSHALLER_H_
|
||||
#define RUNTIME_VM_COMPILER_FFI_MARSHALLER_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include <platform/globals.h>
|
||||
|
||||
#include "vm/compiler/backend/locations.h"
|
||||
|
||||
@@ -16,6 +16,8 @@ namespace compiler {
|
||||
|
||||
namespace ffi {
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
// Argument #0 is the function pointer.
|
||||
const intptr_t kNativeParamsStartAt = 1;
|
||||
|
||||
@@ -301,6 +303,8 @@ intptr_t NativeCallingConvention::StackTopInBytes() const {
|
||||
return Utils::RoundUp(max_height_in_bytes, compiler::target::kWordSize);
|
||||
}
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
} // namespace ffi
|
||||
|
||||
} // namespace compiler
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_FFI_NATIVE_CALLING_CONVENTION_H_
|
||||
#define RUNTIME_VM_COMPILER_FFI_NATIVE_CALLING_CONVENTION_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include <platform/globals.h>
|
||||
|
||||
#include "vm/compiler/backend/locations.h"
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// 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.
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/ffi/native_location.h"
|
||||
|
||||
#include "vm/compiler/backend/il_printer.h"
|
||||
@@ -338,3 +340,5 @@ bool NativeFpuRegistersLocation::IsLowestBits() const {
|
||||
} // namespace compiler
|
||||
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_FFI_NATIVE_LOCATION_H_
|
||||
#define RUNTIME_VM_COMPILER_FFI_NATIVE_LOCATION_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/locations.h"
|
||||
#include "vm/compiler/ffi/native_type.h"
|
||||
#include "vm/growable_array.h"
|
||||
|
||||
@@ -5,10 +5,6 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_FFI_RECOGNIZED_METHOD_H_
|
||||
#define RUNTIME_VM_COMPILER_FFI_RECOGNIZED_METHOD_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include <platform/globals.h>
|
||||
|
||||
#include "vm/compiler/method_recognizer.h"
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
#include "vm/growable_array.h"
|
||||
#include "vm/object_store.h"
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
namespace dart {
|
||||
namespace kernel {
|
||||
|
||||
@@ -1144,3 +1146,5 @@ Fragment BaseFlowGraphBuilder::InitConstantParameters() {
|
||||
|
||||
} // namespace kernel
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,16 +5,14 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_FRONTEND_BASE_FLOW_GRAPH_BUILDER_H_
|
||||
#define RUNTIME_VM_COMPILER_FRONTEND_BASE_FLOW_GRAPH_BUILDER_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include <initializer_list>
|
||||
|
||||
#include "vm/compiler/backend/flow_graph.h"
|
||||
#include "vm/compiler/backend/il.h"
|
||||
#include "vm/object.h"
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
namespace dart {
|
||||
|
||||
class InlineExitCollector;
|
||||
@@ -453,4 +451,5 @@ class BaseFlowGraphBuilder {
|
||||
} // namespace kernel
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
#endif // RUNTIME_VM_COMPILER_FRONTEND_BASE_FLOW_GRAPH_BUILDER_H_
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
#include "vm/constants_kbc.h"
|
||||
#include "vm/hash.h"
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
namespace dart {
|
||||
namespace kernel {
|
||||
|
||||
@@ -205,3 +207,5 @@ uint32_t BytecodeFingerprintHelper::CalculateFunctionFingerprint(
|
||||
|
||||
} // namespace kernel
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,13 +5,11 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_FRONTEND_BYTECODE_FINGERPRINTS_H_
|
||||
#define RUNTIME_VM_COMPILER_FRONTEND_BYTECODE_FINGERPRINTS_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "platform/allocation.h"
|
||||
#include "vm/object.h"
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
namespace dart {
|
||||
namespace kernel {
|
||||
|
||||
@@ -23,4 +21,5 @@ class BytecodeFingerprintHelper : public AllStatic {
|
||||
} // namespace kernel
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
#endif // RUNTIME_VM_COMPILER_FRONTEND_BYTECODE_FINGERPRINTS_H_
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
#include "vm/stack_frame.h"
|
||||
#include "vm/stack_frame_kbc.h"
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#define B (flow_graph_builder_)
|
||||
#define Z (zone_)
|
||||
|
||||
@@ -2346,3 +2348,5 @@ FlowGraph* BytecodeFlowGraphBuilder::BuildGraph() {
|
||||
|
||||
} // namespace kernel
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
@@ -5,15 +5,13 @@
|
||||
#ifndef RUNTIME_VM_COMPILER_FRONTEND_BYTECODE_FLOW_GRAPH_BUILDER_H_
|
||||
#define RUNTIME_VM_COMPILER_FRONTEND_BYTECODE_FLOW_GRAPH_BUILDER_H_
|
||||
|
||||
#if defined(DART_PRECOMPILED_RUNTIME)
|
||||
#error "AOT runtime should not use compiler sources (including header files)"
|
||||
#endif // defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
#include "vm/compiler/backend/il.h"
|
||||
#include "vm/compiler/frontend/base_flow_graph_builder.h"
|
||||
#include "vm/compiler/frontend/kernel_translation_helper.h" // For InferredTypeMetadata
|
||||
#include "vm/constants_kbc.h"
|
||||
|
||||
#if !defined(DART_PRECOMPILED_RUNTIME)
|
||||
|
||||
namespace dart {
|
||||
namespace kernel {
|
||||
|
||||
@@ -249,4 +247,5 @@ class BytecodeFlowGraphBuilder {
|
||||
} // namespace kernel
|
||||
} // namespace dart
|
||||
|
||||
#endif // !defined(DART_PRECOMPILED_RUNTIME)
|
||||
#endif // RUNTIME_VM_COMPILER_FRONTEND_BYTECODE_FLOW_GRAPH_BUILDER_H_
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user