| 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_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 2311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2322 | 2322 |
| 2323 void PolymorphicInstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 2323 void PolymorphicInstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 2324 Label* deopt = compiler->AddDeoptStub(instance_call()->deopt_id(), | 2324 Label* deopt = compiler->AddDeoptStub(instance_call()->deopt_id(), |
| 2325 kDeoptPolymorphicInstanceCallTestFail); | 2325 kDeoptPolymorphicInstanceCallTestFail); |
| 2326 if (ic_data().NumberOfChecks() == 0) { | 2326 if (ic_data().NumberOfChecks() == 0) { |
| 2327 __ jmp(deopt); | 2327 __ jmp(deopt); |
| 2328 return; | 2328 return; |
| 2329 } | 2329 } |
| 2330 ASSERT(ic_data().num_args_tested() == 1); | 2330 ASSERT(ic_data().num_args_tested() == 1); |
| 2331 if (!with_checks()) { | 2331 if (!with_checks()) { |
| 2332 ASSERT(ic_data().HasOneTarget()); |
| 2332 const Function& target = Function::ZoneHandle(ic_data().GetTargetAt(0)); | 2333 const Function& target = Function::ZoneHandle(ic_data().GetTargetAt(0)); |
| 2333 compiler->GenerateStaticCall(instance_call()->deopt_id(), | 2334 compiler->GenerateStaticCall(instance_call()->deopt_id(), |
| 2334 instance_call()->token_pos(), | 2335 instance_call()->token_pos(), |
| 2335 target, | 2336 target, |
| 2336 instance_call()->ArgumentCount(), | 2337 instance_call()->ArgumentCount(), |
| 2337 instance_call()->argument_names(), | 2338 instance_call()->argument_names(), |
| 2338 locs()); | 2339 locs()); |
| 2339 return; | 2340 return; |
| 2340 } | 2341 } |
| 2341 | 2342 |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2792 __ pcmpeqq(XMM0, XMM0); // Generate all 1's. | 2793 __ pcmpeqq(XMM0, XMM0); // Generate all 1's. |
| 2793 __ pxor(value, XMM0); | 2794 __ pxor(value, XMM0); |
| 2794 } | 2795 } |
| 2795 | 2796 |
| 2796 | 2797 |
| 2797 } // namespace dart | 2798 } // namespace dart |
| 2798 | 2799 |
| 2799 #undef __ | 2800 #undef __ |
| 2800 | 2801 |
| 2801 #endif // defined TARGET_ARCH_X64 | 2802 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |