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

Side by Side Diff: runtime/vm/intermediate_language.cc

Issue 11236050: Add == method name to symbol table (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/dart_entry.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/dart_entry.h" 8 #include "vm/dart_entry.h"
9 #include "vm/flow_graph_allocator.h" 9 #include "vm/flow_graph_allocator.h"
10 #include "vm/flow_graph_builder.h" 10 #include "vm/flow_graph_builder.h"
(...skipping 1835 matching lines...) Expand 10 before | Expand all | Expand 10 after
1846 } 1846 }
1847 1847
1848 1848
1849 LocationSummary* StaticCallInstr::MakeLocationSummary() const { 1849 LocationSummary* StaticCallInstr::MakeLocationSummary() const {
1850 return MakeCallSummary(); 1850 return MakeCallSummary();
1851 } 1851 }
1852 1852
1853 1853
1854 void StaticCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 1854 void StaticCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
1855 Label skip_call; 1855 Label skip_call;
1856 const String& equality_name = String::Handle(Symbols::New("==")); 1856 if (function().name() == Symbols::EqualOperator()) {
1857 if (function().name() == equality_name.raw()) {
1858 compiler->EmitSuperEqualityCallPrologue(locs()->out().reg(), &skip_call); 1857 compiler->EmitSuperEqualityCallPrologue(locs()->out().reg(), &skip_call);
1859 } 1858 }
1860 compiler->GenerateStaticCall(deopt_id(), 1859 compiler->GenerateStaticCall(deopt_id(),
1861 token_pos(), 1860 token_pos(),
1862 function(), 1861 function(),
1863 ArgumentCount(), 1862 ArgumentCount(),
1864 argument_names(), 1863 argument_names(),
1865 locs()); 1864 locs());
1866 __ Bind(&skip_call); 1865 __ Bind(&skip_call);
1867 } 1866 }
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
2216 new_max = new_max.Clamp(); 2215 new_max = new_max.Clamp();
2217 } 2216 }
2218 2217
2219 return Range::Update(&range_, new_min, new_max); 2218 return Range::Update(&range_, new_min, new_max);
2220 } 2219 }
2221 2220
2222 2221
2223 #undef __ 2222 #undef __
2224 2223
2225 } // namespace dart 2224 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/dart_entry.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698