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

Unified Diff: runtime/vm/intermediate_language_arm.cc

Issue 23766021: Fix a bug in block reordering/block compaction. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language_arm.cc
diff --git a/runtime/vm/intermediate_language_arm.cc b/runtime/vm/intermediate_language_arm.cc
index 281c162739b2e5ba29d2de064764ea0ebba268a8..9ed4e934173bfcddacb012995875eae6e076b4aa 100644
--- a/runtime/vm/intermediate_language_arm.cc
+++ b/runtime/vm/intermediate_language_arm.cc
@@ -4435,6 +4435,13 @@ void ReThrowInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
}
+void GraphEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
+ if (!compiler->CanFallThroughTo(normal_entry())) {
+ __ b(compiler->GetJumpLabel(normal_entry()));
+ }
+}
+
+
void TargetEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
__ Bind(compiler->GetJumpLabel(this));
if (!compiler->is_optimizing()) {
@@ -4491,8 +4498,7 @@ void ControlInstruction::EmitBranchOnCondition(FlowGraphCompiler* compiler,
// If the next block is the false successor we will fall through to it.
__ b(compiler->GetJumpLabel(true_successor()), true_condition);
} else {
- // If the next block is the true successor we negate comparison and fall
- // through to it.
+ // If the next block is not the false successor we will branch to it.
Condition false_condition = NegateCondition(true_condition);
__ b(compiler->GetJumpLabel(false_successor()), false_condition);
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698