Mercurial > hg > truffle
comparison src/share/vm/classfile/verifier.hpp @ 17595:3eed8712d410
Merge with jdk8u11-b12
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Wed, 15 Oct 2014 12:09:28 +0200 |
parents | aff11567504c |
children | f73af4455d7d |
comparison
equal
deleted
inserted
replaced
17560:562643f42b65 | 17595:3eed8712d410 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1998, 2014, 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. |
256 Symbol* _exception_type; | 256 Symbol* _exception_type; |
257 char* _message; | 257 char* _message; |
258 | 258 |
259 ErrorContext _error_context; // contains information about an error | 259 ErrorContext _error_context; // contains information about an error |
260 | 260 |
261 // Used to detect illegal jumps over calls to super() nd this() in ctors. | |
262 int32_t _furthest_jump; | |
263 | |
261 void verify_method(methodHandle method, TRAPS); | 264 void verify_method(methodHandle method, TRAPS); |
262 char* generate_code_data(methodHandle m, u4 code_length, TRAPS); | 265 char* generate_code_data(methodHandle m, u4 code_length, TRAPS); |
263 void verify_exception_handler_table(u4 code_length, char* code_data, | 266 void verify_exception_handler_table(u4 code_length, char* code_data, |
264 int& min, int& max, TRAPS); | 267 int& min, int& max, TRAPS); |
265 void verify_local_variable_table(u4 code_length, char* code_data, TRAPS); | 268 void verify_local_variable_table(u4 code_length, char* code_data, TRAPS); |
401 Symbol* create_temporary_symbol( | 404 Symbol* create_temporary_symbol( |
402 const Symbol* s, int begin, int end, TRAPS); | 405 const Symbol* s, int begin, int end, TRAPS); |
403 Symbol* create_temporary_symbol(const char *s, int length, TRAPS); | 406 Symbol* create_temporary_symbol(const char *s, int length, TRAPS); |
404 | 407 |
405 TypeOrigin ref_ctx(const char* str, TRAPS); | 408 TypeOrigin ref_ctx(const char* str, TRAPS); |
409 | |
410 // Keep track of the furthest branch done in a method to make sure that | |
411 // there are no branches over calls to super() or this() from inside of | |
412 // a constructor. | |
413 int32_t furthest_jump() { return _furthest_jump; } | |
414 | |
415 void set_furthest_jump(int32_t target) { | |
416 _furthest_jump = target; | |
417 } | |
418 | |
419 void update_furthest_jump(int32_t target) { | |
420 if (target > _furthest_jump) _furthest_jump = target; | |
421 } | |
422 | |
406 }; | 423 }; |
407 | 424 |
408 inline int ClassVerifier::change_sig_to_verificationType( | 425 inline int ClassVerifier::change_sig_to_verificationType( |
409 SignatureStream* sig_type, VerificationType* inference_type, TRAPS) { | 426 SignatureStream* sig_type, VerificationType* inference_type, TRAPS) { |
410 BasicType bt = sig_type->type(); | 427 BasicType bt = sig_type->type(); |