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

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

Issue 15946002: Allow breakpoints on strict equal (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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_compiler_x64.cc ('k') | runtime/vm/flow_graph_optimizer.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/flow_graph_inliner.h" 5 #include "vm/flow_graph_inliner.h"
6 6
7 #include "vm/compiler.h" 7 #include "vm/compiler.h"
8 #include "vm/flags.h" 8 #include "vm/flags.h"
9 #include "vm/flow_graph.h" 9 #include "vm/flow_graph.h"
10 #include "vm/flow_graph_builder.h" 10 #include "vm/flow_graph_builder.h"
(...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 } 1148 }
1149 cursor = NULL; 1149 cursor = NULL;
1150 } else { 1150 } else {
1151 // For all variants except the last, use a branch on the loaded class 1151 // For all variants except the last, use a branch on the loaded class
1152 // id. 1152 // id.
1153 const Smi& cid = Smi::ZoneHandle(Smi::New(inlined_variants_[i].cid)); 1153 const Smi& cid = Smi::ZoneHandle(Smi::New(inlined_variants_[i].cid));
1154 ConstantInstr* cid_constant = new ConstantInstr(cid); 1154 ConstantInstr* cid_constant = new ConstantInstr(cid);
1155 cid_constant->set_ssa_temp_index( 1155 cid_constant->set_ssa_temp_index(
1156 owner_->caller_graph()->alloc_ssa_temp_index()); 1156 owner_->caller_graph()->alloc_ssa_temp_index());
1157 StrictCompareInstr* compare = 1157 StrictCompareInstr* compare =
1158 new StrictCompareInstr(Token::kEQ_STRICT, 1158 new StrictCompareInstr(call_->instance_call()->token_pos(),
1159 Token::kEQ_STRICT,
1159 new Value(load_cid), 1160 new Value(load_cid),
1160 new Value(cid_constant)); 1161 new Value(cid_constant));
1161 BranchInstr* branch = new BranchInstr(compare); 1162 BranchInstr* branch = new BranchInstr(compare);
1162 branch->InheritDeoptTarget(call_); 1163 branch->InheritDeoptTarget(call_);
1163 AppendInstruction(AppendInstruction(cursor, cid_constant), branch); 1164 AppendInstruction(AppendInstruction(cursor, cid_constant), branch);
1164 current_block->set_last_instruction(branch); 1165 current_block->set_last_instruction(branch);
1165 cursor = NULL; 1166 cursor = NULL;
1166 1167
1167 // 2. Handle a match by linking to the inlined body. There are three 1168 // 2. Handle a match by linking to the inlined body. There are three
1168 // cases (unshared, shared first predecessor, and shared subsequent 1169 // cases (unshared, shared first predecessor, and shared subsequent
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
1342 OS::Print("After Inlining of %s\n", flow_graph_-> 1343 OS::Print("After Inlining of %s\n", flow_graph_->
1343 parsed_function().function().ToFullyQualifiedCString()); 1344 parsed_function().function().ToFullyQualifiedCString());
1344 FlowGraphPrinter printer(*flow_graph_); 1345 FlowGraphPrinter printer(*flow_graph_);
1345 printer.PrintBlocks(); 1346 printer.PrintBlocks();
1346 } 1347 }
1347 } 1348 }
1348 } 1349 }
1349 } 1350 }
1350 1351
1351 } // namespace dart 1352 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698