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

Unified Diff: runtime/vm/intermediate_language_arm.cc

Issue 22580005: Implement IsNullCheck for CheckClassInstr. If input is nullable expected type, then check for null … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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/intermediate_language_arm.cc
===================================================================
--- runtime/vm/intermediate_language_arm.cc (revision 25902)
+++ runtime/vm/intermediate_language_arm.cc (working copy)
@@ -4008,7 +4008,7 @@
LocationSummary* summary =
new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall);
summary->set_in(0, Location::RequiresRegister());
- if (!null_check()) {
+ if (!IsNullCheck()) {
summary->AddTemp(Location::RequiresRegister());
}
return summary;
@@ -4016,7 +4016,7 @@
void CheckClassInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
- if (null_check()) {
+ if (IsNullCheck()) {
Label* deopt = compiler->AddDeoptStub(deopt_id(),
kDeoptCheckClass);
__ CompareImmediate(locs()->in(0).reg(),

Powered by Google App Engine
This is Rietveld 408576698