mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Introduce the SIL instruction alloc_ref_dynamic.
alloc_ref_dynamic allocates an instance of a class type based on the value in its metatype operand. Start emitting these instructions for the allocating constructor of a complete object initializer (not yet tested) and for the allocating constructor synthesized for an imported Objective-C init method. Still missing: - IRGen still does the same thing as alloc_ref right now. That change will follow. - There are devirtualization opportunities when we know the value of the metatype that would turn an alloc_ref_dynamic into an alloc_ref; I'm not planning to do this optimization. Swift SVN r14560
This commit is contained in:
@@ -37,7 +37,7 @@ const uint16_t VERSION_MAJOR = 0;
|
||||
/// Serialized module format minor version number.
|
||||
///
|
||||
/// When the format changes IN ANY WAY, this number should be incremented.
|
||||
const uint16_t VERSION_MINOR = 11;
|
||||
const uint16_t VERSION_MINOR = 12;
|
||||
|
||||
using DeclID = Fixnum<31>;
|
||||
using DeclIDField = BCFixed<31>;
|
||||
|
||||
Reference in New Issue
Block a user