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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 11230034: Fix super ==: Test first for null before call inf super ==. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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.cc
===================================================================
--- runtime/vm/intermediate_language.cc (revision 13897)
+++ runtime/vm/intermediate_language.cc (working copy)
@@ -1852,12 +1852,18 @@
void StaticCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
+ Label skip_call;
+ const String& equality_name = String::Handle(Symbols::New("=="));
hausner 2012/10/22 20:00:29 Ditto regarding using a symbol.
+ if (function().name() == equality_name.raw()) {
+ compiler->EmitSuperEqualityCallPrologue(locs()->out().reg(), &skip_call);
+ }
compiler->GenerateStaticCall(deopt_id(),
token_pos(),
function(),
ArgumentCount(),
argument_names(),
locs());
+ __ Bind(&skip_call);
}
« no previous file with comments | « runtime/vm/flow_graph_inliner.cc ('k') | runtime/vm/object.h » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698