Mercurial > hg > truffle
comparison src/share/vm/opto/regalloc.hpp @ 3939:f6f3bb0ee072
7088955: add C2 IR support to the SA
Reviewed-by: kvn
author | never |
---|---|
date | Sun, 11 Sep 2011 14:48:24 -0700 |
parents | f95d63e2154a |
children | 8373c19be854 |
comparison
equal
deleted
inserted
replaced
3938:e6b1331a51d2 | 3939:f6f3bb0ee072 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
37 #define MAX_REG_ALLOCATORS 10 | 37 #define MAX_REG_ALLOCATORS 10 |
38 | 38 |
39 //------------------------------PhaseRegAlloc------------------------------------ | 39 //------------------------------PhaseRegAlloc------------------------------------ |
40 // Abstract register allocator | 40 // Abstract register allocator |
41 class PhaseRegAlloc : public Phase { | 41 class PhaseRegAlloc : public Phase { |
42 friend class VMStructs; | |
42 static void (*_alloc_statistics[MAX_REG_ALLOCATORS])(); | 43 static void (*_alloc_statistics[MAX_REG_ALLOCATORS])(); |
43 static int _num_allocators; | 44 static int _num_allocators; |
44 | 45 |
45 protected: | 46 protected: |
46 OptoRegPair *_node_regs; | 47 OptoRegPair *_node_regs; |