comparison src/share/vm/c1/c1_ValueStack.hpp @ 14477:96d2c94bbdd0

8035493: JVMTI PopFrame capability must instruct compilers not to prune locals Reviewed-by: kvn, sla, coleenp, sspitsyn
author mgronlun
date Sat, 22 Feb 2014 10:22:05 +0100
parents b9a9ed0f8eeb
children 4ca6dc0799b6
comparison
equal deleted inserted replaced
14476:4510a3502166 14477:96d2c94bbdd0
73 ValueStack* copy(Kind new_kind, int new_bci) { return new ValueStack(this, new_kind, new_bci); } 73 ValueStack* copy(Kind new_kind, int new_bci) { return new ValueStack(this, new_kind, new_bci); }
74 ValueStack* copy_for_parsing() { return new ValueStack(this, Parsing, -99); } 74 ValueStack* copy_for_parsing() { return new ValueStack(this, Parsing, -99); }
75 75
76 void set_caller_state(ValueStack* s) { 76 void set_caller_state(ValueStack* s) {
77 assert(kind() == EmptyExceptionState || 77 assert(kind() == EmptyExceptionState ||
78 (Compilation::current()->env()->jvmti_can_access_local_variables() && kind() == ExceptionState), 78 (Compilation::current()->env()->should_retain_local_variables() && kind() == ExceptionState),
79 "only EmptyExceptionStates can be modified"); 79 "only EmptyExceptionStates can be modified");
80 _caller_state = s; 80 _caller_state = s;
81 } 81 }
82 82
83 bool is_same(ValueStack* s); // returns true if this & s's types match (w/o checking locals) 83 bool is_same(ValueStack* s); // returns true if this & s's types match (w/o checking locals)