Mercurial > hg > graal-compiler
comparison src/share/vm/utilities/decoder.cpp @ 14909:4ca6dc0799b6
Backout jdk9 merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Tue, 01 Apr 2014 13:57:07 +0200 |
parents | abec000618bf |
children | 89152779163c |
comparison
equal
deleted
inserted
replaced
14908:8db6e76cb658 | 14909:4ca6dc0799b6 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
30 | 30 |
31 #if defined(_WINDOWS) | 31 #if defined(_WINDOWS) |
32 #include "decoder_windows.hpp" | 32 #include "decoder_windows.hpp" |
33 #elif defined(__APPLE__) | 33 #elif defined(__APPLE__) |
34 #include "decoder_machO.hpp" | 34 #include "decoder_machO.hpp" |
35 #elif defined(AIX) | |
36 #include "decoder_aix.hpp" | |
37 #else | 35 #else |
38 #include "decoder_elf.hpp" | 36 #include "decoder_elf.hpp" |
39 #endif | 37 #endif |
40 | 38 |
41 AbstractDecoder* Decoder::_shared_decoder = NULL; | 39 AbstractDecoder* Decoder::_shared_decoder = NULL; |
66 AbstractDecoder* decoder; | 64 AbstractDecoder* decoder; |
67 #if defined(_WINDOWS) | 65 #if defined(_WINDOWS) |
68 decoder = new (std::nothrow) WindowsDecoder(); | 66 decoder = new (std::nothrow) WindowsDecoder(); |
69 #elif defined (__APPLE__) | 67 #elif defined (__APPLE__) |
70 decoder = new (std::nothrow)MachODecoder(); | 68 decoder = new (std::nothrow)MachODecoder(); |
71 #elif defined(AIX) | |
72 decoder = new (std::nothrow)AIXDecoder(); | |
73 #else | 69 #else |
74 decoder = new (std::nothrow)ElfDecoder(); | 70 decoder = new (std::nothrow)ElfDecoder(); |
75 #endif | 71 #endif |
76 | 72 |
77 if (decoder == NULL || decoder->has_error()) { | 73 if (decoder == NULL || decoder->has_error()) { |