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

Side by Side Diff: runtime/vm/flow_graph_compiler_arm64.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_arm.cc ('k') | runtime/vm/flow_graph_compiler_ia32.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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_ARM64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64.
6 #if defined(TARGET_ARCH_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
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 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after
1504 const Array& argument_names, 1504 const Array& argument_names,
1505 Label* deopt, 1505 Label* deopt,
1506 intptr_t deopt_id, 1506 intptr_t deopt_id,
1507 intptr_t token_index, 1507 intptr_t token_index,
1508 LocationSummary* locs) { 1508 LocationSummary* locs) {
1509 ASSERT(is_optimizing()); 1509 ASSERT(is_optimizing());
1510 ASSERT(!ic_data.IsNull() && (ic_data.NumberOfUsedChecks() > 0)); 1510 ASSERT(!ic_data.IsNull() && (ic_data.NumberOfUsedChecks() > 0));
1511 Label match_found; 1511 Label match_found;
1512 const intptr_t len = ic_data.NumberOfChecks(); 1512 const intptr_t len = ic_data.NumberOfChecks();
1513 GrowableArray<CidTarget> sorted(len); 1513 GrowableArray<CidTarget> sorted(len);
1514 SortICDataByCount(ic_data, &sorted); 1514 SortICDataByCount(ic_data, &sorted, /* drop_smi = */ false);
1515 ASSERT(class_id_reg != R4); 1515 ASSERT(class_id_reg != R4);
1516 ASSERT(len > 0); // Why bother otherwise. 1516 ASSERT(len > 0); // Why bother otherwise.
1517 const Array& arguments_descriptor = 1517 const Array& arguments_descriptor =
1518 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count, 1518 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count,
1519 argument_names)); 1519 argument_names));
1520 StubCode* stub_code = isolate()->stub_code(); 1520 StubCode* stub_code = isolate()->stub_code();
1521 1521
1522 __ LoadObject(R4, arguments_descriptor, PP); 1522 __ LoadObject(R4, arguments_descriptor, PP);
1523 for (intptr_t i = 0; i < len; i++) { 1523 for (intptr_t i = 0; i < len; i++) {
1524 const bool is_last_check = (i == (len - 1)); 1524 const bool is_last_check = (i == (len - 1));
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
1827 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { 1827 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) {
1828 __ PopDouble(reg); 1828 __ PopDouble(reg);
1829 } 1829 }
1830 1830
1831 1831
1832 #undef __ 1832 #undef __
1833 1833
1834 } // namespace dart 1834 } // namespace dart
1835 1835
1836 #endif // defined TARGET_ARCH_ARM64 1836 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm.cc ('k') | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698