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

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

Issue 484693003: Improve polymorphic inlining of int/int double/double operations. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: rebased and addressed comments Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/flow_graph_compiler_arm64.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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/globals.h" // Needed here to get TARGET_ARCH_ARM. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 9
10 #include "vm/ast_printer.h" 10 #include "vm/ast_printer.h"
(...skipping 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after
1289 __ Drop(argument_count); 1289 __ Drop(argument_count);
1290 } 1290 }
1291 1291
1292 1292
1293 void FlowGraphCompiler::EmitUnoptimizedStaticCall( 1293 void FlowGraphCompiler::EmitUnoptimizedStaticCall(
1294 intptr_t argument_count, 1294 intptr_t argument_count,
1295 intptr_t deopt_id, 1295 intptr_t deopt_id,
1296 intptr_t token_pos, 1296 intptr_t token_pos,
1297 LocationSummary* locs, 1297 LocationSummary* locs,
1298 const ICData& ic_data) { 1298 const ICData& ic_data) {
1299 uword label_address = 0;
1300 StubCode* stub_code = isolate()->stub_code(); 1299 StubCode* stub_code = isolate()->stub_code();
1301 if (ic_data.NumArgsTested() == 0) { 1300 const uword label_address =
1302 label_address = stub_code->ZeroArgsUnoptimizedStaticCallEntryPoint(); 1301 stub_code->UnoptimizedStaticCallEntryPoint(ic_data.NumArgsTested());
1303 } else if (ic_data.NumArgsTested() == 2) {
1304 label_address = stub_code->TwoArgsUnoptimizedStaticCallEntryPoint();
1305 } else {
1306 UNIMPLEMENTED();
1307 }
1308 ExternalLabel target_label(label_address); 1302 ExternalLabel target_label(label_address);
1309 __ LoadObject(R5, ic_data); 1303 __ LoadObject(R5, ic_data);
1310 GenerateDartCall(deopt_id, 1304 GenerateDartCall(deopt_id,
1311 token_pos, 1305 token_pos,
1312 &target_label, 1306 &target_label,
1313 RawPcDescriptors::kUnoptStaticCall, 1307 RawPcDescriptors::kUnoptStaticCall,
1314 locs); 1308 locs);
1315 __ Drop(argument_count); 1309 __ Drop(argument_count);
1316 #if defined(DEBUG) 1310 #if defined(DEBUG)
1317 __ LoadImmediate(R4, kInvalidObjectPointer); 1311 __ LoadImmediate(R4, kInvalidObjectPointer);
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
1783 DRegister dreg = EvenDRegisterOf(reg); 1777 DRegister dreg = EvenDRegisterOf(reg);
1784 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); 1778 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex));
1785 } 1779 }
1786 1780
1787 1781
1788 #undef __ 1782 #undef __
1789 1783
1790 } // namespace dart 1784 } // namespace dart
1791 1785
1792 #endif // defined TARGET_ARCH_ARM 1786 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/flow_graph_compiler_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698