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

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

Issue 1867913004: Specialize instance calls when the call receiver is the method receiver and the method class has a … (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm64.cc ('k') | runtime/vm/flow_graph_compiler_mips.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_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 1487 matching lines...) Expand 10 before | Expand all | Expand 10 after
1498 #endif 1498 #endif
1499 1499
1500 1500
1501 void FlowGraphCompiler::EmitTestAndCall(const ICData& ic_data, 1501 void FlowGraphCompiler::EmitTestAndCall(const ICData& ic_data,
1502 intptr_t argument_count, 1502 intptr_t argument_count,
1503 const Array& argument_names, 1503 const Array& argument_names,
1504 Label* failed, 1504 Label* failed,
1505 Label* match_found, 1505 Label* match_found,
1506 intptr_t deopt_id, 1506 intptr_t deopt_id,
1507 TokenPosition token_index, 1507 TokenPosition token_index,
1508 LocationSummary* locs) { 1508 LocationSummary* locs,
1509 bool complete) {
1509 ASSERT(is_optimizing()); 1510 ASSERT(is_optimizing());
1511 ASSERT(!complete);
1510 __ Comment("EmitTestAndCall"); 1512 __ Comment("EmitTestAndCall");
1511 const Array& arguments_descriptor = 1513 const Array& arguments_descriptor =
1512 Array::ZoneHandle(zone(), ArgumentsDescriptor::New(argument_count, 1514 Array::ZoneHandle(zone(), ArgumentsDescriptor::New(argument_count,
1513 argument_names)); 1515 argument_names));
1514 // Load receiver into EAX. 1516 // Load receiver into EAX.
1515 __ movl(EAX, Address(ESP, (argument_count - 1) * kWordSize)); 1517 __ movl(EAX, Address(ESP, (argument_count - 1) * kWordSize));
1516 __ LoadObject(EDX, arguments_descriptor); 1518 __ LoadObject(EDX, arguments_descriptor);
1517 1519
1518 const bool kFirstCheckIsSmi = ic_data.GetReceiverClassIdAt(0) == kSmiCid; 1520 const bool kFirstCheckIsSmi = ic_data.GetReceiverClassIdAt(0) == kSmiCid;
1519 const intptr_t kNumChecks = ic_data.NumberOfChecks(); 1521 const intptr_t kNumChecks = ic_data.NumberOfChecks();
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
1850 __ movups(reg, Address(ESP, 0)); 1852 __ movups(reg, Address(ESP, 0));
1851 __ addl(ESP, Immediate(kFpuRegisterSize)); 1853 __ addl(ESP, Immediate(kFpuRegisterSize));
1852 } 1854 }
1853 1855
1854 1856
1855 #undef __ 1857 #undef __
1856 1858
1857 } // namespace dart 1859 } // namespace dart
1858 1860
1859 #endif // defined TARGET_ARCH_IA32 1861 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm64.cc ('k') | runtime/vm/flow_graph_compiler_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698