| 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" // Needed here to get TARGET_ARCH_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
| 6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
| 7 | 7 |
| 8 #include "vm/intrinsifier.h" | 8 #include "vm/intrinsifier.h" |
| 9 | 9 |
| 10 #include "vm/assembler.h" | 10 #include "vm/assembler.h" |
| 11 #include "vm/cpu.h" | 11 #include "vm/cpu.h" |
| 12 #include "vm/dart_entry.h" | 12 #include "vm/dart_entry.h" |
| 13 #include "vm/flow_graph_compiler.h" | 13 #include "vm/flow_graph_compiler.h" |
| 14 #include "vm/object.h" | 14 #include "vm/object.h" |
| 15 #include "vm/object_store.h" | 15 #include "vm/object_store.h" |
| 16 #include "vm/regexp_assembler.h" | 16 #include "vm/regexp_assembler.h" |
| 17 #include "vm/symbols.h" | 17 #include "vm/symbols.h" |
| 18 | 18 |
| 19 namespace dart { | 19 namespace dart { |
| 20 | 20 |
| 21 DECLARE_FLAG(bool, enable_type_checks); | |
| 22 | |
| 23 // When entering intrinsics code: | 21 // When entering intrinsics code: |
| 24 // R5: IC Data | 22 // R5: IC Data |
| 25 // R4: Arguments descriptor | 23 // R4: Arguments descriptor |
| 26 // LR: Return address | 24 // LR: Return address |
| 27 // The R5, R4 registers can be destroyed only if there is no slow-path, i.e. | 25 // The R5, R4 registers can be destroyed only if there is no slow-path, i.e. |
| 28 // if the intrinsified method always executes a return. | 26 // if the intrinsified method always executes a return. |
| 29 // The FP register should not be modified, because it is used by the profiler. | 27 // The FP register should not be modified, because it is used by the profiler. |
| 30 | 28 |
| 31 #define __ assembler-> | 29 #define __ assembler-> |
| 32 | 30 |
| (...skipping 1995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2028 Isolate* isolate = Isolate::Current(); | 2026 Isolate* isolate = Isolate::Current(); |
| 2029 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate)); | 2027 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate)); |
| 2030 // Set return value to Isolate::current_tag_. | 2028 // Set return value to Isolate::current_tag_. |
| 2031 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); | 2029 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); |
| 2032 __ Ret(); | 2030 __ Ret(); |
| 2033 } | 2031 } |
| 2034 | 2032 |
| 2035 } // namespace dart | 2033 } // namespace dart |
| 2036 | 2034 |
| 2037 #endif // defined TARGET_ARCH_ARM | 2035 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |