| 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_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
| 6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
| 7 | 7 |
| 8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 | 9 |
| 10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 6339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6350 void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 6350 void AllocateObjectInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 6351 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls())); | 6351 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls())); |
| 6352 const ExternalLabel label(stub.EntryPoint()); | 6352 const ExternalLabel label(stub.EntryPoint()); |
| 6353 compiler->GenerateCall(token_pos(), | 6353 compiler->GenerateCall(token_pos(), |
| 6354 &label, | 6354 &label, |
| 6355 PcDescriptors::kOther, | 6355 PcDescriptors::kOther, |
| 6356 locs()); | 6356 locs()); |
| 6357 __ Drop(ArgumentCount()); // Discard arguments. | 6357 __ Drop(ArgumentCount()); // Discard arguments. |
| 6358 } | 6358 } |
| 6359 | 6359 |
| 6360 |
| 6361 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 6362 ASSERT(!compiler->is_optimizing()); |
| 6363 const ExternalLabel label(StubCode::DebugStepCheckEntryPoint()); |
| 6364 __ LoadImmediate(R4, 0); |
| 6365 __ LoadImmediate(R5, 0); |
| 6366 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); |
| 6367 #if defined(DEBUG) |
| 6368 __ LoadImmediate(R4, 1); // Garbage that looks like an object. |
| 6369 __ LoadImmediate(R5, 1); |
| 6370 #endif |
| 6371 } |
| 6372 |
| 6360 } // namespace dart | 6373 } // namespace dart |
| 6361 | 6374 |
| 6362 #endif // defined TARGET_ARCH_ARM | 6375 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |