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

Side by Side Diff: runtime/vm/assembler_arm.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 | « no previous file | runtime/vm/assembler_arm64.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_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/cpu.h" 9 #include "vm/cpu.h"
10 #include "vm/longjump.h" 10 #include "vm/longjump.h"
(...skipping 1607 matching lines...) Expand 10 before | Expand all | Expand 10 after
1618 const Object& value) { 1618 const Object& value) {
1619 ASSERT(value.IsSmi() || value.InVMHeap() || 1619 ASSERT(value.IsSmi() || value.InVMHeap() ||
1620 (value.IsOld() && value.IsNotTemporaryScopedHandle())); 1620 (value.IsOld() && value.IsNotTemporaryScopedHandle()));
1621 // No store buffer update. 1621 // No store buffer update.
1622 LoadObject(IP, value); 1622 LoadObject(IP, value);
1623 str(IP, dest); 1623 str(IP, dest);
1624 } 1624 }
1625 1625
1626 1626
1627 void Assembler::LoadClassId(Register result, Register object) { 1627 void Assembler::LoadClassId(Register result, Register object) {
1628 ASSERT(RawObject::kClassIdTagBit == 16); 1628 ASSERT(RawObject::kClassIdTagPos == 16);
1629 ASSERT(RawObject::kClassIdTagSize == 16); 1629 ASSERT(RawObject::kClassIdTagSize == 16);
1630 const intptr_t class_id_offset = Object::tags_offset() + 1630 const intptr_t class_id_offset = Object::tags_offset() +
1631 RawObject::kClassIdTagBit / kBitsPerByte; 1631 RawObject::kClassIdTagPos / kBitsPerByte;
1632 ldrh(result, FieldAddress(object, class_id_offset)); 1632 ldrh(result, FieldAddress(object, class_id_offset));
1633 } 1633 }
1634 1634
1635 1635
1636 void Assembler::LoadClassById(Register result, Register class_id) { 1636 void Assembler::LoadClassById(Register result, Register class_id) {
1637 ASSERT(result != class_id); 1637 ASSERT(result != class_id);
1638 ldr(result, FieldAddress(CTX, Context::isolate_offset())); 1638 ldr(result, FieldAddress(CTX, Context::isolate_offset()));
1639 const intptr_t table_offset_in_isolate = 1639 const intptr_t table_offset_in_isolate =
1640 Isolate::class_table_offset() + ClassTable::table_offset(); 1640 Isolate::class_table_offset() + ClassTable::table_offset();
1641 LoadFromOffset(kWord, result, result, table_offset_in_isolate); 1641 LoadFromOffset(kWord, result, result, table_offset_in_isolate);
(...skipping 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after
3022 3022
3023 3023
3024 const char* Assembler::FpuRegisterName(FpuRegister reg) { 3024 const char* Assembler::FpuRegisterName(FpuRegister reg) {
3025 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); 3025 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters));
3026 return fpu_reg_names[reg]; 3026 return fpu_reg_names[reg];
3027 } 3027 }
3028 3028
3029 } // namespace dart 3029 } // namespace dart
3030 3030
3031 #endif // defined TARGET_ARCH_ARM 3031 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/assembler_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698