| 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_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 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/dart_entry.h" | 11 #include "vm/dart_entry.h" |
| 12 #include "vm/flow_graph_compiler.h" | 12 #include "vm/flow_graph_compiler.h" |
| 13 #include "vm/object.h" | 13 #include "vm/object.h" |
| 14 #include "vm/object_store.h" | 14 #include "vm/object_store.h" |
| 15 #include "vm/regexp_assembler.h" | 15 #include "vm/regexp_assembler.h" |
| 16 #include "vm/symbols.h" | 16 #include "vm/symbols.h" |
| 17 | 17 |
| 18 namespace dart { | 18 namespace dart { |
| 19 | 19 |
| 20 DECLARE_FLAG(bool, enable_type_checks); | 20 DECLARE_FLAG(bool, enable_type_checks); |
| 21 | 21 |
| 22 // When entering intrinsics code: |
| 23 // S5: IC Data |
| 24 // S4: Arguments descriptor |
| 25 // RA: Return address |
| 26 // The S5, S4 registers can be destroyed only if there is no slow-path, i.e. |
| 27 // if the intrinsified method always executes a return. |
| 28 // The FP register should not be modified, because it is used by the profiler. |
| 29 |
| 22 #define __ assembler-> | 30 #define __ assembler-> |
| 23 | 31 |
| 24 | 32 |
| 25 intptr_t Intrinsifier::ParameterSlotFromSp() { return -1; } | 33 intptr_t Intrinsifier::ParameterSlotFromSp() { return -1; } |
| 26 | 34 |
| 27 | 35 |
| 28 static intptr_t ComputeObjectArrayTypeArgumentsOffset() { | 36 static intptr_t ComputeObjectArrayTypeArgumentsOffset() { |
| 29 const Library& core_lib = Library::Handle(Library::CoreLibrary()); | 37 const Library& core_lib = Library::Handle(Library::CoreLibrary()); |
| 30 const Class& cls = Class::Handle( | 38 const Class& cls = Class::Handle( |
| 31 core_lib.LookupClassAllowPrivate(Symbols::_List())); | 39 core_lib.LookupClassAllowPrivate(Symbols::_List())); |
| (...skipping 2004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2036 Isolate* isolate = Isolate::Current(); | 2044 Isolate* isolate = Isolate::Current(); |
| 2037 __ LoadImmediate(V0, reinterpret_cast<uword>(isolate)); | 2045 __ LoadImmediate(V0, reinterpret_cast<uword>(isolate)); |
| 2038 // Set return value. | 2046 // Set return value. |
| 2039 __ Ret(); | 2047 __ Ret(); |
| 2040 __ delay_slot()->lw(V0, Address(V0, Isolate::current_tag_offset())); | 2048 __ delay_slot()->lw(V0, Address(V0, Isolate::current_tag_offset())); |
| 2041 } | 2049 } |
| 2042 | 2050 |
| 2043 } // namespace dart | 2051 } // namespace dart |
| 2044 | 2052 |
| 2045 #endif // defined TARGET_ARCH_MIPS | 2053 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |