0N/A/*
1879N/A * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
0N/A * published by the Free Software Foundation.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1472N/A * or visit www.oracle.com if you need additional information or have any
1472N/A * questions.
0N/A *
0N/A */
0N/A
1879N/A#ifndef SHARE_VM_OPTO_MACRO_HPP
1879N/A#define SHARE_VM_OPTO_MACRO_HPP
1879N/A
1879N/A#include "opto/phase.hpp"
1879N/A
0N/Aclass AllocateNode;
0N/Aclass AllocateArrayNode;
0N/Aclass CallNode;
0N/Aclass Node;
0N/Aclass PhaseIterGVN;
0N/A
0N/Aclass PhaseMacroExpand : public Phase {
0N/Aprivate:
0N/A PhaseIterGVN &_igvn;
0N/A
0N/A // Helper methods roughly modelled after GraphKit:
0N/A Node* top() const { return C->top(); }
0N/A Node* intcon(jint con) const { return _igvn.intcon(con); }
0N/A Node* longcon(jlong con) const { return _igvn.longcon(con); }
0N/A Node* makecon(const Type *t) const { return _igvn.makecon(t); }
0N/A Node* basic_plus_adr(Node* base, int offset) {
0N/A return (offset == 0)? base: basic_plus_adr(base, MakeConX(offset));
0N/A }
0N/A Node* basic_plus_adr(Node* base, Node* ptr, int offset) {
0N/A return (offset == 0)? ptr: basic_plus_adr(base, ptr, MakeConX(offset));
0N/A }
0N/A Node* basic_plus_adr(Node* base, Node* offset) {
0N/A return basic_plus_adr(base, base, offset);
0N/A }
0N/A Node* basic_plus_adr(Node* base, Node* ptr, Node* offset) {
4022N/A Node* adr = new (C) AddPNode(base, ptr, offset);
0N/A return transform_later(adr);
0N/A }
0N/A Node* transform_later(Node* n) {
0N/A // equivalent to _gvn.transform in GraphKit, Ideal, etc.
0N/A _igvn.register_new_node_with_optimizer(n);
0N/A return n;
0N/A }
0N/A void set_eden_pointers(Node* &eden_top_adr, Node* &eden_end_adr);
0N/A Node* make_load( Node* ctl, Node* mem, Node* base, int offset,
0N/A const Type* value_type, BasicType bt);
0N/A Node* make_store(Node* ctl, Node* mem, Node* base, int offset,
0N/A Node* value, BasicType bt);
0N/A
0N/A // projections extracted from a call node
0N/A ProjNode *_fallthroughproj;
0N/A ProjNode *_fallthroughcatchproj;
0N/A ProjNode *_ioproj_fallthrough;
0N/A ProjNode *_ioproj_catchall;
0N/A ProjNode *_catchallcatchproj;
0N/A ProjNode *_memproj_fallthrough;
0N/A ProjNode *_memproj_catchall;
0N/A ProjNode *_resproj;
0N/A
0N/A
0N/A void expand_allocate(AllocateNode *alloc);
0N/A void expand_allocate_array(AllocateArrayNode *alloc);
0N/A void expand_allocate_common(AllocateNode* alloc,
0N/A Node* length,
0N/A const TypeFunc* slow_call_type,
0N/A address slow_call_address);
73N/A Node *value_from_mem(Node *mem, BasicType ft, const Type *ftype, const TypeOopPtr *adr_t, Node *alloc);
247N/A Node *value_from_mem_phi(Node *mem, BasicType ft, const Type *ftype, const TypeOopPtr *adr_t, Node *alloc, Node_Stack *value_phis, int level);
73N/A
73N/A bool eliminate_allocate_node(AllocateNode *alloc);
73N/A bool can_eliminate_allocation(AllocateNode *alloc, GrowableArray <SafePointNode *>& safepoints);
Error!

 

There was an error!

null

java.lang.NullPointerException