equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2013, 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. |
173 bool is_assignable_to( |
173 bool is_assignable_to( |
174 const StackMapFrame* target, bool is_exception_handler, |
174 const StackMapFrame* target, bool is_exception_handler, |
175 ErrorContext* ctx, TRAPS) const; |
175 ErrorContext* ctx, TRAPS) const; |
176 |
176 |
177 inline void set_mark() { |
177 inline void set_mark() { |
178 #ifdef DEBUG |
178 #ifdef ASSERT |
179 // Put bogus type to indicate it's no longer valid. |
179 // Put bogus type to indicate it's no longer valid. |
180 if (_stack_mark != -1) { |
180 if (_stack_mark != -1) { |
181 for (int i = _stack_mark - 1; i >= _stack_size; --i) { |
181 for (int i = _stack_mark - 1; i >= _stack_size; --i) { |
182 _stack[i] = VerificationType::bogus_type(); |
182 _stack[i] = VerificationType::bogus_type(); |
183 } |
183 } |
184 } |
184 } |
185 #endif // def DEBUG |
185 #endif // def ASSERT |
186 _stack_mark = _stack_size; |
186 _stack_mark = _stack_size; |
187 } |
187 } |
188 |
188 |
189 // Used when an error occurs and we want to reset the stack to the state |
189 // Used when an error occurs and we want to reset the stack to the state |
190 // it was before operands were popped off. |
190 // it was before operands were popped off. |