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

Side by Side Diff: runtime/vm/intermediate_language_ia32.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_IA32. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
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 5037 matching lines...) Expand 10 before | Expand all | Expand 10 after
5048 } 5048 }
5049 5049
5050 5050
5051 void PolymorphicInstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 5051 void PolymorphicInstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
5052 Label* deopt = compiler->AddDeoptStub(deopt_id(), 5052 Label* deopt = compiler->AddDeoptStub(deopt_id(),
5053 kDeoptPolymorphicInstanceCallTestFail); 5053 kDeoptPolymorphicInstanceCallTestFail);
5054 if (ic_data().NumberOfChecks() == 0) { 5054 if (ic_data().NumberOfChecks() == 0) {
5055 __ jmp(deopt); 5055 __ jmp(deopt);
5056 return; 5056 return;
5057 } 5057 }
5058 ASSERT(ic_data().num_args_tested() == 1); 5058 ASSERT(ic_data().NumArgsTested() == 1);
5059 if (!with_checks()) { 5059 if (!with_checks()) {
5060 ASSERT(ic_data().HasOneTarget()); 5060 ASSERT(ic_data().HasOneTarget());
5061 const Function& target = Function::ZoneHandle(ic_data().GetTargetAt(0)); 5061 const Function& target = Function::ZoneHandle(ic_data().GetTargetAt(0));
5062 compiler->GenerateStaticCall(deopt_id(), 5062 compiler->GenerateStaticCall(deopt_id(),
5063 instance_call()->token_pos(), 5063 instance_call()->token_pos(),
5064 target, 5064 target,
5065 instance_call()->ArgumentCount(), 5065 instance_call()->ArgumentCount(),
5066 instance_call()->argument_names(), 5066 instance_call()->argument_names(),
5067 locs()); 5067 locs());
5068 return; 5068 return;
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
5909 PcDescriptors::kOther, 5909 PcDescriptors::kOther,
5910 locs()); 5910 locs());
5911 __ Drop(ArgumentCount()); // Discard arguments. 5911 __ Drop(ArgumentCount()); // Discard arguments.
5912 } 5912 }
5913 5913
5914 } // namespace dart 5914 } // namespace dart
5915 5915
5916 #undef __ 5916 #undef __
5917 5917
5918 #endif // defined TARGET_ARCH_IA32 5918 #endif // defined TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698