comparison src/cpu/x86/vm/c1_MacroAssembler_x86.cpp @ 3064:8b0236cbed14

Make sure that the compiler is initialized at startup (and not on the first compiled method).
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 22 Jun 2011 21:51:26 +0200
parents b1a2afa37ec4
children b648304ba4ff
comparison
equal deleted inserted replaced
3062:848dd57066ad 3064:8b0236cbed14
281 t1_zero);) 281 t1_zero);)
282 decrement(index); 282 decrement(index);
283 jcc(Assembler::notZero, loop); 283 jcc(Assembler::notZero, loop);
284 } 284 }
285 } 285 }
286 286
287 if (CURRENT_ENV->dtrace_alloc_probes()) { 287 // (tw) fix me
288 assert(obj == rax, "must be"); 288 // if (CURRENT_ENV->dtrace_alloc_probes()) {
289 call(RuntimeAddress(Runtime1::entry_for(Runtime1::dtrace_object_alloc_id))); 289 // assert(obj == rax, "must be");
290 } 290 // call(RuntimeAddress(Runtime1::entry_for(Runtime1::dtrace_object_alloc_id)));
291 // }
291 292
292 verify_oop(obj); 293 verify_oop(obj);
293 } 294 }
294 295
295 void C1_MacroAssembler::allocate_array(Register obj, Register len, Register t1, Register t2, int header_size, Address::ScaleFactor f, Register klass, Label& slow_case) { 296 void C1_MacroAssembler::allocate_array(Register obj, Register len, Register t1, Register t2, int header_size, Address::ScaleFactor f, Register klass, Label& slow_case) {
315 316
316 // clear rest of allocated space 317 // clear rest of allocated space
317 const Register len_zero = len; 318 const Register len_zero = len;
318 initialize_body(obj, arr_size, header_size * BytesPerWord, len_zero); 319 initialize_body(obj, arr_size, header_size * BytesPerWord, len_zero);
319 320
320 if (CURRENT_ENV->dtrace_alloc_probes()) { 321 // (tw) fix me
321 assert(obj == rax, "must be"); 322 // if (CURRENT_ENV->dtrace_alloc_probes()) {
322 call(RuntimeAddress(Runtime1::entry_for(Runtime1::dtrace_object_alloc_id))); 323 // assert(obj == rax, "must be");
323 } 324 // call(RuntimeAddress(Runtime1::entry_for(Runtime1::dtrace_object_alloc_id)));
325 // }
324 326
325 verify_oop(obj); 327 verify_oop(obj);
326 } 328 }
327 329
328 330