Mercurial > hg > graal-jvmci-8
diff src/share/vm/opto/output.cpp @ 20289:69ea58782b1a
8054054: 8040121 is broken
Summary: C++ code pattern from 8040121 is incorrect
Reviewed-by: kvn
author | roland |
---|---|
date | Thu, 31 Jul 2014 19:59:36 +0200 |
parents | b6a8cc1e0d92 |
children | fc2c88ea11a9 |
line wrap: on
line diff
--- a/src/share/vm/opto/output.cpp Tue Jul 29 13:56:29 2014 +0200 +++ b/src/share/vm/opto/output.cpp Thu Jul 31 19:59:36 2014 +0200 @@ -783,7 +783,8 @@ // grow downwards in all implementations. // (If, on some machine, the interpreter's Java locals or stack // were to grow upwards, the embedded doubles would be word-swapped.) - jlong_accessor acc = { jlong_cast(d) }; + jlong_accessor acc; + acc.long_value = jlong_cast(d); array->append(new ConstantIntValue(acc.words[1])); array->append(new ConstantIntValue(acc.words[0])); #endif @@ -802,7 +803,8 @@ // grow downwards in all implementations. // (If, on some machine, the interpreter's Java locals or stack // were to grow upwards, the embedded doubles would be word-swapped.) - jlong_accessor acc = { d }; + jlong_accessor acc; + acc.long_value = d; array->append(new ConstantIntValue(acc.words[1])); array->append(new ConstantIntValue(acc.words[0])); #endif