| 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_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
| 6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
| 7 | 7 |
| 8 #include "vm/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
| 9 | 9 |
| 10 #include "lib/error.h" | 10 #include "lib/error.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 EmitMaterializations(deopt_env_, builder); | 59 EmitMaterializations(deopt_env_, builder); |
| 60 | 60 |
| 61 // The real frame starts here. | 61 // The real frame starts here. |
| 62 builder->MarkFrameStart(); | 62 builder->MarkFrameStart(); |
| 63 | 63 |
| 64 // Callee's PC marker is not used anymore. Pass Function::null() to set to 0. | 64 // Callee's PC marker is not used anymore. Pass Function::null() to set to 0. |
| 65 builder->AddPcMarker(Function::Handle(), slot_ix++); | 65 builder->AddPcMarker(Function::Handle(), slot_ix++); |
| 66 | 66 |
| 67 // Current FP and PC. | 67 // Current FP and PC. |
| 68 builder->AddCallerFp(slot_ix++); | 68 builder->AddCallerFp(slot_ix++); |
| 69 builder->AddReturnAddress(current->function(), | 69 builder->AddReturnAddress(current->function(), deopt_id(), slot_ix++); |
| 70 deopt_id(), | |
| 71 slot_ix++); | |
| 72 | 70 |
| 73 // Emit all values that are needed for materialization as a part of the | 71 // Emit all values that are needed for materialization as a part of the |
| 74 // expression stack for the bottom-most frame. This guarantees that GC | 72 // expression stack for the bottom-most frame. This guarantees that GC |
| 75 // will be able to find them during materialization. | 73 // will be able to find them during materialization. |
| 76 slot_ix = builder->EmitMaterializationArguments(slot_ix); | 74 slot_ix = builder->EmitMaterializationArguments(slot_ix); |
| 77 | 75 |
| 78 // For the innermost environment, set outgoing arguments and the locals. | 76 // For the innermost environment, set outgoing arguments and the locals. |
| 79 for (intptr_t i = current->Length() - 1; | 77 for (intptr_t i = current->Length() - 1; |
| 80 i >= current->fixed_parameter_count(); | 78 i >= current->fixed_parameter_count(); |
| 81 i--) { | 79 i--) { |
| (...skipping 1851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1933 __ movups(reg, Address(RSP, 0)); | 1931 __ movups(reg, Address(RSP, 0)); |
| 1934 __ addq(RSP, Immediate(kFpuRegisterSize)); | 1932 __ addq(RSP, Immediate(kFpuRegisterSize)); |
| 1935 } | 1933 } |
| 1936 | 1934 |
| 1937 | 1935 |
| 1938 #undef __ | 1936 #undef __ |
| 1939 | 1937 |
| 1940 } // namespace dart | 1938 } // namespace dart |
| 1941 | 1939 |
| 1942 #endif // defined TARGET_ARCH_X64 | 1940 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |