Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

L/Q again, step two #414

wants to merge 7 commits into from
Changes from 1 commit
File filter
Filter by extension
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -255,12 +255,12 @@ void NewTypeArrayStub::emit_code(LIR_Assembler* ce) {
// Implementation of NewObjectArrayStub

NewObjectArrayStub::NewObjectArrayStub(LIR_Opr klass_reg, LIR_Opr length, LIR_Opr result,
CodeEmitInfo* info, bool is_inline_type) {
CodeEmitInfo* info, bool is_null_free) {
_klass_reg = klass_reg;
_result = result;
_length = length;
_info = new CodeEmitInfo(info);
_is_inline_type = is_inline_type;
_is_null_free = is_null_free;

@@ -270,7 +270,7 @@ void NewObjectArrayStub::emit_code(LIR_Assembler* ce) {
assert(_length->as_register() == r19, "length must in r19,");
assert(_klass_reg->as_register() == r3, "klass_reg must in r3");

if (_is_inline_type) {
if (_is_null_free) {
__ far_call(RuntimeAddress(Runtime1::entry_for(Runtime1::new_flat_array_id)));
} else {
__ far_call(RuntimeAddress(Runtime1::entry_for(Runtime1::new_object_array_id)));