equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2016, 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. |
75 } |
75 } |
76 #endif |
76 #endif |
77 } |
77 } |
78 }; |
78 }; |
79 |
79 |
80 |
80 class CodeStubList: public GrowableArray<CodeStub*> { |
81 define_array(CodeStubArray, CodeStub*) |
81 public: |
82 define_stack(_CodeStubList, CodeStubArray) |
82 CodeStubList(): GrowableArray<CodeStub*>() {} |
83 |
|
84 class CodeStubList: public _CodeStubList { |
|
85 public: |
|
86 CodeStubList(): _CodeStubList() {} |
|
87 |
83 |
88 void append(CodeStub* stub) { |
84 void append(CodeStub* stub) { |
89 if (!contains(stub)) { |
85 if (!contains(stub)) { |
90 _CodeStubList::append(stub); |
86 GrowableArray<CodeStub*>::append(stub); |
91 } |
87 } |
92 } |
88 } |
93 }; |
89 }; |
94 |
90 |
95 class CounterOverflowStub: public CodeStub { |
91 class CounterOverflowStub: public CodeStub { |