Mercurial > hg > truffle
comparison src/share/vm/code/codeBlob.hpp @ 21559:be896a1983c0
recast all Graal native code as JVMCI code (JBS:GRAAL-53)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 28 May 2015 15:36:48 +0200 |
parents | 33a783b15758 |
children |
comparison
equal
deleted
inserted
replaced
21558:d563baeca9df | 21559:be896a1983c0 |
---|---|
103 virtual bool is_adapter_blob() const { return false; } | 103 virtual bool is_adapter_blob() const { return false; } |
104 virtual bool is_method_handles_adapter_blob() const { return false; } | 104 virtual bool is_method_handles_adapter_blob() const { return false; } |
105 | 105 |
106 virtual bool is_compiled_by_c2() const { return false; } | 106 virtual bool is_compiled_by_c2() const { return false; } |
107 virtual bool is_compiled_by_c1() const { return false; } | 107 virtual bool is_compiled_by_c1() const { return false; } |
108 virtual bool is_compiled_by_graal() const { return false; } | 108 virtual bool is_compiled_by_jvmci() const { return false; } |
109 | 109 |
110 // Casting | 110 // Casting |
111 nmethod* as_nmethod_or_null() { return is_nmethod() ? (nmethod*) this : NULL; } | 111 nmethod* as_nmethod_or_null() { return is_nmethod() ? (nmethod*) this : NULL; } |
112 | 112 |
113 // Boundaries | 113 // Boundaries |
355 int _unpack_with_exception; | 355 int _unpack_with_exception; |
356 int _unpack_with_reexecution; | 356 int _unpack_with_reexecution; |
357 | 357 |
358 int _unpack_with_exception_in_tls; | 358 int _unpack_with_exception_in_tls; |
359 | 359 |
360 #ifdef GRAAL | 360 #ifdef JVMCI |
361 // (thomaswue) Offset when Graal calls uncommon_trap. | 361 // (thomaswue) Offset when JVMCI calls uncommon_trap. |
362 int _uncommon_trap_offset; | 362 int _uncommon_trap_offset; |
363 int _implicit_exception_uncommon_trap_offset; | 363 int _implicit_exception_uncommon_trap_offset; |
364 #endif | 364 #endif |
365 | 365 |
366 // Creation support | 366 // Creation support |
414 _unpack_with_exception_in_tls = offset; | 414 _unpack_with_exception_in_tls = offset; |
415 assert(code_contains(code_begin() + _unpack_with_exception_in_tls), "must be PC inside codeblob"); | 415 assert(code_contains(code_begin() + _unpack_with_exception_in_tls), "must be PC inside codeblob"); |
416 } | 416 } |
417 address unpack_with_exception_in_tls() const { return code_begin() + _unpack_with_exception_in_tls; } | 417 address unpack_with_exception_in_tls() const { return code_begin() + _unpack_with_exception_in_tls; } |
418 | 418 |
419 #ifdef GRAAL | 419 #ifdef JVMCI |
420 // (thomaswue) Offset when Graal calls uncommon_trap. | 420 // (thomaswue) Offset when JVMCI calls uncommon_trap. |
421 void set_uncommon_trap_offset(int offset) { | 421 void set_uncommon_trap_offset(int offset) { |
422 _uncommon_trap_offset = offset; | 422 _uncommon_trap_offset = offset; |
423 assert(contains(code_begin() + _uncommon_trap_offset), "must be PC inside codeblob"); | 423 assert(contains(code_begin() + _uncommon_trap_offset), "must be PC inside codeblob"); |
424 } | 424 } |
425 address uncommon_trap() const { return code_begin() + _uncommon_trap_offset; } | 425 address uncommon_trap() const { return code_begin() + _uncommon_trap_offset; } |