| 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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 const Object& value) { | 591 const Object& value) { |
| 592 ASSERT(value.IsSmi() || value.InVMHeap() || | 592 ASSERT(value.IsSmi() || value.InVMHeap() || |
| 593 (value.IsOld() && value.IsNotTemporaryScopedHandle())); | 593 (value.IsOld() && value.IsNotTemporaryScopedHandle())); |
| 594 // No store buffer update. | 594 // No store buffer update. |
| 595 LoadObject(TMP, value); | 595 LoadObject(TMP, value); |
| 596 sw(TMP, dest); | 596 sw(TMP, dest); |
| 597 } | 597 } |
| 598 | 598 |
| 599 | 599 |
| 600 void Assembler::LoadClassId(Register result, Register object) { | 600 void Assembler::LoadClassId(Register result, Register object) { |
| 601 ASSERT(RawObject::kClassIdTagBit == 16); | 601 ASSERT(RawObject::kClassIdTagPos == 16); |
| 602 ASSERT(RawObject::kClassIdTagSize == 16); | 602 ASSERT(RawObject::kClassIdTagSize == 16); |
| 603 const intptr_t class_id_offset = Object::tags_offset() + | 603 const intptr_t class_id_offset = Object::tags_offset() + |
| 604 RawObject::kClassIdTagBit / kBitsPerByte; | 604 RawObject::kClassIdTagPos / kBitsPerByte; |
| 605 lhu(result, FieldAddress(object, class_id_offset)); | 605 lhu(result, FieldAddress(object, class_id_offset)); |
| 606 } | 606 } |
| 607 | 607 |
| 608 | 608 |
| 609 void Assembler::LoadClassById(Register result, Register class_id) { | 609 void Assembler::LoadClassById(Register result, Register class_id) { |
| 610 ASSERT(result != class_id); | 610 ASSERT(result != class_id); |
| 611 lw(result, FieldAddress(CTX, Context::isolate_offset())); | 611 lw(result, FieldAddress(CTX, Context::isolate_offset())); |
| 612 const intptr_t table_offset_in_isolate = | 612 const intptr_t table_offset_in_isolate = |
| 613 Isolate::class_table_offset() + ClassTable::table_offset(); | 613 Isolate::class_table_offset() + ClassTable::table_offset(); |
| 614 lw(result, Address(result, table_offset_in_isolate)); | 614 lw(result, Address(result, table_offset_in_isolate)); |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1055 Emit(reinterpret_cast<int32_t>(message)); | 1055 Emit(reinterpret_cast<int32_t>(message)); |
| 1056 Bind(&msg); | 1056 Bind(&msg); |
| 1057 break_(Instr::kMsgMessageCode); | 1057 break_(Instr::kMsgMessageCode); |
| 1058 } | 1058 } |
| 1059 #endif | 1059 #endif |
| 1060 } | 1060 } |
| 1061 | 1061 |
| 1062 } // namespace dart | 1062 } // namespace dart |
| 1063 | 1063 |
| 1064 #endif // defined TARGET_ARCH_MIPS | 1064 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |