Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Side by Side Diff: runtime/vm/flow_graph_compiler.cc

Issue 144343002: Rename kDummyTokenIndex to kNoSourcePos (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/flow_graph_compiler_arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/flow_graph_compiler_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698