| 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 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1131 __ sw(V0, Address(FP, (slot_base - i) * kWordSize)); | 1131 __ sw(V0, Address(FP, (slot_base - i) * kWordSize)); |
| 1132 } | 1132 } |
| 1133 } | 1133 } |
| 1134 } | 1134 } |
| 1135 | 1135 |
| 1136 EndCodeSourceRange(TokenPosition::kDartCodePrologue); | 1136 EndCodeSourceRange(TokenPosition::kDartCodePrologue); |
| 1137 VisitBlocks(); | 1137 VisitBlocks(); |
| 1138 | 1138 |
| 1139 __ break_(0); | 1139 __ break_(0); |
| 1140 GenerateDeferredCode(); | 1140 GenerateDeferredCode(); |
| 1141 | |
| 1142 BeginCodeSourceRange(); | |
| 1143 if (is_optimizing() && !FLAG_precompiled_mode) { | |
| 1144 // Leave enough space for patching in case of lazy deoptimization. | |
| 1145 for (intptr_t i = 0; | |
| 1146 i < CallPattern::kDeoptCallLengthInInstructions; | |
| 1147 ++i) { | |
| 1148 __ nop(); | |
| 1149 } | |
| 1150 lazy_deopt_return_pc_offset_ = assembler()->CodeSize(); | |
| 1151 __ Branch(*StubCode::DeoptimizeLazyFromReturn_entry()); | |
| 1152 lazy_deopt_throw_pc_offset_ = assembler()->CodeSize(); | |
| 1153 __ Branch(*StubCode::DeoptimizeLazyFromThrow_entry()); | |
| 1154 } | |
| 1155 EndCodeSourceRange(TokenPosition::kDartCodeEpilogue); | |
| 1156 } | 1141 } |
| 1157 | 1142 |
| 1158 | 1143 |
| 1159 void FlowGraphCompiler::GenerateCall(TokenPosition token_pos, | 1144 void FlowGraphCompiler::GenerateCall(TokenPosition token_pos, |
| 1160 const StubEntry& stub_entry, | 1145 const StubEntry& stub_entry, |
| 1161 RawPcDescriptors::Kind kind, | 1146 RawPcDescriptors::Kind kind, |
| 1162 LocationSummary* locs) { | 1147 LocationSummary* locs) { |
| 1163 __ BranchLinkPatchable(stub_entry); | 1148 __ BranchLinkPatchable(stub_entry); |
| 1164 AddCurrentDescriptor(kind, Thread::kNoDeoptId, token_pos); | 1149 AddCurrentDescriptor(kind, Thread::kNoDeoptId, token_pos); |
| 1165 RecordSafepoint(locs); | 1150 RecordSafepoint(locs); |
| (...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1958 __ AddImmediate(SP, kDoubleSize); | 1943 __ AddImmediate(SP, kDoubleSize); |
| 1959 } | 1944 } |
| 1960 | 1945 |
| 1961 | 1946 |
| 1962 #undef __ | 1947 #undef __ |
| 1963 | 1948 |
| 1964 | 1949 |
| 1965 } // namespace dart | 1950 } // namespace dart |
| 1966 | 1951 |
| 1967 #endif // defined TARGET_ARCH_MIPS | 1952 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |