mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8251462: Simplify compilation policy
Reviewed-by: cjplummer, kvn
This commit is contained in:
parent
71128cf4ce
commit
1519632597
98 changed files with 2343 additions and 3818 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -303,9 +303,6 @@
|
|||
|
||||
// COMPILER1 variant
|
||||
#ifdef COMPILER1
|
||||
#ifdef COMPILER2
|
||||
#define TIERED
|
||||
#endif
|
||||
#define COMPILER1_PRESENT(code) code
|
||||
#define NOT_COMPILER1(code)
|
||||
#else // COMPILER1
|
||||
|
@ -337,13 +334,23 @@
|
|||
#define NOT_COMPILER2_OR_JVMCI_RETURN_(code) { return code; }
|
||||
#endif
|
||||
|
||||
#ifdef TIERED
|
||||
#define TIERED_ONLY(code) code
|
||||
#define NOT_TIERED(code)
|
||||
#else // TIERED
|
||||
#define TIERED_ONLY(code)
|
||||
#define NOT_TIERED(code) code
|
||||
#endif // TIERED
|
||||
// COMPILER1 and COMPILER2
|
||||
#if defined(COMPILER1) && defined(COMPILER2)
|
||||
#define COMPILER1_AND_COMPILER2 1
|
||||
#define COMPILER1_AND_COMPILER2_PRESENT(code) code
|
||||
#else
|
||||
#define COMPILER1_AND_COMPILER2 0
|
||||
#define COMPILER1_AND_COMPILER2_PRESENT(code)
|
||||
#endif
|
||||
|
||||
// COMPILER1 or COMPILER2
|
||||
#if defined(COMPILER1) || defined(COMPILER2)
|
||||
#define COMPILER1_OR_COMPILER2 1
|
||||
#define COMPILER1_OR_COMPILER2_PRESENT(code) code
|
||||
#else
|
||||
#define COMPILER1_OR_COMPILER2 0
|
||||
#define COMPILER1_OR_COMPILER2_PRESENT(code)
|
||||
#endif
|
||||
|
||||
|
||||
// PRODUCT variant
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue