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

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

Issue 339183010: Specialize breakpoint stubs by set of live registers of the stubs they are intercepting. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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/debugger_x64.cc ('k') | runtime/vm/flow_graph_compiler_arm64.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_ARM. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
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 void FlowGraphCompiler::EmitInstanceCall(ExternalLabel* target_label, 1211 void FlowGraphCompiler::EmitInstanceCall(ExternalLabel* target_label,
1212 const ICData& ic_data, 1212 const ICData& ic_data,
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 ASSERT(Array::Handle(ic_data.arguments_descriptor()).Length() > 0); 1217 ASSERT(Array::Handle(ic_data.arguments_descriptor()).Length() > 0);
1218 __ LoadImmediate(R4, 0);
1219 __ LoadObject(R5, ic_data); 1218 __ LoadObject(R5, ic_data);
1220 GenerateDartCall(deopt_id, 1219 GenerateDartCall(deopt_id,
1221 token_pos, 1220 token_pos,
1222 target_label, 1221 target_label,
1223 RawPcDescriptors::kIcCall, 1222 RawPcDescriptors::kIcCall,
1224 locs); 1223 locs);
1225 __ Drop(argument_count); 1224 __ Drop(argument_count);
1226 #if defined(DEBUG) 1225 #if defined(DEBUG)
1227 __ LoadImmediate(R4, kInvalidObjectPointer); 1226 __ LoadImmediate(R4, kInvalidObjectPointer);
1228 #endif 1227 #endif
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
1300 uword label_address = 0; 1299 uword label_address = 0;
1301 StubCode* stub_code = isolate()->stub_code(); 1300 StubCode* stub_code = isolate()->stub_code();
1302 if (ic_data.NumArgsTested() == 0) { 1301 if (ic_data.NumArgsTested() == 0) {
1303 label_address = stub_code->ZeroArgsUnoptimizedStaticCallEntryPoint(); 1302 label_address = stub_code->ZeroArgsUnoptimizedStaticCallEntryPoint();
1304 } else if (ic_data.NumArgsTested() == 2) { 1303 } else if (ic_data.NumArgsTested() == 2) {
1305 label_address = stub_code->TwoArgsUnoptimizedStaticCallEntryPoint(); 1304 label_address = stub_code->TwoArgsUnoptimizedStaticCallEntryPoint();
1306 } else { 1305 } else {
1307 UNIMPLEMENTED(); 1306 UNIMPLEMENTED();
1308 } 1307 }
1309 ExternalLabel target_label(label_address); 1308 ExternalLabel target_label(label_address);
1310 __ LoadImmediate(R4, 0);
1311 __ LoadObject(R5, ic_data); 1309 __ LoadObject(R5, ic_data);
1312 GenerateDartCall(deopt_id, 1310 GenerateDartCall(deopt_id,
1313 token_pos, 1311 token_pos,
1314 &target_label, 1312 &target_label,
1315 RawPcDescriptors::kUnoptStaticCall, 1313 RawPcDescriptors::kUnoptStaticCall,
1316 locs); 1314 locs);
1317 __ Drop(argument_count); 1315 __ Drop(argument_count);
1318 #if defined(DEBUG) 1316 #if defined(DEBUG)
1319 __ LoadImmediate(R4, kInvalidObjectPointer); 1317 __ LoadImmediate(R4, kInvalidObjectPointer);
1318 __ LoadImmediate(R5, kInvalidObjectPointer);
1320 #endif 1319 #endif
1321 } 1320 }
1322 1321
1323 1322
1324 void FlowGraphCompiler::EmitOptimizedStaticCall( 1323 void FlowGraphCompiler::EmitOptimizedStaticCall(
1325 const Function& function, 1324 const Function& function,
1326 const Array& arguments_descriptor, 1325 const Array& arguments_descriptor,
1327 intptr_t argument_count, 1326 intptr_t argument_count,
1328 intptr_t deopt_id, 1327 intptr_t deopt_id,
1329 intptr_t token_pos, 1328 intptr_t token_pos,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1377 bool needs_number_check, 1376 bool needs_number_check,
1378 intptr_t token_pos) { 1377 intptr_t token_pos) {
1379 if (needs_number_check) { 1378 if (needs_number_check) {
1380 StubCode* stub_code = isolate()->stub_code(); 1379 StubCode* stub_code = isolate()->stub_code();
1381 __ Push(left); 1380 __ Push(left);
1382 __ Push(right); 1381 __ Push(right);
1383 if (is_optimizing()) { 1382 if (is_optimizing()) {
1384 __ BranchLinkPatchable( 1383 __ BranchLinkPatchable(
1385 &stub_code->OptimizedIdenticalWithNumberCheckLabel()); 1384 &stub_code->OptimizedIdenticalWithNumberCheckLabel());
1386 } else { 1385 } else {
1387 __ LoadImmediate(R4, 0);
1388 __ LoadImmediate(R5, 0);
1389 __ BranchLinkPatchable( 1386 __ BranchLinkPatchable(
1390 &stub_code->UnoptimizedIdenticalWithNumberCheckLabel()); 1387 &stub_code->UnoptimizedIdenticalWithNumberCheckLabel());
1391 } 1388 }
1392 if (token_pos != Scanner::kNoSourcePos) { 1389 if (token_pos != Scanner::kNoSourcePos) {
1393 AddCurrentDescriptor(RawPcDescriptors::kRuntimeCall, 1390 AddCurrentDescriptor(RawPcDescriptors::kRuntimeCall,
1394 Isolate::kNoDeoptId, 1391 Isolate::kNoDeoptId,
1395 token_pos); 1392 token_pos);
1396 } 1393 }
1397 #if defined(DEBUG) 1394 #if defined(DEBUG)
1398 if (!is_optimizing()) { 1395 if (!is_optimizing()) {
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
1775 DRegister dreg = EvenDRegisterOf(reg); 1772 DRegister dreg = EvenDRegisterOf(reg);
1776 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); 1773 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex));
1777 } 1774 }
1778 1775
1779 1776
1780 #undef __ 1777 #undef __
1781 1778
1782 } // namespace dart 1779 } // namespace dart
1783 1780
1784 #endif // defined TARGET_ARCH_ARM 1781 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/debugger_x64.cc ('k') | runtime/vm/flow_graph_compiler_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698