Mercurial > hg > graal-jvmci-8
comparison src/share/vm/code/codeBlob.hpp @ 5111:422c979ff392
fixed two cases where DeoptAction was invalid
author | Christian Haeubl <christian.haeubl@oracle.com> |
---|---|
date | Thu, 15 Mar 2012 16:34:31 -0700 |
parents | 2f2c6347fce4 |
children | 957c266d8bc5 |
comparison
equal
deleted
inserted
replaced
5110:0ebca2e35ca5 | 5111:422c979ff392 |
---|---|
405 | 405 |
406 int _unpack_with_exception_in_tls; | 406 int _unpack_with_exception_in_tls; |
407 | 407 |
408 // (thomaswue) Offset when graal calls uncommon_trap. | 408 // (thomaswue) Offset when graal calls uncommon_trap. |
409 int _uncommon_trap_offset; | 409 int _uncommon_trap_offset; |
410 int _jmp_uncommon_trap_offset; | 410 int _implicit_exception_uncommon_trap_offset; |
411 | 411 |
412 | 412 |
413 // Creation support | 413 // Creation support |
414 DeoptimizationBlob( | 414 DeoptimizationBlob( |
415 CodeBuffer* cb, | 415 CodeBuffer* cb, |
467 void set_uncommon_trap_offset(int offset) { | 467 void set_uncommon_trap_offset(int offset) { |
468 _uncommon_trap_offset = offset; | 468 _uncommon_trap_offset = offset; |
469 assert(contains(code_begin() + _uncommon_trap_offset), "must be PC inside codeblob"); | 469 assert(contains(code_begin() + _uncommon_trap_offset), "must be PC inside codeblob"); |
470 } | 470 } |
471 address uncommon_trap() const { return code_begin() + _uncommon_trap_offset; } | 471 address uncommon_trap() const { return code_begin() + _uncommon_trap_offset; } |
472 void set_jmp_uncommon_trap_offset(int offset) { | 472 void set_implicit_exception_uncommon_trap_offset(int offset) { |
473 _jmp_uncommon_trap_offset = offset; | 473 _implicit_exception_uncommon_trap_offset = offset; |
474 assert(contains(code_begin() + _jmp_uncommon_trap_offset), "must be PC inside codeblob"); | 474 assert(contains(code_begin() + _implicit_exception_uncommon_trap_offset), "must be PC inside codeblob"); |
475 } | 475 } |
476 address jmp_uncommon_trap() const { return code_begin() + _jmp_uncommon_trap_offset; } | 476 address implicit_exception_uncommon_trap() const { return code_begin() + _implicit_exception_uncommon_trap_offset; } |
477 | 477 |
478 }; | 478 }; |
479 | 479 |
480 | 480 |
481 //---------------------------------------------------------------------------------------------------- | 481 //---------------------------------------------------------------------------------------------------- |