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

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

Issue 484693003: Improve polymorphic inlining of int/int double/double operations. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: rebased and addressed comments 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
« no previous file with comments | « runtime/vm/flow_graph_compiler_mips.cc ('k') | runtime/vm/flow_graph_optimizer.h » ('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_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
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 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after
1208 } 1208 }
1209 } 1209 }
1210 1210
1211 1211
1212 void FlowGraphCompiler::EmitUnoptimizedStaticCall( 1212 void FlowGraphCompiler::EmitUnoptimizedStaticCall(
1213 intptr_t argument_count, 1213 intptr_t argument_count,
1214 intptr_t deopt_id, 1214 intptr_t deopt_id,
1215 intptr_t token_pos, 1215 intptr_t token_pos,
1216 LocationSummary* locs, 1216 LocationSummary* locs,
1217 const ICData& ic_data) { 1217 const ICData& ic_data) {
1218 uword label_address = 0;
1219 StubCode* stub_code = isolate()->stub_code(); 1218 StubCode* stub_code = isolate()->stub_code();
1220 if (ic_data.NumArgsTested() == 0) { 1219 const uword label_address =
1221 label_address = stub_code->ZeroArgsUnoptimizedStaticCallEntryPoint(); 1220 stub_code->UnoptimizedStaticCallEntryPoint(ic_data.NumArgsTested());
1222 } else if (ic_data.NumArgsTested() == 2) {
1223 label_address = stub_code->TwoArgsUnoptimizedStaticCallEntryPoint();
1224 } else {
1225 UNIMPLEMENTED();
1226 }
1227 ExternalLabel target_label(label_address); 1221 ExternalLabel target_label(label_address);
1228 __ LoadObject(RBX, ic_data, PP); 1222 __ LoadObject(RBX, ic_data, PP);
1229 GenerateDartCall(deopt_id, 1223 GenerateDartCall(deopt_id,
1230 token_pos, 1224 token_pos,
1231 &target_label, 1225 &target_label,
1232 RawPcDescriptors::kUnoptStaticCall, 1226 RawPcDescriptors::kUnoptStaticCall,
1233 locs); 1227 locs);
1234 __ Drop(argument_count); 1228 __ Drop(argument_count);
1235 #if defined(DEBUG) 1229 #if defined(DEBUG)
1236 __ movq(RBX, Immediate(kInvalidObjectPointer)); 1230 __ movq(RBX, Immediate(kInvalidObjectPointer));
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
1734 __ movups(reg, Address(RSP, 0)); 1728 __ movups(reg, Address(RSP, 0));
1735 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); 1729 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP);
1736 } 1730 }
1737 1731
1738 1732
1739 #undef __ 1733 #undef __
1740 1734
1741 } // namespace dart 1735 } // namespace dart
1742 1736
1743 #endif // defined TARGET_ARCH_X64 1737 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_mips.cc ('k') | runtime/vm/flow_graph_optimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698