comparison src/share/vm/graal/graalRuntime.cpp @ 9581:d84ea522800e

replaced arithmetic_[fd]rem stubs with inline compiled code (GRAAL-81)
author Doug Simon <doug.simon@oracle.com>
date Mon, 06 May 2013 22:07:48 +0200
parents ffd3d85e055f
children db2125285960
comparison
equal deleted inserted replaced
9580:c59beafffb29 9581:d84ea522800e
123 assert(oop_maps == NULL || sasm->frame_size() != GraalStubAssembler::no_frame_size, 123 assert(oop_maps == NULL || sasm->frame_size() != GraalStubAssembler::no_frame_size,
124 "if stub has an oop map it must have a valid frame size"); 124 "if stub has an oop map it must have a valid frame size");
125 125
126 #ifdef ASSERT 126 #ifdef ASSERT
127 // Make sure that stubs that need oopmaps have them 127 // Make sure that stubs that need oopmaps have them
128 switch (id) { 128 assert(oop_maps != NULL, "must have an oopmap");
129 // These stubs don't need to have an oopmap
130 case arithmetic_frem_id:
131 case arithmetic_drem_id:
132 break;
133 // All other stubs should have oopmaps
134 default:
135 assert(oop_maps != NULL, "must have an oopmap");
136 }
137 #endif 129 #endif
138 130
139 // align so printing shows nop's instead of random code at the end (SimpleStubs are aligned) 131 // align so printing shows nop's instead of random code at the end (SimpleStubs are aligned)
140 sasm->align(BytesPerWord); 132 sasm->align(BytesPerWord);
141 // make sure all code is in code buffer 133 // make sure all code is in code buffer