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

Side by Side Diff: runtime/vm/flow_graph_compiler_arm.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_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 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after
1473 1473
1474 void FlowGraphCompiler::EmitTestAndCall(const ICData& ic_data, 1474 void FlowGraphCompiler::EmitTestAndCall(const ICData& ic_data,
1475 Register class_id_reg, 1475 Register class_id_reg,
1476 intptr_t argument_count, 1476 intptr_t argument_count,
1477 const Array& argument_names, 1477 const Array& argument_names,
1478 Label* deopt, 1478 Label* deopt,
1479 intptr_t deopt_id, 1479 intptr_t deopt_id,
1480 intptr_t token_index, 1480 intptr_t token_index,
1481 LocationSummary* locs) { 1481 LocationSummary* locs) {
1482 ASSERT(is_optimizing()); 1482 ASSERT(is_optimizing());
1483 ASSERT(!ic_data.IsNull() && (ic_data.NumberOfChecks() > 0)); 1483 ASSERT(!ic_data.IsNull() && (ic_data.NumberOfUsedChecks() > 0));
1484 Label match_found; 1484 Label match_found;
1485 const intptr_t len = ic_data.NumberOfChecks(); 1485 const intptr_t len = ic_data.NumberOfChecks();
1486 GrowableArray<CidTarget> sorted(len); 1486 GrowableArray<CidTarget> sorted(len);
1487 SortICDataByCount(ic_data, &sorted); 1487 SortICDataByCount(ic_data, &sorted);
1488 ASSERT(class_id_reg != R4); 1488 ASSERT(class_id_reg != R4);
1489 ASSERT(len > 0); // Why bother otherwise. 1489 ASSERT(len > 0); // Why bother otherwise.
1490 const Array& arguments_descriptor = 1490 const Array& arguments_descriptor =
1491 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count, 1491 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count,
1492 argument_names)); 1492 argument_names));
1493 StubCode* stub_code = isolate()->stub_code(); 1493 StubCode* stub_code = isolate()->stub_code();
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
1777 DRegister dreg = EvenDRegisterOf(reg); 1777 DRegister dreg = EvenDRegisterOf(reg);
1778 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); 1778 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex));
1779 } 1779 }
1780 1780
1781 1781
1782 #undef __ 1782 #undef __
1783 1783
1784 } // namespace dart 1784 } // namespace dart
1785 1785
1786 #endif // defined TARGET_ARCH_ARM 1786 #endif // defined TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698