jitcraft/Platform.h
changeset 28 a9665857cfd5
parent 11 a350c2cc736a
child 51 fb324242a675
     1.1 --- a/jitcraft/Platform.h	Mon Jul 02 14:04:29 2012 -0700
     1.2 +++ b/jitcraft/Platform.h	Mon Jul 02 23:37:12 2012 -0700
     1.3 @@ -1,27 +1,28 @@
     1.4 -/*
     1.5 - * Copyright (C) 2012 David Anderson
     1.6 - *
     1.7 - * This file is part of JITCraft.
     1.8 - *
     1.9 - * JITCraft is free software: you can redistribute it and/or modify it under
    1.10 - * the terms of the GNU General Public License as published by the Free
    1.11 - * Software Foundation, either version 3 of the License, or (at your option)
    1.12 - * any later version.
    1.13 - * 
    1.14 - * Foobar is distributed in the hope that it will be useful, but WITHOUT ANY
    1.15 - * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    1.16 - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
    1.17 - *
    1.18 - * You should have received a copy of the GNU General Public License along with
    1.19 - * JITCraft. If not, see http://www.gnu.org/licenses/.
    1.20 - */
    1.21 -#ifndef _include_jitcraft_platform_h_
    1.22 -#define _include_jitcraft_platform_h_
    1.23 -
    1.24 -#include "Utility.h"
    1.25 -
    1.26 -namespace jc {
    1.27 -
    1.28 +/* vim: set ts=4 sw=4 tw=99 et:
    1.29 + *
    1.30 + * Copyright (C) 2012 David Anderson
    1.31 + *
    1.32 + * This file is part of JITCraft.
    1.33 + *
    1.34 + * JITCraft is free software: you can redistribute it and/or modify it under
    1.35 + * the terms of the GNU General Public License as published by the Free
    1.36 + * Software Foundation, either version 3 of the License, or (at your option)
    1.37 + * any later version.
    1.38 + * 
    1.39 + * Foobar is distributed in the hope that it will be useful, but WITHOUT ANY
    1.40 + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    1.41 + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
    1.42 + *
    1.43 + * You should have received a copy of the GNU General Public License along with
    1.44 + * JITCraft. If not, see http://www.gnu.org/licenses/.
    1.45 + */
    1.46 +#ifndef _include_jitcraft_platform_h_
    1.47 +#define _include_jitcraft_platform_h_
    1.48 +
    1.49 +#include "Utility.h"
    1.50 +
    1.51 +namespace jc {
    1.52 +
    1.53  namespace OS {
    1.54      enum Protection {
    1.55          Prot_ReadWrite,         // rw-, for the heap
    1.56 @@ -77,16 +78,13 @@
    1.57      // The default alignment of memory returned via MapMemory().
    1.58      // :TODO: better ifdefs
    1.59  #ifdef _MSC_VER
    1.60 -    static const size_t kMapAlignment = 64 * kKB;
    1.61 +    static const size_t kPageAlignment = 64 * kKB;
    1.62  #else
    1.63 -    static const size_t kMapAlignment = 4 * kKB;
    1.64 +    static const size_t kPageAlignment = 4 * kKB;
    1.65  #endif
    1.66  
    1.67 -    // Internal OS:: use only.
    1.68 -    Address MapMemoryAt(Address address, size_t amount, MapMode mode, Protection prot);
    1.69 -    AlignableMapping Shared_MapAlignableMemory(size_t amount, size_t alignment, MapMode mode);
    1.70 -}
    1.71 -
    1.72 -}
    1.73 -
    1.74 -#endif // _include_jitcraft_platform_h_
    1.75 +}
    1.76 +
    1.77 +}
    1.78 +
    1.79 +#endif // _include_jitcraft_platform_h_