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

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: lazyly inject extractors as getters into class Created 7 years, 11 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
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2269 matching lines...) Expand 10 before | Expand all | Expand 10 after
2280 2280
2281 void PolymorphicInstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 2281 void PolymorphicInstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
2282 Label* deopt = compiler->AddDeoptStub(instance_call()->deopt_id(), 2282 Label* deopt = compiler->AddDeoptStub(instance_call()->deopt_id(),
2283 kDeoptPolymorphicInstanceCallTestFail); 2283 kDeoptPolymorphicInstanceCallTestFail);
2284 if (ic_data().NumberOfChecks() == 0) { 2284 if (ic_data().NumberOfChecks() == 0) {
2285 __ jmp(deopt); 2285 __ jmp(deopt);
2286 return; 2286 return;
2287 } 2287 }
2288 ASSERT(ic_data().num_args_tested() == 1); 2288 ASSERT(ic_data().num_args_tested() == 1);
2289 if (!with_checks()) { 2289 if (!with_checks()) {
2290 ASSERT(ic_data().HasOneTarget());
2290 const Function& target = Function::ZoneHandle(ic_data().GetTargetAt(0)); 2291 const Function& target = Function::ZoneHandle(ic_data().GetTargetAt(0));
2291 compiler->GenerateStaticCall(instance_call()->deopt_id(), 2292 compiler->GenerateStaticCall(instance_call()->deopt_id(),
2292 instance_call()->token_pos(), 2293 instance_call()->token_pos(),
2293 target, 2294 target,
2294 instance_call()->ArgumentCount(), 2295 instance_call()->ArgumentCount(),
2295 instance_call()->argument_names(), 2296 instance_call()->argument_names(),
2296 locs()); 2297 locs());
2297 return; 2298 return;
2298 } 2299 }
2299 2300
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
2504 2505
2505 void ShiftMintOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 2506 void ShiftMintOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
2506 UNIMPLEMENTED(); 2507 UNIMPLEMENTED();
2507 } 2508 }
2508 2509
2509 } // namespace dart 2510 } // namespace dart
2510 2511
2511 #undef __ 2512 #undef __
2512 2513
2513 #endif // defined TARGET_ARCH_X64 2514 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698