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

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

Issue 436643002: Faster IC stubs by specializing them for Binary Smi operations (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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.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) 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 5180 matching lines...) Expand 10 before | Expand all | Expand 10 after
5191 5191
5192 LocationSummary* PolymorphicInstanceCallInstr::MakeLocationSummary( 5192 LocationSummary* PolymorphicInstanceCallInstr::MakeLocationSummary(
5193 Isolate* isolate, bool opt) const { 5193 Isolate* isolate, bool opt) const {
5194 return MakeCallSummary(); 5194 return MakeCallSummary();
5195 } 5195 }
5196 5196
5197 5197
5198 void PolymorphicInstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 5198 void PolymorphicInstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
5199 Label* deopt = compiler->AddDeoptStub( 5199 Label* deopt = compiler->AddDeoptStub(
5200 deopt_id(), ICData::kDeoptPolymorphicInstanceCallTestFail); 5200 deopt_id(), ICData::kDeoptPolymorphicInstanceCallTestFail);
5201 if (ic_data().NumberOfChecks() == 0) { 5201 if (ic_data().NumberOfUsedChecks() == 0) {
Florian Schneider 2014/09/18 12:32:29 Why is this only changed on ia32? This also seems
srdjan 2014/09/25 17:40:25 This was fixed in a follow up CL
5202 __ jmp(deopt); 5202 __ jmp(deopt);
5203 return; 5203 return;
5204 } 5204 }
5205 ASSERT(ic_data().NumArgsTested() == 1); 5205 ASSERT(ic_data().NumArgsTested() == 1);
5206 if (!with_checks()) { 5206 if (!with_checks()) {
5207 ASSERT(ic_data().HasOneTarget()); 5207 ASSERT(ic_data().HasOneTarget());
5208 const Function& target = Function::ZoneHandle(ic_data().GetTargetAt(0)); 5208 const Function& target = Function::ZoneHandle(ic_data().GetTargetAt(0));
5209 compiler->GenerateStaticCall(deopt_id(), 5209 compiler->GenerateStaticCall(deopt_id(),
5210 instance_call()->token_pos(), 5210 instance_call()->token_pos(),
5211 target, 5211 target,
(...skipping 1353 matching lines...) Expand 10 before | Expand all | Expand 10 after
6565 __ movl(EDX, Immediate(kInvalidObjectPointer)); 6565 __ movl(EDX, Immediate(kInvalidObjectPointer));
6566 __ movl(EDX, Immediate(kInvalidObjectPointer)); 6566 __ movl(EDX, Immediate(kInvalidObjectPointer));
6567 #endif 6567 #endif
6568 } 6568 }
6569 6569
6570 } // namespace dart 6570 } // namespace dart
6571 6571
6572 #undef __ 6572 #undef __
6573 6573
6574 #endif // defined TARGET_ARCH_IA32 6574 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698