comparison src/share/vm/opto/callnode.hpp @ 18041:52b4284cb496

Merge with jdk8u20-b26
author Gilles Duboscq <duboscq@ssw.jku.at>
date Wed, 15 Oct 2014 16:02:50 +0200
parents 4ca6dc0799b6 0bf37f737702
children 7848fc12602b
comparison
equal deleted inserted replaced
17606:45d7b2c7029d 18041:52b4284cb496
297 297
298 // Miscellaneous utility functions 298 // Miscellaneous utility functions
299 JVMState* clone_deep(Compile* C) const; // recursively clones caller chain 299 JVMState* clone_deep(Compile* C) const; // recursively clones caller chain
300 JVMState* clone_shallow(Compile* C) const; // retains uncloned caller 300 JVMState* clone_shallow(Compile* C) const; // retains uncloned caller
301 void set_map_deep(SafePointNode *map);// reset map for all callers 301 void set_map_deep(SafePointNode *map);// reset map for all callers
302 void adapt_position(int delta); // Adapt offsets in in-array after adding an edge.
303 int interpreter_frame_size() const;
302 304
303 #ifndef PRODUCT 305 #ifndef PRODUCT
304 void format(PhaseRegAlloc *regalloc, const Node *n, outputStream* st) const; 306 void format(PhaseRegAlloc *regalloc, const Node *n, outputStream* st) const;
305 void dump_spec(outputStream *st) const; 307 void dump_spec(outputStream *st) const;
306 void dump_on(outputStream* st) const; 308 void dump_on(outputStream* st) const;
557 virtual Node *match( const ProjNode *proj, const Matcher *m ); 559 virtual Node *match( const ProjNode *proj, const Matcher *m );
558 virtual uint ideal_reg() const { return NotAMachineReg; } 560 virtual uint ideal_reg() const { return NotAMachineReg; }
559 // Are we guaranteed that this node is a safepoint? Not true for leaf calls and 561 // Are we guaranteed that this node is a safepoint? Not true for leaf calls and
560 // for some macro nodes whose expansion does not have a safepoint on the fast path. 562 // for some macro nodes whose expansion does not have a safepoint on the fast path.
561 virtual bool guaranteed_safepoint() { return true; } 563 virtual bool guaranteed_safepoint() { return true; }
562 // For macro nodes, the JVMState gets modified during expansion, so when cloning 564 // For macro nodes, the JVMState gets modified during expansion. If calls
563 // the node the JVMState must be cloned. 565 // use MachConstantBase, it gets modified during matching. So when cloning
564 virtual void clone_jvms(Compile* C) { } // default is not to clone 566 // the node the JVMState must be cloned. Default is not to clone.
567 virtual void clone_jvms(Compile* C) {
568 if (C->needs_clone_jvms() && jvms() != NULL) {
569 set_jvms(jvms()->clone_deep(C));
570 jvms()->set_map_deep(this);
571 }
572 }
565 573
566 // Returns true if the call may modify n 574 // Returns true if the call may modify n
567 virtual bool may_modify(const TypeOopPtr *t_oop, PhaseTransform *phase); 575 virtual bool may_modify(const TypeOopPtr *t_oop, PhaseTransform *phase);
568 // Does this node have a use of n other than in debug information? 576 // Does this node have a use of n other than in debug information?
569 bool has_non_debug_use(Node *n); 577 bool has_non_debug_use(Node *n);