Mercurial > hg > graal-jvmci-8
comparison src/share/vm/graal/graalCodeInstaller.cpp @ 15582:063ec2920d21
made Graal runtime initialization in hosted mode lazy
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 09 May 2014 18:46:41 +0200 |
parents | a20be10ad437 |
children | 22f56c3eadb7 |
comparison
equal
deleted
inserted
replaced
15581:0dc0926cf0d8 | 15582:063ec2920d21 |
---|---|
200 second = NULL; | 200 second = NULL; |
201 if (value == Value::ILLEGAL()) { | 201 if (value == Value::ILLEGAL()) { |
202 return new LocationValue(Location::new_stk_loc(Location::invalid, 0)); | 202 return new LocationValue(Location::new_stk_loc(Location::invalid, 0)); |
203 } | 203 } |
204 | 204 |
205 BasicType type = GraalCompiler::kindToBasicType(Kind::typeChar(Value::kind(value))); | 205 BasicType type = GraalRuntime::kindToBasicType(Kind::typeChar(Value::kind(value))); |
206 Location::Type locationType = Location::normal; | 206 Location::Type locationType = Location::normal; |
207 if (type == T_OBJECT || type == T_ARRAY) locationType = Location::oop; | 207 if (type == T_OBJECT || type == T_ARRAY) locationType = Location::oop; |
208 | 208 |
209 if (value->is_a(RegisterValue::klass())) { | 209 if (value->is_a(RegisterValue::klass())) { |
210 jint number = code_Register::number(RegisterValue::reg(value)); | 210 jint number = code_Register::number(RegisterValue::reg(value)); |
380 } | 380 } |
381 } | 381 } |
382 | 382 |
383 // constructor used to create a method | 383 // constructor used to create a method |
384 GraalEnv::CodeInstallResult CodeInstaller::install(Handle& compiled_code, CodeBlob*& cb, Handle installed_code, Handle speculation_log) { | 384 GraalEnv::CodeInstallResult CodeInstaller::install(Handle& compiled_code, CodeBlob*& cb, Handle installed_code, Handle speculation_log) { |
385 BufferBlob* buffer_blob = GraalCompiler::initialize_buffer_blob(); | 385 BufferBlob* buffer_blob = GraalRuntime::initialize_buffer_blob(); |
386 if (buffer_blob == NULL) { | 386 if (buffer_blob == NULL) { |
387 return GraalEnv::cache_full; | 387 return GraalEnv::cache_full; |
388 } | 388 } |
389 | 389 |
390 CodeBuffer buffer(buffer_blob); | 390 CodeBuffer buffer(buffer_blob); |