Mercurial > hg > graal-compiler
comparison src/cpu/zero/vm/cppInterpreterGenerator_zero.hpp @ 6926:a3e2f723f2a5
8000780: make Zero build and run with JDK8
Reviewed-by: coleenp, dholmes, twisti
Contributed-by: Roman Kennke <rkennke@redhat.com>
author | twisti |
---|---|
date | Mon, 29 Oct 2012 11:08:48 -0700 |
parents | f95d63e2154a |
children |
comparison
equal
deleted
inserted
replaced
6915:a516debe2cee | 6926:a3e2f723f2a5 |
---|---|
29 protected: | 29 protected: |
30 MacroAssembler* assembler() const { | 30 MacroAssembler* assembler() const { |
31 return _masm; | 31 return _masm; |
32 } | 32 } |
33 | 33 |
34 protected: | 34 public: |
35 address generate_entry(address entry_point) { | 35 static address generate_entry_impl(MacroAssembler* masm, address entry_point) { |
36 ZeroEntry *entry = (ZeroEntry *) assembler()->pc(); | 36 ZeroEntry *entry = (ZeroEntry *) masm->pc(); |
37 assembler()->advance(sizeof(ZeroEntry)); | 37 masm->advance(sizeof(ZeroEntry)); |
38 entry->set_entry_point(entry_point); | 38 entry->set_entry_point(entry_point); |
39 return (address) entry; | 39 return (address) entry; |
40 } | 40 } |
41 | 41 |
42 protected: | |
43 address generate_entry(address entry_point) { | |
44 return generate_entry_impl(assembler(), entry_point); | |
45 } | |
46 | |
42 #endif // CPU_ZERO_VM_CPPINTERPRETERGENERATOR_ZERO_HPP | 47 #endif // CPU_ZERO_VM_CPPINTERPRETERGENERATOR_ZERO_HPP |