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

Unified Diff: runtime/vm/opt_code_generator_ia32.cc

Issue 10539145: Implement polymorphic instance calls. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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
Index: runtime/vm/opt_code_generator_ia32.cc
===================================================================
--- runtime/vm/opt_code_generator_ia32.cc (revision 8625)
+++ runtime/vm/opt_code_generator_ia32.cc (working copy)
@@ -2608,7 +2608,7 @@
if (classes.length() == 1) {
// Only Smi test.
DeoptimizationBlob* deopt_blob =
- AddDeoptimizationBlob(node, kDeoptCheckedInstanceCallSmiOnly);
+ AddDeoptimizationBlob(node, kDeoptPolymorphicInstanceCallSmiOnly);
__ j(NOT_ZERO, deopt_blob->label());
GenerateDirectCall(node->id(),
token_index,
@@ -2628,7 +2628,7 @@
__ Bind(&not_smi); // Continue with other test below.
} else if (NodeMayBeSmi(receiver)) {
DeoptimizationBlob* deopt_blob =
- AddDeoptimizationBlob(node, kDeoptCheckedInstanceCallSmiFail);
+ AddDeoptimizationBlob(node, kDeoptPolymorphicInstanceCallSmiFail);
__ testl(EAX, Immediate(kSmiTagMask));
__ j(ZERO, deopt_blob->label());
} else {
@@ -2642,7 +2642,7 @@
if (i == (classes.length() - 1)) {
// Last check.
DeoptimizationBlob* deopt_blob =
- AddDeoptimizationBlob(node, kDeoptCheckedInstanceCallCheckFail);
+ AddDeoptimizationBlob(node, kDeoptPolymorphicInstanceCallTestFail);
__ j(NOT_EQUAL, deopt_blob->label());
GenerateDirectCall(node->id(),
token_index,
« runtime/vm/intermediate_language_ia32.cc ('K') | « runtime/vm/intermediate_language_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698