diff src/share/vm/compiler/abstractCompiler.hpp @ 14518:d8041d695d19

Merged with jdk9/dev/hotspot changeset 3812c088b945
author twisti
date Tue, 11 Mar 2014 18:45:59 -0700
parents 096c224171c4 16e101c8691f
children 4ca6dc0799b6
line wrap: on
line diff
--- a/src/share/vm/compiler/abstractCompiler.hpp	Wed Mar 12 00:00:05 2014 +0100
+++ b/src/share/vm/compiler/abstractCompiler.hpp	Tue Mar 11 18:45:59 2014 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2014, 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
@@ -78,10 +78,14 @@
   // This thread will initialize the compiler runtime.
   bool should_perform_init();
 
-  // The (closed set) of concrete compiler classes. Using an tag like this
-  // avoids a confusing use of macros around the definition of the
-  // 'is_<compiler type>' methods.
-  enum Type { c1, c2, shark, graal };
+  // The (closed set) of concrete compiler classes.
+  enum Type {
+    none,
+    c1,
+    c2,
+    shark,
+    graal
+  };
 
  private:
   Type _type;
@@ -106,8 +110,10 @@
   virtual bool supports_native()                 { return true; }
   virtual bool supports_osr   ()                 { return true; }
   virtual bool can_compile_method(methodHandle method)  { return true; }
-  bool is_c1   ()                                { return _type == c1; }
-  bool is_c2   ()                                { return _type == c2; }
+
+  // Compiler type queries.
+  bool is_c1()                                   { return _type == c1; }
+  bool is_c2()                                   { return _type == c2; }
   bool is_shark()                                { return _type == shark; }
   bool is_graal()                                { return _type == graal; }