hotspot/src/share/vm/oops/generateOopMap.cpp
changeset 33593 60764a78fa5c
parent 22230 2b4b260229d0
child 37161 e881f320966e
equal deleted inserted replaced
33579:01ade4446d96 33593:60764a78fa5c
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   220     int jsr = _jsrs->at(k);
   220     int jsr = _jsrs->at(k);
   221     if (jsr > bci) _jsrs->at_put(k, jsr+delta);
   221     if (jsr > bci) _jsrs->at_put(k, jsr+delta);
   222   }
   222   }
   223 }
   223 }
   224 
   224 
   225 void RetTable::compute_ret_table(methodHandle method) {
   225 void RetTable::compute_ret_table(const methodHandle& method) {
   226   BytecodeStream i(method);
   226   BytecodeStream i(method);
   227   Bytecodes::Code bytecode;
   227   Bytecodes::Code bytecode;
   228 
   228 
   229   while( (bytecode = i.next()) >= 0) {
   229   while( (bytecode = i.next()) >= 0) {
   230     switch (bytecode) {
   230     switch (bytecode) {
  2037 }
  2037 }
  2038 
  2038 
  2039 //
  2039 //
  2040 //  ============ Main Entry Point ===========
  2040 //  ============ Main Entry Point ===========
  2041 //
  2041 //
  2042 GenerateOopMap::GenerateOopMap(methodHandle method) {
  2042 GenerateOopMap::GenerateOopMap(const methodHandle& method) {
  2043   // We have to initialize all variables here, that can be queried directly
  2043   // We have to initialize all variables here, that can be queried directly
  2044   _method = method;
  2044   _method = method;
  2045   _max_locals=0;
  2045   _max_locals=0;
  2046   _init_vars = NULL;
  2046   _init_vars = NULL;
  2047 
  2047