Mercurial > hg > truffle
comparison src/cpu/zero/vm/cppInterpreter_zero.cpp @ 3261:732454aaf5cb
Merge
author | jmasa |
---|---|
date | Wed, 20 Apr 2011 20:32:45 -0700 |
parents | 4b95bbb36464 e1162778c1c8 |
children | 3d2ab563047a |
comparison
equal
deleted
inserted
replaced
3247:df8a1555b1ea | 3261:732454aaf5cb |
---|---|
1300 return NULL; | 1300 return NULL; |
1301 | 1301 |
1302 return generate_entry((address) CppInterpreter::accessor_entry); | 1302 return generate_entry((address) CppInterpreter::accessor_entry); |
1303 } | 1303 } |
1304 | 1304 |
1305 address InterpreterGenerator::generate_Reference_get_entry(void) { | |
1306 #ifndef SERIALGC | |
1307 if (UseG1GC) { | |
1308 // We need to generate have a routine that generates code to: | |
1309 // * load the value in the referent field | |
1310 // * passes that value to the pre-barrier. | |
1311 // | |
1312 // In the case of G1 this will record the value of the | |
1313 // referent in an SATB buffer if marking is active. | |
1314 // This will cause concurrent marking to mark the referent | |
1315 // field as live. | |
1316 Unimplemented(); | |
1317 } | |
1318 #endif // SERIALGC | |
1319 | |
1320 // If G1 is not enabled then attempt to go through the accessor entry point | |
1321 // Reference.get is an accessor | |
1322 return generate_accessor_entry(); | |
1323 } | |
1324 | |
1305 address InterpreterGenerator::generate_native_entry(bool synchronized) { | 1325 address InterpreterGenerator::generate_native_entry(bool synchronized) { |
1306 assert(synchronized == false, "should be"); | 1326 assert(synchronized == false, "should be"); |
1307 | 1327 |
1308 return generate_entry((address) CppInterpreter::native_entry); | 1328 return generate_entry((address) CppInterpreter::native_entry); |
1309 } | 1329 } |
1353 case Interpreter::java_lang_math_abs: | 1373 case Interpreter::java_lang_math_abs: |
1354 case Interpreter::java_lang_math_log: | 1374 case Interpreter::java_lang_math_log: |
1355 case Interpreter::java_lang_math_log10: | 1375 case Interpreter::java_lang_math_log10: |
1356 case Interpreter::java_lang_math_sqrt: | 1376 case Interpreter::java_lang_math_sqrt: |
1357 entry_point = ((InterpreterGenerator*) this)->generate_math_entry(kind); | 1377 entry_point = ((InterpreterGenerator*) this)->generate_math_entry(kind); |
1378 break; | |
1379 | |
1380 case Interpreter::java_lang_ref_reference_get: | |
1381 entry_point = ((InterpreterGenerator*)this)->generate_Reference_get_entry(); | |
1358 break; | 1382 break; |
1359 | 1383 |
1360 default: | 1384 default: |
1361 ShouldNotReachHere(); | 1385 ShouldNotReachHere(); |
1362 } | 1386 } |