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 2379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |