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

Unified Diff: runtime/vm/intermediate_language_ia32.cc

Issue 10933025: PolymorphicInstanceCall: eliminate duplicate printing of ICData; eliminate Smi class id loading if … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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/il_printer.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language_ia32.cc
===================================================================
--- runtime/vm/intermediate_language_ia32.cc (revision 12233)
+++ runtime/vm/intermediate_language_ia32.cc (working copy)
@@ -2176,9 +2176,14 @@
Address(ESP, (instance_call()->ArgumentCount() - 1) * kWordSize));
Label done;
- __ movl(EDI, Immediate(kSmiCid));
- __ testl(EAX, Immediate(kSmiTagMask));
- __ j(ZERO, &done);
+ if (ic_data().GetReceiverClassIdAt(0) == kSmiCid) {
+ __ movl(EDI, Immediate(kSmiCid));
+ __ testl(EAX, Immediate(kSmiTagMask));
+ __ j(ZERO, &done, Assembler::kNearJump);
+ } else {
+ __ testl(EAX, Immediate(kSmiTagMask));
+ __ j(ZERO, deopt);
+ }
__ LoadClassId(EDI, EAX);
__ Bind(&done);
« no previous file with comments | « runtime/vm/il_printer.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698