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

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

Issue 436643002: Faster IC stubs by specializing them for Binary Smi operations (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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
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 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after
1529 1529
1530 void FlowGraphCompiler::EmitTestAndCall(const ICData& ic_data, 1530 void FlowGraphCompiler::EmitTestAndCall(const ICData& ic_data,
1531 Register class_id_reg, 1531 Register class_id_reg,
1532 intptr_t argument_count, 1532 intptr_t argument_count,
1533 const Array& argument_names, 1533 const Array& argument_names,
1534 Label* deopt, 1534 Label* deopt,
1535 intptr_t deopt_id, 1535 intptr_t deopt_id,
1536 intptr_t token_index, 1536 intptr_t token_index,
1537 LocationSummary* locs) { 1537 LocationSummary* locs) {
1538 ASSERT(is_optimizing()); 1538 ASSERT(is_optimizing());
1539 ASSERT(!ic_data.IsNull() && (ic_data.NumberOfChecks() > 0)); 1539 ASSERT(!ic_data.IsNull() && (ic_data.NumberOfUsedChecks() > 0));
1540 Label match_found; 1540 Label match_found;
1541 const intptr_t len = ic_data.NumberOfChecks(); 1541 const intptr_t len = ic_data.NumberOfChecks();
1542 GrowableArray<CidTarget> sorted(len); 1542 GrowableArray<CidTarget> sorted(len);
1543 SortICDataByCount(ic_data, &sorted); 1543 SortICDataByCount(ic_data, &sorted);
1544 ASSERT(class_id_reg != S4); 1544 ASSERT(class_id_reg != S4);
1545 ASSERT(len > 0); // Why bother otherwise. 1545 ASSERT(len > 0); // Why bother otherwise.
1546 const Array& arguments_descriptor = 1546 const Array& arguments_descriptor =
1547 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count, 1547 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count,
1548 argument_names)); 1548 argument_names));
1549 StubCode* stub_code = isolate()->stub_code(); 1549 StubCode* stub_code = isolate()->stub_code();
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
1810 __ AddImmediate(SP, kDoubleSize); 1810 __ AddImmediate(SP, kDoubleSize);
1811 } 1811 }
1812 1812
1813 1813
1814 #undef __ 1814 #undef __
1815 1815
1816 1816
1817 } // namespace dart 1817 } // namespace dart
1818 1818
1819 #endif // defined TARGET_ARCH_MIPS 1819 #endif // defined TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698