Mercurial > hg > graal-compiler
comparison src/cpu/sparc/vm/c1_CodeStubs_sparc.cpp @ 2168:e4fee0bdaa85
7008809: should report the class in ArrayStoreExceptions from compiled code
Reviewed-by: iveresov, twisti
author | never |
---|---|
date | Mon, 24 Jan 2011 13:34:18 -0800 |
parents | ac637b7220d1 |
children | c7f3d0b4570f |
comparison
equal
deleted
inserted
replaced
2167:aa4b04b68652 | 2168:e4fee0bdaa85 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1999, 2011, 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. |
127 __ should_not_reach_here(); | 127 __ should_not_reach_here(); |
128 #endif | 128 #endif |
129 } | 129 } |
130 | 130 |
131 | 131 |
132 // Implementation of ArrayStoreExceptionStub | |
133 | |
134 ArrayStoreExceptionStub::ArrayStoreExceptionStub(CodeEmitInfo* info): | |
135 _info(info) { | |
136 } | |
137 | |
138 | |
139 void ArrayStoreExceptionStub::emit_code(LIR_Assembler* ce) { | |
140 __ bind(_entry); | |
141 __ call(Runtime1::entry_for(Runtime1::throw_array_store_exception_id), relocInfo::runtime_call_type); | |
142 __ delayed()->nop(); | |
143 ce->add_call_info_here(_info); | |
144 ce->verify_oop_map(_info); | |
145 #ifdef ASSERT | |
146 __ should_not_reach_here(); | |
147 #endif | |
148 } | |
149 | |
150 | |
151 | |
152 | |
153 // Implementation of NewInstanceStub | 132 // Implementation of NewInstanceStub |
154 | 133 |
155 NewInstanceStub::NewInstanceStub(LIR_Opr klass_reg, LIR_Opr result, ciInstanceKlass* klass, CodeEmitInfo* info, Runtime1::StubID stub_id) { | 134 NewInstanceStub::NewInstanceStub(LIR_Opr klass_reg, LIR_Opr result, ciInstanceKlass* klass, CodeEmitInfo* info, Runtime1::StubID stub_id) { |
156 _result = result; | 135 _result = result; |
157 _klass = klass; | 136 _klass = klass; |