| 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" | 5 #include "vm/globals.h" |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 7 | 7 |
| 8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
| 9 #include "vm/locations.h" |
| 9 #include "vm/runtime_entry.h" | 10 #include "vm/runtime_entry.h" |
| 10 #include "vm/simulator.h" | 11 #include "vm/simulator.h" |
| 11 #include "vm/stack_frame.h" | 12 #include "vm/stack_frame.h" |
| 12 #include "vm/stub_code.h" | 13 #include "vm/stub_code.h" |
| 13 | 14 |
| 14 namespace dart { | 15 namespace dart { |
| 15 | 16 |
| 16 #if defined(USING_SIMULATOR) | 17 #if defined(USING_SIMULATOR) |
| 17 DECLARE_FLAG(bool, trace_sim); | 18 DECLARE_FLAG(bool, trace_sim); |
| 18 #endif | 19 #endif |
| 19 DEFINE_FLAG(bool, print_stop_message, false, "Print stop message."); | 20 DEFINE_FLAG(bool, print_stop_message, false, "Print stop message."); |
| 20 DECLARE_FLAG(bool, inline_alloc); | 21 DECLARE_FLAG(bool, inline_alloc); |
| 21 | 22 |
| 23 |
| 24 Address Address::StackSlotAddress(const Location& stack_slot) { |
| 25 ASSERT(stack_slot.IsStackSlot() || stack_slot.IsDoubleStackSlot() || |
| 26 stack_slot.IsQuadStackSlot()); |
| 27 return Address(FP, stack_slot.ToStackSlotOffset()); |
| 28 } |
| 29 |
| 30 |
| 22 void Assembler::InitializeMemoryWithBreakpoints(uword data, int length) { | 31 void Assembler::InitializeMemoryWithBreakpoints(uword data, int length) { |
| 23 ASSERT(Utils::IsAligned(data, 4)); | 32 ASSERT(Utils::IsAligned(data, 4)); |
| 24 ASSERT(Utils::IsAligned(length, 4)); | 33 ASSERT(Utils::IsAligned(length, 4)); |
| 25 const uword end = data + length; | 34 const uword end = data + length; |
| 26 while (data < end) { | 35 while (data < end) { |
| 27 *reinterpret_cast<int32_t*>(data) = Instr::kBreakPointInstruction; | 36 *reinterpret_cast<int32_t*>(data) = Instr::kBreakPointInstruction; |
| 28 data += 4; | 37 data += 4; |
| 29 } | 38 } |
| 30 } | 39 } |
| 31 | 40 |
| (...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 711 Bind(&msg); | 720 Bind(&msg); |
| 712 break_(Instr::kMsgMessageCode); | 721 break_(Instr::kMsgMessageCode); |
| 713 } | 722 } |
| 714 #endif | 723 #endif |
| 715 } | 724 } |
| 716 | 725 |
| 717 } // namespace dart | 726 } // namespace dart |
| 718 | 727 |
| 719 #endif // defined TARGET_ARCH_MIPS | 728 #endif // defined TARGET_ARCH_MIPS |
| 720 | 729 |
| OLD | NEW |