Mercurial > hg > truffle
diff src/share/vm/opto/compile.hpp @ 3851:95134e034042
7063629: use cbcond in C2 generated code on T4
Summary: Use new short branch instruction in C2 generated code.
Reviewed-by: never
author | kvn |
---|---|
date | Thu, 11 Aug 2011 12:08:11 -0700 |
parents | 08eb13460b3a |
children | 739a9abbbd4b |
line wrap: on
line diff
--- a/src/share/vm/opto/compile.hpp Wed Aug 10 14:06:57 2011 -0700 +++ b/src/share/vm/opto/compile.hpp Thu Aug 11 12:08:11 2011 -0700 @@ -785,11 +785,17 @@ // Process an OopMap Element while emitting nodes void Process_OopMap_Node(MachNode *mach, int code_offset); + // Initialize code buffer + CodeBuffer* init_buffer(uint* blk_starts); + // Write out basic block data to code buffer - void Fill_buffer(); + void fill_buffer(CodeBuffer* cb, uint* blk_starts); // Determine which variable sized branches can be shortened - void Shorten_branches(Label *labels, int& code_size, int& reloc_size, int& stub_size); + void shorten_branches(uint* blk_starts, int& code_size, int& reloc_size, int& stub_size); + + // Inserts nops where needed and final shorten branches. + void finalize_offsets_and_shorten(uint* blk_starts); // Compute the size of first NumberOfLoopInstrToAlign instructions // at the head of a loop.