| 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/compiler.h" | 10 #include "vm/compiler.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/heap.h" | 13 #include "vm/heap.h" |
| 14 #include "vm/instructions.h" | 14 #include "vm/instructions.h" |
| 15 #include "vm/object_store.h" | 15 #include "vm/object_store.h" |
| 16 #include "vm/stack_frame.h" | 16 #include "vm/stack_frame.h" |
| 17 #include "vm/stub_code.h" | 17 #include "vm/stub_code.h" |
| 18 | 18 |
| 19 #define __ assembler-> | 19 #define __ assembler-> |
| 20 | 20 |
| 21 namespace dart { | 21 namespace dart { |
| 22 | 22 |
| 23 DEFINE_FLAG(bool, inline_alloc, true, "Inline allocation of objects."); | 23 DEFINE_FLAG(bool, inline_alloc, true, "Inline allocation of objects."); |
| 24 DEFINE_FLAG(bool, use_slow_path, false, | 24 DEFINE_FLAG(bool, use_slow_path, false, |
| 25 "Set to true for debugging & verifying the slow paths."); | 25 "Set to true for debugging & verifying the slow paths."); |
| 26 DECLARE_FLAG(bool, trace_optimized_ic_calls); | 26 DECLARE_FLAG(bool, trace_optimized_ic_calls); |
| 27 DECLARE_FLAG(int, optimization_counter_threshold); | |
| 28 | 27 |
| 29 | 28 |
| 30 // Input parameters: | 29 // Input parameters: |
| 31 // LR : return address. | 30 // LR : return address. |
| 32 // SP : address of last argument in argument array. | 31 // SP : address of last argument in argument array. |
| 33 // SP + 4*R4 - 4 : address of first argument in argument array. | 32 // SP + 4*R4 - 4 : address of first argument in argument array. |
| 34 // SP + 4*R4 : address of return value. | 33 // SP + 4*R4 : address of return value. |
| 35 // R5 : address of the runtime function to call. | 34 // R5 : address of the runtime function to call. |
| 36 // R4 : number of arguments to the call. | 35 // R4 : number of arguments to the call. |
| 37 void StubCode::GenerateCallToRuntimeStub(Assembler* assembler) { | 36 void StubCode::GenerateCallToRuntimeStub(Assembler* assembler) { |
| (...skipping 1905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1943 const Register right = R0; | 1942 const Register right = R0; |
| 1944 __ ldr(left, Address(SP, 1 * kWordSize)); | 1943 __ ldr(left, Address(SP, 1 * kWordSize)); |
| 1945 __ ldr(right, Address(SP, 0 * kWordSize)); | 1944 __ ldr(right, Address(SP, 0 * kWordSize)); |
| 1946 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp); | 1945 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp); |
| 1947 __ Ret(); | 1946 __ Ret(); |
| 1948 } | 1947 } |
| 1949 | 1948 |
| 1950 } // namespace dart | 1949 } // namespace dart |
| 1951 | 1950 |
| 1952 #endif // defined TARGET_ARCH_ARM | 1951 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |