Files
swift-mirror/include/swift/Runtime/FastEntryPoints.h
Dave Abrahams 6eee8e3205 Move HeapObject into the stdlib shim module
Now that we can read definitions directly from "C" headers, stop trying
to maintain a mirror of the HeapObject struct in Swift code in the
standard library.

Swift SVN r14982
2014-03-12 23:48:31 +00:00

48 lines
1.4 KiB
C

//===--- FastEntryPoints.h - Swift Language Assembly Entry Points ABI -----===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
//
// Swift Language Assembly Entry Points ABI -- offsets of interest
//
//===----------------------------------------------------------------------===//
#ifndef SWIFT_RUNTIME_FASTENTRYPOINTS_H
#define SWIFT_RUNTIME_FASTENTRYPOINTS_H
#include <TargetConditionals.h>
#include "../../../stdlib/shims/RefCount.h"
#define ALLOC_CACHE_COUNT 64
// Note: This file is #included in assembly files.
#define RC_OFFSET 0x8
#define RC_MASK 0xfffffffc
#define RC_ATOMIC_BIT 0x1
#define RC_DEALLOCATING_BIT 0x2
#define WRC_OFFSET 0xc
#define WRC_INTERVAL 1
#define WRC_MASK 0xffffffff
#define SWIFT_TRYALLOC 0x0001
#define SWIFT_RAWALLOC 0x0002
#define SWIFT_TRYRAWALLOC 0x0003
#ifdef SWIFT_HAVE_FAST_ENTRY_POINTS
#error "Do not try to override SWIFT_HAVE_FAST_ENTRY_POINTS"
#endif
#if __x86_64__ && !TARGET_IPHONE_SIMULATOR
# define SWIFT_HAVE_FAST_ENTRY_POINTS 1
#endif
#endif // SWIFT_RUNTIME_FASTENTRYPOINTS_H