| 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 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1119 __ sw(V0, Address(FP, (slot_base - i) * kWordSize)); | 1119 __ sw(V0, Address(FP, (slot_base - i) * kWordSize)); |
| 1120 } | 1120 } |
| 1121 } | 1121 } |
| 1122 } | 1122 } |
| 1123 | 1123 |
| 1124 EndCodeSourceRange(TokenPosition::kDartCodePrologue); | 1124 EndCodeSourceRange(TokenPosition::kDartCodePrologue); |
| 1125 VisitBlocks(); | 1125 VisitBlocks(); |
| 1126 | 1126 |
| 1127 __ break_(0); | 1127 __ break_(0); |
| 1128 GenerateDeferredCode(); | 1128 GenerateDeferredCode(); |
| 1129 |
| 1130 BeginCodeSourceRange(); |
| 1131 if (is_optimizing() && !FLAG_precompiled_mode) { |
| 1132 // Leave enough space for patching in case of lazy deoptimization. |
| 1133 for (intptr_t i = 0; |
| 1134 i < CallPattern::kDeoptCallLengthInInstructions; |
| 1135 ++i) { |
| 1136 __ nop(); |
| 1137 } |
| 1138 lazy_deopt_return_pc_offset_ = assembler()->CodeSize(); |
| 1139 __ Branch(*StubCode::DeoptimizeLazyFromReturn_entry()); |
| 1140 lazy_deopt_throw_pc_offset_ = assembler()->CodeSize(); |
| 1141 __ Branch(*StubCode::DeoptimizeLazyFromThrow_entry()); |
| 1142 } |
| 1143 EndCodeSourceRange(TokenPosition::kDartCodeEpilogue); |
| 1129 } | 1144 } |
| 1130 | 1145 |
| 1131 | 1146 |
| 1132 void FlowGraphCompiler::GenerateCall(TokenPosition token_pos, | 1147 void FlowGraphCompiler::GenerateCall(TokenPosition token_pos, |
| 1133 const StubEntry& stub_entry, | 1148 const StubEntry& stub_entry, |
| 1134 RawPcDescriptors::Kind kind, | 1149 RawPcDescriptors::Kind kind, |
| 1135 LocationSummary* locs) { | 1150 LocationSummary* locs) { |
| 1136 __ BranchLinkPatchable(stub_entry); | 1151 __ BranchLinkPatchable(stub_entry); |
| 1137 AddCurrentDescriptor(kind, Thread::kNoDeoptId, token_pos); | 1152 AddCurrentDescriptor(kind, Thread::kNoDeoptId, token_pos); |
| 1138 RecordSafepoint(locs); | 1153 RecordSafepoint(locs); |
| (...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1931 __ AddImmediate(SP, kDoubleSize); | 1946 __ AddImmediate(SP, kDoubleSize); |
| 1932 } | 1947 } |
| 1933 | 1948 |
| 1934 | 1949 |
| 1935 #undef __ | 1950 #undef __ |
| 1936 | 1951 |
| 1937 | 1952 |
| 1938 } // namespace dart | 1953 } // namespace dart |
| 1939 | 1954 |
| 1940 #endif // defined TARGET_ARCH_MIPS | 1955 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |