Mercurial > projects > ldc
view druntime/src/compiler/ldc/obj.d @ 1463:a5526b7a5ae6
D2:
Applied function type from D1 frontend that got removed in D2, it's critical for member function type to be correct.
Fixed a bunch of type discrepancies in druntime object.di vs. genobj.d .
Disabled (#if 0) some potentally very large type dumps for -vv .
Updated classinfo and typeinfo generation for D2, almost complete now.
Added finer grained checks for vtbl type mismatching, aids debugging.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Wed, 03 Jun 2009 02:28:48 +0200 |
parents | e0b2d67cfe7c |
children |
line wrap: on
line source
/** * Containts object comparator functions called by generated code. * * Copyright: Copyright Digital Mars 2002 - 2009. * License: <a href="http://www.boost.org/LICENSE_1_0.txt>Boost License 1.0</a>. * Authors: Walter Bright * * Copyright Digital Mars 2000 - 2009. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) */ module rt.obj; extern (C): /******************************** * Compiler helper for operator == for class objects. */ int _d_obj_eq(Object o1, Object o2) { return o1 is o2 || (o1 && o1.opEquals(o2)); } /******************************** * Compiler helper for operator <, <=, >, >= for class objects. */ int _d_obj_cmp(Object o1, Object o2) { return o1.opCmp(o2); }