| 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/longjump.h" | 9 #include "vm/longjump.h" |
| 10 #include "vm/runtime_entry.h" | 10 #include "vm/runtime_entry.h" |
| (...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 722 ASSERT(cls.id() != kIllegalCid); | 722 ASSERT(cls.id() != kIllegalCid); |
| 723 tags = RawObject::ClassIdTag::update(cls.id(), tags); | 723 tags = RawObject::ClassIdTag::update(cls.id(), tags); |
| 724 LoadImmediate(TMP, tags); | 724 LoadImmediate(TMP, tags); |
| 725 sw(TMP, FieldAddress(instance_reg, Object::tags_offset())); | 725 sw(TMP, FieldAddress(instance_reg, Object::tags_offset())); |
| 726 } else { | 726 } else { |
| 727 b(failure); | 727 b(failure); |
| 728 } | 728 } |
| 729 } | 729 } |
| 730 | 730 |
| 731 | 731 |
| 732 void Assembler::CallRuntime(const RuntimeEntry& entry) { | 732 void Assembler::CallRuntime(const RuntimeEntry& entry, |
| 733 entry.Call(this); | 733 intptr_t argument_count) { |
| 734 entry.Call(this, argument_count); |
| 734 } | 735 } |
| 735 | 736 |
| 736 | 737 |
| 737 void Assembler::EnterDartFrame(intptr_t frame_size) { | 738 void Assembler::EnterDartFrame(intptr_t frame_size) { |
| 738 const intptr_t offset = CodeSize(); | 739 const intptr_t offset = CodeSize(); |
| 739 | 740 |
| 740 SetPrologueOffset(); | 741 SetPrologueOffset(); |
| 741 | 742 |
| 742 addiu(SP, SP, Immediate(-4 * kWordSize)); | 743 addiu(SP, SP, Immediate(-4 * kWordSize)); |
| 743 sw(RA, Address(SP, 2 * kWordSize)); | 744 sw(RA, Address(SP, 2 * kWordSize)); |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 977 Bind(&msg); | 978 Bind(&msg); |
| 978 break_(Instr::kMsgMessageCode); | 979 break_(Instr::kMsgMessageCode); |
| 979 } | 980 } |
| 980 #endif | 981 #endif |
| 981 } | 982 } |
| 982 | 983 |
| 983 } // namespace dart | 984 } // namespace dart |
| 984 | 985 |
| 985 #endif // defined TARGET_ARCH_MIPS | 986 #endif // defined TARGET_ARCH_MIPS |
| 986 | 987 |
| OLD | NEW |