| 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/code_generator.h" | 9 #include "vm/code_generator.h" |
| 10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
| 11 #include "vm/compiler.h" | 11 #include "vm/compiler.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/heap.h" | 14 #include "vm/heap.h" |
| 15 #include "vm/instructions.h" | 15 #include "vm/instructions.h" |
| 16 #include "vm/object_store.h" | 16 #include "vm/object_store.h" |
| 17 #include "vm/stack_frame.h" | 17 #include "vm/stack_frame.h" |
| 18 #include "vm/stub_code.h" | 18 #include "vm/stub_code.h" |
| 19 #include "vm/tags.h" | 19 #include "vm/tags.h" |
| 20 | 20 |
| 21 #define __ assembler-> | 21 #define __ assembler-> |
| 22 | 22 |
| 23 namespace dart { | 23 namespace dart { |
| 24 | 24 |
| 25 DEFINE_FLAG(bool, inline_alloc, true, "Inline allocation of objects."); | 25 DEFINE_FLAG(bool, inline_alloc, true, "Inline allocation of objects."); |
| 26 DEFINE_FLAG(bool, use_slow_path, false, | 26 DEFINE_FLAG(bool, use_slow_path, false, |
| 27 "Set to true for debugging & verifying the slow paths."); | 27 "Set to true for debugging & verifying the slow paths."); |
| 28 DECLARE_FLAG(bool, trace_optimized_ic_calls); | 28 DECLARE_FLAG(bool, trace_optimized_ic_calls); |
| 29 DECLARE_FLAG(int, optimization_counter_threshold); | 29 DECLARE_FLAG(int, optimization_counter_threshold); |
| 30 DECLARE_FLAG(bool, lazy_dispatchers); | |
| 31 | 30 |
| 32 // Input parameters: | 31 // Input parameters: |
| 33 // LR : return address. | 32 // LR : return address. |
| 34 // SP : address of last argument in argument array. | 33 // SP : address of last argument in argument array. |
| 35 // SP + 4*R4 - 4 : address of first argument in argument array. | 34 // SP + 4*R4 - 4 : address of first argument in argument array. |
| 36 // SP + 4*R4 : address of return value. | 35 // SP + 4*R4 : address of return value. |
| 37 // R9 : address of the runtime function to call. | 36 // R9 : address of the runtime function to call. |
| 38 // R4 : number of arguments to the call. | 37 // R4 : number of arguments to the call. |
| 39 void StubCode::GenerateCallToRuntimeStub(Assembler* assembler) { | 38 void StubCode::GenerateCallToRuntimeStub(Assembler* assembler) { |
| 40 const intptr_t thread_offset = NativeArguments::thread_offset(); | 39 const intptr_t thread_offset = NativeArguments::thread_offset(); |
| (...skipping 2101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2142 __ Bind(&miss); | 2141 __ Bind(&miss); |
| 2143 __ LoadIsolate(R2); | 2142 __ LoadIsolate(R2); |
| 2144 __ ldr(CODE_REG, Address(R2, Isolate::ic_miss_code_offset())); | 2143 __ ldr(CODE_REG, Address(R2, Isolate::ic_miss_code_offset())); |
| 2145 __ ldr(R1, FieldAddress(CODE_REG, Code::entry_point_offset())); | 2144 __ ldr(R1, FieldAddress(CODE_REG, Code::entry_point_offset())); |
| 2146 __ Ret(); | 2145 __ Ret(); |
| 2147 } | 2146 } |
| 2148 | 2147 |
| 2149 } // namespace dart | 2148 } // namespace dart |
| 2150 | 2149 |
| 2151 #endif // defined TARGET_ARCH_ARM | 2150 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |