| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |