| 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_XXX. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX. |
| 6 | 6 |
| 7 #include "vm/flow_graph_compiler.h" | 7 #include "vm/flow_graph_compiler.h" |
| 8 | 8 |
| 9 #include "vm/cha.h" | 9 #include "vm/cha.h" |
| 10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 AddCurrentDescriptor(PcDescriptors::kDeopt, | 231 AddCurrentDescriptor(PcDescriptors::kDeopt, |
| 232 assert->deopt_id(), | 232 assert->deopt_id(), |
| 233 assert->token_pos()); | 233 assert->token_pos()); |
| 234 } else if (instr->IsGuardField() || | 234 } else if (instr->IsGuardField() || |
| 235 (instr->CanBecomeDeoptimizationTarget() && !instr->IsGoto())) { | 235 (instr->CanBecomeDeoptimizationTarget() && !instr->IsGoto())) { |
| 236 // GuardField and instructions that can be deoptimization targets need | 236 // GuardField and instructions that can be deoptimization targets need |
| 237 // to record their deopt id. GotoInstr records its own so that it can | 237 // to record their deopt id. GotoInstr records its own so that it can |
| 238 // control the placement. | 238 // control the placement. |
| 239 AddCurrentDescriptor(PcDescriptors::kDeopt, | 239 AddCurrentDescriptor(PcDescriptors::kDeopt, |
| 240 instr->deopt_id(), | 240 instr->deopt_id(), |
| 241 Scanner::kDummyTokenIndex); | 241 Scanner::kNoSourcePos); |
| 242 } | 242 } |
| 243 AllocateRegistersLocally(instr); | 243 AllocateRegistersLocally(instr); |
| 244 } else if (instr->MayThrow() && | 244 } else if (instr->MayThrow() && |
| 245 (CurrentTryIndex() != CatchClauseNode::kInvalidTryIndex)) { | 245 (CurrentTryIndex() != CatchClauseNode::kInvalidTryIndex)) { |
| 246 // Optimized try-block: Sync locals to fixed stack locations. | 246 // Optimized try-block: Sync locals to fixed stack locations. |
| 247 EmitTrySync(instr, CurrentTryIndex()); | 247 EmitTrySync(instr, CurrentTryIndex()); |
| 248 } | 248 } |
| 249 } | 249 } |
| 250 | 250 |
| 251 | 251 |
| (...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1271 | 1271 |
| 1272 for (int i = 0; i < len; i++) { | 1272 for (int i = 0; i < len; i++) { |
| 1273 sorted->Add(CidTarget(ic_data.GetReceiverClassIdAt(i), | 1273 sorted->Add(CidTarget(ic_data.GetReceiverClassIdAt(i), |
| 1274 &Function::ZoneHandle(ic_data.GetTargetAt(i)), | 1274 &Function::ZoneHandle(ic_data.GetTargetAt(i)), |
| 1275 ic_data.GetCountAt(i))); | 1275 ic_data.GetCountAt(i))); |
| 1276 } | 1276 } |
| 1277 sorted->Sort(HighestCountFirst); | 1277 sorted->Sort(HighestCountFirst); |
| 1278 } | 1278 } |
| 1279 | 1279 |
| 1280 } // namespace dart | 1280 } // namespace dart |
| OLD | NEW |