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_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
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 2269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2280 | 2280 |
2281 void PolymorphicInstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 2281 void PolymorphicInstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
2282 Label* deopt = compiler->AddDeoptStub(instance_call()->deopt_id(), | 2282 Label* deopt = compiler->AddDeoptStub(instance_call()->deopt_id(), |
2283 kDeoptPolymorphicInstanceCallTestFail); | 2283 kDeoptPolymorphicInstanceCallTestFail); |
2284 if (ic_data().NumberOfChecks() == 0) { | 2284 if (ic_data().NumberOfChecks() == 0) { |
2285 __ jmp(deopt); | 2285 __ jmp(deopt); |
2286 return; | 2286 return; |
2287 } | 2287 } |
2288 ASSERT(ic_data().num_args_tested() == 1); | 2288 ASSERT(ic_data().num_args_tested() == 1); |
2289 if (!with_checks()) { | 2289 if (!with_checks()) { |
| 2290 ASSERT(ic_data().HasOneTarget()); |
2290 const Function& target = Function::ZoneHandle(ic_data().GetTargetAt(0)); | 2291 const Function& target = Function::ZoneHandle(ic_data().GetTargetAt(0)); |
2291 compiler->GenerateStaticCall(instance_call()->deopt_id(), | 2292 compiler->GenerateStaticCall(instance_call()->deopt_id(), |
2292 instance_call()->token_pos(), | 2293 instance_call()->token_pos(), |
2293 target, | 2294 target, |
2294 instance_call()->ArgumentCount(), | 2295 instance_call()->ArgumentCount(), |
2295 instance_call()->argument_names(), | 2296 instance_call()->argument_names(), |
2296 locs()); | 2297 locs()); |
2297 return; | 2298 return; |
2298 } | 2299 } |
2299 | 2300 |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2504 | 2505 |
2505 void ShiftMintOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 2506 void ShiftMintOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
2506 UNIMPLEMENTED(); | 2507 UNIMPLEMENTED(); |
2507 } | 2508 } |
2508 | 2509 |
2509 } // namespace dart | 2510 } // namespace dart |
2510 | 2511 |
2511 #undef __ | 2512 #undef __ |
2512 | 2513 |
2513 #endif // defined TARGET_ARCH_X64 | 2514 #endif // defined TARGET_ARCH_X64 |
OLD | NEW |