src/cpu/zero/vm/nativeInst_zero.hpp

changeset 5545
e16282db4946
parent 2314
f95d63e2154a
child 6198
55fb97c4c58d
     1.1 --- a/src/cpu/zero/vm/nativeInst_zero.hpp	Mon Aug 19 09:33:29 2013 +0200
     1.2 +++ b/src/cpu/zero/vm/nativeInst_zero.hpp	Tue Aug 20 10:57:50 2013 -0700
     1.3 @@ -51,15 +51,18 @@
     1.4   public:
     1.5    bool is_jump() {
     1.6      ShouldNotCallThis();
     1.7 +    return false;
     1.8    }
     1.9  
    1.10    bool is_safepoint_poll() {
    1.11      ShouldNotCallThis();
    1.12 +    return false;
    1.13    }
    1.14  };
    1.15  
    1.16  inline NativeInstruction* nativeInstruction_at(address address) {
    1.17    ShouldNotCallThis();
    1.18 +  return NULL;
    1.19  }
    1.20  
    1.21  class NativeCall : public NativeInstruction {
    1.22 @@ -70,18 +73,22 @@
    1.23  
    1.24    address instruction_address() const {
    1.25      ShouldNotCallThis();
    1.26 +    return NULL;
    1.27    }
    1.28  
    1.29    address next_instruction_address() const {
    1.30      ShouldNotCallThis();
    1.31 +    return NULL;
    1.32    }
    1.33  
    1.34    address return_address() const {
    1.35      ShouldNotCallThis();
    1.36 +    return NULL;
    1.37    }
    1.38  
    1.39    address destination() const {
    1.40      ShouldNotCallThis();
    1.41 +    return NULL;
    1.42    }
    1.43  
    1.44    void set_destination_mt_safe(address dest) {
    1.45 @@ -98,25 +105,30 @@
    1.46  
    1.47    static bool is_call_before(address return_address) {
    1.48      ShouldNotCallThis();
    1.49 +    return false;
    1.50    }
    1.51  };
    1.52  
    1.53  inline NativeCall* nativeCall_before(address return_address) {
    1.54    ShouldNotCallThis();
    1.55 +  return NULL;
    1.56  }
    1.57  
    1.58  inline NativeCall* nativeCall_at(address address) {
    1.59    ShouldNotCallThis();
    1.60 +  return NULL;
    1.61  }
    1.62  
    1.63  class NativeMovConstReg : public NativeInstruction {
    1.64   public:
    1.65    address next_instruction_address() const {
    1.66      ShouldNotCallThis();
    1.67 +    return NULL;
    1.68    }
    1.69  
    1.70    intptr_t data() const {
    1.71      ShouldNotCallThis();
    1.72 +    return 0;
    1.73    }
    1.74  
    1.75    void set_data(intptr_t x) {
    1.76 @@ -126,12 +138,14 @@
    1.77  
    1.78  inline NativeMovConstReg* nativeMovConstReg_at(address address) {
    1.79    ShouldNotCallThis();
    1.80 +  return NULL;
    1.81  }
    1.82  
    1.83  class NativeMovRegMem : public NativeInstruction {
    1.84   public:
    1.85    int offset() const {
    1.86      ShouldNotCallThis();
    1.87 +    return 0;
    1.88    }
    1.89  
    1.90    void set_offset(intptr_t x) {
    1.91 @@ -145,6 +159,7 @@
    1.92  
    1.93  inline NativeMovRegMem* nativeMovRegMem_at(address address) {
    1.94    ShouldNotCallThis();
    1.95 +  return NULL;
    1.96  }
    1.97  
    1.98  class NativeJump : public NativeInstruction {
    1.99 @@ -155,6 +170,7 @@
   1.100  
   1.101    address jump_destination() const {
   1.102      ShouldNotCallThis();
   1.103 +    return NULL;
   1.104    }
   1.105  
   1.106    void set_jump_destination(address dest) {
   1.107 @@ -172,12 +188,14 @@
   1.108  
   1.109  inline NativeJump* nativeJump_at(address address) {
   1.110    ShouldNotCallThis();
   1.111 +  return NULL;
   1.112  }
   1.113  
   1.114  class NativeGeneralJump : public NativeInstruction {
   1.115   public:
   1.116    address jump_destination() const {
   1.117      ShouldNotCallThis();
   1.118 +    return NULL;
   1.119    }
   1.120  
   1.121    static void insert_unconditional(address code_pos, address entry) {
   1.122 @@ -191,6 +209,7 @@
   1.123  
   1.124  inline NativeGeneralJump* nativeGeneralJump_at(address address) {
   1.125    ShouldNotCallThis();
   1.126 +  return NULL;
   1.127  }
   1.128  
   1.129  #endif // CPU_ZERO_VM_NATIVEINST_ZERO_HPP

mercurial