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

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

Issue 895603002: VM: Improve polymorphic check-class in optimized code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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.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 1537 matching lines...) Expand 10 before | Expand all | Expand 10 after
1548 const Array& argument_names, 1548 const Array& argument_names,
1549 Label* deopt, 1549 Label* deopt,
1550 intptr_t deopt_id, 1550 intptr_t deopt_id,
1551 intptr_t token_index, 1551 intptr_t token_index,
1552 LocationSummary* locs) { 1552 LocationSummary* locs) {
1553 ASSERT(is_optimizing()); 1553 ASSERT(is_optimizing());
1554 ASSERT(!ic_data.IsNull() && (ic_data.NumberOfUsedChecks() > 0)); 1554 ASSERT(!ic_data.IsNull() && (ic_data.NumberOfUsedChecks() > 0));
1555 Label match_found; 1555 Label match_found;
1556 const intptr_t len = ic_data.NumberOfChecks(); 1556 const intptr_t len = ic_data.NumberOfChecks();
1557 GrowableArray<CidTarget> sorted(len); 1557 GrowableArray<CidTarget> sorted(len);
1558 SortICDataByCount(ic_data, &sorted); 1558 SortICDataByCount(ic_data, &sorted, /* drop_smi = */ false);
1559 ASSERT(class_id_reg != R4); 1559 ASSERT(class_id_reg != R4);
1560 ASSERT(len > 0); // Why bother otherwise. 1560 ASSERT(len > 0); // Why bother otherwise.
1561 const Array& arguments_descriptor = 1561 const Array& arguments_descriptor =
1562 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count, 1562 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count,
1563 argument_names)); 1563 argument_names));
1564 StubCode* stub_code = isolate()->stub_code(); 1564 StubCode* stub_code = isolate()->stub_code();
1565 1565
1566 __ LoadObject(R4, arguments_descriptor); 1566 __ LoadObject(R4, arguments_descriptor);
1567 for (intptr_t i = 0; i < len; i++) { 1567 for (intptr_t i = 0; i < len; i++) {
1568 const bool is_last_check = (i == (len - 1)); 1568 const bool is_last_check = (i == (len - 1));
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
1888 DRegister dreg = EvenDRegisterOf(reg); 1888 DRegister dreg = EvenDRegisterOf(reg);
1889 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); 1889 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex));
1890 } 1890 }
1891 1891
1892 1892
1893 #undef __ 1893 #undef __
1894 1894
1895 } // namespace dart 1895 } // namespace dart
1896 1896
1897 #endif // defined TARGET_ARCH_ARM 1897 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/flow_graph_compiler_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698