| 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 4667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4678 __ Comment("AllocateObjectInstr"); | 4678 __ Comment("AllocateObjectInstr"); |
| 4679 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls())); | 4679 const Code& stub = Code::Handle(StubCode::GetAllocationStubForClass(cls())); |
| 4680 const ExternalLabel label(stub.EntryPoint()); | 4680 const ExternalLabel label(stub.EntryPoint()); |
| 4681 compiler->GenerateCall(token_pos(), | 4681 compiler->GenerateCall(token_pos(), |
| 4682 &label, | 4682 &label, |
| 4683 PcDescriptors::kOther, | 4683 PcDescriptors::kOther, |
| 4684 locs()); | 4684 locs()); |
| 4685 __ Drop(ArgumentCount()); // Discard arguments. | 4685 __ Drop(ArgumentCount()); // Discard arguments. |
| 4686 } | 4686 } |
| 4687 | 4687 |
| 4688 |
| 4689 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 4690 ASSERT(!compiler->is_optimizing()); |
| 4691 const ExternalLabel label(StubCode::DebugStepCheckEntryPoint()); |
| 4692 __ LoadImmediate(S4, 0); |
| 4693 __ LoadImmediate(S5, 0); |
| 4694 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); |
| 4695 #if defined(DEBUG) |
| 4696 __ LoadImmediate(S4, kInvalidObjectPointer); |
| 4697 __ LoadImmediate(S5, kInvalidObjectPointer); |
| 4698 #endif |
| 4699 } |
| 4700 |
| 4688 } // namespace dart | 4701 } // namespace dart |
| 4689 | 4702 |
| 4690 #endif // defined TARGET_ARCH_MIPS | 4703 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |