Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: runtime/vm/assembler_mips.cc

Issue 259393002: Enums cleanup. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/assembler_x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/assembler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698