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_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
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 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1120 __ LoadObject(R1, empty_context); | 1120 __ LoadObject(R1, empty_context); |
1121 __ StoreToOffset(kWord, R1, FP, (slot_base - i) * kWordSize); | 1121 __ StoreToOffset(kWord, R1, FP, (slot_base - i) * kWordSize); |
1122 } | 1122 } |
1123 } else { | 1123 } else { |
1124 ASSERT(num_locals > 1); | 1124 ASSERT(num_locals > 1); |
1125 __ StoreToOffset(kWord, R0, FP, (slot_base - i) * kWordSize); | 1125 __ StoreToOffset(kWord, R0, FP, (slot_base - i) * kWordSize); |
1126 } | 1126 } |
1127 } | 1127 } |
1128 } | 1128 } |
1129 | 1129 |
| 1130 EndCodeSourceRange(TokenPosition::kDartCodePrologue); |
1130 VisitBlocks(); | 1131 VisitBlocks(); |
1131 | 1132 |
1132 __ bkpt(0); | 1133 __ bkpt(0); |
1133 ASSERT(assembler()->constant_pool_allowed()); | 1134 ASSERT(assembler()->constant_pool_allowed()); |
1134 GenerateDeferredCode(); | 1135 GenerateDeferredCode(); |
1135 | 1136 |
| 1137 BeginCodeSourceRange(); |
1136 if (is_optimizing() && !FLAG_precompiled_mode) { | 1138 if (is_optimizing() && !FLAG_precompiled_mode) { |
1137 // Leave enough space for patching in case of lazy deoptimization from | 1139 // Leave enough space for patching in case of lazy deoptimization from |
1138 // deferred code. | 1140 // deferred code. |
1139 for (intptr_t i = 0; | 1141 for (intptr_t i = 0; |
1140 i < CallPattern::DeoptCallPatternLengthInInstructions(); | 1142 i < CallPattern::DeoptCallPatternLengthInInstructions(); |
1141 ++i) { | 1143 ++i) { |
1142 __ nop(); | 1144 __ nop(); |
1143 } | 1145 } |
1144 lazy_deopt_pc_offset_ = assembler()->CodeSize(); | 1146 lazy_deopt_pc_offset_ = assembler()->CodeSize(); |
1145 __ Branch(*StubCode::DeoptimizeLazy_entry()); | 1147 __ Branch(*StubCode::DeoptimizeLazy_entry()); |
1146 } | 1148 } |
| 1149 EndCodeSourceRange(TokenPosition::kDartCodeEpilogue); |
1147 } | 1150 } |
1148 | 1151 |
1149 | 1152 |
1150 void FlowGraphCompiler::GenerateCall(TokenPosition token_pos, | 1153 void FlowGraphCompiler::GenerateCall(TokenPosition token_pos, |
1151 const StubEntry& stub_entry, | 1154 const StubEntry& stub_entry, |
1152 RawPcDescriptors::Kind kind, | 1155 RawPcDescriptors::Kind kind, |
1153 LocationSummary* locs) { | 1156 LocationSummary* locs) { |
1154 __ BranchLinkPatchable(stub_entry); | 1157 __ BranchLinkPatchable(stub_entry); |
1155 AddCurrentDescriptor(kind, Thread::kNoDeoptId, token_pos); | 1158 AddCurrentDescriptor(kind, Thread::kNoDeoptId, token_pos); |
1156 RecordSafepoint(locs); | 1159 RecordSafepoint(locs); |
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1973 DRegister dreg = EvenDRegisterOf(reg); | 1976 DRegister dreg = EvenDRegisterOf(reg); |
1974 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); | 1977 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); |
1975 } | 1978 } |
1976 | 1979 |
1977 | 1980 |
1978 #undef __ | 1981 #undef __ |
1979 | 1982 |
1980 } // namespace dart | 1983 } // namespace dart |
1981 | 1984 |
1982 #endif // defined TARGET_ARCH_ARM | 1985 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |