/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
#ifndef SHARE_VM_OPTO_STRINGOPTS_HPP
#define SHARE_VM_OPTO_STRINGOPTS_HPP
#include "opto/phaseX.hpp"
class StringConcat;
friend class StringConcat;
private:
// List of dead nodes to clean up aggressively at the end
// Memory slices needed for code gen
int char_adr_idx;
// Integer.sizeTable - used for int to String conversion
// A set for use by various stages
// Collect a list of all SB.toString calls
// Examine the use of the SB alloc to see if it can be replace with
// a single string construction.
// Replace all the SB calls in concat with an optimization String allocation
// Load the value of a static field, performing any constant folding.
// Compute the number of characters required to represent the int value
// Copy the characters representing value into char_array starting at start
// Copy of the contents of the String str into char_array starting at index start.
// Clean up any leftover nodes
void remove_dead_nodes();
enum {
// max length of constant string copy unrolling in copy_string
};
public:
};
#endif // SHARE_VM_OPTO_STRINGOPTS_HPP