Mercurial > hg > truffle
comparison src/cpu/x86/vm/frame_x86.inline.hpp @ 520:52a431267315
6791168: Fix invalid code in bytecodeInterpreter that can cause gcc ICE
Summary: Fix compilation errors from latest gcc in CC_INTERP including offending missing void* cast.
Reviewed-by: xlu
author | coleenp |
---|---|
date | Tue, 13 Jan 2009 14:41:44 -0500 |
parents | dc7f315e41f7 |
children | 0fbdb4381b99 |
comparison
equal
deleted
inserted
replaced
516:fc7ab6287598 | 520:52a431267315 |
---|---|
137 inline address* frame::native_param_addr(int idx) const { return (address*) addr_at( native_frame_initial_param_offset+idx); } | 137 inline address* frame::native_param_addr(int idx) const { return (address*) addr_at( native_frame_initial_param_offset+idx); } |
138 | 138 |
139 #ifdef CC_INTERP | 139 #ifdef CC_INTERP |
140 | 140 |
141 inline interpreterState frame::get_interpreterState() const { | 141 inline interpreterState frame::get_interpreterState() const { |
142 return ((interpreterState)addr_at( -sizeof(BytecodeInterpreter)/wordSize )); | 142 return ((interpreterState)addr_at( -((int)sizeof(BytecodeInterpreter))/wordSize )); |
143 } | 143 } |
144 | 144 |
145 inline intptr_t* frame::sender_sp() const { | 145 inline intptr_t* frame::sender_sp() const { |
146 // Hmm this seems awfully expensive QQQ, is this really called with interpreted frames? | 146 // Hmm this seems awfully expensive QQQ, is this really called with interpreted frames? |
147 if (is_interpreted_frame()) { | 147 if (is_interpreted_frame()) { |