| 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 2029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2040 ASSERT((ic_data.NumberOfChecks() == 1)); | 2040 ASSERT((ic_data.NumberOfChecks() == 1)); |
| 2041 const Function& target = Function::ZoneHandle(ic_data.GetTargetAt(0)); | 2041 const Function& target = Function::ZoneHandle(ic_data.GetTargetAt(0)); |
| 2042 | 2042 |
| 2043 const intptr_t kNumberOfArguments = 1; | 2043 const intptr_t kNumberOfArguments = 1; |
| 2044 compiler->GenerateStaticCall(instance_call()->deopt_id(), | 2044 compiler->GenerateStaticCall(instance_call()->deopt_id(), |
| 2045 instance_call()->token_pos(), | 2045 instance_call()->token_pos(), |
| 2046 target, | 2046 target, |
| 2047 kNumberOfArguments, | 2047 kNumberOfArguments, |
| 2048 Array::Handle(), // No argument names., | 2048 Array::Handle(), // No argument names., |
| 2049 locs()); | 2049 locs()); |
| 2050 __ Drop(1); | |
| 2051 __ Bind(&done); | 2050 __ Bind(&done); |
| 2052 } | 2051 } |
| 2053 | 2052 |
| 2054 | 2053 |
| 2055 LocationSummary* PolymorphicInstanceCallInstr::MakeLocationSummary() const { | 2054 LocationSummary* PolymorphicInstanceCallInstr::MakeLocationSummary() const { |
| 2056 return MakeCallSummary(); | 2055 return MakeCallSummary(); |
| 2057 } | 2056 } |
| 2058 | 2057 |
| 2059 | 2058 |
| 2060 void PolymorphicInstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 2059 void PolymorphicInstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| (...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2526 __ pcmpeqq(XMM0, XMM0); // Generate all 1's. | 2525 __ pcmpeqq(XMM0, XMM0); // Generate all 1's. |
| 2527 __ pxor(value, XMM0); | 2526 __ pxor(value, XMM0); |
| 2528 } | 2527 } |
| 2529 | 2528 |
| 2530 | 2529 |
| 2531 } // namespace dart | 2530 } // namespace dart |
| 2532 | 2531 |
| 2533 #undef __ | 2532 #undef __ |
| 2534 | 2533 |
| 2535 #endif // defined TARGET_ARCH_X64 | 2534 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |