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