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

Side by Side Diff: runtime/vm/intermediate_language_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, 7 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/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 5190 matching lines...) Expand 10 before | Expand all | Expand 10 after
5201 } 5201 }
5202 5202
5203 5203
5204 void PolymorphicInstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 5204 void PolymorphicInstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
5205 Label* deopt = compiler->AddDeoptStub(deopt_id(), 5205 Label* deopt = compiler->AddDeoptStub(deopt_id(),
5206 kDeoptPolymorphicInstanceCallTestFail); 5206 kDeoptPolymorphicInstanceCallTestFail);
5207 if (ic_data().NumberOfChecks() == 0) { 5207 if (ic_data().NumberOfChecks() == 0) {
5208 __ b(deopt); 5208 __ b(deopt);
5209 return; 5209 return;
5210 } 5210 }
5211 ASSERT(ic_data().num_args_tested() == 1); 5211 ASSERT(ic_data().NumArgsTested() == 1);
5212 if (!with_checks()) { 5212 if (!with_checks()) {
5213 ASSERT(ic_data().HasOneTarget()); 5213 ASSERT(ic_data().HasOneTarget());
5214 const Function& target = Function::ZoneHandle(ic_data().GetTargetAt(0)); 5214 const Function& target = Function::ZoneHandle(ic_data().GetTargetAt(0));
5215 compiler->GenerateStaticCall(deopt_id(), 5215 compiler->GenerateStaticCall(deopt_id(),
5216 instance_call()->token_pos(), 5216 instance_call()->token_pos(),
5217 target, 5217 target,
5218 instance_call()->ArgumentCount(), 5218 instance_call()->ArgumentCount(),
5219 instance_call()->argument_names(), 5219 instance_call()->argument_names(),
5220 locs()); 5220 locs());
5221 return; 5221 return;
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
5944 compiler->GenerateCall(token_pos(), 5944 compiler->GenerateCall(token_pos(),
5945 &label, 5945 &label,
5946 PcDescriptors::kOther, 5946 PcDescriptors::kOther,
5947 locs()); 5947 locs());
5948 __ Drop(ArgumentCount()); // Discard arguments. 5948 __ Drop(ArgumentCount()); // Discard arguments.
5949 } 5949 }
5950 5950
5951 } // namespace dart 5951 } // namespace dart
5952 5952
5953 #endif // defined TARGET_ARCH_ARM 5953 #endif // defined TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698