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

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

Issue 1175523002: Object pool with support for untagged entries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « runtime/vm/assembler_mips.h ('k') | runtime/vm/assembler_x64.h » ('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" // NOLINT 5 #include "vm/globals.h" // NOLINT
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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 // Make sure that class CallPattern is able to decode this load immediate. 465 // Make sure that class CallPattern is able to decode this load immediate.
466 int32_t object_raw = reinterpret_cast<int32_t>(object.raw()); 466 int32_t object_raw = reinterpret_cast<int32_t>(object.raw());
467 const uint16_t object_low = Utils::Low16Bits(object_raw); 467 const uint16_t object_low = Utils::Low16Bits(object_raw);
468 const uint16_t object_high = Utils::High16Bits(object_raw); 468 const uint16_t object_high = Utils::High16Bits(object_raw);
469 lui(rd, Immediate(object_high)); 469 lui(rd, Immediate(object_high));
470 ori(rd, rd, Immediate(object_low)); 470 ori(rd, rd, Immediate(object_low));
471 } else { 471 } else {
472 // Make sure that class CallPattern is able to decode this load from the 472 // Make sure that class CallPattern is able to decode this load from the
473 // object pool. 473 // object pool.
474 const int32_t offset = 474 const int32_t offset =
475 Array::element_offset(object_pool_.FindObject(object, kNotPatchable)); 475 ObjectPool::element_offset(object_pool_wrapper_.FindObject(object));
476 LoadWordFromPoolOffset(rd, offset - kHeapObjectTag); 476 LoadWordFromPoolOffset(rd, offset - kHeapObjectTag);
477 } 477 }
478 } 478 }
479 479
480 480
481 void Assembler::PushObject(const Object& object) { 481 void Assembler::PushObject(const Object& object) {
482 ASSERT(!in_delay_slot_); 482 ASSERT(!in_delay_slot_);
483 LoadObject(TMP, object); 483 LoadObject(TMP, object);
484 Push(TMP); 484 Push(TMP);
485 } 485 }
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
1211 Label stop; 1211 Label stop;
1212 b(&stop); 1212 b(&stop);
1213 Emit(reinterpret_cast<int32_t>(message)); 1213 Emit(reinterpret_cast<int32_t>(message));
1214 Bind(&stop); 1214 Bind(&stop);
1215 break_(Instr::kStopMessageCode); 1215 break_(Instr::kStopMessageCode);
1216 } 1216 }
1217 1217
1218 } // namespace dart 1218 } // namespace dart
1219 1219
1220 #endif // defined TARGET_ARCH_MIPS 1220 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/assembler_mips.h ('k') | runtime/vm/assembler_x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698