Lines Matching defs:ErrorContext

141 class ErrorContext VALUE_OBJ_CLASS_SPEC {
164 ErrorContext(int bci, FaultType fault) :
166 ErrorContext(int bci, FaultType fault, TypeOrigin type) :
168 ErrorContext(int bci, FaultType fault, TypeOrigin type, TypeOrigin exp) :
172 ErrorContext() : _bci(-1), _fault(NO_FAULT) {}
174 static ErrorContext bad_code(u2 bci) {
175 return ErrorContext(bci, INVALID_BYTECODE);
177 static ErrorContext bad_type(u2 bci, TypeOrigin type) {
178 return ErrorContext(bci, WRONG_TYPE, type);
180 static ErrorContext bad_type(u2 bci, TypeOrigin type, TypeOrigin exp) {
181 return ErrorContext(bci, WRONG_TYPE, type, exp);
183 static ErrorContext bad_flags(u2 bci, StackMapFrame* frame) {
184 return ErrorContext(bci, FLAGS_MISMATCH, TypeOrigin::frame(frame));
186 static ErrorContext bad_flags(u2 bci, StackMapFrame* cur, StackMapFrame* sm) {
187 return ErrorContext(bci, FLAGS_MISMATCH,
190 static ErrorContext bad_cp_index(u2 bci, u2 index) {
191 return ErrorContext(bci, BAD_CP_INDEX, TypeOrigin::bad_index(index));
193 static ErrorContext bad_local_index(u2 bci, u2 index) {
194 return ErrorContext(bci, BAD_LOCAL_INDEX, TypeOrigin::bad_index(index));
196 static ErrorContext locals_size_mismatch(
198 return ErrorContext(bci, LOCALS_SIZE_MISMATCH,
201 static ErrorContext stack_size_mismatch(
203 return ErrorContext(bci, STACK_SIZE_MISMATCH,
206 static ErrorContext stack_overflow(u2 bci, StackMapFrame* frame) {
207 return ErrorContext(bci, STACK_OVERFLOW, TypeOrigin::frame(frame));
209 static ErrorContext stack_underflow(u2 bci, StackMapFrame* frame) {
210 return ErrorContext(bci, STACK_UNDERFLOW, TypeOrigin::frame(frame));
212 static ErrorContext missing_stackmap(u2 bci) {
213 return ErrorContext(bci, MISSING_STACKMAP);
215 static ErrorContext bad_stackmap(int index, StackMapFrame* frame) {
216 return ErrorContext(0, BAD_STACKMAP, TypeOrigin::frame(frame));
257 ErrorContext _error_context; // contains information about an error
380 void verify_error(ErrorContext ctx, const char* fmt, ...);