< prev index next >

src/hotspot/share/opto/matcher.hpp

Print this page

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


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

372 
373   // Alignment of stack in bytes, standard Intel word alignment is 4.
374   // Sparc probably wants at least double-word (8).
375   static uint stack_alignment_in_bytes();
376   // Alignment of stack, measured in stack slots.
377   // The size of stack slots is defined by VMRegImpl::stack_slot_size.
378   static uint stack_alignment_in_slots() {
379     return stack_alignment_in_bytes() / (VMRegImpl::stack_slot_size);
380   }
381 
382   // Convert a sig into a calling convention register layout
383   // and find interesting things about it.
384   static OptoReg::Name  find_receiver();
385   // Return address register.  On Intel it is a stack-slot.  On PowerPC
386   // it is the Link register.  On Sparc it is r31?
387   virtual OptoReg::Name return_addr() const;
388   RegMask              _return_addr_mask;
389   // Return value register.  On Intel it is EAX.
390   static OptoRegPair   return_value(uint ideal_reg);
391   static OptoRegPair c_return_value(uint ideal_reg);
392   RegMask                     _return_value_mask;
393   // Inline Cache Register
394   static OptoReg::Name  inline_cache_reg();
395   static int            inline_cache_reg_encode();
396 
397   // Register for DIVI projection of divmodI
398   static RegMask divI_proj_mask();
399   // Register for MODI projection of divmodI
400   static RegMask modI_proj_mask();
401 
402   // Register for DIVL projection of divmodL
403   static RegMask divL_proj_mask();
404   // Register for MODL projection of divmodL
405   static RegMask modL_proj_mask();
406 
407   // Use hardware DIV instruction when it is faster than
408   // a code which use multiply for division by constant.
409   static bool use_asm_for_ldiv_by_con( jlong divisor );
410 
411   static const RegMask method_handle_invoke_SP_save_mask();
412 

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

374 
375   // Alignment of stack in bytes, standard Intel word alignment is 4.
376   // Sparc probably wants at least double-word (8).
377   static uint stack_alignment_in_bytes();
378   // Alignment of stack, measured in stack slots.
379   // The size of stack slots is defined by VMRegImpl::stack_slot_size.
380   static uint stack_alignment_in_slots() {
381     return stack_alignment_in_bytes() / (VMRegImpl::stack_slot_size);
382   }
383 
384   // Convert a sig into a calling convention register layout
385   // and find interesting things about it.
386   static OptoReg::Name  find_receiver();
387   // Return address register.  On Intel it is a stack-slot.  On PowerPC
388   // it is the Link register.  On Sparc it is r31?
389   virtual OptoReg::Name return_addr() const;
390   RegMask              _return_addr_mask;
391   // Return value register.  On Intel it is EAX.
392   static OptoRegPair   return_value(uint ideal_reg);
393   static OptoRegPair c_return_value(uint ideal_reg);
394   RegMask*            _return_values_mask;
395   // Inline Cache Register
396   static OptoReg::Name  inline_cache_reg();
397   static int            inline_cache_reg_encode();
398 
399   // Register for DIVI projection of divmodI
400   static RegMask divI_proj_mask();
401   // Register for MODI projection of divmodI
402   static RegMask modI_proj_mask();
403 
404   // Register for DIVL projection of divmodL
405   static RegMask divL_proj_mask();
406   // Register for MODL projection of divmodL
407   static RegMask modL_proj_mask();
408 
409   // Use hardware DIV instruction when it is faster than
410   // a code which use multiply for division by constant.
411   static bool use_asm_for_ldiv_by_con( jlong divisor );
412 
413   static const RegMask method_handle_invoke_SP_save_mask();
414 
< prev index next >