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

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

Issue 14309004: Implement long jump in ARM and MIPS simulators. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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
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/runtime_entry.h" 9 #include "vm/runtime_entry.h"
10 #include "vm/simulator.h" 10 #include "vm/simulator.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 } else { 150 } else {
151 subu(rd, rs, rt); 151 subu(rd, rs, rt);
152 xor_(ro, rd, rs); 152 xor_(ro, rd, rs);
153 xor_(TMP1, rs, rt); 153 xor_(TMP1, rs, rt);
154 and_(ro, TMP1, ro); 154 and_(ro, TMP1, ro);
155 } 155 }
156 } 156 }
157 157
158 158
159 void Assembler::LoadObject(Register rd, const Object& object) { 159 void Assembler::LoadObject(Register rd, const Object& object) {
160 // Smi's and VM heap objects are never relocated; do not use object pool. 160 // Smis and VM heap objects are never relocated; do not use object pool.
161 if (object.IsSmi()) { 161 if (object.IsSmi()) {
162 LoadImmediate(rd, reinterpret_cast<int32_t>(object.raw())); 162 LoadImmediate(rd, reinterpret_cast<int32_t>(object.raw()));
163 } else if (object.InVMHeap()) { 163 } else if (object.InVMHeap()) {
164 // Make sure that class CallPattern is able to decode this load immediate. 164 // Make sure that class CallPattern is able to decode this load immediate.
165 int32_t object_raw = reinterpret_cast<int32_t>(object.raw()); 165 int32_t object_raw = reinterpret_cast<int32_t>(object.raw());
166 const uint16_t object_low = Utils::Low16Bits(object_raw); 166 const uint16_t object_low = Utils::Low16Bits(object_raw);
167 const uint16_t object_high = Utils::High16Bits(object_raw); 167 const uint16_t object_high = Utils::High16Bits(object_raw);
168 lui(rd, Immediate(object_high)); 168 lui(rd, Immediate(object_high));
169 ori(rd, rd, Immediate(object_low)); 169 ori(rd, rd, Immediate(object_low));
170 } else { 170 } else {
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 b(&stop); 540 b(&stop);
541 Emit(reinterpret_cast<int32_t>(message)); 541 Emit(reinterpret_cast<int32_t>(message));
542 Bind(&stop); 542 Bind(&stop);
543 break_(Instr::kStopMessageCode); 543 break_(Instr::kStopMessageCode);
544 } 544 }
545 545
546 } // namespace dart 546 } // namespace dart
547 547
548 #endif // defined TARGET_ARCH_MIPS 548 #endif // defined TARGET_ARCH_MIPS
549 549
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698