| 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 "vm/ast_printer.h" | 10 #include "vm/ast_printer.h" |
| (...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1050 __ movq(new_pp, Address(new_pc, -object_pool_pc_dist - offset)); | 1050 __ movq(new_pp, Address(new_pc, -object_pool_pc_dist - offset)); |
| 1051 AddCurrentDescriptor(PcDescriptors::kEntryPatch, | 1051 AddCurrentDescriptor(PcDescriptors::kEntryPatch, |
| 1052 Isolate::kNoDeoptId, | 1052 Isolate::kNoDeoptId, |
| 1053 0); // No token position. | 1053 0); // No token position. |
| 1054 } | 1054 } |
| 1055 __ Comment("Enter frame"); | 1055 __ Comment("Enter frame"); |
| 1056 if (flow_graph().IsCompiledForOsr()) { | 1056 if (flow_graph().IsCompiledForOsr()) { |
| 1057 intptr_t extra_slots = StackSize() | 1057 intptr_t extra_slots = StackSize() |
| 1058 - flow_graph().num_stack_locals() | 1058 - flow_graph().num_stack_locals() |
| 1059 - flow_graph().num_copied_params(); | 1059 - flow_graph().num_copied_params(); |
| 1060 ASSERT(extra_slots >= 0); | |
| 1061 __ EnterOsrFrame(extra_slots * kWordSize, new_pp, new_pc); | 1060 __ EnterOsrFrame(extra_slots * kWordSize, new_pp, new_pc); |
| 1062 } else { | 1061 } else { |
| 1063 ASSERT(StackSize() >= 0); | 1062 ASSERT(StackSize() >= 0); |
| 1064 __ EnterDartFrameWithInfo(StackSize() * kWordSize, new_pp, new_pc); | 1063 __ EnterDartFrameWithInfo(StackSize() * kWordSize, new_pp, new_pc); |
| 1065 } | 1064 } |
| 1066 } | 1065 } |
| 1067 | 1066 |
| 1068 | 1067 |
| 1069 void FlowGraphCompiler::CompileGraph() { | 1068 void FlowGraphCompiler::CompileGraph() { |
| 1070 InitCompiler(); | 1069 InitCompiler(); |
| (...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1839 __ movups(reg, Address(RSP, 0)); | 1838 __ movups(reg, Address(RSP, 0)); |
| 1840 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); | 1839 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); |
| 1841 } | 1840 } |
| 1842 | 1841 |
| 1843 | 1842 |
| 1844 #undef __ | 1843 #undef __ |
| 1845 | 1844 |
| 1846 } // namespace dart | 1845 } // namespace dart |
| 1847 | 1846 |
| 1848 #endif // defined TARGET_ARCH_X64 | 1847 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |