comparison src/share/vm/adlc/output_c.cpp @ 4114:6729bbc1fcd6

7003454: order constants in constant table by number of references in code Reviewed-by: kvn, never, bdelsart
author twisti
date Wed, 16 Nov 2011 01:39:50 -0800
parents 11211f7cb5a0
children db2e64ca2d5a
comparison
equal deleted inserted replaced
4113:8c57262447d3 4114:6729bbc1fcd6
2583 2583
2584 // (1) 2584 // (1)
2585 // Output instruction's emit prototype 2585 // Output instruction's emit prototype
2586 fprintf(fp, "void %sNode::eval_constant(Compile* C) {\n", inst._ident); 2586 fprintf(fp, "void %sNode::eval_constant(Compile* C) {\n", inst._ident);
2587 2587
2588 // For ideal jump nodes, allocate a jump table. 2588 // For ideal jump nodes, add a jump-table entry.
2589 if (inst.is_ideal_jump()) { 2589 if (inst.is_ideal_jump()) {
2590 fprintf(fp, " _constant = C->constant_table().allocate_jump_table(this);\n"); 2590 fprintf(fp, " _constant = C->constant_table().add_jump_table(this);\n");
2591 } 2591 }
2592 2592
2593 // If user did not define an encode section, 2593 // If user did not define an encode section,
2594 // provide stub that does not generate any machine code. 2594 // provide stub that does not generate any machine code.
2595 if ((_encode == NULL) || (encode == NULL)) { 2595 if ((_encode == NULL) || (encode == NULL)) {