| 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" |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 if (preserve_result) { | 524 if (preserve_result) { |
| 525 // Restore result into R1. | 525 // Restore result into R1. |
| 526 __ ldr(R1, Address(FP, kFirstLocalSlotFromFp * kWordSize)); | 526 __ ldr(R1, Address(FP, kFirstLocalSlotFromFp * kWordSize)); |
| 527 } | 527 } |
| 528 // Code above cannot cause GC. | 528 // Code above cannot cause GC. |
| 529 __ LeaveDartFrame(); | 529 __ LeaveDartFrame(); |
| 530 | 530 |
| 531 // Frame is fully rewritten at this point and it is safe to perform a GC. | 531 // Frame is fully rewritten at this point and it is safe to perform a GC. |
| 532 // Materialize any objects that were deferred by FillFrame because they | 532 // Materialize any objects that were deferred by FillFrame because they |
| 533 // require allocation. | 533 // require allocation. |
| 534 __ EnterStubFrame(); | 534 // Enter stub frame with loading PP. The caller's PP is not materialized yet. |
| 535 __ EnterStubFrame(true); |
| 535 if (preserve_result) { | 536 if (preserve_result) { |
| 536 __ Push(R1); // Preserve result, it will be GC-d here. | 537 __ Push(R1); // Preserve result, it will be GC-d here. |
| 537 } | 538 } |
| 538 __ PushObject(Smi::ZoneHandle()); // Space for the result. | 539 __ PushObject(Smi::ZoneHandle()); // Space for the result. |
| 539 __ CallRuntime(kDeoptimizeMaterializeRuntimeEntry, 0); | 540 __ CallRuntime(kDeoptimizeMaterializeRuntimeEntry, 0); |
| 540 // Result tells stub how many bytes to remove from the expression stack | 541 // Result tells stub how many bytes to remove from the expression stack |
| 541 // of the bottom-most frame. They were used as materialization arguments. | 542 // of the bottom-most frame. They were used as materialization arguments. |
| 542 __ Pop(R1); | 543 __ Pop(R1); |
| 543 if (preserve_result) { | 544 if (preserve_result) { |
| 544 __ Pop(R0); // Restore result. | 545 __ Pop(R0); // Restore result. |
| (...skipping 1507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2052 const Register right = R0; | 2053 const Register right = R0; |
| 2053 __ ldr(left, Address(SP, 1 * kWordSize)); | 2054 __ ldr(left, Address(SP, 1 * kWordSize)); |
| 2054 __ ldr(right, Address(SP, 0 * kWordSize)); | 2055 __ ldr(right, Address(SP, 0 * kWordSize)); |
| 2055 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp); | 2056 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp); |
| 2056 __ Ret(); | 2057 __ Ret(); |
| 2057 } | 2058 } |
| 2058 | 2059 |
| 2059 } // namespace dart | 2060 } // namespace dart |
| 2060 | 2061 |
| 2061 #endif // defined TARGET_ARCH_ARM | 2062 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |