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_ARM64) | 6 #if defined(TARGET_ARCH_ARM64) |
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 1682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1693 } | 1693 } |
1694 | 1694 |
1695 | 1695 |
1696 #if defined(USING_SIMULATOR) | 1696 #if defined(USING_SIMULATOR) |
1697 #define ASSEMBLER_TEST_RUN_WITH_THREAD(var_name) \ | 1697 #define ASSEMBLER_TEST_RUN_WITH_THREAD(var_name) \ |
1698 Thread* thread = Thread::Current(); \ | 1698 Thread* thread = Thread::Current(); \ |
1699 int64_t var_name = Simulator::Current()->Call( \ | 1699 int64_t var_name = Simulator::Current()->Call( \ |
1700 bit_cast<intptr_t, uword>(test->entry()), \ | 1700 bit_cast<intptr_t, uword>(test->entry()), \ |
1701 reinterpret_cast<intptr_t>(thread), 0, 0, 0) | 1701 reinterpret_cast<intptr_t>(thread), 0, 0, 0) |
1702 #else | 1702 #else |
1703 #define ASSEMBER_TEST_RUN_WITH_THREAD(var_name) \ | 1703 #define ASSEMBLER_TEST_RUN_WITH_THREAD(var_name) \ |
| 1704 Thread* thread = Thread::Current(); \ |
1704 typedef int64_t (*Int64Return)(Thread* thread); \ | 1705 typedef int64_t (*Int64Return)(Thread* thread); \ |
1705 Int64Return test_code = reinterpret_cast<Int64Return>(test->entry()); \ | 1706 Int64Return test_code = reinterpret_cast<Int64Return>(test->entry()); \ |
1706 int64_t var_name = test_code(thread) | 1707 int64_t var_name = test_code(thread) |
1707 #endif | 1708 #endif |
1708 | 1709 |
1709 | 1710 |
1710 // LoadObject null. | 1711 // LoadObject null. |
1711 ASSEMBLER_TEST_GENERATE(LoadObjectNull, assembler) { | 1712 ASSEMBLER_TEST_GENERATE(LoadObjectNull, assembler) { |
1712 __ SetupDartSP(kTestStackSpace); | 1713 __ SetupDartSP(kTestStackSpace); |
1713 __ Push(THR); | 1714 __ Push(THR); |
(...skipping 1933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3647 | 3648 |
3648 EXPECT_EQ(-1, RANGE_OF(Bool::True().raw())); | 3649 EXPECT_EQ(-1, RANGE_OF(Bool::True().raw())); |
3649 | 3650 |
3650 #undef RANGE_OF | 3651 #undef RANGE_OF |
3651 } | 3652 } |
3652 | 3653 |
3653 | 3654 |
3654 } // namespace dart | 3655 } // namespace dart |
3655 | 3656 |
3656 #endif // defined(TARGET_ARCH_ARM64) | 3657 #endif // defined(TARGET_ARCH_ARM64) |
OLD | NEW |