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

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

Issue 11642003: Create and cache method extraction stub in the ICData. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: ready for review. Created 8 years 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "lib/error.h" 10 #include "lib/error.h"
(...skipping 2200 matching lines...) Expand 10 before | Expand all | Expand 10 after
2211 2211
2212 void PolymorphicInstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 2212 void PolymorphicInstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
2213 Label* deopt = compiler->AddDeoptStub(instance_call()->deopt_id(), 2213 Label* deopt = compiler->AddDeoptStub(instance_call()->deopt_id(),
2214 kDeoptPolymorphicInstanceCallTestFail); 2214 kDeoptPolymorphicInstanceCallTestFail);
2215 if (ic_data().NumberOfChecks() == 0) { 2215 if (ic_data().NumberOfChecks() == 0) {
2216 __ jmp(deopt); 2216 __ jmp(deopt);
2217 return; 2217 return;
2218 } 2218 }
2219 ASSERT(ic_data().num_args_tested() == 1); 2219 ASSERT(ic_data().num_args_tested() == 1);
2220 if (!with_checks()) { 2220 if (!with_checks()) {
2221 ASSERT(ic_data().HasOneTarget());
2221 const Function& target = Function::ZoneHandle(ic_data().GetTargetAt(0)); 2222 const Function& target = Function::ZoneHandle(ic_data().GetTargetAt(0));
2222 compiler->GenerateStaticCall(instance_call()->deopt_id(), 2223 compiler->GenerateStaticCall(instance_call()->deopt_id(),
2223 instance_call()->token_pos(), 2224 instance_call()->token_pos(),
2224 target, 2225 target,
2225 instance_call()->ArgumentCount(), 2226 instance_call()->ArgumentCount(),
2226 instance_call()->argument_names(), 2227 instance_call()->argument_names(),
2227 locs()); 2228 locs());
2228 return; 2229 return;
2229 } 2230 }
2230 2231
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
2435 2436
2436 void ShiftMintOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 2437 void ShiftMintOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
2437 UNIMPLEMENTED(); 2438 UNIMPLEMENTED();
2438 } 2439 }
2439 2440
2440 } // namespace dart 2441 } // namespace dart
2441 2442
2442 #undef __ 2443 #undef __
2443 2444
2444 #endif // defined TARGET_ARCH_X64 2445 #endif // defined TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698