mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 13:54:38 +02:00
6976186: integrate Shark HotSpot changes
Shark is a JIT compiler for Zero that uses the LLVM compiler infrastructure. Reviewed-by: kvn, twisti
This commit is contained in:
parent
c9ac8cc788
commit
d7310fb0f7
67 changed files with 12200 additions and 40 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1999, 2007, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2010, 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
|
||||
|
@ -45,18 +45,26 @@ class AbstractCompiler : public CHeapObj {
|
|||
// Missing feature tests
|
||||
virtual bool supports_native() { return true; }
|
||||
virtual bool supports_osr () { return true; }
|
||||
#if defined(TIERED) || ( !defined(COMPILER1) && !defined(COMPILER2))
|
||||
#if defined(TIERED) || ( !defined(COMPILER1) && !defined(COMPILER2) && !defined(SHARK))
|
||||
virtual bool is_c1 () { return false; }
|
||||
virtual bool is_c2 () { return false; }
|
||||
virtual bool is_shark() { return false; }
|
||||
#else
|
||||
#ifdef COMPILER1
|
||||
bool is_c1 () { return true; }
|
||||
bool is_c2 () { return false; }
|
||||
bool is_shark() { return false; }
|
||||
#endif // COMPILER1
|
||||
#ifdef COMPILER2
|
||||
bool is_c1 () { return false; }
|
||||
bool is_c2 () { return true; }
|
||||
bool is_shark() { return false; }
|
||||
#endif // COMPILER2
|
||||
#ifdef SHARK
|
||||
bool is_c1 () { return false; }
|
||||
bool is_c2 () { return false; }
|
||||
bool is_shark() { return true; }
|
||||
#endif // SHARK
|
||||
#endif // TIERED
|
||||
|
||||
// Customization
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue