comparison src/share/vm/classfile/stackMapFrame.hpp @ 9152:f36e073d56a4

7104565: trim jprt build targets Summary: remove JPRT debug builds, remove -DDEBUG -DFASTDEBUG and use ASSERT instead in sources Reviewed-by: dholmes, kvn, coleenp
author drchase
date Fri, 12 Apr 2013 15:53:30 -0700
parents ab826603e572
children 2373a1f4987c b2daaf70fab2
comparison
equal deleted inserted replaced
9150:b8b081e53312 9152:f36e073d56a4
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.