Print this page


Split Close
Expand all
Collapse all
          --- old/src/cpu/sparc/vm/c1_FrameMap_sparc.cpp
          +++ new/src/cpu/sparc/vm/c1_FrameMap_sparc.cpp
   1    1  /*
   2      - * Copyright 1999-2009 Sun Microsystems, Inc.  All Rights Reserved.
        2 + * Copyright 1999-2010 Sun Microsystems, Inc.  All Rights Reserved.
   3    3   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4    4   *
   5    5   * This code is free software; you can redistribute it and/or modify it
   6    6   * under the terms of the GNU General Public License version 2 only, as
   7    7   * published by the Free Software Foundation.
   8    8   *
   9    9   * This code is distributed in the hope that it will be useful, but WITHOUT
  10   10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11   11   * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12   12   * version 2 for more details (a copy is included in the LICENSE file that
↓ open down ↓ 325 lines elided ↑ open up ↑
 338  338  VMReg FrameMap::fpu_regname (int n) {
 339  339    return as_FloatRegister(n)->as_VMReg();
 340  340  }
 341  341  
 342  342  
 343  343  LIR_Opr FrameMap::stack_pointer() {
 344  344    return SP_opr;
 345  345  }
 346  346  
 347  347  
      348 +// JSR 292
      349 +LIR_Opr FrameMap::method_handle_invoke_SP_save_opr() {
      350 +  assert(L7 == L7_mh_SP_save, "must be same register");
      351 +  return L7_opr;
      352 +}
      353 +
      354 +
 348  355  bool FrameMap::validate_frame() {
 349  356    int max_offset = in_bytes(framesize_in_bytes());
 350  357    int java_index = 0;
 351  358    for (int i = 0; i < _incoming_arguments->length(); i++) {
 352  359      LIR_Opr opr = _incoming_arguments->at(i);
 353  360      if (opr->is_stack()) {
 354  361        max_offset = MAX2(_argument_locations->at(java_index), max_offset);
 355  362      }
 356  363      java_index += type2size[opr->type()];
 357  364    }
 358  365    return Assembler::is_simm13(max_offset + STACK_BIAS);
 359  366  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX