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_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
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 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1044 } else if (!flow_graph().IsCompiledForOsr()) { | 1044 } else if (!flow_graph().IsCompiledForOsr()) { |
1045 AddCurrentDescriptor(PcDescriptors::kEntryPatch, | 1045 AddCurrentDescriptor(PcDescriptors::kEntryPatch, |
1046 Isolate::kNoDeoptId, | 1046 Isolate::kNoDeoptId, |
1047 0); // No token position. | 1047 0); // No token position. |
1048 } | 1048 } |
1049 __ Comment("Enter frame"); | 1049 __ Comment("Enter frame"); |
1050 if (flow_graph().IsCompiledForOsr()) { | 1050 if (flow_graph().IsCompiledForOsr()) { |
1051 intptr_t extra_slots = StackSize() | 1051 intptr_t extra_slots = StackSize() |
1052 - flow_graph().num_stack_locals() | 1052 - flow_graph().num_stack_locals() |
1053 - flow_graph().num_copied_params(); | 1053 - flow_graph().num_copied_params(); |
1054 ASSERT(extra_slots >= 0); | |
1055 __ EnterOsrFrame(extra_slots * kWordSize); | 1054 __ EnterOsrFrame(extra_slots * kWordSize); |
1056 } else { | 1055 } else { |
1057 ASSERT(StackSize() >= 0); | 1056 ASSERT(StackSize() >= 0); |
1058 __ EnterDartFrame(StackSize() * kWordSize); | 1057 __ EnterDartFrame(StackSize() * kWordSize); |
1059 } | 1058 } |
1060 } | 1059 } |
1061 | 1060 |
1062 | 1061 |
1063 // Input parameters: | 1062 // Input parameters: |
1064 // RA: return address. | 1063 // RA: return address. |
(...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1869 __ AddImmediate(SP, kDoubleSize); | 1868 __ AddImmediate(SP, kDoubleSize); |
1870 } | 1869 } |
1871 | 1870 |
1872 | 1871 |
1873 #undef __ | 1872 #undef __ |
1874 | 1873 |
1875 | 1874 |
1876 } // namespace dart | 1875 } // namespace dart |
1877 | 1876 |
1878 #endif // defined TARGET_ARCH_MIPS | 1877 #endif // defined TARGET_ARCH_MIPS |
OLD | NEW |