| 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); | 21 DECLARE_FLAG(bool, enable_type_checks); |
| 22 | 22 |
| 23 // When entering intrinsics code: |
| 24 // R5: IC Data |
| 25 // R4: Arguments descriptor |
| 26 // LR: Return address |
| 27 // 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. |
| 29 // The FP register should not be modified, because it is used by the profiler. |
| 23 | 30 |
| 24 #define __ assembler-> | 31 #define __ assembler-> |
| 25 | 32 |
| 26 | 33 |
| 27 intptr_t Intrinsifier::ParameterSlotFromSp() { return -1; } | 34 intptr_t Intrinsifier::ParameterSlotFromSp() { return -1; } |
| 28 | 35 |
| 29 | 36 |
| 30 static intptr_t ComputeObjectArrayTypeArgumentsOffset() { | 37 static intptr_t ComputeObjectArrayTypeArgumentsOffset() { |
| 31 const Library& core_lib = Library::Handle(Library::CoreLibrary()); | 38 const Library& core_lib = Library::Handle(Library::CoreLibrary()); |
| 32 const Class& cls = Class::Handle( | 39 const Class& cls = Class::Handle( |
| (...skipping 1906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1939 Isolate* isolate = Isolate::Current(); | 1946 Isolate* isolate = Isolate::Current(); |
| 1940 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate)); | 1947 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate)); |
| 1941 // Set return value to Isolate::current_tag_. | 1948 // Set return value to Isolate::current_tag_. |
| 1942 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); | 1949 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); |
| 1943 __ Ret(); | 1950 __ Ret(); |
| 1944 } | 1951 } |
| 1945 | 1952 |
| 1946 } // namespace dart | 1953 } // namespace dart |
| 1947 | 1954 |
| 1948 #endif // defined TARGET_ARCH_ARM | 1955 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |