hotspot/src/share/vm/code/scopeDesc.cpp
changeset 38133 78b95467b9f1
parent 33198 b37ad9fbf681
equal deleted inserted replaced
38132:ba888a4f352a 38133:78b95467b9f1
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2014, 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.
    28 #include "code/scopeDesc.hpp"
    28 #include "code/scopeDesc.hpp"
    29 #include "memory/resourceArea.hpp"
    29 #include "memory/resourceArea.hpp"
    30 #include "oops/oop.inline.hpp"
    30 #include "oops/oop.inline.hpp"
    31 #include "runtime/handles.inline.hpp"
    31 #include "runtime/handles.inline.hpp"
    32 
    32 
    33 ScopeDesc::ScopeDesc(const nmethod* code, int decode_offset, int obj_decode_offset, bool reexecute, bool rethrow_exception, bool return_oop) {
    33 ScopeDesc::ScopeDesc(const CompiledMethod* code, int decode_offset, int obj_decode_offset, bool reexecute, bool rethrow_exception, bool return_oop) {
    34   _code          = code;
    34   _code          = code;
    35   _decode_offset = decode_offset;
    35   _decode_offset = decode_offset;
    36   _objects       = decode_object_values(obj_decode_offset);
    36   _objects       = decode_object_values(obj_decode_offset);
    37   _reexecute     = reexecute;
    37   _reexecute     = reexecute;
    38   _rethrow_exception = rethrow_exception;
    38   _rethrow_exception = rethrow_exception;
    39   _return_oop    = return_oop;
    39   _return_oop    = return_oop;
    40   decode_body();
    40   decode_body();
    41 }
    41 }
    42 
    42 
    43 ScopeDesc::ScopeDesc(const nmethod* code, int decode_offset, bool reexecute, bool rethrow_exception, bool return_oop) {
    43 ScopeDesc::ScopeDesc(const CompiledMethod* code, int decode_offset, bool reexecute, bool rethrow_exception, bool return_oop) {
    44   _code          = code;
    44   _code          = code;
    45   _decode_offset = decode_offset;
    45   _decode_offset = decode_offset;
    46   _objects       = decode_object_values(DebugInformationRecorder::serialized_null);
    46   _objects       = decode_object_values(DebugInformationRecorder::serialized_null);
    47   _reexecute     = reexecute;
    47   _reexecute     = reexecute;
    48   _rethrow_exception = rethrow_exception;
    48   _rethrow_exception = rethrow_exception;