Skip to content

Commit 96fdaff

Browse files
author
Dart CI
committed
Version 2.14.0-377.0.dev
Merge commit '0edf000b87cd5a7fdc7aec8ddec28f6b1414d0a7' into 'dev'
2 parents edd2ac4 + 0edf000 commit 96fdaff

File tree

7 files changed

+14
-7
lines changed

7 files changed

+14
-7
lines changed

runtime/platform/globals.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,10 @@ typedef simd128_value_t fpu_register_t;
334334
#error Automatic target architecture detection failed.
335335
#endif
336336

337+
#if defined(TARGET_ARCH_IS_64_BIT) && !defined(DART_COMPRESSED_POINTERS)
338+
#define HAS_SMI_63_BITS 1
339+
#endif
340+
337341
// Verify that host and target architectures match, we cannot
338342
// have a 64 bit Dart VM generating 32 bit code or vice-versa.
339343
#if defined(TARGET_ARCH_X64) || defined(TARGET_ARCH_ARM64)

runtime/vm/compiler/assembler/assembler_base.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ enum OperandSize {
193193
// 64-bit ARM specific constants.
194194
kQWord,
195195

196-
#if defined(TARGET_ARCH_IS_64_BIT) && !defined(DART_COMPRESSED_POINTERS)
196+
#if defined(HAS_SMI_63_BITS)
197197
kObjectBytes = kEightBytes,
198198
#else
199199
kObjectBytes = kFourBytes,

runtime/vm/compiler/backend/il.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3736,7 +3736,7 @@ BoxInstr* BoxInstr::Create(Representation from, Value* value) {
37363736
switch (from) {
37373737
case kUnboxedUint8:
37383738
case kUnboxedUint16:
3739-
#if defined(TARGET_ARCH_IS_64_BIT) && !defined(DART_COMPRESSED_POINTERS)
3739+
#if defined(HAS_SMI_63_BITS)
37403740
case kUnboxedInt32:
37413741
case kUnboxedUint32:
37423742
#endif

runtime/vm/compiler/backend/type_propagator.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ CompileType CompileType::Int() {
699699
}
700700

701701
CompileType CompileType::Int32() {
702-
#if defined(TARGET_ARCH_IS_64_BIT) && !defined(DART_COMPRESSED_POINTERS)
702+
#if defined(HAS_SMI_63_BITS)
703703
return FromCid(kSmiCid);
704704
#else
705705
return Int();

runtime/vm/compiler/frontend/kernel_to_il.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ FlowGraph* FlowGraphBuilder::BuildGraphOfRecognizedMethod(
14861486
body += Box(kUnboxedFfiIntPtr);
14871487
} break;
14881488
case MethodRecognizer::kHas63BitSmis: {
1489-
#if defined(TARGET_ARCH_IS_64_BIT) && !defined(DART_COMPRESSED_POINTERS)
1489+
#if defined(HAS_SMI_63_BITS)
14901490
body += Constant(Bool::True());
14911491
#else
14921492
body += Constant(Bool::False());

tests/language/generic_methods/explicit_instantiated_tearoff_test.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ extension E on C {
6868

6969
Expect.identical(staticMethod<int, String>, staticTearOff);
7070

71-
Expect.equals(
71+
// Extension instance methods are not equal unless identical.
72+
Expect.notEquals(
7273
extInstanceMethod<int, String>, this.extInstanceMethod<int, String>);
7374
}
7475
}
@@ -132,7 +133,9 @@ void main() {
132133
o.instanceMethod<int, String>, o.instanceMethod<int, String>);
133134
Expect.equals(
134135
o.mixinInstanceMethod<int, String>, o.mixinInstanceMethod<int, String>);
135-
Expect.equals(
136+
137+
// Instantiated extension methods are not equal unless they are identical.
138+
Expect.notEquals(
136139
o.extInstanceMethod<int, String>, o.extInstanceMethod<int, String>);
137140

138141
// And not canonicalized where they shouldn't (different types).

tools/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ CHANNEL dev
2727
MAJOR 2
2828
MINOR 14
2929
PATCH 0
30-
PRERELEASE 376
30+
PRERELEASE 377
3131
PRERELEASE_PATCH 0

0 commit comments

Comments
 (0)