258 // Push a projection node onto the projection list
259 void push_projection(Node* node) {
260 _projection_list.push(node);
261 }
262
263 Node* pop_projection() {
264 return _projection_list.pop();
265 }
266
267 // Number of nodes in the projection list
268 uint number_of_projections() const {
269 return _projection_list.size();
270 }
271
272 // Select instructions for entire method
273 void match();
274
275 // Helper for match
276 OptoReg::Name warp_incoming_stk_arg( VMReg reg );
277
278 // Transform, then walk. Does implicit DCE while walking.
279 // Name changed from "transform" to avoid it being virtual.
280 Node *xform( Node *old_space_node, int Nodes );
281
282 // Match a single Ideal Node - turn it into a 1-Node tree; Label & Reduce.
283 MachNode *match_tree( const Node *n );
284 MachNode *match_sfpt( SafePointNode *sfpt );
285 // Helper for match_sfpt
286 OptoReg::Name warp_outgoing_stk_arg( VMReg reg, OptoReg::Name begin_out_arg_area, OptoReg::Name &out_arg_limit_per_call );
287
288 // Initialize first stack mask and related masks.
289 void init_first_stack_mask();
290
291 // If we should save-on-entry this register
292 bool is_save_on_entry( int reg );
293
294 // Fixup the save-on-entry registers
295 void Fixup_Save_On_Entry( );
296
297 // --- Frame handling ---
392
393 // Alignment of stack in bytes, standard Intel word alignment is 4.
394 // Sparc probably wants at least double-word (8).
395 static uint stack_alignment_in_bytes();
396 // Alignment of stack, measured in stack slots.
397 // The size of stack slots is defined by VMRegImpl::stack_slot_size.
398 static uint stack_alignment_in_slots() {
399 return stack_alignment_in_bytes() / (VMRegImpl::stack_slot_size);
400 }
401
402 // Convert a sig into a calling convention register layout
403 // and find interesting things about it.
404 static OptoReg::Name find_receiver();
405 // Return address register. On Intel it is a stack-slot. On PowerPC
406 // it is the Link register. On Sparc it is r31?
407 virtual OptoReg::Name return_addr() const;
408 RegMask _return_addr_mask;
409 // Return value register. On Intel it is EAX.
410 static OptoRegPair return_value(uint ideal_reg);
411 static OptoRegPair c_return_value(uint ideal_reg);
412 RegMask _return_value_mask;
413 // Inline Cache Register
414 static OptoReg::Name inline_cache_reg();
415 static int inline_cache_reg_encode();
416
417 // Register for DIVI projection of divmodI
418 static RegMask divI_proj_mask();
419 // Register for MODI projection of divmodI
420 static RegMask modI_proj_mask();
421
422 // Register for DIVL projection of divmodL
423 static RegMask divL_proj_mask();
424 // Register for MODL projection of divmodL
425 static RegMask modL_proj_mask();
426
427 // Use hardware DIV instruction when it is faster than
428 // a code which use multiply for division by constant.
429 static bool use_asm_for_ldiv_by_con( jlong divisor );
430
431 static const RegMask method_handle_invoke_SP_save_mask();
432
|
258 // Push a projection node onto the projection list
259 void push_projection(Node* node) {
260 _projection_list.push(node);
261 }
262
263 Node* pop_projection() {
264 return _projection_list.pop();
265 }
266
267 // Number of nodes in the projection list
268 uint number_of_projections() const {
269 return _projection_list.size();
270 }
271
272 // Select instructions for entire method
273 void match();
274
275 // Helper for match
276 OptoReg::Name warp_incoming_stk_arg( VMReg reg );
277
278 RegMask* return_values_mask(const TypeFunc* tf);
279
280 // Transform, then walk. Does implicit DCE while walking.
281 // Name changed from "transform" to avoid it being virtual.
282 Node *xform( Node *old_space_node, int Nodes );
283
284 // Match a single Ideal Node - turn it into a 1-Node tree; Label & Reduce.
285 MachNode *match_tree( const Node *n );
286 MachNode *match_sfpt( SafePointNode *sfpt );
287 // Helper for match_sfpt
288 OptoReg::Name warp_outgoing_stk_arg( VMReg reg, OptoReg::Name begin_out_arg_area, OptoReg::Name &out_arg_limit_per_call );
289
290 // Initialize first stack mask and related masks.
291 void init_first_stack_mask();
292
293 // If we should save-on-entry this register
294 bool is_save_on_entry( int reg );
295
296 // Fixup the save-on-entry registers
297 void Fixup_Save_On_Entry( );
298
299 // --- Frame handling ---
394
395 // Alignment of stack in bytes, standard Intel word alignment is 4.
396 // Sparc probably wants at least double-word (8).
397 static uint stack_alignment_in_bytes();
398 // Alignment of stack, measured in stack slots.
399 // The size of stack slots is defined by VMRegImpl::stack_slot_size.
400 static uint stack_alignment_in_slots() {
401 return stack_alignment_in_bytes() / (VMRegImpl::stack_slot_size);
402 }
403
404 // Convert a sig into a calling convention register layout
405 // and find interesting things about it.
406 static OptoReg::Name find_receiver();
407 // Return address register. On Intel it is a stack-slot. On PowerPC
408 // it is the Link register. On Sparc it is r31?
409 virtual OptoReg::Name return_addr() const;
410 RegMask _return_addr_mask;
411 // Return value register. On Intel it is EAX.
412 static OptoRegPair return_value(uint ideal_reg);
413 static OptoRegPair c_return_value(uint ideal_reg);
414 RegMask* _return_values_mask;
415 // Inline Cache Register
416 static OptoReg::Name inline_cache_reg();
417 static int inline_cache_reg_encode();
418
419 // Register for DIVI projection of divmodI
420 static RegMask divI_proj_mask();
421 // Register for MODI projection of divmodI
422 static RegMask modI_proj_mask();
423
424 // Register for DIVL projection of divmodL
425 static RegMask divL_proj_mask();
426 // Register for MODL projection of divmodL
427 static RegMask modL_proj_mask();
428
429 // Use hardware DIV instruction when it is faster than
430 // a code which use multiply for division by constant.
431 static bool use_asm_for_ldiv_by_con( jlong divisor );
432
433 static const RegMask method_handle_invoke_SP_save_mask();
434
|