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

Side by Side Diff: runtime/vm/intermediate_language_ia32.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.h ('k') | runtime/vm/intermediate_language_x64.cc » ('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_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 "lib/error.h" 10 #include "lib/error.h"
(...skipping 2379 matching lines...) Expand 10 before | Expand all | Expand 10 after
2390 2390
2391 void PolymorphicInstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 2391 void PolymorphicInstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
2392 Label* deopt = compiler->AddDeoptStub(instance_call()->deopt_id(), 2392 Label* deopt = compiler->AddDeoptStub(instance_call()->deopt_id(),
2393 kDeoptPolymorphicInstanceCallTestFail); 2393 kDeoptPolymorphicInstanceCallTestFail);
2394 if (ic_data().NumberOfChecks() == 0) { 2394 if (ic_data().NumberOfChecks() == 0) {
2395 __ jmp(deopt); 2395 __ jmp(deopt);
2396 return; 2396 return;
2397 } 2397 }
2398 ASSERT(ic_data().num_args_tested() == 1); 2398 ASSERT(ic_data().num_args_tested() == 1);
2399 if (!with_checks()) { 2399 if (!with_checks()) {
2400 ASSERT(ic_data().HasOneTarget());
2400 const Function& target = Function::ZoneHandle(ic_data().GetTargetAt(0)); 2401 const Function& target = Function::ZoneHandle(ic_data().GetTargetAt(0));
2401 compiler->GenerateStaticCall(instance_call()->deopt_id(), 2402 compiler->GenerateStaticCall(instance_call()->deopt_id(),
2402 instance_call()->token_pos(), 2403 instance_call()->token_pos(),
2403 target, 2404 target,
2404 instance_call()->ArgumentCount(), 2405 instance_call()->ArgumentCount(),
2405 instance_call()->argument_names(), 2406 instance_call()->argument_names(),
2406 locs()); 2407 locs());
2407 return; 2408 return;
2408 } 2409 }
2409 2410
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
2860 __ pcmpeqq(XMM0, XMM0); // Generate all 1's. 2861 __ pcmpeqq(XMM0, XMM0); // Generate all 1's.
2861 __ pxor(value, XMM0); 2862 __ pxor(value, XMM0);
2862 } 2863 }
2863 2864
2864 2865
2865 } // namespace dart 2866 } // namespace dart
2866 2867
2867 #undef __ 2868 #undef __
2868 2869
2869 #endif // defined TARGET_ARCH_X64 2870 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698