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/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
9 | 9 |
10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 __ ldr(CODE_REG, FieldAddress(R0, Function::code_offset())); | 226 __ ldr(CODE_REG, FieldAddress(R0, Function::code_offset())); |
227 __ ldr(R2, FieldAddress(R0, Function::entry_point_offset())); | 227 __ ldr(R2, FieldAddress(R0, Function::entry_point_offset())); |
228 | 228 |
229 // R2: instructions entry point. | 229 // R2: instructions entry point. |
230 // R5: Smi 0 (no IC data; the lazy-compile stub expects a GC-safe value). | 230 // R5: Smi 0 (no IC data; the lazy-compile stub expects a GC-safe value). |
231 __ LoadImmediate(R5, 0); | 231 __ LoadImmediate(R5, 0); |
232 __ blx(R2); | 232 __ blx(R2); |
233 compiler->RecordSafepoint(locs()); | 233 compiler->RecordSafepoint(locs()); |
234 // Marks either the continuation point in unoptimized code or the | 234 // Marks either the continuation point in unoptimized code or the |
235 // deoptimization point in optimized code, after call. | 235 // deoptimization point in optimized code, after call. |
236 const intptr_t deopt_id_after = Isolate::ToDeoptAfter(deopt_id()); | 236 const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id()); |
237 if (compiler->is_optimizing()) { | 237 if (compiler->is_optimizing()) { |
238 compiler->AddDeoptIndexAtCall(deopt_id_after, token_pos()); | 238 compiler->AddDeoptIndexAtCall(deopt_id_after, token_pos()); |
239 } | 239 } |
240 // Add deoptimization continuation point after the call and before the | 240 // Add deoptimization continuation point after the call and before the |
241 // arguments are removed. | 241 // arguments are removed. |
242 // In optimized code this descriptor is needed for exception handling. | 242 // In optimized code this descriptor is needed for exception handling. |
243 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, | 243 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, |
244 deopt_id_after, | 244 deopt_id_after, |
245 token_pos()); | 245 token_pos()); |
246 __ Drop(argument_count); | 246 __ Drop(argument_count); |
(...skipping 6613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6860 1, | 6860 1, |
6861 locs()); | 6861 locs()); |
6862 __ Drop(1); | 6862 __ Drop(1); |
6863 __ Pop(result); | 6863 __ Pop(result); |
6864 } | 6864 } |
6865 | 6865 |
6866 | 6866 |
6867 } // namespace dart | 6867 } // namespace dart |
6868 | 6868 |
6869 #endif // defined TARGET_ARCH_ARM | 6869 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |