Mercurial > hg > graal-compiler
comparison src/os/windows/vm/decoder_windows.cpp @ 6258:3b01d0321dfa
7186778: MachO decoder implementation for MacOSX
Summary: Implementation of decoder for Apple's MacOSX. The implementation is based on the patch provided by Kevin Walls.
Reviewed-by: coleenp, kamg, kevinw
author | zgu |
---|---|
date | Mon, 30 Jul 2012 10:25:52 -0400 |
parents | d7e3846464d0 |
children | b9a9ed0f8eeb |
comparison
equal
deleted
inserted
replaced
6236:950ed41429e5 | 6258:3b01d0321dfa |
---|---|
70 return; | 70 return; |
71 } | 71 } |
72 | 72 |
73 // find out if jvm.dll contains private symbols, by decoding | 73 // find out if jvm.dll contains private symbols, by decoding |
74 // current function and comparing the result | 74 // current function and comparing the result |
75 address addr = (address)Decoder::decode; | 75 address addr = (address)Decoder::demangle; |
76 char buf[MAX_PATH]; | 76 char buf[MAX_PATH]; |
77 if (decode(addr, buf, sizeof(buf), NULL)) { | 77 if (decode(addr, buf, sizeof(buf), NULL)) { |
78 _can_decode_in_vm = !strcmp(buf, "Decoder::decode"); | 78 _can_decode_in_vm = !strcmp(buf, "Decoder::demangle"); |
79 } | 79 } |
80 } | 80 } |
81 } | 81 } |
82 | 82 |
83 void WindowsDecoder::uninitialize() { | 83 void WindowsDecoder::uninitialize() { |