src/cpu/x86/vm/c1_LIRAssembler_x86.cpp

changeset 2432
55f868e91c3b
parent 2412
037c727f35fb
child 2603
1b4e6a5d98e0
     1.1 --- a/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp	Thu Dec 30 23:44:45 2010 -0800
     1.2 +++ b/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp	Thu Jan 06 16:03:20 2011 -0800
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -1641,12 +1641,14 @@
    1.11  }
    1.12  
    1.13  void LIR_Assembler::emit_alloc_array(LIR_OpAllocArray* op) {
    1.14 +  Register len =  op->len()->as_register();
    1.15 +  LP64_ONLY( __ movslq(len, len); )
    1.16 +
    1.17    if (UseSlowPath ||
    1.18        (!UseFastNewObjectArray && (op->type() == T_OBJECT || op->type() == T_ARRAY)) ||
    1.19        (!UseFastNewTypeArray   && (op->type() != T_OBJECT && op->type() != T_ARRAY))) {
    1.20      __ jmp(*op->stub()->entry());
    1.21    } else {
    1.22 -    Register len =  op->len()->as_register();
    1.23      Register tmp1 = op->tmp1()->as_register();
    1.24      Register tmp2 = op->tmp2()->as_register();
    1.25      Register tmp3 = op->tmp3()->as_register();

mercurial