< prev index next >

src/hotspot/share/opto/matcher.hpp

Print this page

248   // Push a projection node onto the projection list
249   void push_projection(Node* node) {
250     _projection_list.push(node);
251   }
252 
253   Node* pop_projection() {
254     return _projection_list.pop();
255   }
256 
257   // Number of nodes in the projection list
258   uint number_of_projections() const {
259     return _projection_list.size();
260   }
261 
262   // Select instructions for entire method
263   void match();
264 
265   // Helper for match
266   OptoReg::Name warp_incoming_stk_arg( VMReg reg );
267 


268   // Transform, then walk.  Does implicit DCE while walking.
269   // Name changed from "transform" to avoid it being virtual.
270   Node *xform( Node *old_space_node, int Nodes );
271 
272   // Match a single Ideal Node - turn it into a 1-Node tree; Label & Reduce.
273   MachNode *match_tree( const Node *n );
274   MachNode *match_sfpt( SafePointNode *sfpt );
275   // Helper for match_sfpt
276   OptoReg::Name warp_outgoing_stk_arg( VMReg reg, OptoReg::Name begin_out_arg_area, OptoReg::Name &out_arg_limit_per_call );
277 
278   // Initialize first stack mask and related masks.
279   void init_first_stack_mask();
280 
281   // If we should save-on-entry this register
282   bool is_save_on_entry( int reg );
283 
284   // Fixup the save-on-entry registers
285   void Fixup_Save_On_Entry( );
286 
287   // --- Frame handling ---

395 
396   // Alignment of stack in bytes, standard Intel word alignment is 4.
397   // Sparc probably wants at least double-word (8).
398   static uint stack_alignment_in_bytes();
399   // Alignment of stack, measured in stack slots.
400   // The size of stack slots is defined by VMRegImpl::stack_slot_size.
401   static uint stack_alignment_in_slots() {
402     return stack_alignment_in_bytes() / (VMRegImpl::stack_slot_size);
403   }
404 
405   // Convert a sig into a calling convention register layout
406   // and find interesting things about it.
407   static OptoReg::Name  find_receiver();
408   // Return address register.  On Intel it is a stack-slot.  On PowerPC
409   // it is the Link register.  On Sparc it is r31?
410   virtual OptoReg::Name return_addr() const;
411   RegMask              _return_addr_mask;
412   // Return value register.  On Intel it is EAX.
413   static OptoRegPair   return_value(uint ideal_reg);
414   static OptoRegPair c_return_value(uint ideal_reg);
415   RegMask                     _return_value_mask;
416   // Inline Cache Register
417   static OptoReg::Name  inline_cache_reg();
418   static int            inline_cache_reg_encode();
419 
420   // Register for DIVI projection of divmodI
421   static const RegMask& divI_proj_mask();
422   // Register for MODI projection of divmodI
423   static const RegMask& modI_proj_mask();
424 
425   // Register for DIVL projection of divmodL
426   static const RegMask& divL_proj_mask();
427   // Register for MODL projection of divmodL
428   static const RegMask& modL_proj_mask();
429 
430   // Use hardware DIV instruction when it is faster than
431   // a code which use multiply for division by constant.
432   static bool use_asm_for_ldiv_by_con( jlong divisor );
433 
434   // Java-Interpreter calling convention
435   // (what you use when calling between compiled-Java and Interpreted-Java

248   // Push a projection node onto the projection list
249   void push_projection(Node* node) {
250     _projection_list.push(node);
251   }
252 
253   Node* pop_projection() {
254     return _projection_list.pop();
255   }
256 
257   // Number of nodes in the projection list
258   uint number_of_projections() const {
259     return _projection_list.size();
260   }
261 
262   // Select instructions for entire method
263   void match();
264 
265   // Helper for match
266   OptoReg::Name warp_incoming_stk_arg( VMReg reg );
267 
268   RegMask* return_values_mask(const TypeFunc* tf);
269 
270   // Transform, then walk.  Does implicit DCE while walking.
271   // Name changed from "transform" to avoid it being virtual.
272   Node *xform( Node *old_space_node, int Nodes );
273 
274   // Match a single Ideal Node - turn it into a 1-Node tree; Label & Reduce.
275   MachNode *match_tree( const Node *n );
276   MachNode *match_sfpt( SafePointNode *sfpt );
277   // Helper for match_sfpt
278   OptoReg::Name warp_outgoing_stk_arg( VMReg reg, OptoReg::Name begin_out_arg_area, OptoReg::Name &out_arg_limit_per_call );
279 
280   // Initialize first stack mask and related masks.
281   void init_first_stack_mask();
282 
283   // If we should save-on-entry this register
284   bool is_save_on_entry( int reg );
285 
286   // Fixup the save-on-entry registers
287   void Fixup_Save_On_Entry( );
288 
289   // --- Frame handling ---

397 
398   // Alignment of stack in bytes, standard Intel word alignment is 4.
399   // Sparc probably wants at least double-word (8).
400   static uint stack_alignment_in_bytes();
401   // Alignment of stack, measured in stack slots.
402   // The size of stack slots is defined by VMRegImpl::stack_slot_size.
403   static uint stack_alignment_in_slots() {
404     return stack_alignment_in_bytes() / (VMRegImpl::stack_slot_size);
405   }
406 
407   // Convert a sig into a calling convention register layout
408   // and find interesting things about it.
409   static OptoReg::Name  find_receiver();
410   // Return address register.  On Intel it is a stack-slot.  On PowerPC
411   // it is the Link register.  On Sparc it is r31?
412   virtual OptoReg::Name return_addr() const;
413   RegMask              _return_addr_mask;
414   // Return value register.  On Intel it is EAX.
415   static OptoRegPair   return_value(uint ideal_reg);
416   static OptoRegPair c_return_value(uint ideal_reg);
417   RegMask*            _return_values_mask;
418   // Inline Cache Register
419   static OptoReg::Name  inline_cache_reg();
420   static int            inline_cache_reg_encode();
421 
422   // Register for DIVI projection of divmodI
423   static const RegMask& divI_proj_mask();
424   // Register for MODI projection of divmodI
425   static const RegMask& modI_proj_mask();
426 
427   // Register for DIVL projection of divmodL
428   static const RegMask& divL_proj_mask();
429   // Register for MODL projection of divmodL
430   static const RegMask& modL_proj_mask();
431 
432   // Use hardware DIV instruction when it is faster than
433   // a code which use multiply for division by constant.
434   static bool use_asm_for_ldiv_by_con( jlong divisor );
435 
436   // Java-Interpreter calling convention
437   // (what you use when calling between compiled-Java and Interpreted-Java
< prev index next >