1 /* |
1 /* |
2 * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2012, 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. |
911 |
911 |
912 // accessors |
912 // accessors |
913 Value value() const { return _value; } |
913 Value value() const { return _value; } |
914 bool needs_write_barrier() const { return check_flag(NeedsWriteBarrierFlag); } |
914 bool needs_write_barrier() const { return check_flag(NeedsWriteBarrierFlag); } |
915 bool needs_store_check() const { return check_flag(NeedsStoreCheckFlag); } |
915 bool needs_store_check() const { return check_flag(NeedsStoreCheckFlag); } |
916 // Helpers for methodDataOop profiling |
916 // Helpers for MethodData* profiling |
917 void set_should_profile(bool value) { set_flag(ProfileMDOFlag, value); } |
917 void set_should_profile(bool value) { set_flag(ProfileMDOFlag, value); } |
918 void set_profiled_method(ciMethod* method) { _profiled_method = method; } |
918 void set_profiled_method(ciMethod* method) { _profiled_method = method; } |
919 void set_profiled_bci(int bci) { _profiled_bci = bci; } |
919 void set_profiled_bci(int bci) { _profiled_bci = bci; } |
920 bool should_profile() const { return check_flag(ProfileMDOFlag); } |
920 bool should_profile() const { return check_flag(ProfileMDOFlag); } |
921 ciMethod* profiled_method() const { return _profiled_method; } |
921 ciMethod* profiled_method() const { return _profiled_method; } |
1347 |
1347 |
1348 // generic |
1348 // generic |
1349 virtual bool can_trap() const { return true; } |
1349 virtual bool can_trap() const { return true; } |
1350 virtual void input_values_do(ValueVisitor* f) { StateSplit::input_values_do(f); f->visit(&_obj); } |
1350 virtual void input_values_do(ValueVisitor* f) { StateSplit::input_values_do(f); f->visit(&_obj); } |
1351 |
1351 |
1352 // Helpers for methodDataOop profiling |
1352 // Helpers for MethodData* profiling |
1353 void set_should_profile(bool value) { set_flag(ProfileMDOFlag, value); } |
1353 void set_should_profile(bool value) { set_flag(ProfileMDOFlag, value); } |
1354 void set_profiled_method(ciMethod* method) { _profiled_method = method; } |
1354 void set_profiled_method(ciMethod* method) { _profiled_method = method; } |
1355 void set_profiled_bci(int bci) { _profiled_bci = bci; } |
1355 void set_profiled_bci(int bci) { _profiled_bci = bci; } |
1356 bool should_profile() const { return check_flag(ProfileMDOFlag); } |
1356 bool should_profile() const { return check_flag(ProfileMDOFlag); } |
1357 ciMethod* profiled_method() const { return _profiled_method; } |
1357 ciMethod* profiled_method() const { return _profiled_method; } |