Mercurial > hg > graal-compiler
comparison src/share/vm/graal/graalCodeInstaller.cpp @ 9192:123991e4fbd8
removed unused CodeInstaller constructor
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 19 Apr 2013 11:51:20 +0200 |
parents | 700f6a63763a |
children | 0266549ff6e0 |
comparison
equal
deleted
inserted
replaced
9191:700f6a63763a | 9192:123991e4fbd8 |
---|---|
347 int stack_slots = _total_frame_size / HeapWordSize; // conversion to words | 347 int stack_slots = _total_frame_size / HeapWordSize; // conversion to words |
348 GrowableArray<jlong>* leaf_graph_ids = get_leaf_graph_ids(comp_result); | 348 GrowableArray<jlong>* leaf_graph_ids = get_leaf_graph_ids(comp_result); |
349 | 349 |
350 result = GraalEnv::register_method(method, nm, entry_bci, &_offsets, _custom_stack_area_offset, &buffer, stack_slots, _debug_recorder->_oopmaps, &_exception_handler_table, | 350 result = GraalEnv::register_method(method, nm, entry_bci, &_offsets, _custom_stack_area_offset, &buffer, stack_slots, _debug_recorder->_oopmaps, &_exception_handler_table, |
351 GraalCompiler::instance(), _debug_recorder, _dependencies, NULL, -1, false, leaf_graph_ids, installed_code, triggered_deoptimizations); | 351 GraalCompiler::instance(), _debug_recorder, _dependencies, NULL, -1, false, leaf_graph_ids, installed_code, triggered_deoptimizations); |
352 } | |
353 | |
354 // constructor used to create a stub | |
355 CodeInstaller::CodeInstaller(Handle& target_method, BufferBlob*& blob, jlong& id) { | |
356 No_Safepoint_Verifier no_safepoint; | |
357 | |
358 _oop_recorder = new OopRecorder(&_arena); | |
359 initialize_fields(target_method(), NULL); | |
360 assert(_name != NULL, "installMethod needs NON-NULL name"); | |
361 | |
362 // (very) conservative estimate: each site needs a relocation | |
363 GraalCompiler::initialize_buffer_blob(); | |
364 CodeBuffer buffer(JavaThread::current()->get_buffer_blob()); | |
365 initialize_buffer(buffer); | |
366 | |
367 const char* cname = java_lang_String::as_utf8_string(_name); | |
368 blob = BufferBlob::create(strdup(cname), &buffer); // this is leaking strings... but only a limited number of stubs will be created | |
369 IF_TRACE_graal_3 Disassembler::decode((CodeBlob*) blob); | |
370 id = (jlong)blob->code_begin(); | |
371 } | 352 } |
372 | 353 |
373 void CodeInstaller::initialize_fields(oop comp_result, methodHandle method) { | 354 void CodeInstaller::initialize_fields(oop comp_result, methodHandle method) { |
374 _comp_result = HotSpotCompilationResult::comp(comp_result); | 355 _comp_result = HotSpotCompilationResult::comp(comp_result); |
375 if (!method.is_null()) { | 356 if (!method.is_null()) { |