Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/graal/graalCodeInstaller.hpp Mon Dec 30 20:36:04 2013 +0000 +++ b/src/share/vm/graal/graalCodeInstaller.hpp Thu Jan 02 18:02:01 2014 +0100 @@ -84,10 +84,16 @@ public: - CodeInstaller(Handle& comp_result, GraalEnv::CodeInstallResult& result, CodeBlob*& cb, Handle installed_code, Handle triggered_deoptimizations); + CodeInstaller() {}; + GraalEnv::CodeInstallResult install(Handle& compiled_code, CodeBlob*& cb, Handle installed_code, Handle triggered_deoptimizations); static address runtime_call_target_address(oop runtime_call); +protected: + + virtual ScopeValue* get_scope_value(oop value, int total_frame_size, GrowableArray<ScopeValue*>* objects, ScopeValue* &second, OopRecorder* oop_recorder); + virtual MonitorValue* get_monitor_value(oop value, int total_frame_size, GrowableArray<ScopeValue*>* objects, OopRecorder* oop_recorder); + private: // extract the fields of the CompilationResult void initialize_fields(oop target_method);