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

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
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 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1202 } 1202 }
1203 1203
1204 1204
1205 void FlowGraphCompiler::EmitInstanceCall(ExternalLabel* target_label, 1205 void FlowGraphCompiler::EmitInstanceCall(ExternalLabel* target_label,
1206 const ICData& ic_data, 1206 const ICData& ic_data,
1207 intptr_t argument_count, 1207 intptr_t argument_count,
1208 intptr_t deopt_id, 1208 intptr_t deopt_id,
1209 intptr_t token_pos, 1209 intptr_t token_pos,
1210 LocationSummary* locs) { 1210 LocationSummary* locs) {
1211 ASSERT(Array::Handle(ic_data.arguments_descriptor()).Length() > 0); 1211 ASSERT(Array::Handle(ic_data.arguments_descriptor()).Length() > 0);
1212 __ LoadImmediate(R4, 0);
1213 __ LoadObject(R5, ic_data); 1212 __ LoadObject(R5, ic_data);
1214 GenerateDartCall(deopt_id, 1213 GenerateDartCall(deopt_id,
1215 token_pos, 1214 token_pos,
1216 target_label, 1215 target_label,
1217 PcDescriptors::kIcCall, 1216 PcDescriptors::kIcCall,
1218 locs); 1217 locs);
1219 __ Drop(argument_count); 1218 __ Drop(argument_count);
1220 #if defined(DEBUG) 1219 #if defined(DEBUG)
1221 __ LoadImmediate(R4, kInvalidObjectPointer); 1220 __ LoadImmediate(R4, kInvalidObjectPointer);
1222 #endif 1221 #endif
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
1292 const ICData& ic_data) { 1291 const ICData& ic_data) {
1293 uword label_address = 0; 1292 uword label_address = 0;
1294 if (ic_data.NumArgsTested() == 0) { 1293 if (ic_data.NumArgsTested() == 0) {
1295 label_address = StubCode::ZeroArgsUnoptimizedStaticCallEntryPoint(); 1294 label_address = StubCode::ZeroArgsUnoptimizedStaticCallEntryPoint();
1296 } else if (ic_data.NumArgsTested() == 2) { 1295 } else if (ic_data.NumArgsTested() == 2) {
1297 label_address = StubCode::TwoArgsUnoptimizedStaticCallEntryPoint(); 1296 label_address = StubCode::TwoArgsUnoptimizedStaticCallEntryPoint();
1298 } else { 1297 } else {
1299 UNIMPLEMENTED(); 1298 UNIMPLEMENTED();
1300 } 1299 }
1301 ExternalLabel target_label(label_address); 1300 ExternalLabel target_label(label_address);
1302 __ LoadImmediate(R4, 0);
1303 __ LoadObject(R5, ic_data); 1301 __ LoadObject(R5, ic_data);
1304 GenerateDartCall(deopt_id, 1302 GenerateDartCall(deopt_id,
1305 token_pos, 1303 token_pos,
1306 &target_label, 1304 &target_label,
1307 PcDescriptors::kUnoptStaticCall, 1305 PcDescriptors::kUnoptStaticCall,
1308 locs); 1306 locs);
1309 __ Drop(argument_count); 1307 __ Drop(argument_count);
1310 #if defined(DEBUG) 1308 #if defined(DEBUG)
1311 __ LoadImmediate(R4, kInvalidObjectPointer); 1309 __ LoadImmediate(R4, kInvalidObjectPointer);
1312 #endif 1310 #endif
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
1366 Register right, 1364 Register right,
1367 bool needs_number_check, 1365 bool needs_number_check,
1368 intptr_t token_pos) { 1366 intptr_t token_pos) {
1369 if (needs_number_check) { 1367 if (needs_number_check) {
1370 __ Push(left); 1368 __ Push(left);
1371 __ Push(right); 1369 __ Push(right);
1372 if (is_optimizing()) { 1370 if (is_optimizing()) {
1373 __ BranchLinkPatchable( 1371 __ BranchLinkPatchable(
1374 &StubCode::OptimizedIdenticalWithNumberCheckLabel()); 1372 &StubCode::OptimizedIdenticalWithNumberCheckLabel());
1375 } else { 1373 } else {
1376 __ LoadImmediate(R4, 0);
1377 __ LoadImmediate(R5, 0);
1378 __ BranchLinkPatchable( 1374 __ BranchLinkPatchable(
1379 &StubCode::UnoptimizedIdenticalWithNumberCheckLabel()); 1375 &StubCode::UnoptimizedIdenticalWithNumberCheckLabel());
1380 } 1376 }
1381 if (token_pos != Scanner::kNoSourcePos) { 1377 if (token_pos != Scanner::kNoSourcePos) {
1382 AddCurrentDescriptor(PcDescriptors::kRuntimeCall, 1378 AddCurrentDescriptor(PcDescriptors::kRuntimeCall,
1383 Isolate::kNoDeoptId, 1379 Isolate::kNoDeoptId,
1384 token_pos); 1380 token_pos);
1385 } 1381 }
1386 #if defined(DEBUG) 1382 #if defined(DEBUG)
1387 if (!is_optimizing()) { 1383 if (!is_optimizing()) {
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
1762 DRegister dreg = EvenDRegisterOf(reg); 1758 DRegister dreg = EvenDRegisterOf(reg);
1763 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); 1759 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex));
1764 } 1760 }
1765 1761
1766 1762
1767 #undef __ 1763 #undef __
1768 1764
1769 } // namespace dart 1765 } // namespace dart
1770 1766
1771 #endif // defined TARGET_ARCH_ARM 1767 #endif // defined TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698