| 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 2024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2035 __ movsd(FieldAddress(result, Double::value_offset()), XMM0); | 2035 __ movsd(FieldAddress(result, Double::value_offset()), XMM0); |
| 2036 } | 2036 } |
| 2037 | 2037 |
| 2038 | 2038 |
| 2039 LocationSummary* PolymorphicInstanceCallComp::MakeLocationSummary() const { | 2039 LocationSummary* PolymorphicInstanceCallComp::MakeLocationSummary() const { |
| 2040 return MakeCallSummary(); | 2040 return MakeCallSummary(); |
| 2041 } | 2041 } |
| 2042 | 2042 |
| 2043 | 2043 |
| 2044 void PolymorphicInstanceCallComp::EmitNativeCode(FlowGraphCompiler* compiler) { | 2044 void PolymorphicInstanceCallComp::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 2045 ASSERT(instance_call()->VerifyComputation()); | |
| 2046 Label* deopt = compiler->AddDeoptStub(instance_call()->cid(), | 2045 Label* deopt = compiler->AddDeoptStub(instance_call()->cid(), |
| 2047 instance_call()->token_pos(), | 2046 instance_call()->token_pos(), |
| 2048 instance_call()->try_index(), | 2047 instance_call()->try_index(), |
| 2049 kDeoptPolymorphicInstanceCallTestFail); | 2048 kDeoptPolymorphicInstanceCallTestFail); |
| 2050 if (!HasICData() || (ic_data()->NumberOfChecks() == 0)) { | 2049 if (!HasICData() || (ic_data()->NumberOfChecks() == 0)) { |
| 2051 __ jmp(deopt); | 2050 __ jmp(deopt); |
| 2052 return; | 2051 return; |
| 2053 } | 2052 } |
| 2054 ASSERT(HasICData()); | 2053 ASSERT(HasICData()); |
| 2055 ASSERT(ic_data()->num_args_tested() == 1); | 2054 ASSERT(ic_data()->num_args_tested() == 1); |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2193 ASSERT(locs()->out().reg() == EAX); | 2192 ASSERT(locs()->out().reg() == EAX); |
| 2194 __ CompareObject(locs()->out().reg(), compiler->bool_true()); | 2193 __ CompareObject(locs()->out().reg(), compiler->bool_true()); |
| 2195 EmitBranchOnCondition(compiler, branch_condition); | 2194 EmitBranchOnCondition(compiler, branch_condition); |
| 2196 } | 2195 } |
| 2197 | 2196 |
| 2198 } // namespace dart | 2197 } // namespace dart |
| 2199 | 2198 |
| 2200 #undef __ | 2199 #undef __ |
| 2201 | 2200 |
| 2202 #endif // defined TARGET_ARCH_X64 | 2201 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |