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

Unified Diff: runtime/vm/flow_graph_compiler_arm.cc

Issue 314783003: Eliminates some branches from arm code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/assembler_arm.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler_arm.cc
===================================================================
--- runtime/vm/flow_graph_compiler_arm.cc (revision 36949)
+++ runtime/vm/flow_graph_compiler_arm.cc (working copy)
@@ -1239,14 +1239,11 @@
Label not_smi, load_cache;
__ LoadFromOffset(kWord, R0, SP, (argument_count - 1) * kWordSize);
__ tst(R0, Operand(kSmiTagMask));
- __ b(&not_smi, NE);
- __ mov(R0, Operand(Smi::RawValue(kSmiCid)));
- __ b(&load_cache);
+ __ LoadClassId(R0, R0, NE);
+ __ SmiTag(R0, NE);
+ __ mov(R0, Operand(Smi::RawValue(kSmiCid)), EQ);
+ __ b(&load_cache, EQ);
- __ Bind(&not_smi);
- __ LoadClassId(R0, R0);
- __ SmiTag(R0);
-
// R0: class ID of the receiver (smi).
__ Bind(&load_cache);
__ LoadObject(R1, cache);
« no previous file with comments | « runtime/vm/assembler_arm.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698