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

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

Issue 254723003: Remember all deopt reasons in ic_data, not just the last one. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | 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 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after
1308 num_args_checked = 2; 1308 num_args_checked = 2;
1309 } 1309 }
1310 const ICData& ic_data = ICData::ZoneHandle( 1310 const ICData& ic_data = ICData::ZoneHandle(
1311 ICData::New(parsed_function().function(), // Caller function. 1311 ICData::New(parsed_function().function(), // Caller function.
1312 String::Handle(target_function.name()), 1312 String::Handle(target_function.name()),
1313 arguments_descriptor, 1313 arguments_descriptor,
1314 deopt_id, 1314 deopt_id,
1315 num_args_checked)); // No arguments checked. 1315 num_args_checked)); // No arguments checked.
1316 ic_data.AddTarget(target_function); 1316 ic_data.AddTarget(target_function);
1317 uword label_address = 0; 1317 uword label_address = 0;
1318 if (ic_data.num_args_tested() == 0) { 1318 if (ic_data.NumArgsTested() == 0) {
1319 label_address = StubCode::ZeroArgsUnoptimizedStaticCallEntryPoint(); 1319 label_address = StubCode::ZeroArgsUnoptimizedStaticCallEntryPoint();
1320 } else if (ic_data.num_args_tested() == 2) { 1320 } else if (ic_data.NumArgsTested() == 2) {
1321 label_address = StubCode::TwoArgsUnoptimizedStaticCallEntryPoint(); 1321 label_address = StubCode::TwoArgsUnoptimizedStaticCallEntryPoint();
1322 } else { 1322 } else {
1323 UNIMPLEMENTED(); 1323 UNIMPLEMENTED();
1324 } 1324 }
1325 ExternalLabel target_label("StaticCallICStub", label_address); 1325 ExternalLabel target_label("StaticCallICStub", label_address);
1326 __ LoadObject(R5, ic_data); 1326 __ LoadObject(R5, ic_data);
1327 GenerateDartCall(deopt_id, 1327 GenerateDartCall(deopt_id,
1328 token_pos, 1328 token_pos,
1329 &target_label, 1329 &target_label,
1330 PcDescriptors::kUnoptStaticCall, 1330 PcDescriptors::kUnoptStaticCall,
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
1787 DRegister dreg = EvenDRegisterOf(reg); 1787 DRegister dreg = EvenDRegisterOf(reg);
1788 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); 1788 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex));
1789 } 1789 }
1790 1790
1791 1791
1792 #undef __ 1792 #undef __
1793 1793
1794 } // namespace dart 1794 } // namespace dart
1795 1795
1796 #endif // defined TARGET_ARCH_ARM 1796 #endif // defined TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698