| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 7 | 7 |
| 8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 | 9 |
| 10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 3935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3946 | 3946 |
| 3947 | 3947 |
| 3948 void PolymorphicInstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 3948 void PolymorphicInstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 3949 Label* deopt = compiler->AddDeoptStub(deopt_id(), | 3949 Label* deopt = compiler->AddDeoptStub(deopt_id(), |
| 3950 kDeoptPolymorphicInstanceCallTestFail); | 3950 kDeoptPolymorphicInstanceCallTestFail); |
| 3951 __ TraceSimMsg("PolymorphicInstanceCallInstr"); | 3951 __ TraceSimMsg("PolymorphicInstanceCallInstr"); |
| 3952 if (ic_data().NumberOfChecks() == 0) { | 3952 if (ic_data().NumberOfChecks() == 0) { |
| 3953 __ b(deopt); | 3953 __ b(deopt); |
| 3954 return; | 3954 return; |
| 3955 } | 3955 } |
| 3956 ASSERT(ic_data().num_args_tested() == 1); | 3956 ASSERT(ic_data().NumArgsTested() == 1); |
| 3957 if (!with_checks()) { | 3957 if (!with_checks()) { |
| 3958 ASSERT(ic_data().HasOneTarget()); | 3958 ASSERT(ic_data().HasOneTarget()); |
| 3959 const Function& target = Function::ZoneHandle(ic_data().GetTargetAt(0)); | 3959 const Function& target = Function::ZoneHandle(ic_data().GetTargetAt(0)); |
| 3960 compiler->GenerateStaticCall(deopt_id(), | 3960 compiler->GenerateStaticCall(deopt_id(), |
| 3961 instance_call()->token_pos(), | 3961 instance_call()->token_pos(), |
| 3962 target, | 3962 target, |
| 3963 instance_call()->ArgumentCount(), | 3963 instance_call()->ArgumentCount(), |
| 3964 instance_call()->argument_names(), | 3964 instance_call()->argument_names(), |
| 3965 locs()); | 3965 locs()); |
| 3966 return; | 3966 return; |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4389 compiler->GenerateCall(token_pos(), | 4389 compiler->GenerateCall(token_pos(), |
| 4390 &label, | 4390 &label, |
| 4391 PcDescriptors::kOther, | 4391 PcDescriptors::kOther, |
| 4392 locs()); | 4392 locs()); |
| 4393 __ Drop(ArgumentCount()); // Discard arguments. | 4393 __ Drop(ArgumentCount()); // Discard arguments. |
| 4394 } | 4394 } |
| 4395 | 4395 |
| 4396 } // namespace dart | 4396 } // namespace dart |
| 4397 | 4397 |
| 4398 #endif // defined TARGET_ARCH_MIPS | 4398 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |