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

Side by Side Diff: runtime/vm/flow_graph_compiler_ia32.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_IA32. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
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 1464 matching lines...) Expand 10 before | Expand all | Expand 10 after
1475 1475
1476 void FlowGraphCompiler::EmitTestAndCall(const ICData& ic_data, 1476 void FlowGraphCompiler::EmitTestAndCall(const ICData& ic_data,
1477 Register class_id_reg, 1477 Register class_id_reg,
1478 intptr_t argument_count, 1478 intptr_t argument_count,
1479 const Array& argument_names, 1479 const Array& argument_names,
1480 Label* deopt, 1480 Label* deopt,
1481 intptr_t deopt_id, 1481 intptr_t deopt_id,
1482 intptr_t token_index, 1482 intptr_t token_index,
1483 LocationSummary* locs) { 1483 LocationSummary* locs) {
1484 ASSERT(is_optimizing()); 1484 ASSERT(is_optimizing());
1485 ASSERT(!ic_data.IsNull() && (ic_data.NumberOfChecks() > 0)); 1485 ASSERT(!ic_data.IsNull() && (ic_data.NumberOfUsedChecks() > 0));
zra 2014/08/20 20:17:10 Is this change also needed by the other architectu
srdjan 2014/08/21 17:30:21 Done on all architectures.
1486 Label match_found; 1486 Label match_found;
1487 const intptr_t len = ic_data.NumberOfChecks(); 1487 const intptr_t len = ic_data.NumberOfChecks();
1488 GrowableArray<CidTarget> sorted(len); 1488 GrowableArray<CidTarget> sorted(len);
1489 SortICDataByCount(ic_data, &sorted); 1489 SortICDataByCount(ic_data, &sorted);
1490 ASSERT(class_id_reg != EDX); 1490 ASSERT(class_id_reg != EDX);
1491 ASSERT(len > 0); // Why bother otherwise. 1491 ASSERT(len > 0); // Why bother otherwise.
1492 const Array& arguments_descriptor = 1492 const Array& arguments_descriptor =
1493 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count, 1493 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count,
1494 argument_names)); 1494 argument_names));
1495 StubCode* stub_code = isolate()->stub_code(); 1495 StubCode* stub_code = isolate()->stub_code();
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
1769 __ movups(reg, Address(ESP, 0)); 1769 __ movups(reg, Address(ESP, 0));
1770 __ addl(ESP, Immediate(kFpuRegisterSize)); 1770 __ addl(ESP, Immediate(kFpuRegisterSize));
1771 } 1771 }
1772 1772
1773 1773
1774 #undef __ 1774 #undef __
1775 1775
1776 } // namespace dart 1776 } // namespace dart
1777 1777
1778 #endif // defined TARGET_ARCH_IA32 1778 #endif // defined TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698