comparison src/share/vm/graal/graalCodeInstaller.hpp @ 13493:03bb0ee05409

made CodeInstaller subclassable and virtualized the methods for creating ScopeValues
author Doug Simon <doug.simon@oracle.com>
date Thu, 02 Jan 2014 18:02:01 +0100
parents ce0b00597980
children 4e679d50ba9a
comparison
equal deleted inserted replaced
13492:896c8712c7b4 13493:03bb0ee05409
82 void pd_relocate_JavaMethod(oop method, jint pc_offset); 82 void pd_relocate_JavaMethod(oop method, jint pc_offset);
83 void pd_relocate_poll(address pc, jint mark); 83 void pd_relocate_poll(address pc, jint mark);
84 84
85 public: 85 public:
86 86
87 CodeInstaller(Handle& comp_result, GraalEnv::CodeInstallResult& result, CodeBlob*& cb, Handle installed_code, Handle triggered_deoptimizations); 87 CodeInstaller() {};
88 GraalEnv::CodeInstallResult install(Handle& compiled_code, CodeBlob*& cb, Handle installed_code, Handle triggered_deoptimizations);
88 89
89 static address runtime_call_target_address(oop runtime_call); 90 static address runtime_call_target_address(oop runtime_call);
91
92 protected:
93
94 virtual ScopeValue* get_scope_value(oop value, int total_frame_size, GrowableArray<ScopeValue*>* objects, ScopeValue* &second, OopRecorder* oop_recorder);
95 virtual MonitorValue* get_monitor_value(oop value, int total_frame_size, GrowableArray<ScopeValue*>* objects, OopRecorder* oop_recorder);
90 96
91 private: 97 private:
92 // extract the fields of the CompilationResult 98 // extract the fields of the CompilationResult
93 void initialize_fields(oop target_method); 99 void initialize_fields(oop target_method);
94 void initialize_assumptions(oop target_method); 100 void initialize_assumptions(oop target_method);