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

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

Issue 11419073: Remove loading of function object in static calls. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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_ia32.cc ('k') | runtime/vm/stub_code_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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 "lib/error.h" 10 #include "lib/error.h"
(...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 __ Drop(argument_count); 1089 __ Drop(argument_count);
1090 } 1090 }
1091 1091
1092 1092
1093 void FlowGraphCompiler::EmitStaticCall(const Function& function, 1093 void FlowGraphCompiler::EmitStaticCall(const Function& function,
1094 const Array& arguments_descriptor, 1094 const Array& arguments_descriptor,
1095 intptr_t argument_count, 1095 intptr_t argument_count,
1096 intptr_t deopt_id, 1096 intptr_t deopt_id,
1097 intptr_t token_pos, 1097 intptr_t token_pos,
1098 LocationSummary* locs) { 1098 LocationSummary* locs) {
1099 // TODO(srdjan): Remove load RBX with function.
1100 __ LoadObject(RBX, function);
1101 __ LoadObject(R10, arguments_descriptor); 1099 __ LoadObject(R10, arguments_descriptor);
1102 // Do not use the code from the function, but let the code be patched so that 1100 // Do not use the code from the function, but let the code be patched so that
1103 // we can record the outgoing edges to other code. 1101 // we can record the outgoing edges to other code.
1104 GenerateDartCall(deopt_id, 1102 GenerateDartCall(deopt_id,
1105 token_pos, 1103 token_pos,
1106 &StubCode::CallStaticFunctionLabel(), 1104 &StubCode::CallStaticFunctionLabel(),
1107 PcDescriptors::kFuncCall, 1105 PcDescriptors::kFuncCall,
1108 locs); 1106 locs);
1109 AddStaticCallTarget(function); 1107 AddStaticCallTarget(function);
1110 __ Drop(argument_count); 1108 __ Drop(argument_count);
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
1365 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) { 1363 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) {
1366 __ Exchange(mem1, mem2); 1364 __ Exchange(mem1, mem2);
1367 } 1365 }
1368 1366
1369 1367
1370 #undef __ 1368 #undef __
1371 1369
1372 } // namespace dart 1370 } // namespace dart
1373 1371
1374 #endif // defined TARGET_ARCH_X64 1372 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698