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

Side by Side Diff: runtime/vm/flow_graph_compiler_mips.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/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.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_MIPS. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS.
6 #if defined(TARGET_ARCH_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
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 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 __ Drop(argument_count); 1330 __ Drop(argument_count);
1331 } 1331 }
1332 1332
1333 1333
1334 void FlowGraphCompiler::EmitUnoptimizedStaticCall( 1334 void FlowGraphCompiler::EmitUnoptimizedStaticCall(
1335 intptr_t argument_count, 1335 intptr_t argument_count,
1336 intptr_t deopt_id, 1336 intptr_t deopt_id,
1337 intptr_t token_pos, 1337 intptr_t token_pos,
1338 LocationSummary* locs, 1338 LocationSummary* locs,
1339 const ICData& ic_data) { 1339 const ICData& ic_data) {
1340 uword label_address = 0;
1341 StubCode* stub_code = isolate()->stub_code(); 1340 StubCode* stub_code = isolate()->stub_code();
1342 if (ic_data.NumArgsTested() == 0) { 1341 const uword label_address =
1343 label_address = stub_code->ZeroArgsUnoptimizedStaticCallEntryPoint(); 1342 stub_code->UnoptimizedStaticCallEntryPoint(ic_data.NumArgsTested());
1344 } else if (ic_data.NumArgsTested() == 2) {
1345 label_address = stub_code->TwoArgsUnoptimizedStaticCallEntryPoint();
1346 } else {
1347 UNIMPLEMENTED();
1348 }
1349 ExternalLabel target_label(label_address); 1343 ExternalLabel target_label(label_address);
1350 __ LoadObject(S5, ic_data); 1344 __ LoadObject(S5, ic_data);
1351 GenerateDartCall(deopt_id, 1345 GenerateDartCall(deopt_id,
1352 token_pos, 1346 token_pos,
1353 &target_label, 1347 &target_label,
1354 RawPcDescriptors::kUnoptStaticCall, 1348 RawPcDescriptors::kUnoptStaticCall,
1355 locs); 1349 locs);
1356 #if defined(DEBUG) 1350 #if defined(DEBUG)
1357 __ LoadImmediate(S4, kInvalidObjectPointer); 1351 __ LoadImmediate(S4, kInvalidObjectPointer);
1358 __ LoadImmediate(S5, kInvalidObjectPointer); 1352 __ LoadImmediate(S5, kInvalidObjectPointer);
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
1816 __ AddImmediate(SP, kDoubleSize); 1810 __ AddImmediate(SP, kDoubleSize);
1817 } 1811 }
1818 1812
1819 1813
1820 #undef __ 1814 #undef __
1821 1815
1822 1816
1823 } // namespace dart 1817 } // namespace dart
1824 1818
1825 #endif // defined TARGET_ARCH_MIPS 1819 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698