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

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
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) {
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 1354 matching lines...) Expand 10 before | Expand all | Expand 10 after
6566 __ movl(EDX, Immediate(kInvalidObjectPointer)); 6566 __ movl(EDX, Immediate(kInvalidObjectPointer));
6567 __ movl(EDX, Immediate(kInvalidObjectPointer)); 6567 __ movl(EDX, Immediate(kInvalidObjectPointer));
6568 #endif 6568 #endif
6569 } 6569 }
6570 6570
6571 } // namespace dart 6571 } // namespace dart
6572 6572
6573 #undef __ 6573 #undef __
6574 6574
6575 #endif // defined TARGET_ARCH_IA32 6575 #endif // defined TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698