hotspot/src/share/vm/code/debugInfo.hpp
changeset 38133 78b95467b9f1
parent 33160 c59f1676d27e
child 46271 979ebd346ecf
equal deleted inserted replaced
38132:ba888a4f352a 38133:78b95467b9f1
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2016, 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.
   259 // DebugInfoReadStream specializes CompressedReadStream for reading
   259 // DebugInfoReadStream specializes CompressedReadStream for reading
   260 // debugging information. Used by ScopeDesc.
   260 // debugging information. Used by ScopeDesc.
   261 
   261 
   262 class DebugInfoReadStream : public CompressedReadStream {
   262 class DebugInfoReadStream : public CompressedReadStream {
   263  private:
   263  private:
   264   const nmethod* _code;
   264   const CompiledMethod* _code;
   265   const nmethod* code() const { return _code; }
   265   const CompiledMethod* code() const { return _code; }
   266   GrowableArray<ScopeValue*>* _obj_pool;
   266   GrowableArray<ScopeValue*>* _obj_pool;
   267  public:
   267  public:
   268   DebugInfoReadStream(const nmethod* code, int offset, GrowableArray<ScopeValue*>* obj_pool = NULL) :
   268   DebugInfoReadStream(const CompiledMethod* code, int offset, GrowableArray<ScopeValue*>* obj_pool = NULL) :
   269     CompressedReadStream(code->scopes_data_begin(), offset) {
   269     CompressedReadStream(code->scopes_data_begin(), offset) {
   270     _code = code;
   270     _code = code;
   271     _obj_pool = obj_pool;
   271     _obj_pool = obj_pool;
   272 
   272 
   273   } ;
   273   } ;