| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/globals.h" | 5 #include "vm/globals.h" |
| 6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
| 7 | 7 |
| 8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
| 9 #include "vm/cpu.h" | 9 #include "vm/cpu.h" |
| 10 #include "vm/os.h" | 10 #include "vm/os.h" |
| (...skipping 3910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3921 if (TargetCPUFeatures::neon_supported()) { | 3921 if (TargetCPUFeatures::neon_supported()) { |
| 3922 typedef float (*Vnegqs)() DART_UNUSED; | 3922 typedef float (*Vnegqs)() DART_UNUSED; |
| 3923 float res = EXECUTE_TEST_CODE_FLOAT(Vnegqs, test->entry()); | 3923 float res = EXECUTE_TEST_CODE_FLOAT(Vnegqs, test->entry()); |
| 3924 EXPECT_FLOAT_EQ(2.0, res, 0.0001f); | 3924 EXPECT_FLOAT_EQ(2.0, res, 0.0001f); |
| 3925 } | 3925 } |
| 3926 } | 3926 } |
| 3927 | 3927 |
| 3928 | 3928 |
| 3929 // Called from assembler_test.cc. | 3929 // Called from assembler_test.cc. |
| 3930 // LR: return address. | 3930 // LR: return address. |
| 3931 // R0: context. | 3931 // R0: value. |
| 3932 // R1: value. | 3932 // R1: growable array. |
| 3933 // R2: growable array. | 3933 // R2: current thread. |
| 3934 // R3: current thread. | |
| 3935 ASSEMBLER_TEST_GENERATE(StoreIntoObject, assembler) { | 3934 ASSEMBLER_TEST_GENERATE(StoreIntoObject, assembler) { |
| 3936 __ PushList((1 << CTX) | (1 << LR) | (1 << THR)); | 3935 __ PushList((1 << LR) | (1 << THR)); |
| 3937 __ mov(CTX, Operand(R0)); | 3936 __ mov(THR, Operand(R2)); |
| 3938 __ mov(THR, Operand(R3)); | 3937 __ StoreIntoObject(R1, |
| 3939 __ StoreIntoObject(R2, | 3938 FieldAddress(R1, GrowableObjectArray::data_offset()), |
| 3940 FieldAddress(R2, GrowableObjectArray::data_offset()), | 3939 R0); |
| 3941 R1); | 3940 __ PopList((1 << LR) | (1 << THR)); |
| 3942 __ PopList((1 << CTX) | (1 << LR) | (1 << THR)); | |
| 3943 __ Ret(); | 3941 __ Ret(); |
| 3944 } | 3942 } |
| 3945 | 3943 |
| 3946 | 3944 |
| 3947 ASSEMBLER_TEST_GENERATE(ComputeRange, assembler) { | 3945 ASSEMBLER_TEST_GENERATE(ComputeRange, assembler) { |
| 3948 Label miss, done; | 3946 Label miss, done; |
| 3949 __ mov(R1, Operand(R0)); | 3947 __ mov(R1, Operand(R0)); |
| 3950 __ ComputeRange(R0, R1, R2, &miss); | 3948 __ ComputeRange(R0, R1, R2, &miss); |
| 3951 __ b(&done); | 3949 __ b(&done); |
| 3952 | 3950 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3991 EXPECT_EQ(ICData::kInt64RangeBit, RANGE_OF(Integer::New(kMinInt64))); | 3989 EXPECT_EQ(ICData::kInt64RangeBit, RANGE_OF(Integer::New(kMinInt64))); |
| 3992 | 3990 |
| 3993 EXPECT_EQ(-1, RANGE_OF(Bool::True().raw())); | 3991 EXPECT_EQ(-1, RANGE_OF(Bool::True().raw())); |
| 3994 | 3992 |
| 3995 #undef RANGE_OF | 3993 #undef RANGE_OF |
| 3996 } | 3994 } |
| 3997 | 3995 |
| 3998 } // namespace dart | 3996 } // namespace dart |
| 3999 | 3997 |
| 4000 #endif // defined TARGET_ARCH_ARM | 3998 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |